Package com.adyen.model.management
Class Passcodes
- java.lang.Object
-
- com.adyen.model.management.Passcodes
-
public class Passcodes extends Object
Passcodes
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ADMIN_MENU_PINstatic StringJSON_PROPERTY_REFUND_PINstatic StringJSON_PROPERTY_SCREEN_LOCK_PINstatic StringJSON_PROPERTY_TX_MENU_PIN
-
Constructor Summary
Constructors Constructor Description Passcodes()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PasscodesadminMenuPin(String adminMenuPin)The passcode for the Admin menu and the Settings menu.booleanequals(Object o)Return true if this Passcodes object is equal to o.static PasscodesfromJson(String jsonString)Create an instance of Passcodes given an JSON stringStringgetAdminMenuPin()The passcode for the Admin menu and the Settings menu.Map<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.StringgetRefundPin()The passcode for referenced and unreferenced refunds on standalone terminals.StringgetScreenLockPin()The passcode to unlock the terminal screen after a timeout.StringgetTxMenuPin()The passcode for the Transactions menu.inthashCode()PasscodesincludeNullValues(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.PasscodesrefundPin(String refundPin)The passcode for referenced and unreferenced refunds on standalone terminals.PasscodesscreenLockPin(String screenLockPin)The passcode to unlock the terminal screen after a timeout.voidsetAdminMenuPin(String adminMenuPin)The passcode for the Admin menu and the Settings menu.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetRefundPin(String refundPin)The passcode for referenced and unreferenced refunds on standalone terminals.voidsetScreenLockPin(String screenLockPin)The passcode to unlock the terminal screen after a timeout.voidsetTxMenuPin(String txMenuPin)The passcode for the Transactions menu.StringtoJson()Convert an instance of Passcodes to an JSON stringStringtoString()PasscodestxMenuPin(String txMenuPin)The passcode for the Transactions menu.
-
-
-
Field Detail
-
JSON_PROPERTY_ADMIN_MENU_PIN
public static final String JSON_PROPERTY_ADMIN_MENU_PIN
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REFUND_PIN
public static final String JSON_PROPERTY_REFUND_PIN
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SCREEN_LOCK_PIN
public static final String JSON_PROPERTY_SCREEN_LOCK_PIN
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TX_MENU_PIN
public static final String JSON_PROPERTY_TX_MENU_PIN
- See Also:
- Constant Field Values
-
-
Method Detail
-
adminMenuPin
public Passcodes adminMenuPin(String adminMenuPin)
The passcode for the Admin menu and the Settings menu.- Parameters:
adminMenuPin- The passcode for the Admin menu and the Settings menu.- Returns:
- the current
Passcodesinstance, allowing for method chaining
-
getAdminMenuPin
public String getAdminMenuPin()
The passcode for the Admin menu and the Settings menu.- Returns:
- adminMenuPin The passcode for the Admin menu and the Settings menu.
-
setAdminMenuPin
public void setAdminMenuPin(String adminMenuPin)
The passcode for the Admin menu and the Settings menu.- Parameters:
adminMenuPin- The passcode for the Admin menu and the Settings menu.
-
refundPin
public Passcodes refundPin(String refundPin)
The passcode for referenced and unreferenced refunds on standalone terminals.- Parameters:
refundPin- The passcode for referenced and unreferenced refunds on standalone terminals.- Returns:
- the current
Passcodesinstance, allowing for method chaining
-
getRefundPin
public String getRefundPin()
The passcode for referenced and unreferenced refunds on standalone terminals.- Returns:
- refundPin The passcode for referenced and unreferenced refunds on standalone terminals.
-
setRefundPin
public void setRefundPin(String refundPin)
The passcode for referenced and unreferenced refunds on standalone terminals.- Parameters:
refundPin- The passcode for referenced and unreferenced refunds on standalone terminals.
-
screenLockPin
public Passcodes screenLockPin(String screenLockPin)
The passcode to unlock the terminal screen after a timeout.- Parameters:
screenLockPin- The passcode to unlock the terminal screen after a timeout.- Returns:
- the current
Passcodesinstance, allowing for method chaining
-
getScreenLockPin
public String getScreenLockPin()
The passcode to unlock the terminal screen after a timeout.- Returns:
- screenLockPin The passcode to unlock the terminal screen after a timeout.
-
setScreenLockPin
public void setScreenLockPin(String screenLockPin)
The passcode to unlock the terminal screen after a timeout.- Parameters:
screenLockPin- The passcode to unlock the terminal screen after a timeout.
-
txMenuPin
public Passcodes txMenuPin(String txMenuPin)
The passcode for the Transactions menu.- Parameters:
txMenuPin- The passcode for the Transactions menu.- Returns:
- the current
Passcodesinstance, allowing for method chaining
-
getTxMenuPin
public String getTxMenuPin()
The passcode for the Transactions menu.- Returns:
- txMenuPin The passcode for the Transactions menu.
-
setTxMenuPin
public void setTxMenuPin(String txMenuPin)
The passcode for the Transactions menu.- Parameters:
txMenuPin- The passcode for the Transactions menu.
-
includeNullValues
public Passcodes 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 Passcodes 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 Passcodes fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of Passcodes given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Passcodes
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to Passcodes
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of Passcodes to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-