Class CardInfo


  • public class CardInfo
    extends Object
    CardInfo
    • Constructor Detail

      • CardInfo

        public CardInfo()
    • Method Detail

      • getAuthentication

        public Authentication getAuthentication()
        Get authentication
        Returns:
        authentication
      • setAuthentication

        public void setAuthentication​(Authentication authentication)
      • getBrand

        public String getBrand()
        The brand of the payment instrument. Possible values: **visa**, **mc**.
        Returns:
        brand
      • setBrand

        public void setBrand​(String brand)
      • brandVariant

        public CardInfo brandVariant​(String brandVariant)
      • getBrandVariant

        public String getBrandVariant()
        The brand variant of the payment instrument. >Contact your Adyen Implementation Manager to get the values that are relevant to your integration. Examples: **visadebit**, **mcprepaid**.
        Returns:
        brandVariant
      • setBrandVariant

        public void setBrandVariant​(String brandVariant)
      • cardholderName

        public CardInfo cardholderName​(String cardholderName)
      • getCardholderName

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

        public void setCardholderName​(String cardholderName)
      • getConfiguration

        public CardConfiguration getConfiguration()
        Get configuration
        Returns:
        configuration
      • setConfiguration

        public void setConfiguration​(CardConfiguration configuration)
      • getDeliveryContact

        public DeliveryContact getDeliveryContact()
        Get deliveryContact
        Returns:
        deliveryContact
      • setDeliveryContact

        public void setDeliveryContact​(DeliveryContact deliveryContact)
      • getFormFactor

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

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

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj)
                                       throws IOException
        Validates the JSON Object and throws an exception if issues found
        Parameters:
        jsonObj - JSON Object
        Throws:
        IOException - if the JSON Object is invalid with respect to CardInfo
      • fromJson

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

        public String toJson()
        Convert an instance of CardInfo to an JSON string
        Returns:
        JSON string