Class Identification


  • public final class Identification
    extends java.lang.Object
    identification The account holder's identification. Providing identification details for the unreferenced refund recipient increases the likelihood of a successful unreferenced refund.
    • Constructor Summary

      Constructors 
      Constructor Description
      Identification()  
      Identification​(Type type, java.lang.String number, java.lang.String issuingCountry, java.lang.String dateOfExpiry)
      Creates a new Identification instance.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static Identification.IdentificationBuilder builder()  
      boolean equals​(java.lang.Object o)  
      java.lang.String getDateOfExpiry()
      If applicable, the expiration date of the account holder's identification, in the format YYYY-MM-DD.
      java.lang.String getIssuingCountry()
      If applicable, the country that issued the account holder's identification, as a two-letter ISO country code.
      java.lang.String getNumber()
      The account holder's identification number.
      Type getType()
      The type of identification for the account holder.
      int hashCode()  
      void setDateOfExpiry​(java.lang.String dateOfExpiry)
      If applicable, the expiration date of the account holder's identification, in the format YYYY-MM-DD.
      void setIssuingCountry​(java.lang.String issuingCountry)
      If applicable, the country that issued the account holder's identification, as a two-letter ISO country code.
      void setNumber​(java.lang.String number)
      The account holder's identification number.
      void setType​(Type type)
      The type of identification for the account holder.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Identification

        public Identification()
      • Identification

        public Identification​(Type type,
                              java.lang.String number,
                              java.lang.String issuingCountry,
                              java.lang.String dateOfExpiry)
        Creates a new Identification instance.
        Parameters:
        type - The type of identification for the account holder. [Required]
        number - The account holder's identification number. [Required] <= 25
        issuingCountry - If applicable, the country that issued the account holder's identification, as a two-letter ISO country code. Providing issuing_country increases the likelihood of a successful identity verification. [Optional] 2 characters
        dateOfExpiry - If applicable, the expiration date of the account holder's identification, in the format YYYY-MM-DD. Providing date_of_expiry increases the likelihood of a successful identity verification. [Optional] 10 characters
    • Method Detail

      • getType

        public Type getType()
        The type of identification for the account holder. [Required]
      • getNumber

        public java.lang.String getNumber()
        The account holder's identification number. [Required] <= 25
      • getIssuingCountry

        public java.lang.String getIssuingCountry()
        If applicable, the country that issued the account holder's identification, as a two-letter ISO country code. Providing issuing_country increases the likelihood of a successful identity verification. [Optional] 2 characters
      • getDateOfExpiry

        public java.lang.String getDateOfExpiry()
        If applicable, the expiration date of the account holder's identification, in the format YYYY-MM-DD. Providing date_of_expiry increases the likelihood of a successful identity verification. [Optional] 10 characters
      • setType

        public void setType​(Type type)
        The type of identification for the account holder. [Required]
      • setNumber

        public void setNumber​(java.lang.String number)
        The account holder's identification number. [Required] <= 25
      • setIssuingCountry

        public void setIssuingCountry​(java.lang.String issuingCountry)
        If applicable, the country that issued the account holder's identification, as a two-letter ISO country code. Providing issuing_country increases the likelihood of a successful identity verification. [Optional] 2 characters
      • setDateOfExpiry

        public void setDateOfExpiry​(java.lang.String dateOfExpiry)
        If applicable, the expiration date of the account holder's identification, in the format YYYY-MM-DD. Providing date_of_expiry increases the likelihood of a successful identity verification. [Optional] 10 characters
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object