Class Card


  • public class Card
    extends Object
    Card
    • Constructor Detail

      • Card

        public Card()
    • Method Detail

      • authentication

        public Card authentication​(Authentication authentication)
        authentication
        Parameters:
        authentication -
        Returns:
        the current Card instance, allowing for method chaining
      • getAuthentication

        public Authentication getAuthentication()
        authentication
        Returns:
        authentication
      • setAuthentication

        public void setAuthentication​(Authentication authentication)
        authentication
        Parameters:
        authentication -
      • bin

        public Card bin​(String bin)
        The bank identification number (BIN) of the card number.
        Parameters:
        bin -
        Returns:
        the current Card instance, allowing for method chaining
      • getBin

        public String getBin()
        The bank identification number (BIN) of the card number.
        Returns:
        bin
      • setBin

        public void setBin​(String bin)
        The bank identification number (BIN) of the card number.
        Parameters:
        bin -
      • brand

        public Card brand​(String brand)
        The brand of the physical or the virtual card. Possible values: **visa**, **mc**.
        Parameters:
        brand -
        Returns:
        the current Card instance, allowing for method chaining
      • getBrand

        public String getBrand()
        The brand of the physical or the virtual card. Possible values: **visa**, **mc**.
        Returns:
        brand
      • setBrand

        public void setBrand​(String brand)
        The brand of the physical or the virtual card. Possible values: **visa**, **mc**.
        Parameters:
        brand -
      • brandVariant

        public Card brandVariant​(String brandVariant)
        The brand variant of the physical or the virtual card. For example, **visadebit** or **mcprepaid**. >Reach out to your Adyen contact to get the values relevant for your integration.
        Parameters:
        brandVariant -
        Returns:
        the current Card instance, allowing for method chaining
      • getBrandVariant

        public String getBrandVariant()
        The brand variant of the physical or the virtual card. For example, **visadebit** or **mcprepaid**. >Reach out to your Adyen contact to get the values relevant for your integration.
        Returns:
        brandVariant
      • setBrandVariant

        public void setBrandVariant​(String brandVariant)
        The brand variant of the physical or the virtual card. For example, **visadebit** or **mcprepaid**. >Reach out to your Adyen contact to get the values relevant for your integration.
        Parameters:
        brandVariant -
      • cardholderName

        public Card cardholderName​(String cardholderName)
        The name of the cardholder. Maximum length: 26 characters.
        Parameters:
        cardholderName -
        Returns:
        the current Card instance, allowing for method chaining
      • getCardholderName

        public String getCardholderName()
        The name of the cardholder. Maximum length: 26 characters.
        Returns:
        cardholderName
      • setCardholderName

        public void setCardholderName​(String cardholderName)
        The name of the cardholder. Maximum length: 26 characters.
        Parameters:
        cardholderName -
      • configuration

        public Card configuration​(CardConfiguration configuration)
        configuration
        Parameters:
        configuration -
        Returns:
        the current Card instance, allowing for method chaining
      • getConfiguration

        public CardConfiguration getConfiguration()
        configuration
        Returns:
        configuration
      • setConfiguration

        public void setConfiguration​(CardConfiguration configuration)
        configuration
        Parameters:
        configuration -
      • cvc

        public Card cvc​(String cvc)
        The CVC2 value of the card. > The CVC2 is not sent by default. This is only returned in the `POST` response for single-use virtual cards.
        Parameters:
        cvc -
        Returns:
        the current Card instance, allowing for method chaining
      • getCvc

        public String getCvc()
        The CVC2 value of the card. > The CVC2 is not sent by default. This is only returned in the `POST` response for single-use virtual cards.
        Returns:
        cvc
      • setCvc

        public void setCvc​(String cvc)
        The CVC2 value of the card. > The CVC2 is not sent by default. This is only returned in the `POST` response for single-use virtual cards.
        Parameters:
        cvc -
      • deliveryContact

        public Card deliveryContact​(DeliveryContact deliveryContact)
        deliveryContact
        Parameters:
        deliveryContact -
        Returns:
        the current Card instance, allowing for method chaining
      • getDeliveryContact

        public DeliveryContact getDeliveryContact()
        deliveryContact
        Returns:
        deliveryContact
      • setDeliveryContact

        public void setDeliveryContact​(DeliveryContact deliveryContact)
        deliveryContact
        Parameters:
        deliveryContact -
      • expiration

        public Card expiration​(Expiry expiration)
        expiration
        Parameters:
        expiration -
        Returns:
        the current Card instance, allowing for method chaining
      • getExpiration

        public Expiry getExpiration()
        expiration
        Returns:
        expiration
      • setExpiration

        public void setExpiration​(Expiry expiration)
        expiration
        Parameters:
        expiration -
      • formFactor

        public Card formFactor​(Card.FormFactorEnum formFactor)
        The form factor of the card. Possible values: **virtual**, **physical**.
        Parameters:
        formFactor -
        Returns:
        the current Card instance, allowing for method chaining
      • getFormFactor

        public Card.FormFactorEnum getFormFactor()
        The form factor of the card. Possible values: **virtual**, **physical**.
        Returns:
        formFactor
      • setFormFactor

        public void setFormFactor​(Card.FormFactorEnum formFactor)
        The form factor of the card. Possible values: **virtual**, **physical**.
        Parameters:
        formFactor -
      • lastFour

        public Card lastFour​(String lastFour)
        Last last four digits of the card number.
        Parameters:
        lastFour -
        Returns:
        the current Card instance, allowing for method chaining
      • getLastFour

        public String getLastFour()
        Last last four digits of the card number.
        Returns:
        lastFour
      • setLastFour

        public void setLastFour​(String lastFour)
        Last last four digits of the card number.
        Parameters:
        lastFour -
      • number

        public Card number​(String number)
        The primary account number (PAN) of the card. > The PAN is masked by default and returned only for single-use virtual cards.
        Parameters:
        number -
        Returns:
        the current Card instance, allowing for method chaining
      • getNumber

        public String getNumber()
        The primary account number (PAN) of the card. > The PAN is masked by default and returned only for single-use virtual cards.
        Returns:
        number
      • setNumber

        public void setNumber​(String number)
        The primary account number (PAN) of the card. > The PAN is masked by default and returned only for single-use virtual cards.
        Parameters:
        number -
      • threeDSecure

        public Card threeDSecure​(String threeDSecure)
        Allocates a specific product range for either a physical or a virtual card. Possible values: **fullySupported**, **secureCorporate**. >Reach out to your Adyen contact to get the values relevant for your integration.
        Parameters:
        threeDSecure -
        Returns:
        the current Card instance, allowing for method chaining
      • getThreeDSecure

        public String getThreeDSecure()
        Allocates a specific product range for either a physical or a virtual card. Possible values: **fullySupported**, **secureCorporate**. >Reach out to your Adyen contact to get the values relevant for your integration.
        Returns:
        threeDSecure
      • setThreeDSecure

        public void setThreeDSecure​(String threeDSecure)
        Allocates a specific product range for either a physical or a virtual card. Possible values: **fullySupported**, **secureCorporate**. >Reach out to your Adyen contact to get the values relevant for your integration.
        Parameters:
        threeDSecure -
      • equals

        public boolean equals​(Object o)
        Return true if this Card object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • fromJson

        public static Card fromJson​(String jsonString)
                             throws com.fasterxml.jackson.core.JsonProcessingException
        Create an instance of Card given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of Card
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - if the JSON string is invalid with respect to Card
      • toJson

        public String toJson()
                      throws com.fasterxml.jackson.core.JsonProcessingException
        Convert an instance of Card to an JSON string
        Returns:
        JSON string
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException