Package com.onfido.models
Class Applicant.Request
- java.lang.Object
-
- com.onfido.models.Applicant.Request
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Applicant.Requestaddress(Address.Request address)The applicants addressApplicant.Requestconsents(Consent.Request... consents)The applicant’s consentsApplicant.Requestconsents(List<Consent.Request> consents)The applicant’s consentsApplicant.Requestdob(java.time.LocalDate dob)The applicant’s date of birthApplicant.Requestemail(String email)The applicant’s email address.Applicant.RequestfirstName(String firstName)The applicant’s first nameAddress.RequestgetAddress()The applicants addressConsent.Request[]getConsents()The applicant’s consentsjava.time.LocalDategetDob()The applicant’s date of birthStringgetEmail()The applicant’s email address.StringgetFirstName()The applicant’s first nameIdNumber.Request[]getIdNumbers()The applicants ID numbersStringgetLastName()The applicant’s surnameLocation.RequestgetLocation()The applicant's locationStringgetPhoneNumber()The applicant’s phone numberApplicant.RequestidNumbers(IdNumber.Request... idNumbers)The applicants ID numbersApplicant.RequestidNumbers(List<IdNumber.Request> idNumbers)The applicants ID numbersApplicant.RequestlastName(String lastName)The applicant’s surnameApplicant.Requestlocation(Location.Request location)The applicant's locationApplicant.RequestphoneNumber(String phoneNumber)The applicant’s phone numberStringtoJson()StringtoString()
-
-
-
Method Detail
-
toJson
public String toJson()
-
firstName
public Applicant.Request firstName(String firstName)
The applicant’s first name- Parameters:
firstName- The applicant’s first name- Returns:
- The Applicant request object.
-
lastName
public Applicant.Request lastName(String lastName)
The applicant’s surname- Parameters:
lastName- The applicant’s surname- Returns:
- The Applicant request object.
-
email
public Applicant.Request email(String email)
The applicant’s email address. Required if doing a US check or a standard UK check.- Parameters:
email- The applicant’s email address. Required if doing a US check or a standard UK check.- Returns:
- The Applicant request object.
-
dob
public Applicant.Request dob(java.time.LocalDate dob)
The applicant’s date of birth- Parameters:
dob- The applicant’s date of birth- Returns:
- The Applicant request object.
-
address
public Applicant.Request address(Address.Request address)
The applicants address- Parameters:
address- The applicants address- Returns:
- The Applicant request object.
-
idNumbers
public Applicant.Request idNumbers(List<IdNumber.Request> idNumbers)
The applicants ID numbers- Parameters:
idNumbers- The applicants ID numbers- Returns:
- The Applicant request object.
-
idNumbers
public Applicant.Request idNumbers(IdNumber.Request... idNumbers)
The applicants ID numbers- Parameters:
idNumbers- The applicants ID numbers- Returns:
- The Applicant request object
-
phoneNumber
public Applicant.Request phoneNumber(String phoneNumber)
The applicant’s phone number- Parameters:
phoneNumber- The applicant’s phone number- Returns:
- The Applicant request object.
-
location
public Applicant.Request location(Location.Request location)
The applicant's location- Parameters:
location- The applicant's location- Returns:
- The Applicant request object.
-
consents
public Applicant.Request consents(List<Consent.Request> consents)
The applicant’s consents- Parameters:
consents- The applicant’s consents- Returns:
- The Applicant request object.
-
consents
public Applicant.Request consents(Consent.Request... consents)
The applicant’s consents- Parameters:
consents- The applicant’s consents- Returns:
- The Applicant request object
-
getFirstName
public String getFirstName()
The applicant’s first name- Returns:
- The applicant’s first name
-
getLastName
public String getLastName()
The applicant’s surname- Returns:
- The applicant’s surname
-
getEmail
public String getEmail()
The applicant’s email address. Required if doing a US check or a standard UK check.- Returns:
- The applicant’s email address. Required if doing a US check or a standard UK check.
-
getDob
public java.time.LocalDate getDob()
The applicant’s date of birth- Returns:
- The applicant’s date of birth
-
getAddress
public Address.Request getAddress()
The applicants address- Returns:
- The applicants address
-
getIdNumbers
public IdNumber.Request[] getIdNumbers()
The applicants ID numbers- Returns:
- The applicants ID numbers
-
getPhoneNumber
public String getPhoneNumber()
The applicant’s phone number- Returns:
- The applicant’s phone number
-
getLocation
public Location.Request getLocation()
The applicant's location- Returns:
- The applicant's location
-
getConsents
public Consent.Request[] getConsents()
The applicant’s consents- Returns:
- The applicant’s consents
-
-