Package com.onfido.models
Class Check.Request
- java.lang.Object
-
- com.onfido.models.Check.Request
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Check.RequestapplicantId(String applicantId)The ID of the applicant to do the check on.Check.RequestapplicantProvidesData(Boolean applicantProvidesData)Send an applicant form to applicant to complete to proceed with check.Check.Requestasynchronous(Boolean asynchronous)Defaults to `true`.StringgetApplicantId()The ID of the applicant to do the check on.BooleangetApplicantProvidesData()Send an applicant form to applicant to complete to proceed with check.BooleangetAsynchronous()Defaults to `true`.String[]getReportNames()An array of report names (strings).BooleangetSuppressFormEmails()For checks where `applicant_provides_data` is `true`, applicant form will not be automatically sent if `suppress_form_emails` is set to `true`.String[]getTags()Array of tags being assigned to this check.Check.RequestreportNames(String... reportNames)An array of report names (strings).Check.RequestreportNames(List<String> reportNames)An array of report names (strings).Check.RequestsuppressFormEmails(Boolean suppressFormEmails)For checks where `applicant_provides_data` is `true`, applicant form will not be automatically sent if `suppress_form_emails` is set to `true`.Check.Requesttags(String... tags)Array of tags being assigned to this check.Check.Requesttags(List<String> tags)Array of tags being assigned to this check.StringtoJson()StringtoString()
-
-
-
Method Detail
-
toJson
public String toJson()
-
reportNames
public Check.Request reportNames(List<String> reportNames)
An array of report names (strings).- Parameters:
reportNames- An array of report names (strings).- Returns:
- The Check request object.
-
reportNames
public Check.Request reportNames(String... reportNames)
An array of report names (strings).- Parameters:
reportNames- An array of report names (strings).- Returns:
- The Check request object
-
tags
public Check.Request tags(List<String> tags)
Array of tags being assigned to this check.- Parameters:
tags- Array of tags being assigned to this check.- Returns:
- The Check request object.
-
tags
public Check.Request tags(String... tags)
Array of tags being assigned to this check.- Parameters:
tags- Array of tags being assigned to this check.- Returns:
- The Check request object
-
applicantProvidesData
public Check.Request applicantProvidesData(Boolean applicantProvidesData)
Send an applicant form to applicant to complete to proceed with check. Defaults to false.- Parameters:
applicantProvidesData- Send an applicant form to applicant to complete to proceed with check. Defaults to false.- Returns:
- The Check request object.
-
suppressFormEmails
public Check.Request suppressFormEmails(Boolean suppressFormEmails)
For checks where `applicant_provides_data` is `true`, applicant form will not be automatically sent if `suppress_form_emails` is set to `true`. You can manually send the form at any time after the check has been created, using the link found in the form_uri attribute of the check object. Write-only. Defaults to false.- Parameters:
suppressFormEmails- For checks where `applicant_provides_data` is `true`, applicant form will not be automatically sent if `suppress_form_emails` is set to `true`. You can manually send the form at any time after the check has been created, using the link found in the form_uri attribute of the check object. Write-only. Defaults to false.- Returns:
- The Check request object.
-
asynchronous
public Check.Request asynchronous(Boolean asynchronous)
Defaults to `true`. Write-only. If set to `false`, you will only receive a response when all reports in your check have completed.- Parameters:
asynchronous- Defaults to `true`. Write-only. If set to `false`, you will only receive a response when all reports in your check have completed.- Returns:
- The Check request object.
-
applicantId
public Check.Request applicantId(String applicantId)
The ID of the applicant to do the check on.- Parameters:
applicantId- The ID of the applicant to do the check on.- Returns:
- The Check request object.
-
getReportNames
public String[] getReportNames()
An array of report names (strings).- Returns:
- An array of report names (strings).
-
getTags
public String[] getTags()
Array of tags being assigned to this check.- Returns:
- Array of tags being assigned to this check.
-
getApplicantProvidesData
public Boolean getApplicantProvidesData()
Send an applicant form to applicant to complete to proceed with check. Defaults to false.- Returns:
- Send an applicant form to applicant to complete to proceed with check. Defaults to false.
-
getSuppressFormEmails
public Boolean getSuppressFormEmails()
For checks where `applicant_provides_data` is `true`, applicant form will not be automatically sent if `suppress_form_emails` is set to `true`. You can manually send the form at any time after the check has been created, using the link found in the form_uri attribute of the check object. Write-only. Defaults to false.- Returns:
- For checks where `applicant_provides_data` is `true`, applicant form will not be automatically sent if `suppress_form_emails` is set to `true`. You can manually send the form at any time after the check has been created, using the link found in the form_uri attribute of the check object. Write-only. Defaults to false.
-
getAsynchronous
public Boolean getAsynchronous()
Defaults to `true`. Write-only. If set to `false`, you will only receive a response when all reports in your check have completed.- Returns:
- Defaults to `true`. Write-only. If set to `false`, you will only receive a response when all reports in your check have completed.
-
getApplicantId
public String getApplicantId()
The ID of the applicant to do the check on.- Returns:
- The ID of the applicant to do the check on.
-
-