Class BirthData
- java.lang.Object
-
- com.adyen.model.legalentitymanagement.BirthData
-
public class BirthData extends Object
BirthData
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_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)The individual's date of birth, in YYYY-MM-DD format.booleanequals(Object o)Return true if this BirthData object is equal to 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)The individual's date of birth, in YYYY-MM-DD format.StringtoJson()Convert an instance of BirthData 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
-
-
Method Detail
-
dateOfBirth
public BirthData dateOfBirth(String dateOfBirth)
The individual's date of birth, in YYYY-MM-DD format.- Parameters:
dateOfBirth-- Returns:
- the current
BirthDatainstance, allowing for method chaining
-
getDateOfBirth
public String getDateOfBirth()
The individual's date of birth, in YYYY-MM-DD format.- Returns:
- dateOfBirth
-
setDateOfBirth
public void setDateOfBirth(String dateOfBirth)
The individual's date of birth, in YYYY-MM-DD format.- Parameters:
dateOfBirth-
-
equals
public boolean equals(Object o)
Return true if this BirthData object is equal to o.
-
fromJson
public static BirthData fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of BirthData given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of BirthData
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to BirthData
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of BirthData to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-