Package com.adyen.model.checkout
Class ShopperInteractionDevice
- java.lang.Object
-
- com.adyen.model.checkout.ShopperInteractionDevice
-
public class ShopperInteractionDevice extends Object
ShopperInteractionDevice
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classShopperInteractionDevice.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_LOCALEstatic StringSERIALIZED_NAME_OSstatic StringSERIALIZED_NAME_OS_VERSION
-
Constructor Summary
Constructors Constructor Description ShopperInteractionDevice()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static ShopperInteractionDevicefromJson(String jsonString)Create an instance of ShopperInteractionDevice given an JSON stringStringgetLocale()Locale on the shopper interaction device.StringgetOs()Operating system running on the shopper interaction device.StringgetOsVersion()Version of the operating system on the shopper interaction device.inthashCode()ShopperInteractionDevicelocale(String locale)ShopperInteractionDeviceos(String os)ShopperInteractionDeviceosVersion(String osVersion)voidsetLocale(String locale)voidsetOs(String os)voidsetOsVersion(String osVersion)StringtoJson()Convert an instance of ShopperInteractionDevice to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_LOCALE
public static final String SERIALIZED_NAME_LOCALE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_OS
public static final String SERIALIZED_NAME_OS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_OS_VERSION
public static final String SERIALIZED_NAME_OS_VERSION
- See Also:
- Constant Field Values
-
-
Method Detail
-
locale
public ShopperInteractionDevice locale(String locale)
-
getLocale
public String getLocale()
Locale on the shopper interaction device.- Returns:
- locale
-
setLocale
public void setLocale(String locale)
-
os
public ShopperInteractionDevice os(String os)
-
getOs
public String getOs()
Operating system running on the shopper interaction device.- Returns:
- os
-
setOs
public void setOs(String os)
-
osVersion
public ShopperInteractionDevice osVersion(String osVersion)
-
getOsVersion
public String getOsVersion()
Version of the operating system on the shopper interaction device.- Returns:
- osVersion
-
setOsVersion
public void setOsVersion(String osVersion)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to ShopperInteractionDevice
-
fromJson
public static ShopperInteractionDevice fromJson(String jsonString) throws IOException
Create an instance of ShopperInteractionDevice given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ShopperInteractionDevice
- Throws:
IOException- if the JSON string is invalid with respect to ShopperInteractionDevice
-
toJson
public String toJson()
Convert an instance of ShopperInteractionDevice to an JSON string- Returns:
- JSON string
-
-