Package com.adyen.model.management
Class Signature
- java.lang.Object
-
- com.adyen.model.management.Signature
-
public class Signature extends Object
Signature
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ASK_SIGNATURE_ON_SCREENstatic StringJSON_PROPERTY_DEVICE_NAMEstatic StringJSON_PROPERTY_DEVICE_SLOGANstatic StringJSON_PROPERTY_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)If `skipSignature` is false, indicates whether the shopper should provide a signature on the display (**true**) or on the merchant receipt (**false**).SignaturedeviceName(String deviceName)Name that identifies the terminal.SignaturedeviceSlogan(String deviceSlogan)Slogan shown on the start screen of the device.booleanequals(Object o)Return true if this Signature object is equal to 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)If `skipSignature` is false, indicates whether the shopper should provide a signature on the display (**true**) or on the merchant receipt (**false**).voidsetDeviceName(String deviceName)Name that identifies the terminal.voidsetDeviceSlogan(String deviceSlogan)Slogan shown on the start screen of the device.voidsetSkipSignature(Boolean skipSignature)Skip asking for a signature.SignatureskipSignature(Boolean skipSignature)Skip asking for a signature.StringtoJson()Convert an instance of Signature to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_ASK_SIGNATURE_ON_SCREEN
public static final String JSON_PROPERTY_ASK_SIGNATURE_ON_SCREEN
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DEVICE_NAME
public static final String JSON_PROPERTY_DEVICE_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DEVICE_SLOGAN
public static final String JSON_PROPERTY_DEVICE_SLOGAN
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SKIP_SIGNATURE
public static final String JSON_PROPERTY_SKIP_SIGNATURE
- See Also:
- Constant Field Values
-
-
Method Detail
-
askSignatureOnScreen
public Signature askSignatureOnScreen(Boolean askSignatureOnScreen)
If `skipSignature` is false, indicates whether the shopper should provide a signature on the display (**true**) or on the merchant receipt (**false**).- Parameters:
askSignatureOnScreen-- Returns:
- the current
Signatureinstance, allowing for method chaining
-
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)
If `skipSignature` is false, indicates whether the shopper should provide a signature on the display (**true**) or on the merchant receipt (**false**).- Parameters:
askSignatureOnScreen-
-
deviceName
public Signature deviceName(String deviceName)
Name that identifies the terminal.- Parameters:
deviceName-- Returns:
- the current
Signatureinstance, allowing for method chaining
-
getDeviceName
public String getDeviceName()
Name that identifies the terminal.- Returns:
- deviceName
-
setDeviceName
public void setDeviceName(String deviceName)
Name that identifies the terminal.- Parameters:
deviceName-
-
deviceSlogan
public Signature deviceSlogan(String deviceSlogan)
Slogan shown on the start screen of the device.- Parameters:
deviceSlogan-- Returns:
- the current
Signatureinstance, allowing for method chaining
-
getDeviceSlogan
public String getDeviceSlogan()
Slogan shown on the start screen of the device.- Returns:
- deviceSlogan
-
setDeviceSlogan
public void setDeviceSlogan(String deviceSlogan)
Slogan shown on the start screen of the device.- Parameters:
deviceSlogan-
-
skipSignature
public Signature skipSignature(Boolean skipSignature)
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.- Parameters:
skipSignature-- Returns:
- the current
Signatureinstance, allowing for method chaining
-
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)
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.- Parameters:
skipSignature-
-
equals
public boolean equals(Object o)
Return true if this Signature object is equal to o.
-
fromJson
public static Signature fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of Signature given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Signature
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to Signature
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of Signature to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-