Package com.adyen.model.payment
Class MerchantDevice
- java.lang.Object
-
- com.adyen.model.payment.MerchantDevice
-
public class MerchantDevice extends Object
MerchantDevice
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMerchantDevice.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_OSstatic StringSERIALIZED_NAME_OS_VERSIONstatic StringSERIALIZED_NAME_REFERENCE
-
Constructor Summary
Constructors Constructor Description MerchantDevice()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static MerchantDevicefromJson(String jsonString)Create an instance of MerchantDevice given an JSON stringStringgetOs()Operating system running on the merchant device.StringgetOsVersion()Version of the operating system on the merchant device.StringgetReference()Merchant device reference.inthashCode()MerchantDeviceos(String os)MerchantDeviceosVersion(String osVersion)MerchantDevicereference(String reference)voidsetOs(String os)voidsetOsVersion(String osVersion)voidsetReference(String reference)StringtoJson()Convert an instance of MerchantDevice 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_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
-
SERIALIZED_NAME_REFERENCE
public static final String SERIALIZED_NAME_REFERENCE
- See Also:
- Constant Field Values
-
-
Method Detail
-
os
public MerchantDevice os(String os)
-
getOs
public String getOs()
Operating system running on the merchant device.- Returns:
- os
-
setOs
public void setOs(String os)
-
osVersion
public MerchantDevice osVersion(String osVersion)
-
getOsVersion
public String getOsVersion()
Version of the operating system on the merchant device.- Returns:
- osVersion
-
setOsVersion
public void setOsVersion(String osVersion)
-
reference
public MerchantDevice reference(String reference)
-
getReference
public String getReference()
Merchant device reference.- Returns:
- reference
-
setReference
public void setReference(String reference)
-
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 MerchantDevice
-
fromJson
public static MerchantDevice fromJson(String jsonString) throws IOException
Create an instance of MerchantDevice given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of MerchantDevice
- Throws:
IOException- if the JSON string is invalid with respect to MerchantDevice
-
toJson
public String toJson()
Convert an instance of MerchantDevice to an JSON string- Returns:
- JSON string
-
-