Class BirthData
- java.lang.Object
-
- com.adyen.model.legalentitymanagement.BirthData
-
public class BirthData extends Object
BirthData
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBirthData.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_DATE_OF_BIRTH
-
Constructor Summary
Constructors Constructor Description BirthData()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BirthDatadateOfBirth(String dateOfBirth)booleanequals(Object o)static BirthDatafromJson(String jsonString)Create an instance of BirthData given an JSON stringStringgetDateOfBirth()The individual's date of birth, in YYYY-MM-DD format.inthashCode()voidsetDateOfBirth(String dateOfBirth)StringtoJson()Convert an instance of BirthData to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Method Detail
-
getDateOfBirth
public String getDateOfBirth()
The individual's date of birth, in YYYY-MM-DD format.- Returns:
- dateOfBirth
-
setDateOfBirth
public void setDateOfBirth(String dateOfBirth)
-
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 BirthData
-
fromJson
public static BirthData fromJson(String jsonString) throws IOException
Create an instance of BirthData given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of BirthData
- Throws:
IOException- if the JSON string is invalid with respect to BirthData
-
toJson
public String toJson()
Convert an instance of BirthData to an JSON string- Returns:
- JSON string
-
-