Package com.adyen.model.payment
Class ShopperInteractionDevice
- java.lang.Object
-
- com.adyen.model.payment.ShopperInteractionDevice
-
public class ShopperInteractionDevice extends Object
ShopperInteractionDevice
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_LOCALEstatic StringJSON_PROPERTY_OSstatic StringJSON_PROPERTY_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)Return true if this ShopperInteractionDevice object is equal to o.static ShopperInteractionDevicefromJson(String jsonString)Create an instance of ShopperInteractionDevice given an JSON stringMap<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.StringgetLocale()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()ShopperInteractionDeviceincludeNullValues(boolean includeNullValues)Configures whether null values are explicitly serialized in the JSON payload.booleanisIncludeNullValues()Returns whether null values are explicitly serialized in the JSON payload.ShopperInteractionDevicelocale(String locale)Locale on the shopper interaction device.ShopperInteractionDeviceos(String os)Operating system running on the shopper interaction device.ShopperInteractionDeviceosVersion(String osVersion)Version of the operating system on the shopper interaction device.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetLocale(String locale)Locale on the shopper interaction device.voidsetOs(String os)Operating system running on the shopper interaction device.voidsetOsVersion(String osVersion)Version of the operating system on the shopper interaction device.StringtoJson()Convert an instance of ShopperInteractionDevice to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_LOCALE
public static final String JSON_PROPERTY_LOCALE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_OS
public static final String JSON_PROPERTY_OS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_OS_VERSION
public static final String JSON_PROPERTY_OS_VERSION
- See Also:
- Constant Field Values
-
-
Method Detail
-
locale
public ShopperInteractionDevice locale(String locale)
Locale on the shopper interaction device.- Parameters:
locale- Locale on the shopper interaction device.- Returns:
- the current
ShopperInteractionDeviceinstance, allowing for method chaining
-
getLocale
public String getLocale()
Locale on the shopper interaction device.- Returns:
- locale Locale on the shopper interaction device.
-
setLocale
public void setLocale(String locale)
Locale on the shopper interaction device.- Parameters:
locale- Locale on the shopper interaction device.
-
os
public ShopperInteractionDevice os(String os)
Operating system running on the shopper interaction device.- Parameters:
os- Operating system running on the shopper interaction device.- Returns:
- the current
ShopperInteractionDeviceinstance, allowing for method chaining
-
getOs
public String getOs()
Operating system running on the shopper interaction device.- Returns:
- os Operating system running on the shopper interaction device.
-
setOs
public void setOs(String os)
Operating system running on the shopper interaction device.- Parameters:
os- Operating system running on the shopper interaction device.
-
osVersion
public ShopperInteractionDevice osVersion(String osVersion)
Version of the operating system on the shopper interaction device.- Parameters:
osVersion- Version of the operating system on the shopper interaction device.- Returns:
- the current
ShopperInteractionDeviceinstance, allowing for method chaining
-
getOsVersion
public String getOsVersion()
Version of the operating system on the shopper interaction device.- Returns:
- osVersion Version of the operating system on the shopper interaction device.
-
setOsVersion
public void setOsVersion(String osVersion)
Version of the operating system on the shopper interaction device.- Parameters:
osVersion- Version of the operating system on the shopper interaction device.
-
includeNullValues
public ShopperInteractionDevice includeNullValues(boolean includeNullValues)
Configures whether null values are explicitly serialized in the JSON payload. Default is false.
-
isIncludeNullValues
public boolean isIncludeNullValues()
Returns whether null values are explicitly serialized in the JSON payload.
-
setIncludeNullValues
public void setIncludeNullValues(boolean includeNullValues)
Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
-
equals
public boolean equals(Object o)
Return true if this ShopperInteractionDevice object is equal to o.
-
getExplicitNulls
public Map<String,Object> getExplicitNulls()
Returns a map of properties to be merged into the JSON payload as explicit null values.
-
fromJson
public static ShopperInteractionDevice fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of ShopperInteractionDevice given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ShopperInteractionDevice
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to ShopperInteractionDevice
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of ShopperInteractionDevice to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-