Package com.adyen.model.checkout
Class CheckoutForwardRequestCard
- java.lang.Object
-
- com.adyen.model.checkout.CheckoutForwardRequestCard
-
public class CheckoutForwardRequestCard extends Object
CheckoutForwardRequestCard
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCheckoutForwardRequestCard.TypeEnumDefault payment method details.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CVCstatic StringJSON_PROPERTY_ENCRYPTED_CARD_NUMBERstatic StringJSON_PROPERTY_ENCRYPTED_EXPIRY_MONTHstatic StringJSON_PROPERTY_ENCRYPTED_EXPIRY_YEARstatic StringJSON_PROPERTY_ENCRYPTED_SECURITY_CODEstatic StringJSON_PROPERTY_EXPIRY_MONTHstatic StringJSON_PROPERTY_EXPIRY_YEARstatic StringJSON_PROPERTY_HOLDER_NAMEstatic StringJSON_PROPERTY_NUMBERstatic StringJSON_PROPERTY_TYPE
-
Constructor Summary
Constructors Constructor Description CheckoutForwardRequestCard()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CheckoutForwardRequestCardcvc(String cvc)The [card verification code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) (1-20 characters).CheckoutForwardRequestCardencryptedCardNumber(String encryptedCardNumber)The encrypted card number.CheckoutForwardRequestCardencryptedExpiryMonth(String encryptedExpiryMonth)The encrypted expiryMonthCheckoutForwardRequestCardencryptedExpiryYear(String encryptedExpiryYear)The encrypted card expiry year.CheckoutForwardRequestCardencryptedSecurityCode(String encryptedSecurityCode)The encrypted security code.booleanequals(Object o)Return true if this CheckoutForwardRequestCard object is equal to o.CheckoutForwardRequestCardexpiryMonth(String expiryMonth)The card expiry month.CheckoutForwardRequestCardexpiryYear(String expiryYear)The card expiry year.static CheckoutForwardRequestCardfromJson(String jsonString)Create an instance of CheckoutForwardRequestCard given an JSON stringStringgetCvc()The [card verification code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) (1-20 characters).StringgetEncryptedCardNumber()The encrypted card number.StringgetEncryptedExpiryMonth()The encrypted expiryMonthStringgetEncryptedExpiryYear()The encrypted card expiry year.StringgetEncryptedSecurityCode()The encrypted security code.StringgetExpiryMonth()The card expiry month.StringgetExpiryYear()The card expiry year.Map<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.StringgetHolderName()The name of the cardholder.StringgetNumber()The card number.CheckoutForwardRequestCard.TypeEnumgetType()Default payment method details.inthashCode()CheckoutForwardRequestCardholderName(String holderName)The name of the cardholder.CheckoutForwardRequestCardincludeNullValues(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.CheckoutForwardRequestCardnumber(String number)The card number.voidsetCvc(String cvc)The [card verification code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) (1-20 characters).voidsetEncryptedCardNumber(String encryptedCardNumber)The encrypted card number.voidsetEncryptedExpiryMonth(String encryptedExpiryMonth)The encrypted expiryMonthvoidsetEncryptedExpiryYear(String encryptedExpiryYear)The encrypted card expiry year.voidsetEncryptedSecurityCode(String encryptedSecurityCode)The encrypted security code.voidsetExpiryMonth(String expiryMonth)The card expiry month.voidsetExpiryYear(String expiryYear)The card expiry year.voidsetHolderName(String holderName)The name of the cardholder.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetNumber(String number)The card number.voidsetType(CheckoutForwardRequestCard.TypeEnum type)Default payment method details.StringtoJson()Convert an instance of CheckoutForwardRequestCard to an JSON stringStringtoString()CheckoutForwardRequestCardtype(CheckoutForwardRequestCard.TypeEnum type)Default payment method details.
-
-
-
Field Detail
-
JSON_PROPERTY_CVC
public static final String JSON_PROPERTY_CVC
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ENCRYPTED_CARD_NUMBER
public static final String JSON_PROPERTY_ENCRYPTED_CARD_NUMBER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ENCRYPTED_EXPIRY_MONTH
public static final String JSON_PROPERTY_ENCRYPTED_EXPIRY_MONTH
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ENCRYPTED_EXPIRY_YEAR
public static final String JSON_PROPERTY_ENCRYPTED_EXPIRY_YEAR
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ENCRYPTED_SECURITY_CODE
public static final String JSON_PROPERTY_ENCRYPTED_SECURITY_CODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_EXPIRY_MONTH
public static final String JSON_PROPERTY_EXPIRY_MONTH
- See Also:
- Constant Field Values
-
JSON_PROPERTY_EXPIRY_YEAR
public static final String JSON_PROPERTY_EXPIRY_YEAR
- See Also:
- Constant Field Values
-
JSON_PROPERTY_HOLDER_NAME
public static final String JSON_PROPERTY_HOLDER_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NUMBER
public static final String JSON_PROPERTY_NUMBER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
cvc
public CheckoutForwardRequestCard cvc(String cvc)
The [card verification code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) (1-20 characters). Depending on the card brand, it is also known as: * CVV2/CVC2 – length: 3 digits * CID – length: 4 digits- Parameters:
cvc- The [card verification code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) (1-20 characters). Depending on the card brand, it is also known as: * CVV2/CVC2 – length: 3 digits * CID – length: 4 digits- Returns:
- the current
CheckoutForwardRequestCardinstance, allowing for method chaining
-
getCvc
public String getCvc()
The [card verification code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) (1-20 characters). Depending on the card brand, it is also known as: * CVV2/CVC2 – length: 3 digits * CID – length: 4 digits- Returns:
- cvc The [card verification code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) (1-20 characters). Depending on the card brand, it is also known as: * CVV2/CVC2 – length: 3 digits * CID – length: 4 digits
-
setCvc
public void setCvc(String cvc)
The [card verification code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) (1-20 characters). Depending on the card brand, it is also known as: * CVV2/CVC2 – length: 3 digits * CID – length: 4 digits- Parameters:
cvc- The [card verification code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) (1-20 characters). Depending on the card brand, it is also known as: * CVV2/CVC2 – length: 3 digits * CID – length: 4 digits
-
encryptedCardNumber
public CheckoutForwardRequestCard encryptedCardNumber(String encryptedCardNumber)
The encrypted card number.- Parameters:
encryptedCardNumber- The encrypted card number.- Returns:
- the current
CheckoutForwardRequestCardinstance, allowing for method chaining
-
getEncryptedCardNumber
public String getEncryptedCardNumber()
The encrypted card number.- Returns:
- encryptedCardNumber The encrypted card number.
-
setEncryptedCardNumber
public void setEncryptedCardNumber(String encryptedCardNumber)
The encrypted card number.- Parameters:
encryptedCardNumber- The encrypted card number.
-
encryptedExpiryMonth
public CheckoutForwardRequestCard encryptedExpiryMonth(String encryptedExpiryMonth)
The encrypted expiryMonth- Parameters:
encryptedExpiryMonth- The encrypted expiryMonth- Returns:
- the current
CheckoutForwardRequestCardinstance, allowing for method chaining
-
getEncryptedExpiryMonth
public String getEncryptedExpiryMonth()
The encrypted expiryMonth- Returns:
- encryptedExpiryMonth The encrypted expiryMonth
-
setEncryptedExpiryMonth
public void setEncryptedExpiryMonth(String encryptedExpiryMonth)
The encrypted expiryMonth- Parameters:
encryptedExpiryMonth- The encrypted expiryMonth
-
encryptedExpiryYear
public CheckoutForwardRequestCard encryptedExpiryYear(String encryptedExpiryYear)
The encrypted card expiry year.- Parameters:
encryptedExpiryYear- The encrypted card expiry year.- Returns:
- the current
CheckoutForwardRequestCardinstance, allowing for method chaining
-
getEncryptedExpiryYear
public String getEncryptedExpiryYear()
The encrypted card expiry year.- Returns:
- encryptedExpiryYear The encrypted card expiry year.
-
setEncryptedExpiryYear
public void setEncryptedExpiryYear(String encryptedExpiryYear)
The encrypted card expiry year.- Parameters:
encryptedExpiryYear- The encrypted card expiry year.
-
encryptedSecurityCode
public CheckoutForwardRequestCard encryptedSecurityCode(String encryptedSecurityCode)
The encrypted security code.- Parameters:
encryptedSecurityCode- The encrypted security code.- Returns:
- the current
CheckoutForwardRequestCardinstance, allowing for method chaining
-
getEncryptedSecurityCode
public String getEncryptedSecurityCode()
The encrypted security code.- Returns:
- encryptedSecurityCode The encrypted security code.
-
setEncryptedSecurityCode
public void setEncryptedSecurityCode(String encryptedSecurityCode)
The encrypted security code.- Parameters:
encryptedSecurityCode- The encrypted security code.
-
expiryMonth
public CheckoutForwardRequestCard expiryMonth(String expiryMonth)
The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 = March * 11 = November- Parameters:
expiryMonth- The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 = March * 11 = November- Returns:
- the current
CheckoutForwardRequestCardinstance, allowing for method chaining
-
getExpiryMonth
public String getExpiryMonth()
The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 = March * 11 = November- Returns:
- expiryMonth The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 = March * 11 = November
-
setExpiryMonth
public void setExpiryMonth(String expiryMonth)
The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 = March * 11 = November- Parameters:
expiryMonth- The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 = March * 11 = November
-
expiryYear
public CheckoutForwardRequestCard expiryYear(String expiryYear)
The card expiry year.- Parameters:
expiryYear- The card expiry year.- Returns:
- the current
CheckoutForwardRequestCardinstance, allowing for method chaining
-
getExpiryYear
public String getExpiryYear()
The card expiry year.- Returns:
- expiryYear The card expiry year.
-
setExpiryYear
public void setExpiryYear(String expiryYear)
The card expiry year.- Parameters:
expiryYear- The card expiry year.
-
holderName
public CheckoutForwardRequestCard holderName(String holderName)
The name of the cardholder.- Parameters:
holderName- The name of the cardholder.- Returns:
- the current
CheckoutForwardRequestCardinstance, allowing for method chaining
-
getHolderName
public String getHolderName()
The name of the cardholder.- Returns:
- holderName The name of the cardholder.
-
setHolderName
public void setHolderName(String holderName)
The name of the cardholder.- Parameters:
holderName- The name of the cardholder.
-
number
public CheckoutForwardRequestCard number(String number)
The card number. Only collect raw card data if you are fully [PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). Format: Do not use separators.- Parameters:
number- The card number. Only collect raw card data if you are fully [PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). Format: Do not use separators.- Returns:
- the current
CheckoutForwardRequestCardinstance, allowing for method chaining
-
getNumber
public String getNumber()
The card number. Only collect raw card data if you are fully [PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). Format: Do not use separators.- Returns:
- number The card number. Only collect raw card data if you are fully [PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). Format: Do not use separators.
-
setNumber
public void setNumber(String number)
The card number. Only collect raw card data if you are fully [PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). Format: Do not use separators.- Parameters:
number- The card number. Only collect raw card data if you are fully [PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). Format: Do not use separators.
-
type
public CheckoutForwardRequestCard type(CheckoutForwardRequestCard.TypeEnum type)
Default payment method details. Common for scheme payment methods, and for simple payment method details.- Parameters:
type- Default payment method details. Common for scheme payment methods, and for simple payment method details.- Returns:
- the current
CheckoutForwardRequestCardinstance, allowing for method chaining
-
getType
public CheckoutForwardRequestCard.TypeEnum getType()
Default payment method details. Common for scheme payment methods, and for simple payment method details.- Returns:
- type Default payment method details. Common for scheme payment methods, and for simple payment method details.
-
setType
public void setType(CheckoutForwardRequestCard.TypeEnum type)
Default payment method details. Common for scheme payment methods, and for simple payment method details.- Parameters:
type- Default payment method details. Common for scheme payment methods, and for simple payment method details.
-
includeNullValues
public CheckoutForwardRequestCard 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 CheckoutForwardRequestCard 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 CheckoutForwardRequestCard fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of CheckoutForwardRequestCard given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CheckoutForwardRequestCard
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to CheckoutForwardRequestCard
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of CheckoutForwardRequestCard to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-