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.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 addressjava.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 surnameApplicant.RequestidNumbers(IdNumber.Request... idNumbers)The applicants ID numbersApplicant.RequestidNumbers(List<IdNumber.Request> idNumbers)The applicants ID numbersApplicant.RequestlastName(String lastName)The applicant’s surnameStringtoJson()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
-
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
-
-