Class PersonalDocumentData


  • public class PersonalDocumentData
    extends Object
    PersonalDocumentData
    • Constructor Detail

      • PersonalDocumentData

        public PersonalDocumentData()
    • Method Detail

      • getExpirationDate

        public String getExpirationDate()
        The expiry date of the document, in ISO-8601 YYYY-MM-DD format. For example, **2000-01-31**.
        Returns:
        expirationDate
      • setExpirationDate

        public void setExpirationDate​(String expirationDate)
      • getIssuerCountry

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

        public void setIssuerCountry​(String issuerCountry)
      • getIssuerState

        public String getIssuerState()
        The state where the document was issued (if applicable).
        Returns:
        issuerState
      • setIssuerState

        public void setIssuerState​(String issuerState)
      • getNumber

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

        public void setNumber​(String number)
      • getType

        public PersonalDocumentData.TypeEnum getType()
        The type of the document. Possible values: **ID**, **DRIVINGLICENSE**, **PASSPORT**, **SOCIALSECURITY**, **VISA**. To delete an existing entry for a document `type`, send only the `type` field in your request.
        Returns:
        type
      • equals

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

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

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

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