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)
      • getExpiryDate

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

        public void setExpiryDate​(String 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

        public void setIssuerCountry​(String issuerCountry)
      • getIssuerState

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

        public void setIssuerState​(String 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)
      • getNumber

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

        public void setNumber​(String number)
      • getType

        public IdentificationData.TypeEnum getType()
        Type of document, used when providing an ID number or uploading a document. The possible values depend on the legal entity type. When providing ID numbers: * For **individual**, the `type` values can be **driversLicense**, **identityCard**, **nationalIdNumber**, or **passport**. When uploading photo IDs: * For **individual**, the `type` values can be **identityCard**, **driversLicense**, or **passport**. When uploading other documents: * For **organization**, the `type` values can be **proofOfAddress**, **registrationDocument**, **vatDocument**, **proofOfOrganizationTaxInfo**, **proofOfOwnership**, or **proofOfIndustry**. * For **individual**, the `type` values can be **identityCard**, **driversLicense**, **passport**, **proofOfNationalIdNumber**, **proofOfResidency**, **proofOfIndustry**, or **proofOfIndividualTaxId**. * For **soleProprietorship**, the `type` values can be **constitutionalDocument**, **proofOfAddress**, or **proofOfIndustry**. * Use **bankStatement** to upload documents for a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id).
        Returns:
        type
      • 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 IdentificationData
      • fromJson

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

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