Package com.onfido.model
Class Check
- java.lang.Object
-
- com.onfido.model.Check
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.9.0") public class Check extends Object
Check
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCheck.CustomTypeAdapterFactorystatic classCheck.ResultEnumThe overall result of the check, based on the results of the constituent reports.
-
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_CREATED_ATstatic StringSERIALIZED_NAME_FORM_URIstatic StringSERIALIZED_NAME_HREFstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_PAUSEDstatic StringSERIALIZED_NAME_PRIVACY_NOTICES_READ_CONSENT_GIVENstatic StringSERIALIZED_NAME_REDIRECT_URIstatic StringSERIALIZED_NAME_REPORT_IDSstatic StringSERIALIZED_NAME_RESULTstatic StringSERIALIZED_NAME_RESULTS_URIstatic StringSERIALIZED_NAME_SANDBOXstatic StringSERIALIZED_NAME_STATUSstatic StringSERIALIZED_NAME_TAGSstatic StringSERIALIZED_NAME_VERSIONstatic StringSERIALIZED_NAME_WEBHOOK_IDS
-
Constructor Summary
Constructors Constructor Description Check()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CheckaddReportIdsItem(UUID reportIdsItem)CheckaddTagsItem(String tagsItem)CheckaddWebhookIdsItem(String webhookIdsItem)CheckapplicantId(UUID applicantId)CheckapplicantProvidesData(Boolean applicantProvidesData)CheckcreatedAt(OffsetDateTime createdAt)booleanequals(Object o)CheckformUri(String formUri)static CheckfromJson(String jsonString)Create an instance of Check 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.OffsetDateTimegetCreatedAt()The date and time when this check was created.StringgetFormUri()A link to the applicant form, if `applicant_provides_data` is `true`.StringgetHref()The uri of this resource.UUIDgetId()The unique identifier for the check.BooleangetPaused()Get pausedBooleangetPrivacyNoticesReadConsentGiven()Get privacyNoticesReadConsentGivenStringgetRedirectUri()For checks where `applicant_provides_data` is `true`, redirect to this URI when the applicant has submitted their data.List<UUID>getReportIds()An array of report ids.Check.ResultEnumgetResult()The overall result of the check, based on the results of the constituent reports.StringgetResultsUri()A link to the corresponding results page on the Onfido dashboard.BooleangetSandbox()Indicates whether the object was created in the sandbox or not.CheckStatusgetStatus()Get statusList<String>getTags()Array of tags being assigned to this check.StringgetVersion()Get versionList<String>getWebhookIds()An array of webhook ids describing which webhooks to trigger for this check.inthashCode()Checkhref(String href)Checkid(UUID id)Checkpaused(Boolean paused)CheckprivacyNoticesReadConsentGiven(Boolean privacyNoticesReadConsentGiven)CheckputAdditionalProperty(String key, Object value)Set the additional (undeclared) property with the specified name and value.CheckredirectUri(String redirectUri)CheckreportIds(List<UUID> reportIds)Checkresult(Check.ResultEnum result)CheckresultsUri(String resultsUri)Checksandbox(Boolean sandbox)voidsetApplicantId(UUID applicantId)voidsetApplicantProvidesData(Boolean applicantProvidesData)voidsetCreatedAt(OffsetDateTime createdAt)voidsetFormUri(String formUri)voidsetHref(String href)voidsetId(UUID id)voidsetPaused(Boolean paused)voidsetPrivacyNoticesReadConsentGiven(Boolean privacyNoticesReadConsentGiven)voidsetRedirectUri(String redirectUri)voidsetReportIds(List<UUID> reportIds)voidsetResult(Check.ResultEnum result)voidsetResultsUri(String resultsUri)voidsetSandbox(Boolean sandbox)voidsetStatus(CheckStatus status)voidsetTags(List<String> tags)voidsetVersion(String version)voidsetWebhookIds(List<String> webhookIds)Checkstatus(CheckStatus status)Checktags(List<String> tags)StringtoJson()Convert an instance of Check to an JSON stringStringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues foundCheckversion(String version)CheckwebhookIds(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_ID
public static final String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CREATED_AT
public static final String SERIALIZED_NAME_CREATED_AT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_HREF
public static final String SERIALIZED_NAME_HREF
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STATUS
public static final String SERIALIZED_NAME_STATUS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RESULT
public static final String SERIALIZED_NAME_RESULT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_FORM_URI
public static final String SERIALIZED_NAME_FORM_URI
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RESULTS_URI
public static final String SERIALIZED_NAME_RESULTS_URI
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REPORT_IDS
public static final String SERIALIZED_NAME_REPORT_IDS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SANDBOX
public static final String SERIALIZED_NAME_SANDBOX
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PAUSED
public static final String SERIALIZED_NAME_PAUSED
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_VERSION
public static final String SERIALIZED_NAME_VERSION
- See Also:
- Constant Field Values
-
-
Method Detail
-
getWebhookIds
@Nullable public List<String> getWebhookIds()
An array of webhook ids describing which webhooks to trigger for this check.- Returns:
- webhookIds
-
getApplicantId
@Nonnull public UUID getApplicantId()
The ID of the applicant to do the check on.- Returns:
- applicantId
-
setApplicantId
public void setApplicantId(UUID applicantId)
-
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)
-
getTags
@Nullable public List<String> getTags()
Array of tags being assigned to this check.- Returns:
- tags
-
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 Check privacyNoticesReadConsentGiven(Boolean privacyNoticesReadConsentGiven)
-
getPrivacyNoticesReadConsentGiven
@Nullable public Boolean getPrivacyNoticesReadConsentGiven()
Get privacyNoticesReadConsentGiven- Returns:
- privacyNoticesReadConsentGiven
-
setPrivacyNoticesReadConsentGiven
public void setPrivacyNoticesReadConsentGiven(Boolean privacyNoticesReadConsentGiven)
-
setId
public void setId(UUID id)
-
createdAt
public Check createdAt(OffsetDateTime createdAt)
-
getCreatedAt
@Nullable public OffsetDateTime getCreatedAt()
The date and time when this check was created.- Returns:
- createdAt
-
setCreatedAt
public void setCreatedAt(OffsetDateTime createdAt)
-
setHref
public void setHref(String href)
-
status
public Check status(CheckStatus status)
-
getStatus
@Nullable public CheckStatus getStatus()
Get status- Returns:
- status
-
setStatus
public void setStatus(CheckStatus status)
-
result
public Check result(Check.ResultEnum result)
-
getResult
@Nullable public Check.ResultEnum getResult()
The overall result of the check, based on the results of the constituent reports.- Returns:
- result
-
setResult
public void setResult(Check.ResultEnum result)
-
getFormUri
@Nullable public String getFormUri()
A link to the applicant form, if `applicant_provides_data` is `true`.- Returns:
- formUri
-
setFormUri
public void setFormUri(String formUri)
-
getResultsUri
@Nullable public String getResultsUri()
A link to the corresponding results page on the Onfido dashboard.- Returns:
- resultsUri
-
setResultsUri
public void setResultsUri(String resultsUri)
-
getSandbox
@Nullable public Boolean getSandbox()
Indicates whether the object was created in the sandbox or not.- Returns:
- sandbox
-
setSandbox
public void setSandbox(Boolean sandbox)
-
setPaused
public void setPaused(Boolean paused)
-
setVersion
public void setVersion(String version)
-
putAdditionalProperty
public Check 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 Check 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 Check
-
fromJson
public static Check fromJson(String jsonString) throws IOException
Create an instance of Check given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Check
- Throws:
IOException- if the JSON string is invalid with respect to Check
-
toJson
public String toJson()
Convert an instance of Check to an JSON string- Returns:
- JSON string
-
-