Class PersonalData
- java.lang.Object
-
- com.adyen.model.configurationwebhooks.PersonalData
-
public class PersonalData extends Object
PersonalData
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPersonalData.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_DATE_OF_BIRTHstatic StringSERIALIZED_NAME_ID_NUMBERstatic StringSERIALIZED_NAME_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)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)voidsetIdNumber(String idNumber)voidsetNationality(String nationality)StringtoJson()Convert an instance of PersonalData to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_DATE_OF_BIRTH
public static final String SERIALIZED_NAME_DATE_OF_BIRTH
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ID_NUMBER
public static final String SERIALIZED_NAME_ID_NUMBER
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NATIONALITY
public static final String SERIALIZED_NAME_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)
-
idNumber
public PersonalData idNumber(String idNumber)
-
getIdNumber
public String getIdNumber()
An ID number of the person.- Returns:
- idNumber
-
setIdNumber
public void setIdNumber(String 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)
-
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 PersonalData
-
fromJson
public static PersonalData fromJson(String jsonString) throws IOException
Create an instance of PersonalData given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PersonalData
- Throws:
IOException- if the JSON string is invalid with respect to PersonalData
-
toJson
public String toJson()
Convert an instance of PersonalData to an JSON string- Returns:
- JSON string
-
-