Package com.adyen.model.marketpayaccount
Class ViasPersonalData
- java.lang.Object
-
- com.adyen.model.marketpayaccount.ViasPersonalData
-
public class ViasPersonalData extends Object
ViasPersonalData
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_DATE_OF_BIRTHstatic StringJSON_PROPERTY_DOCUMENT_DATAstatic StringJSON_PROPERTY_NATIONALITY
-
Constructor Summary
Constructors Constructor Description ViasPersonalData()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ViasPersonalDataaddDocumentDataItem(PersonalDocumentData documentDataItem)ViasPersonalDatadateOfBirth(String dateOfBirth)ViasPersonalDatadocumentData(List<PersonalDocumentData> documentData)booleanequals(Object o)Return true if this ViasPersonalData object is equal to o.static ViasPersonalDatafromJson(String jsonString)Create an instance of ViasPersonalData given an JSON stringStringgetDateOfBirth()The person's date of birth, in ISO-8601 YYYY-MM-DD format.List<PersonalDocumentData>getDocumentData()Array that contains information about the person's identification document.StringgetNationality()The nationality of the person represented by a two-character country code, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format.inthashCode()ViasPersonalDatanationality(String nationality)voidsetDateOfBirth(String dateOfBirth)voidsetDocumentData(List<PersonalDocumentData> documentData)voidsetNationality(String nationality)StringtoJson()Convert an instance of ViasPersonalData to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_DATE_OF_BIRTH
public static final String JSON_PROPERTY_DATE_OF_BIRTH
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DOCUMENT_DATA
public static final String JSON_PROPERTY_DOCUMENT_DATA
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NATIONALITY
public static final String JSON_PROPERTY_NATIONALITY
- See Also:
- Constant Field Values
-
-
Method Detail
-
dateOfBirth
public ViasPersonalData dateOfBirth(String dateOfBirth)
-
getDateOfBirth
public String getDateOfBirth()
The person's date of birth, in ISO-8601 YYYY-MM-DD format. For example, **2000-01-31**.- Returns:
- dateOfBirth
-
setDateOfBirth
public void setDateOfBirth(String dateOfBirth)
-
documentData
public ViasPersonalData documentData(List<PersonalDocumentData> documentData)
-
addDocumentDataItem
public ViasPersonalData addDocumentDataItem(PersonalDocumentData documentDataItem)
-
getDocumentData
public List<PersonalDocumentData> getDocumentData()
Array that contains information about the person's identification document. You can submit only one entry per document type.- Returns:
- documentData
-
setDocumentData
public void setDocumentData(List<PersonalDocumentData> documentData)
-
nationality
public ViasPersonalData nationality(String nationality)
-
getNationality
public String getNationality()
The nationality of the person represented by a two-character country code, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. For example, **NL**.- Returns:
- nationality
-
setNationality
public void setNationality(String nationality)
-
equals
public boolean equals(Object o)
Return true if this ViasPersonalData object is equal to o.
-
fromJson
public static ViasPersonalData fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of ViasPersonalData given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ViasPersonalData
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to ViasPersonalData
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of ViasPersonalData to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-