Class Document


  • public class Document
    extends Object
    Document
    • Constructor Detail

      • Document

        public Document()
    • Method Detail

      • getAttachment

        public Attachment getAttachment()
        Get attachment
        Returns:
        attachment
      • setAttachment

        public void setAttachment​(Attachment attachment)
        attachment
        Parameters:
        attachment -
      • getAttachments

        public List<Attachment> getAttachments()
        Array that contains the document. The array supports multiple attachments for uploading different sides or pages of a document.
        Returns:
        attachments
      • setAttachments

        public void setAttachments​(List<Attachment> attachments)
        Array that contains the document. The array supports multiple attachments for uploading different sides or pages of a document.
        Parameters:
        attachments -
      • getCreationDate

        public OffsetDateTime getCreationDate()
        The creation date of the document.
        Returns:
        creationDate
      • setCreationDate

        public void setCreationDate​(OffsetDateTime creationDate)
        The creation date of the document.
        Parameters:
        creationDate -
      • getDescription

        public String getDescription()
        Your description for the document.
        Returns:
        description
      • setDescription

        public void setDescription​(String description)
        Your description for the document.
        Parameters:
        description -
      • getExpiryDate

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

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

        public String getFileName()
        The filename of the document.
        Returns:
        fileName
      • setFileName

        public void setFileName​(String fileName)
        The filename of the document.
        Parameters:
        fileName -
      • getId

        public String getId()
        The unique identifier of the document.
        Returns:
        id
      • setId

        public void setId​(String id)
        The unique identifier of the document.
        Parameters:
        id -
      • 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

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

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

        public OffsetDateTime getModificationDate()
        The modification date of the document.
        Returns:
        modificationDate
      • setModificationDate

        public void setModificationDate​(OffsetDateTime modificationDate)
        The modification date of the document.
        Parameters:
        modificationDate -
      • getNumber

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

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

        public OwnerEntity getOwner()
        Get owner
        Returns:
        owner
      • setOwner

        public void setOwner​(OwnerEntity owner)
        owner
        Parameters:
        owner -
      • getType

        public Document.TypeEnum getType()
        Type of document, used when providing an ID number or uploading a document. The possible values depend on the legal entity type. * For **organization**, the `type` values can be **proofOfAddress**, **registrationDocument**, **vatDocument**, **proofOfOrganizationTaxInfo**, **proofOfOwnership**, **proofOfIndustry**, **proofOfSignatory**, or **proofOfFundingOrWealthSource**. * For **individual**, the `type` values can be **identityCard**, **driversLicense**, **passport**, **liveSelfie**, **proofOfNationalIdNumber**, **proofOfResidency**, **proofOfIndustry**, **proofOfIndividualTaxId**, or **proofOfFundingOrWealthSource**. * For **soleProprietorship**, the `type` values can be **constitutionalDocument**, **proofOfAddress**, or **proofOfIndustry**. * For **trust**, the `type` value can be **constitutionalDocument**. * Use **bankStatement** to upload documents for a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id).
        Returns:
        type
      • setType

        public void setType​(Document.TypeEnum type)
        Type of document, used when providing an ID number or uploading a document. The possible values depend on the legal entity type. * For **organization**, the `type` values can be **proofOfAddress**, **registrationDocument**, **vatDocument**, **proofOfOrganizationTaxInfo**, **proofOfOwnership**, **proofOfIndustry**, **proofOfSignatory**, or **proofOfFundingOrWealthSource**. * For **individual**, the `type` values can be **identityCard**, **driversLicense**, **passport**, **liveSelfie**, **proofOfNationalIdNumber**, **proofOfResidency**, **proofOfIndustry**, **proofOfIndividualTaxId**, or **proofOfFundingOrWealthSource**. * For **soleProprietorship**, the `type` values can be **constitutionalDocument**, **proofOfAddress**, or **proofOfIndustry**. * For **trust**, the `type` value can be **constitutionalDocument**. * Use **bankStatement** to upload documents for a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id).
        Parameters:
        type -
      • equals

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

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

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

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