Package com.adyen.model.tapi
Class CardHolderPIN
- java.lang.Object
-
- com.adyen.model.tapi.CardHolderPIN
-
public class CardHolderPIN extends Object
CardHolderPIN
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ADDITIONAL_INPUTstatic StringJSON_PROPERTY_ENCR_P_I_N_BLOCKstatic StringJSON_PROPERTY_PI_N_FORMAT
-
Constructor Summary
Constructors Constructor Description CardHolderPIN()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CardHolderPINadditionalInput(String additionalInput)additionalInputCardHolderPINencrPINBlock(String encrPINBlock)encrPINBlockbooleanequals(Object o)Return true if this CardHolderPIN object is equal to o.static CardHolderPINfromJson(String jsonString)Create an instance of CardHolderPIN given an JSON stringStringgetAdditionalInput()Get additionalInputStringgetEncrPINBlock()Get encrPINBlockMap<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.PINFormatgetPiNFormat()Get piNFormatinthashCode()CardHolderPINincludeNullValues(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.CardHolderPINpiNFormat(PINFormat piNFormat)piNFormatvoidsetAdditionalInput(String additionalInput)additionalInputvoidsetEncrPINBlock(String encrPINBlock)encrPINBlockvoidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetPiNFormat(PINFormat piNFormat)piNFormatStringtoJson()Convert an instance of CardHolderPIN to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_ENCR_P_I_N_BLOCK
public static final String JSON_PROPERTY_ENCR_P_I_N_BLOCK
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PI_N_FORMAT
public static final String JSON_PROPERTY_PI_N_FORMAT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ADDITIONAL_INPUT
public static final String JSON_PROPERTY_ADDITIONAL_INPUT
- See Also:
- Constant Field Values
-
-
Method Detail
-
encrPINBlock
public CardHolderPIN encrPINBlock(String encrPINBlock)
encrPINBlock- Parameters:
encrPINBlock-- Returns:
- the current
CardHolderPINinstance, allowing for method chaining
-
getEncrPINBlock
public String getEncrPINBlock()
Get encrPINBlock- Returns:
- encrPINBlock
-
setEncrPINBlock
public void setEncrPINBlock(String encrPINBlock)
encrPINBlock- Parameters:
encrPINBlock-
-
piNFormat
public CardHolderPIN piNFormat(PINFormat piNFormat)
piNFormat- Parameters:
piNFormat-- Returns:
- the current
CardHolderPINinstance, allowing for method chaining
-
getPiNFormat
public PINFormat getPiNFormat()
Get piNFormat- Returns:
- piNFormat
-
setPiNFormat
public void setPiNFormat(PINFormat piNFormat)
piNFormat- Parameters:
piNFormat-
-
additionalInput
public CardHolderPIN additionalInput(String additionalInput)
additionalInput- Parameters:
additionalInput-- Returns:
- the current
CardHolderPINinstance, allowing for method chaining
-
getAdditionalInput
public String getAdditionalInput()
Get additionalInput- Returns:
- additionalInput
-
setAdditionalInput
public void setAdditionalInput(String additionalInput)
additionalInput- Parameters:
additionalInput-
-
includeNullValues
public CardHolderPIN 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 CardHolderPIN 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 CardHolderPIN fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of CardHolderPIN given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CardHolderPIN
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to CardHolderPIN
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of CardHolderPIN to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-