Package com.adyen.model.checkout
Class CardDetailsRequest
- java.lang.Object
-
- com.adyen.model.checkout.CardDetailsRequest
-
public class CardDetailsRequest extends Object
CardDetailsRequest
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CARD_NUMBERstatic StringJSON_PROPERTY_COUNTRY_CODEstatic StringJSON_PROPERTY_ENCRYPTED_CARD_NUMBERstatic StringJSON_PROPERTY_MERCHANT_ACCOUNTstatic StringJSON_PROPERTY_SUPPORTED_BRANDS
-
Constructor Summary
Constructors Constructor Description CardDetailsRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CardDetailsRequestaddSupportedBrandsItem(String supportedBrandsItem)CardDetailsRequestcardNumber(String cardNumber)CardDetailsRequestcountryCode(String countryCode)CardDetailsRequestencryptedCardNumber(String encryptedCardNumber)booleanequals(Object o)Return true if this CardDetailsRequest object is equal to o.static CardDetailsRequestfromJson(String jsonString)Create an instance of CardDetailsRequest given an JSON stringStringgetCardNumber()A minimum of the first 8 digits of the card number and a maximum of the full card number.StringgetCountryCode()The shopper country.StringgetEncryptedCardNumber()The encrypted card number.StringgetMerchantAccount()The merchant account identifier, with which you want to process the transaction.List<String>getSupportedBrands()The card brands you support.inthashCode()CardDetailsRequestmerchantAccount(String merchantAccount)voidsetCardNumber(String cardNumber)A minimum of the first 8 digits of the card number and a maximum of the full card number.voidsetCountryCode(String countryCode)The shopper country.voidsetEncryptedCardNumber(String encryptedCardNumber)The encrypted card number.voidsetMerchantAccount(String merchantAccount)The merchant account identifier, with which you want to process the transaction.voidsetSupportedBrands(List<String> supportedBrands)The card brands you support.CardDetailsRequestsupportedBrands(List<String> supportedBrands)StringtoJson()Convert an instance of CardDetailsRequest to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_CARD_NUMBER
public static final String JSON_PROPERTY_CARD_NUMBER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_COUNTRY_CODE
public static final String JSON_PROPERTY_COUNTRY_CODE
- 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_MERCHANT_ACCOUNT
public static final String JSON_PROPERTY_MERCHANT_ACCOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SUPPORTED_BRANDS
public static final String JSON_PROPERTY_SUPPORTED_BRANDS
- See Also:
- Constant Field Values
-
-
Method Detail
-
cardNumber
public CardDetailsRequest cardNumber(String cardNumber)
-
getCardNumber
public String getCardNumber()
A minimum of the first 8 digits of the card number and a maximum of the full card number. 11 digits gives the best result. You must be [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide) to collect raw card data.- Returns:
- cardNumber
-
setCardNumber
public void setCardNumber(String cardNumber)
A minimum of the first 8 digits of the card number and a maximum of the full card number. 11 digits gives the best result. You must be [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide) to collect raw card data.- Parameters:
cardNumber-
-
countryCode
public CardDetailsRequest countryCode(String countryCode)
-
getCountryCode
public String getCountryCode()
The shopper country. Format: [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE- Returns:
- countryCode
-
setCountryCode
public void setCountryCode(String countryCode)
The shopper country. Format: [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE- Parameters:
countryCode-
-
encryptedCardNumber
public CardDetailsRequest encryptedCardNumber(String encryptedCardNumber)
-
getEncryptedCardNumber
public String getEncryptedCardNumber()
The encrypted card number.- Returns:
- encryptedCardNumber
-
setEncryptedCardNumber
public void setEncryptedCardNumber(String encryptedCardNumber)
The encrypted card number.- Parameters:
encryptedCardNumber-
-
merchantAccount
public CardDetailsRequest merchantAccount(String merchantAccount)
-
getMerchantAccount
public String getMerchantAccount()
The merchant account identifier, with which you want to process the transaction.- Returns:
- merchantAccount
-
setMerchantAccount
public void setMerchantAccount(String merchantAccount)
The merchant account identifier, with which you want to process the transaction.- Parameters:
merchantAccount-
-
supportedBrands
public CardDetailsRequest supportedBrands(List<String> supportedBrands)
-
addSupportedBrandsItem
public CardDetailsRequest addSupportedBrandsItem(String supportedBrandsItem)
-
getSupportedBrands
public List<String> getSupportedBrands()
The card brands you support. This is the [`brands`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods__resParam_paymentMethods-brands) array from your [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) response. If not included, our API uses the ones configured for your merchant account and, if provided, the country code.- Returns:
- supportedBrands
-
setSupportedBrands
public void setSupportedBrands(List<String> supportedBrands)
The card brands you support. This is the [`brands`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods__resParam_paymentMethods-brands) array from your [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) response. If not included, our API uses the ones configured for your merchant account and, if provided, the country code.- Parameters:
supportedBrands-
-
equals
public boolean equals(Object o)
Return true if this CardDetailsRequest object is equal to o.
-
fromJson
public static CardDetailsRequest fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of CardDetailsRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CardDetailsRequest
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to CardDetailsRequest
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of CardDetailsRequest to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-