Class PersonalData
- java.lang.Object
-
- com.adyen.model.configurationwebhooks.PersonalData
-
public class PersonalData extends Object
PersonalData
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_DATE_OF_BIRTHstatic StringJSON_PROPERTY_ID_NUMBERstatic StringJSON_PROPERTY_NATIONALITY
-
Constructor Summary
Constructors Constructor Description PersonalData()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PersonalDatadateOfBirth(String dateOfBirth)booleanequals(Object o)Return true if this PersonalData object is equal to o.static PersonalDatafromJson(String jsonString)Create an instance of PersonalData given an JSON stringStringgetDateOfBirth()The date of birth of the person.StringgetIdNumber()An ID number of the person.StringgetNationality()The nationality of the person represented by a two-character country code.inthashCode()PersonalDataidNumber(String idNumber)PersonalDatanationality(String nationality)voidsetDateOfBirth(String dateOfBirth)The date of birth of the person.voidsetIdNumber(String idNumber)An ID number of the person.voidsetNationality(String nationality)The nationality of the person represented by a two-character country code.StringtoJson()Convert an instance of PersonalData 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_ID_NUMBER
public static final String JSON_PROPERTY_ID_NUMBER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NATIONALITY
public static final String JSON_PROPERTY_NATIONALITY
- See Also:
- Constant Field Values
-
-
Method Detail
-
dateOfBirth
public PersonalData dateOfBirth(String dateOfBirth)
-
getDateOfBirth
public String getDateOfBirth()
The date of birth of the person. The date should be in ISO-8601 format yyyy-mm-dd (e.g. 2000-01-31).- Returns:
- dateOfBirth
-
setDateOfBirth
public void setDateOfBirth(String dateOfBirth)
The date of birth of the person. The date should be in ISO-8601 format yyyy-mm-dd (e.g. 2000-01-31).- Parameters:
dateOfBirth-
-
idNumber
public PersonalData idNumber(String idNumber)
-
getIdNumber
public String getIdNumber()
An ID number of the person.- Returns:
- idNumber
-
setIdNumber
public void setIdNumber(String idNumber)
An ID number of the person.- Parameters:
idNumber-
-
nationality
public PersonalData nationality(String nationality)
-
getNationality
public String getNationality()
The nationality of the person represented by a two-character country code. >The permitted country codes are defined in ISO-3166-1 alpha-2 (e.g. 'NL').- Returns:
- nationality
-
setNationality
public void setNationality(String nationality)
The nationality of the person represented by a two-character country code. >The permitted country codes are defined in ISO-3166-1 alpha-2 (e.g. 'NL').- Parameters:
nationality-
-
equals
public boolean equals(Object o)
Return true if this PersonalData object is equal to o.
-
fromJson
public static PersonalData fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of PersonalData given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PersonalData
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to PersonalData
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of PersonalData to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-