Package com.onfido.model
Class ApplicantBuilder
- java.lang.Object
-
- com.onfido.model.ApplicantBuilder
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.9.0") public class ApplicantBuilder extends Object
ApplicantBuilder
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classApplicantBuilder.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_ADDRESSstatic StringSERIALIZED_NAME_CONSENTSstatic StringSERIALIZED_NAME_DOBstatic StringSERIALIZED_NAME_EMAILstatic StringSERIALIZED_NAME_FIRST_NAMEstatic StringSERIALIZED_NAME_ID_NUMBERSstatic StringSERIALIZED_NAME_LAST_NAMEstatic StringSERIALIZED_NAME_LOCATIONstatic StringSERIALIZED_NAME_PHONE_NUMBER
-
Constructor Summary
Constructors Constructor Description ApplicantBuilder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ApplicantBuilderaddConsentsItem(ApplicantConsentBuilder consentsItem)ApplicantBuilderaddIdNumbersItem(IdNumber idNumbersItem)ApplicantBuilderaddress(AddressBuilder address)ApplicantBuilderconsents(List<ApplicantConsentBuilder> consents)ApplicantBuilderdob(LocalDate dob)ApplicantBuilderemail(String email)booleanequals(Object o)ApplicantBuilderfirstName(String firstName)static ApplicantBuilderfromJson(String jsonString)Create an instance of ApplicantBuilder given an JSON stringMap<String,Object>getAdditionalProperties()Return the additional (undeclared) property.ObjectgetAdditionalProperty(String key)Return the additional (undeclared) property with the specified name.AddressBuildergetAddress()Get addressList<ApplicantConsentBuilder>getConsents()The applicant's consentsLocalDategetDob()The applicant's date of birthStringgetEmail()The applicant's email address.StringgetFirstName()The applicant's first nameList<IdNumber>getIdNumbers()Get idNumbersStringgetLastName()The applicant's surnameLocationBuildergetLocation()Get locationStringgetPhoneNumber()The applicant's phone numberinthashCode()ApplicantBuilderidNumbers(List<IdNumber> idNumbers)ApplicantBuilderlastName(String lastName)ApplicantBuilderlocation(LocationBuilder location)ApplicantBuilderphoneNumber(String phoneNumber)ApplicantBuilderputAdditionalProperty(String key, Object value)Set the additional (undeclared) property with the specified name and value.voidsetAddress(AddressBuilder address)voidsetConsents(List<ApplicantConsentBuilder> consents)voidsetDob(LocalDate dob)voidsetEmail(String email)voidsetFirstName(String firstName)voidsetIdNumbers(List<IdNumber> idNumbers)voidsetLastName(String lastName)voidsetLocation(LocationBuilder location)voidsetPhoneNumber(String phoneNumber)StringtoJson()Convert an instance of ApplicantBuilder 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_CONSENTS
public static final String SERIALIZED_NAME_CONSENTS
- 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
-
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
-
-
Method Detail
-
email
public ApplicantBuilder 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 ApplicantBuilder dob(LocalDate dob)
-
setDob
public void setDob(LocalDate dob)
-
idNumbers
public ApplicantBuilder idNumbers(List<IdNumber> idNumbers)
-
addIdNumbersItem
public ApplicantBuilder addIdNumbersItem(IdNumber idNumbersItem)
-
phoneNumber
public ApplicantBuilder phoneNumber(String phoneNumber)
-
getPhoneNumber
@Nullable public String getPhoneNumber()
The applicant's phone number- Returns:
- phoneNumber
-
setPhoneNumber
public void setPhoneNumber(String phoneNumber)
-
consents
public ApplicantBuilder consents(List<ApplicantConsentBuilder> consents)
-
addConsentsItem
public ApplicantBuilder addConsentsItem(ApplicantConsentBuilder consentsItem)
-
getConsents
@Nullable public List<ApplicantConsentBuilder> getConsents()
The applicant's consents- Returns:
- consents
-
setConsents
public void setConsents(List<ApplicantConsentBuilder> consents)
-
address
public ApplicantBuilder address(AddressBuilder address)
-
getAddress
@Nullable public AddressBuilder getAddress()
Get address- Returns:
- address
-
setAddress
public void setAddress(AddressBuilder address)
-
location
public ApplicantBuilder location(LocationBuilder location)
-
getLocation
@Nullable public LocationBuilder getLocation()
Get location- Returns:
- location
-
setLocation
public void setLocation(LocationBuilder location)
-
firstName
public ApplicantBuilder firstName(String firstName)
-
setFirstName
public void setFirstName(String firstName)
-
lastName
public ApplicantBuilder lastName(String lastName)
-
setLastName
public void setLastName(String lastName)
-
putAdditionalProperty
public ApplicantBuilder 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 ApplicantBuilder 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 ApplicantBuilder
-
fromJson
public static ApplicantBuilder fromJson(String jsonString) throws IOException
Create an instance of ApplicantBuilder given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ApplicantBuilder
- Throws:
IOException- if the JSON string is invalid with respect to ApplicantBuilder
-
toJson
public String toJson()
Convert an instance of ApplicantBuilder to an JSON string- Returns:
- JSON string
-
-