Package com.onfido.model
Class Applicant
- java.lang.Object
-
- com.onfido.model.Applicant
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.9.0") public class Applicant extends Object
Applicant
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classApplicant.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_ADDRESSstatic StringSERIALIZED_NAME_CREATED_ATstatic StringSERIALIZED_NAME_DELETE_ATstatic StringSERIALIZED_NAME_DOBstatic StringSERIALIZED_NAME_EMAILstatic StringSERIALIZED_NAME_FIRST_NAMEstatic StringSERIALIZED_NAME_HREFstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_ID_NUMBERSstatic StringSERIALIZED_NAME_LAST_NAMEstatic StringSERIALIZED_NAME_LOCATIONstatic StringSERIALIZED_NAME_PHONE_NUMBERstatic StringSERIALIZED_NAME_SANDBOX
-
Constructor Summary
Constructors Constructor Description Applicant()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ApplicantaddIdNumbersItem(IdNumber idNumbersItem)Applicantaddress(Address address)ApplicantcreatedAt(OffsetDateTime createdAt)ApplicantdeleteAt(OffsetDateTime deleteAt)Applicantdob(LocalDate dob)Applicantemail(String email)booleanequals(Object o)ApplicantfirstName(String firstName)static ApplicantfromJson(String jsonString)Create an instance of Applicant given an JSON stringMap<String,Object>getAdditionalProperties()Return the additional (undeclared) property.ObjectgetAdditionalProperty(String key)Return the additional (undeclared) property with the specified name.AddressgetAddress()Get addressOffsetDateTimegetCreatedAt()The date and time when this applicant was created.OffsetDateTimegetDeleteAt()The date and time when this applicant is scheduled to be deleted.LocalDategetDob()The applicant's date of birthStringgetEmail()The applicant's email address.StringgetFirstName()The applicant's first nameStringgetHref()The uri of this resource.UUIDgetId()The unique identifier for the applicant.List<IdNumber>getIdNumbers()Get idNumbersStringgetLastName()The applicant's surnameLocationgetLocation()Get locationStringgetPhoneNumber()The applicant's phone numberBooleangetSandbox()Get sandboxinthashCode()Applicanthref(String href)Applicantid(UUID id)ApplicantidNumbers(List<IdNumber> idNumbers)ApplicantlastName(String lastName)Applicantlocation(Location location)ApplicantphoneNumber(String phoneNumber)ApplicantputAdditionalProperty(String key, Object value)Set the additional (undeclared) property with the specified name and value.Applicantsandbox(Boolean sandbox)voidsetAddress(Address address)voidsetCreatedAt(OffsetDateTime createdAt)voidsetDeleteAt(OffsetDateTime deleteAt)voidsetDob(LocalDate dob)voidsetEmail(String email)voidsetFirstName(String firstName)voidsetHref(String href)voidsetId(UUID id)voidsetIdNumbers(List<IdNumber> idNumbers)voidsetLastName(String lastName)voidsetLocation(Location location)voidsetPhoneNumber(String phoneNumber)voidsetSandbox(Boolean sandbox)StringtoJson()Convert an instance of Applicant 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
-
SERIALIZED_NAME_FIRST_NAME
public static final String SERIALIZED_NAME_FIRST_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LAST_NAME
public static final String SERIALIZED_NAME_LAST_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CREATED_AT
public static final String SERIALIZED_NAME_CREATED_AT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DELETE_AT
public static final String SERIALIZED_NAME_DELETE_AT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_HREF
public static final String SERIALIZED_NAME_HREF
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SANDBOX
public static final String SERIALIZED_NAME_SANDBOX
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ADDRESS
public static final String SERIALIZED_NAME_ADDRESS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LOCATION
public static final String SERIALIZED_NAME_LOCATION
- See Also:
- Constant Field Values
-
-
Method Detail
-
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)
-
setDob
public void setDob(LocalDate dob)
-
getPhoneNumber
@Nullable public String getPhoneNumber()
The applicant's phone number- Returns:
- phoneNumber
-
setPhoneNumber
public void setPhoneNumber(String phoneNumber)
-
setFirstName
public void setFirstName(String firstName)
-
setLastName
public void setLastName(String lastName)
-
setId
public void setId(UUID id)
-
createdAt
public Applicant createdAt(OffsetDateTime createdAt)
-
getCreatedAt
@Nullable public OffsetDateTime getCreatedAt()
The date and time when this applicant was created.- Returns:
- createdAt
-
setCreatedAt
public void setCreatedAt(OffsetDateTime createdAt)
-
deleteAt
public Applicant deleteAt(OffsetDateTime deleteAt)
-
getDeleteAt
@Nullable public OffsetDateTime getDeleteAt()
The date and time when this applicant is scheduled to be deleted.- Returns:
- deleteAt
-
setDeleteAt
public void setDeleteAt(OffsetDateTime deleteAt)
-
setHref
public void setHref(String href)
-
setSandbox
public void setSandbox(Boolean sandbox)
-
setAddress
public void setAddress(Address address)
-
setLocation
public void setLocation(Location location)
-
putAdditionalProperty
public Applicant 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 Applicant 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 Applicant
-
fromJson
public static Applicant fromJson(String jsonString) throws IOException
Create an instance of Applicant given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Applicant
- Throws:
IOException- if the JSON string is invalid with respect to Applicant
-
toJson
public String toJson()
Convert an instance of Applicant to an JSON string- Returns:
- JSON string
-
-