Package com.adyen.model.management
Class Signature
- java.lang.Object
-
- com.adyen.model.management.Signature
-
public class Signature extends Object
Signature
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSignature.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_ASK_SIGNATURE_ON_SCREENstatic StringSERIALIZED_NAME_DEVICE_NAMEstatic StringSERIALIZED_NAME_DEVICE_SLOGANstatic StringSERIALIZED_NAME_SKIP_SIGNATURE
-
Constructor Summary
Constructors Constructor Description Signature()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SignatureaskSignatureOnScreen(Boolean askSignatureOnScreen)SignaturedeviceName(String deviceName)SignaturedeviceSlogan(String deviceSlogan)booleanequals(Object o)static SignaturefromJson(String jsonString)Create an instance of Signature given an JSON stringBooleangetAskSignatureOnScreen()If `skipSignature` is false, indicates whether the shopper should provide a signature on the display (**true**) or on the merchant receipt (**false**).StringgetDeviceName()Name that identifies the terminal.StringgetDeviceSlogan()Slogan shown on the start screen of the device.BooleangetSkipSignature()Skip asking for a signature.inthashCode()voidsetAskSignatureOnScreen(Boolean askSignatureOnScreen)voidsetDeviceName(String deviceName)voidsetDeviceSlogan(String deviceSlogan)voidsetSkipSignature(Boolean skipSignature)SignatureskipSignature(Boolean skipSignature)StringtoJson()Convert an instance of Signature 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_ASK_SIGNATURE_ON_SCREEN
public static final String SERIALIZED_NAME_ASK_SIGNATURE_ON_SCREEN
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DEVICE_NAME
public static final String SERIALIZED_NAME_DEVICE_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DEVICE_SLOGAN
public static final String SERIALIZED_NAME_DEVICE_SLOGAN
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SKIP_SIGNATURE
public static final String SERIALIZED_NAME_SKIP_SIGNATURE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getAskSignatureOnScreen
public Boolean getAskSignatureOnScreen()
If `skipSignature` is false, indicates whether the shopper should provide a signature on the display (**true**) or on the merchant receipt (**false**).- Returns:
- askSignatureOnScreen
-
setAskSignatureOnScreen
public void setAskSignatureOnScreen(Boolean askSignatureOnScreen)
-
getDeviceName
public String getDeviceName()
Name that identifies the terminal.- Returns:
- deviceName
-
setDeviceName
public void setDeviceName(String deviceName)
-
getDeviceSlogan
public String getDeviceSlogan()
Slogan shown on the start screen of the device.- Returns:
- deviceSlogan
-
setDeviceSlogan
public void setDeviceSlogan(String deviceSlogan)
-
getSkipSignature
public Boolean getSkipSignature()
Skip asking for a signature. This is possible because all global card schemes (American Express, Diners, Discover, JCB, MasterCard, VISA, and UnionPay) regard a signature as optional.- Returns:
- skipSignature
-
setSkipSignature
public void setSkipSignature(Boolean skipSignature)
-
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 Signature
-
fromJson
public static Signature fromJson(String jsonString) throws IOException
Create an instance of Signature given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Signature
- Throws:
IOException- if the JSON string is invalid with respect to Signature
-
toJson
public String toJson()
Convert an instance of Signature to an JSON string- Returns:
- JSON string
-
-