Class IdentificationData


  • public class IdentificationData
    extends Object
    IdentificationData
    • Constructor Detail

      • IdentificationData

        public IdentificationData()
    • Method Detail

      • getCardNumber

        public String getCardNumber()
        The card number of the document that was issued (AU only).
        Returns:
        cardNumber
      • setCardNumber

        public void setCardNumber​(String cardNumber)
        The card number of the document that was issued (AU only).
        Parameters:
        cardNumber -
      • getExpiryDate

        public String getExpiryDate()
        The expiry date of the document, in YYYY-MM-DD format.
        Returns:
        expiryDate
      • setExpiryDate

        public void setExpiryDate​(String expiryDate)
        The expiry date of the document, in YYYY-MM-DD format.
        Parameters:
        expiryDate -
      • getIssuerCountry

        @Deprecated
        public String getIssuerCountry()
        Deprecated.
        The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the document was issued. For example, **US**.
        Returns:
        issuerCountry
      • setIssuerCountry

        @Deprecated
        public void setIssuerCountry​(String issuerCountry)
        Deprecated.
        The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the document was issued. For example, **US**.
        Parameters:
        issuerCountry -
      • getIssuerState

        public String getIssuerState()
        The state or province where the document was issued (AU only).
        Returns:
        issuerState
      • setIssuerState

        public void setIssuerState​(String issuerState)
        The state or province where the document was issued (AU only).
        Parameters:
        issuerState -
      • getNationalIdExempt

        public Boolean getNationalIdExempt()
        Applies only to individuals in the US. Set to **true** if the individual does not have an SSN. To verify their identity, Adyen will require them to upload an ID document.
        Returns:
        nationalIdExempt
      • setNationalIdExempt

        public void setNationalIdExempt​(Boolean nationalIdExempt)
        Applies only to individuals in the US. Set to **true** if the individual does not have an SSN. To verify their identity, Adyen will require them to upload an ID document.
        Parameters:
        nationalIdExempt -
      • getNumber

        public String getNumber()
        The number in the document.
        Returns:
        number
      • setNumber

        public void setNumber​(String number)
        The number in the document.
        Parameters:
        number -
      • getType

        public IdentificationData.TypeEnum getType()
        Type of identity data. For individuals, the `type` value is **nationalIdNumber**. For individuals in these countries, the following types are supported. - Australia: **driversLicense**, **passport** - Hong Kong: **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport**
        Returns:
        type
      • setType

        public void setType​(IdentificationData.TypeEnum type)
        Type of identity data. For individuals, the `type` value is **nationalIdNumber**. For individuals in these countries, the following types are supported. - Australia: **driversLicense**, **passport** - Hong Kong: **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport**
        Parameters:
        type -
      • equals

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

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

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

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