Package com.adyen.model.balanceplatform
Class PinChangeRequest
- java.lang.Object
-
- com.adyen.model.balanceplatform.PinChangeRequest
-
public class PinChangeRequest extends Object
PinChangeRequest
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ENCRYPTED_KEYstatic StringJSON_PROPERTY_ENCRYPTED_PIN_BLOCKstatic StringJSON_PROPERTY_PAYMENT_INSTRUMENT_IDstatic StringJSON_PROPERTY_TOKEN
-
Constructor Summary
Constructors Constructor Description PinChangeRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PinChangeRequestencryptedKey(String encryptedKey)The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen.PinChangeRequestencryptedPinBlock(String encryptedPinBlock)The encrypted [PIN block](https://www.pcisecuritystandards.org/glossary/pin-block).booleanequals(Object o)Return true if this PinChangeRequest object is equal to o.static PinChangeRequestfromJson(String jsonString)Create an instance of PinChangeRequest given an JSON stringStringgetEncryptedKey()The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen.StringgetEncryptedPinBlock()The encrypted [PIN block](https://www.pcisecuritystandards.org/glossary/pin-block).Map<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.StringgetPaymentInstrumentId()The unique identifier of the payment instrument, which is the card for which you are managing the PIN.StringgetToken()The 16-digit token that you used to generate the `encryptedPinBlock`.inthashCode()PinChangeRequestincludeNullValues(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.PinChangeRequestpaymentInstrumentId(String paymentInstrumentId)The unique identifier of the payment instrument, which is the card for which you are managing the PIN.voidsetEncryptedKey(String encryptedKey)The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen.voidsetEncryptedPinBlock(String encryptedPinBlock)The encrypted [PIN block](https://www.pcisecuritystandards.org/glossary/pin-block).voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetPaymentInstrumentId(String paymentInstrumentId)The unique identifier of the payment instrument, which is the card for which you are managing the PIN.voidsetToken(String token)The 16-digit token that you used to generate the `encryptedPinBlock`.StringtoJson()Convert an instance of PinChangeRequest to an JSON stringPinChangeRequesttoken(String token)The 16-digit token that you used to generate the `encryptedPinBlock`.StringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_ENCRYPTED_KEY
public static final String JSON_PROPERTY_ENCRYPTED_KEY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ENCRYPTED_PIN_BLOCK
public static final String JSON_PROPERTY_ENCRYPTED_PIN_BLOCK
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAYMENT_INSTRUMENT_ID
public static final String JSON_PROPERTY_PAYMENT_INSTRUMENT_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TOKEN
public static final String JSON_PROPERTY_TOKEN
- See Also:
- Constant Field Values
-
-
Method Detail
-
encryptedKey
public PinChangeRequest encryptedKey(String encryptedKey)
The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen.- Parameters:
encryptedKey- The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen.- Returns:
- the current
PinChangeRequestinstance, allowing for method chaining
-
getEncryptedKey
public String getEncryptedKey()
The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen.- Returns:
- encryptedKey The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen.
-
setEncryptedKey
public void setEncryptedKey(String encryptedKey)
The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen.- Parameters:
encryptedKey- The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen.
-
encryptedPinBlock
public PinChangeRequest encryptedPinBlock(String encryptedPinBlock)
The encrypted [PIN block](https://www.pcisecuritystandards.org/glossary/pin-block).- Parameters:
encryptedPinBlock- The encrypted [PIN block](https://www.pcisecuritystandards.org/glossary/pin-block).- Returns:
- the current
PinChangeRequestinstance, allowing for method chaining
-
getEncryptedPinBlock
public String getEncryptedPinBlock()
The encrypted [PIN block](https://www.pcisecuritystandards.org/glossary/pin-block).- Returns:
- encryptedPinBlock The encrypted [PIN block](https://www.pcisecuritystandards.org/glossary/pin-block).
-
setEncryptedPinBlock
public void setEncryptedPinBlock(String encryptedPinBlock)
The encrypted [PIN block](https://www.pcisecuritystandards.org/glossary/pin-block).- Parameters:
encryptedPinBlock- The encrypted [PIN block](https://www.pcisecuritystandards.org/glossary/pin-block).
-
paymentInstrumentId
public PinChangeRequest paymentInstrumentId(String paymentInstrumentId)
The unique identifier of the payment instrument, which is the card for which you are managing the PIN.- Parameters:
paymentInstrumentId- The unique identifier of the payment instrument, which is the card for which you are managing the PIN.- Returns:
- the current
PinChangeRequestinstance, allowing for method chaining
-
getPaymentInstrumentId
public String getPaymentInstrumentId()
The unique identifier of the payment instrument, which is the card for which you are managing the PIN.- Returns:
- paymentInstrumentId The unique identifier of the payment instrument, which is the card for which you are managing the PIN.
-
setPaymentInstrumentId
public void setPaymentInstrumentId(String paymentInstrumentId)
The unique identifier of the payment instrument, which is the card for which you are managing the PIN.- Parameters:
paymentInstrumentId- The unique identifier of the payment instrument, which is the card for which you are managing the PIN.
-
token
public PinChangeRequest token(String token)
The 16-digit token that you used to generate the `encryptedPinBlock`.- Parameters:
token- The 16-digit token that you used to generate the `encryptedPinBlock`.- Returns:
- the current
PinChangeRequestinstance, allowing for method chaining
-
getToken
public String getToken()
The 16-digit token that you used to generate the `encryptedPinBlock`.- Returns:
- token The 16-digit token that you used to generate the `encryptedPinBlock`.
-
setToken
public void setToken(String token)
The 16-digit token that you used to generate the `encryptedPinBlock`.- Parameters:
token- The 16-digit token that you used to generate the `encryptedPinBlock`.
-
includeNullValues
public PinChangeRequest 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 PinChangeRequest 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 PinChangeRequest fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of PinChangeRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PinChangeRequest
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to PinChangeRequest
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of PinChangeRequest to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-