Package com.onfido.model
Class CheckBuilder
- java.lang.Object
-
- com.onfido.model.CheckBuilder
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.9.0") public class CheckBuilder extends Object
CheckBuilder
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCheckBuilder.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_APPLICANT_IDstatic StringSERIALIZED_NAME_APPLICANT_PROVIDES_DATAstatic StringSERIALIZED_NAME_ASYNCHRONOUSstatic StringSERIALIZED_NAME_CONSIDERstatic StringSERIALIZED_NAME_DOCUMENT_IDSstatic StringSERIALIZED_NAME_PRIVACY_NOTICES_READ_CONSENT_GIVENstatic StringSERIALIZED_NAME_REDIRECT_URIstatic StringSERIALIZED_NAME_REPORT_NAMESstatic StringSERIALIZED_NAME_SUB_RESULTstatic StringSERIALIZED_NAME_SUPPRESS_FORM_EMAILSstatic StringSERIALIZED_NAME_TAGSstatic StringSERIALIZED_NAME_US_DRIVING_LICENCEstatic StringSERIALIZED_NAME_WEBHOOK_IDS
-
Constructor Summary
Constructors Constructor Description CheckBuilder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CheckBuilderaddConsiderItem(ReportName considerItem)CheckBuilderaddDocumentIdsItem(UUID documentIdsItem)CheckBuilderaddReportNamesItem(ReportName reportNamesItem)CheckBuilderaddTagsItem(String tagsItem)CheckBuilderaddWebhookIdsItem(String webhookIdsItem)CheckBuilderapplicantId(UUID applicantId)CheckBuilderapplicantProvidesData(Boolean applicantProvidesData)CheckBuilderasynchronous(Boolean asynchronous)CheckBuilderconsider(List<ReportName> consider)CheckBuilderdocumentIds(List<UUID> documentIds)booleanequals(Object o)static CheckBuilderfromJson(String jsonString)Create an instance of CheckBuilder given an JSON stringMap<String,Object>getAdditionalProperties()Return the additional (undeclared) property.ObjectgetAdditionalProperty(String key)Return the additional (undeclared) property with the specified name.UUIDgetApplicantId()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`.List<ReportName>getConsider()Array of names of particular reports to return consider as their results.List<UUID>getDocumentIds()Optional.BooleangetPrivacyNoticesReadConsentGiven()Get privacyNoticesReadConsentGivenStringgetRedirectUri()For checks where `applicant_provides_data` is `true`, redirect to this URI when the applicant has submitted their data.List<ReportName>getReportNames()An array of report names (strings).StringgetSubResult()Triggers responses for particular sub-results for sandbox Document reports.BooleangetSuppressFormEmails()For checks where `applicant_provides_data` is `true`, applicant form will not be automatically sent if `suppress_form_emails` is set to `true`.List<String>getTags()Array of tags being assigned to this check.UsDrivingLicenceBuildergetUsDrivingLicence()Get usDrivingLicenceList<String>getWebhookIds()An array of webhook ids describing which webhooks to trigger for this check.inthashCode()CheckBuilderprivacyNoticesReadConsentGiven(Boolean privacyNoticesReadConsentGiven)CheckBuilderputAdditionalProperty(String key, Object value)Set the additional (undeclared) property with the specified name and value.CheckBuilderredirectUri(String redirectUri)CheckBuilderreportNames(List<ReportName> reportNames)voidsetApplicantId(UUID applicantId)voidsetApplicantProvidesData(Boolean applicantProvidesData)voidsetAsynchronous(Boolean asynchronous)voidsetConsider(List<ReportName> consider)voidsetDocumentIds(List<UUID> documentIds)voidsetPrivacyNoticesReadConsentGiven(Boolean privacyNoticesReadConsentGiven)voidsetRedirectUri(String redirectUri)voidsetReportNames(List<ReportName> reportNames)voidsetSubResult(String subResult)voidsetSuppressFormEmails(Boolean suppressFormEmails)voidsetTags(List<String> tags)voidsetUsDrivingLicence(UsDrivingLicenceBuilder usDrivingLicence)voidsetWebhookIds(List<String> webhookIds)CheckBuildersubResult(String subResult)CheckBuildersuppressFormEmails(Boolean suppressFormEmails)CheckBuildertags(List<String> tags)StringtoJson()Convert an instance of CheckBuilder to an JSON stringStringtoString()CheckBuilderusDrivingLicence(UsDrivingLicenceBuilder usDrivingLicence)static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues foundCheckBuilderwebhookIds(List<String> webhookIds)
-
-
-
Field Detail
-
SERIALIZED_NAME_WEBHOOK_IDS
public static final String SERIALIZED_NAME_WEBHOOK_IDS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_APPLICANT_ID
public static final String SERIALIZED_NAME_APPLICANT_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_APPLICANT_PROVIDES_DATA
public static final String SERIALIZED_NAME_APPLICANT_PROVIDES_DATA
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TAGS
public static final String SERIALIZED_NAME_TAGS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REDIRECT_URI
public static final String SERIALIZED_NAME_REDIRECT_URI
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PRIVACY_NOTICES_READ_CONSENT_GIVEN
public static final String SERIALIZED_NAME_PRIVACY_NOTICES_READ_CONSENT_GIVEN
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REPORT_NAMES
public static final String SERIALIZED_NAME_REPORT_NAMES
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DOCUMENT_IDS
public static final String SERIALIZED_NAME_DOCUMENT_IDS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ASYNCHRONOUS
public static final String SERIALIZED_NAME_ASYNCHRONOUS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SUPPRESS_FORM_EMAILS
public static final String SERIALIZED_NAME_SUPPRESS_FORM_EMAILS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SUB_RESULT
public static final String SERIALIZED_NAME_SUB_RESULT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CONSIDER
public static final String SERIALIZED_NAME_CONSIDER
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_US_DRIVING_LICENCE
public static final String SERIALIZED_NAME_US_DRIVING_LICENCE
- See Also:
- Constant Field Values
-
-
Method Detail
-
webhookIds
public CheckBuilder webhookIds(List<String> webhookIds)
-
addWebhookIdsItem
public CheckBuilder addWebhookIdsItem(String webhookIdsItem)
-
getWebhookIds
@Nullable public List<String> getWebhookIds()
An array of webhook ids describing which webhooks to trigger for this check.- Returns:
- webhookIds
-
applicantId
public CheckBuilder applicantId(UUID applicantId)
-
getApplicantId
@Nonnull public UUID getApplicantId()
The ID of the applicant to do the check on.- Returns:
- applicantId
-
setApplicantId
public void setApplicantId(UUID applicantId)
-
applicantProvidesData
public CheckBuilder applicantProvidesData(Boolean applicantProvidesData)
-
getApplicantProvidesData
@Nullable public Boolean getApplicantProvidesData()
Send an applicant form to applicant to complete to proceed with check. Defaults to false.- Returns:
- applicantProvidesData
-
setApplicantProvidesData
public void setApplicantProvidesData(Boolean applicantProvidesData)
-
tags
public CheckBuilder tags(List<String> tags)
-
addTagsItem
public CheckBuilder addTagsItem(String tagsItem)
-
getTags
@Nullable public List<String> getTags()
Array of tags being assigned to this check.- Returns:
- tags
-
redirectUri
public CheckBuilder redirectUri(String redirectUri)
-
getRedirectUri
@Nullable public String getRedirectUri()
For checks where `applicant_provides_data` is `true`, redirect to this URI when the applicant has submitted their data.- Returns:
- redirectUri
-
setRedirectUri
public void setRedirectUri(String redirectUri)
-
privacyNoticesReadConsentGiven
public CheckBuilder privacyNoticesReadConsentGiven(Boolean privacyNoticesReadConsentGiven)
-
getPrivacyNoticesReadConsentGiven
@Nullable public Boolean getPrivacyNoticesReadConsentGiven()
Get privacyNoticesReadConsentGiven- Returns:
- privacyNoticesReadConsentGiven
-
setPrivacyNoticesReadConsentGiven
public void setPrivacyNoticesReadConsentGiven(Boolean privacyNoticesReadConsentGiven)
-
reportNames
public CheckBuilder reportNames(List<ReportName> reportNames)
-
addReportNamesItem
public CheckBuilder addReportNamesItem(ReportName reportNamesItem)
-
getReportNames
@Nonnull public List<ReportName> getReportNames()
An array of report names (strings).- Returns:
- reportNames
-
setReportNames
public void setReportNames(List<ReportName> reportNames)
-
documentIds
public CheckBuilder documentIds(List<UUID> documentIds)
-
addDocumentIdsItem
public CheckBuilder addDocumentIdsItem(UUID documentIdsItem)
-
getDocumentIds
@Nullable public List<UUID> getDocumentIds()
Optional. An array of document ids, for use with Document reports only. If omitted, the Document report will use the most recently uploaded document by default.- Returns:
- documentIds
-
asynchronous
public CheckBuilder asynchronous(Boolean asynchronous)
-
getAsynchronous
@Nullable public Boolean getAsynchronous()
Defaults to `true`. If set to `false`, you will only receive a response when all reports in your check have completed.- Returns:
- asynchronous
-
setAsynchronous
public void setAsynchronous(Boolean asynchronous)
-
suppressFormEmails
public CheckBuilder suppressFormEmails(Boolean suppressFormEmails)
-
getSuppressFormEmails
@Nullable 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:
- suppressFormEmails
-
setSuppressFormEmails
public void setSuppressFormEmails(Boolean suppressFormEmails)
-
subResult
public CheckBuilder subResult(String subResult)
-
getSubResult
@Nullable public String getSubResult()
Triggers responses for particular sub-results for sandbox Document reports.- Returns:
- subResult
-
setSubResult
public void setSubResult(String subResult)
-
consider
public CheckBuilder consider(List<ReportName> consider)
-
addConsiderItem
public CheckBuilder addConsiderItem(ReportName considerItem)
-
getConsider
@Nullable public List<ReportName> getConsider()
Array of names of particular reports to return consider as their results. This is a feature available in sandbox testing- Returns:
- consider
-
setConsider
public void setConsider(List<ReportName> consider)
-
usDrivingLicence
public CheckBuilder usDrivingLicence(UsDrivingLicenceBuilder usDrivingLicence)
-
getUsDrivingLicence
@Nullable public UsDrivingLicenceBuilder getUsDrivingLicence()
Get usDrivingLicence- Returns:
- usDrivingLicence
-
setUsDrivingLicence
public void setUsDrivingLicence(UsDrivingLicenceBuilder usDrivingLicence)
-
putAdditionalProperty
public CheckBuilder 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 CheckBuilder 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 CheckBuilder
-
fromJson
public static CheckBuilder fromJson(String jsonString) throws IOException
Create an instance of CheckBuilder given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CheckBuilder
- Throws:
IOException- if the JSON string is invalid with respect to CheckBuilder
-
toJson
public String toJson()
Convert an instance of CheckBuilder to an JSON string- Returns:
- JSON string
-
-