Class PersonalData


  • public class PersonalData
    extends Object
    PersonalData
    • Constructor Detail

      • PersonalData

        public PersonalData()
    • Method Detail

      • 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 -
      • 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 -
      • 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.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • 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