Class CardInfo


  • public class CardInfo
    extends Object
    CardInfo
    • Constructor Detail

      • CardInfo

        public CardInfo()
    • Method Detail

      • authentication

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

        public Authentication getAuthentication()
        authentication
        Returns:
        authentication
      • setAuthentication

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

        public CardInfo brand​(String brand)
        The brand of the physical or the virtual card. Possible values: **visa**, **mc**.
        Parameters:
        brand -
        Returns:
        the current CardInfo 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 CardInfo 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 CardInfo 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 CardInfo cardholderName​(String cardholderName)
        The name of the cardholder. Maximum length: 26 characters.
        Parameters:
        cardholderName -
        Returns:
        the current CardInfo 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 CardInfo configuration​(CardConfiguration configuration)
        configuration
        Parameters:
        configuration -
        Returns:
        the current CardInfo instance, allowing for method chaining
      • getConfiguration

        public CardConfiguration getConfiguration()
        configuration
        Returns:
        configuration
      • setConfiguration

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

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

        public DeliveryContact getDeliveryContact()
        deliveryContact
        Returns:
        deliveryContact
      • setDeliveryContact

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

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

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

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

        public CardInfo 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 CardInfo 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 CardInfo object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

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

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

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