Class IdentificationData
- java.lang.Object
-
- com.adyen.model.legalentitymanagement.IdentificationData
-
public class IdentificationData extends Object
IdentificationData
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIdentificationData.CustomTypeAdapterFactorystatic classIdentificationData.TypeEnumType of document, used when providing an ID number or uploading a document.
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_CARD_NUMBERstatic StringSERIALIZED_NAME_EXPIRY_DATEstatic StringSERIALIZED_NAME_ISSUER_COUNTRYstatic StringSERIALIZED_NAME_ISSUER_STATEstatic StringSERIALIZED_NAME_NATIONAL_ID_EXEMPTstatic StringSERIALIZED_NAME_NUMBERstatic StringSERIALIZED_NAME_TYPE
-
Constructor Summary
Constructors Constructor Description IdentificationData()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description IdentificationDatacardNumber(String cardNumber)booleanequals(Object o)IdentificationDataexpiryDate(String expiryDate)static IdentificationDatafromJson(String jsonString)Create an instance of IdentificationData given an JSON stringStringgetCardNumber()The card number of the document that was issued (AU only).StringgetExpiryDate()Deprecated.StringgetIssuerCountry()Deprecated.StringgetIssuerState()The state or province where the document was issued (AU only).BooleangetNationalIdExempt()Applies only to individuals in the US.StringgetNumber()The number in the document.IdentificationData.TypeEnumgetType()Type of document, used when providing an ID number or uploading a document.inthashCode()IdentificationDataissuerCountry(String issuerCountry)IdentificationDataissuerState(String issuerState)IdentificationDatanationalIdExempt(Boolean nationalIdExempt)IdentificationDatanumber(String number)voidsetCardNumber(String cardNumber)voidsetExpiryDate(String expiryDate)voidsetIssuerCountry(String issuerCountry)voidsetIssuerState(String issuerState)voidsetNationalIdExempt(Boolean nationalIdExempt)voidsetNumber(String number)voidsetType(IdentificationData.TypeEnum type)StringtoJson()Convert an instance of IdentificationData to an JSON stringStringtoString()IdentificationDatatype(IdentificationData.TypeEnum type)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_CARD_NUMBER
public static final String SERIALIZED_NAME_CARD_NUMBER
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_EXPIRY_DATE
public static final String SERIALIZED_NAME_EXPIRY_DATE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ISSUER_COUNTRY
public static final String SERIALIZED_NAME_ISSUER_COUNTRY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ISSUER_STATE
public static final String SERIALIZED_NAME_ISSUER_STATE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NATIONAL_ID_EXEMPT
public static final String SERIALIZED_NAME_NATIONAL_ID_EXEMPT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NUMBER
public static final String SERIALIZED_NAME_NUMBER
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
cardNumber
public IdentificationData cardNumber(String cardNumber)
-
getCardNumber
public String getCardNumber()
The card number of the document that was issued (AU only).- Returns:
- cardNumber
-
setCardNumber
public void setCardNumber(String cardNumber)
-
expiryDate
public IdentificationData expiryDate(String expiryDate)
-
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)
-
issuerCountry
public IdentificationData issuerCountry(String issuerCountry)
-
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)
-
issuerState
public IdentificationData issuerState(String issuerState)
-
getIssuerState
public String getIssuerState()
The state or province where the document was issued (AU only).- Returns:
- issuerState
-
setIssuerState
public void setIssuerState(String issuerState)
-
nationalIdExempt
public IdentificationData nationalIdExempt(Boolean nationalIdExempt)
-
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)
-
number
public IdentificationData number(String number)
-
getNumber
public String getNumber()
The number in the document.- Returns:
- number
-
setNumber
public void setNumber(String number)
-
type
public IdentificationData type(IdentificationData.TypeEnum type)
-
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 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
-
setType
public void setType(IdentificationData.TypeEnum type)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates 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
-
-