Class CardDetailsRequest


  • public class CardDetailsRequest
    extends Object
    CardDetailsRequest
    • Constructor Detail

      • CardDetailsRequest

        public CardDetailsRequest()
    • 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 CardDetailsRequest instance, 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 CardDetailsRequest instance, 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 CardDetailsRequest instance, 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 CardDetailsRequest instance, 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 CardDetailsRequest instance, allowing for method chaining
      • 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.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • 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