Class CheckoutForwardRequestCard


  • public class CheckoutForwardRequestCard
    extends Object
    CheckoutForwardRequestCard
    • Constructor Detail

      • CheckoutForwardRequestCard

        public CheckoutForwardRequestCard()
    • 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 CheckoutForwardRequestCard instance, 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 CheckoutForwardRequestCard instance, 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 CheckoutForwardRequestCard instance, 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 CheckoutForwardRequestCard instance, 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 CheckoutForwardRequestCard instance, 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 CheckoutForwardRequestCard instance, 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 CheckoutForwardRequestCard instance, 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 CheckoutForwardRequestCard instance, 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 CheckoutForwardRequestCard instance, 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 CheckoutForwardRequestCard instance, 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.
        Overrides:
        equals in class Object
      • hashCode

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