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)A minimum of the first eight digits of the card number.CardDetailsRequestcountryCode(String countryCode)The shopper country.CardDetailsRequestencryptedCardNumber(String encryptedCardNumber)The encrypted card number.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 eight digits of the 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)The merchant account identifier, with which you want to process the transaction.voidsetCardNumber(String cardNumber)A minimum of the first eight digits of the 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)The card brands you support.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)
A minimum of the first eight digits of the card number. The full card number 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-- Returns:
- the current
CardDetailsRequestinstance, allowing for method chaining
-
getCardNumber
public String getCardNumber()
A minimum of the first eight digits of the card number. The full card number 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 eight digits of the card number. The full card number 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)
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-- Returns:
- the current
CardDetailsRequestinstance, allowing for method chaining
-
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)
The encrypted card number.- Parameters:
encryptedCardNumber-- Returns:
- the current
CardDetailsRequestinstance, allowing for method chaining
-
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)
The merchant account identifier, with which you want to process the transaction.- Parameters:
merchantAccount-- Returns:
- the current
CardDetailsRequestinstance, allowing for method chaining
-
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)
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-- Returns:
- the current
CardDetailsRequestinstance, allowing for method chaining
-
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
-
-