Class Identification
- java.lang.Object
-
- com.checkout.handlepaymentsandpayouts.payments.postpayments.requests.unreferencedrefundrequest.destination.common.accountholder.common.identification.Identification
-
public final class Identification extends java.lang.Objectidentification The account holder's identification. Providing identification details for the unreferenced refund recipient increases the likelihood of a successful unreferenced refund.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIdentification.IdentificationBuilder
-
Constructor Summary
Constructors Constructor Description Identification()Identification(Type type, java.lang.String number, java.lang.String issuingCountry, java.lang.String dateOfExpiry)Creates a newIdentificationinstance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Identification.IdentificationBuilderbuilder()booleanequals(java.lang.Object o)java.lang.StringgetDateOfExpiry()If applicable, the expiration date of the account holder's identification, in the format YYYY-MM-DD.java.lang.StringgetIssuingCountry()If applicable, the country that issued the account holder's identification, as a two-letter ISO country code.java.lang.StringgetNumber()The account holder's identification number.TypegetType()The type of identification for the account holder.inthashCode()voidsetDateOfExpiry(java.lang.String dateOfExpiry)If applicable, the expiration date of the account holder's identification, in the format YYYY-MM-DD.voidsetIssuingCountry(java.lang.String issuingCountry)If applicable, the country that issued the account holder's identification, as a two-letter ISO country code.voidsetNumber(java.lang.String number)The account holder's identification number.voidsetType(Type type)The type of identification for the account holder.java.lang.StringtoString()
-
-
-
Constructor Detail
-
Identification
public Identification()
-
Identification
public Identification(Type type, java.lang.String number, java.lang.String issuingCountry, java.lang.String dateOfExpiry)
Creates a newIdentificationinstance.- Parameters:
type- The type of identification for the account holder. [Required]number- The account holder's identification number. [Required] <= 25issuingCountry- 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 charactersdateOfExpiry- 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
-
builder
public static Identification.IdentificationBuilder builder()
-
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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-