Package com.onfido.model
Class ApplicantShared
- java.lang.Object
-
- com.onfido.model.ApplicantShared
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.9.0") public class ApplicantShared extends Object
ApplicantShared
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classApplicantShared.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_DOBstatic StringSERIALIZED_NAME_EMAILstatic StringSERIALIZED_NAME_ID_NUMBERSstatic StringSERIALIZED_NAME_PHONE_NUMBER
-
Constructor Summary
Constructors Constructor Description ApplicantShared()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ApplicantSharedaddIdNumbersItem(IdNumber idNumbersItem)ApplicantShareddob(LocalDate dob)ApplicantSharedemail(String email)booleanequals(Object o)static ApplicantSharedfromJson(String jsonString)Create an instance of ApplicantShared given an JSON stringMap<String,Object>getAdditionalProperties()Return the additional (undeclared) property.ObjectgetAdditionalProperty(String key)Return the additional (undeclared) property with the specified name.LocalDategetDob()The applicant's date of birthStringgetEmail()The applicant's email address.List<IdNumber>getIdNumbers()Get idNumbersStringgetPhoneNumber()The applicant's phone numberinthashCode()ApplicantSharedidNumbers(List<IdNumber> idNumbers)ApplicantSharedphoneNumber(String phoneNumber)ApplicantSharedputAdditionalProperty(String key, Object value)Set the additional (undeclared) property with the specified name and value.voidsetDob(LocalDate dob)voidsetEmail(String email)voidsetIdNumbers(List<IdNumber> idNumbers)voidsetPhoneNumber(String phoneNumber)StringtoJson()Convert an instance of ApplicantShared to an JSON stringStringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_EMAIL
public static final String SERIALIZED_NAME_EMAIL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DOB
public static final String SERIALIZED_NAME_DOB
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ID_NUMBERS
public static final String SERIALIZED_NAME_ID_NUMBERS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PHONE_NUMBER
public static final String SERIALIZED_NAME_PHONE_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
email
public ApplicantShared email(String email)
-
getEmail
@Nullable public String getEmail()
The applicant's email address. Required if doing a US check, or a UK check for which `applicant_provides_data` is `true`.- Returns:
-
setEmail
public void setEmail(String email)
-
dob
public ApplicantShared dob(LocalDate dob)
-
setDob
public void setDob(LocalDate dob)
-
idNumbers
public ApplicantShared idNumbers(List<IdNumber> idNumbers)
-
addIdNumbersItem
public ApplicantShared addIdNumbersItem(IdNumber idNumbersItem)
-
phoneNumber
public ApplicantShared phoneNumber(String phoneNumber)
-
getPhoneNumber
@Nullable public String getPhoneNumber()
The applicant's phone number- Returns:
- phoneNumber
-
setPhoneNumber
public void setPhoneNumber(String phoneNumber)
-
putAdditionalProperty
public ApplicantShared putAdditionalProperty(String key, Object value)
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- name of the propertyvalue- value of the property- Returns:
- the ApplicantShared instance itself
-
getAdditionalProperties
public Map<String,Object> getAdditionalProperties()
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
public Object getAdditionalProperty(String key)
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
validateJsonElement
public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOExceptionValidates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to ApplicantShared
-
fromJson
public static ApplicantShared fromJson(String jsonString) throws IOException
Create an instance of ApplicantShared given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ApplicantShared
- Throws:
IOException- if the JSON string is invalid with respect to ApplicantShared
-
toJson
public String toJson()
Convert an instance of ApplicantShared to an JSON string- Returns:
- JSON string
-
-