Package com.onfido.model
Class CheckResponse
- java.lang.Object
-
- com.onfido.model.CheckResponse
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.9.0") public class CheckResponse extends Object
CheckResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCheckResponse.CustomTypeAdapterFactorystatic classCheckResponse.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_CREATED_ATstatic StringSERIALIZED_NAME_FORM_URIstatic StringSERIALIZED_NAME_HREFstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_PAUSEDstatic StringSERIALIZED_NAME_REPORT_IDSstatic StringSERIALIZED_NAME_RESULTstatic StringSERIALIZED_NAME_RESULTS_URIstatic StringSERIALIZED_NAME_SANDBOXstatic StringSERIALIZED_NAME_STATUSstatic StringSERIALIZED_NAME_VERSION
-
Constructor Summary
Constructors Constructor Description CheckResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CheckResponseaddReportIdsItem(UUID reportIdsItem)CheckResponsecreatedAt(OffsetDateTime createdAt)booleanequals(Object o)CheckResponseformUri(String formUri)static CheckResponsefromJson(String jsonString)Create an instance of CheckResponse given an JSON stringMap<String,Object>getAdditionalProperties()Return the additional (undeclared) property.ObjectgetAdditionalProperty(String key)Return the additional (undeclared) property with the specified name.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 pausedList<UUID>getReportIds()An array of report ids.CheckResponse.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 statusStringgetVersion()Get versioninthashCode()CheckResponsehref(String href)CheckResponseid(UUID id)CheckResponsepaused(Boolean paused)CheckResponseputAdditionalProperty(String key, Object value)Set the additional (undeclared) property with the specified name and value.CheckResponsereportIds(List<UUID> reportIds)CheckResponseresult(CheckResponse.ResultEnum result)CheckResponseresultsUri(String resultsUri)CheckResponsesandbox(Boolean sandbox)voidsetCreatedAt(OffsetDateTime createdAt)voidsetFormUri(String formUri)voidsetHref(String href)voidsetId(UUID id)voidsetPaused(Boolean paused)voidsetReportIds(List<UUID> reportIds)voidsetResult(CheckResponse.ResultEnum result)voidsetResultsUri(String resultsUri)voidsetSandbox(Boolean sandbox)voidsetStatus(CheckStatus status)voidsetVersion(String version)CheckResponsestatus(CheckStatus status)StringtoJson()Convert an instance of CheckResponse to an JSON stringStringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues foundCheckResponseversion(String version)
-
-
-
Field Detail
-
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
-
id
public CheckResponse id(UUID id)
-
setId
public void setId(UUID id)
-
createdAt
public CheckResponse 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)
-
href
public CheckResponse href(String href)
-
setHref
public void setHref(String href)
-
status
public CheckResponse status(CheckStatus status)
-
getStatus
@Nullable public CheckStatus getStatus()
Get status- Returns:
- status
-
setStatus
public void setStatus(CheckStatus status)
-
result
public CheckResponse result(CheckResponse.ResultEnum result)
-
getResult
@Nullable public CheckResponse.ResultEnum getResult()
The overall result of the check, based on the results of the constituent reports.- Returns:
- result
-
setResult
public void setResult(CheckResponse.ResultEnum result)
-
formUri
public CheckResponse formUri(String formUri)
-
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)
-
resultsUri
public CheckResponse resultsUri(String resultsUri)
-
getResultsUri
@Nullable public String getResultsUri()
A link to the corresponding results page on the Onfido dashboard.- Returns:
- resultsUri
-
setResultsUri
public void setResultsUri(String resultsUri)
-
reportIds
public CheckResponse reportIds(List<UUID> reportIds)
-
addReportIdsItem
public CheckResponse addReportIdsItem(UUID reportIdsItem)
-
sandbox
public CheckResponse sandbox(Boolean sandbox)
-
getSandbox
@Nullable public Boolean getSandbox()
Indicates whether the object was created in the sandbox or not.- Returns:
- sandbox
-
setSandbox
public void setSandbox(Boolean sandbox)
-
paused
public CheckResponse paused(Boolean paused)
-
setPaused
public void setPaused(Boolean paused)
-
version
public CheckResponse version(String version)
-
setVersion
public void setVersion(String version)
-
putAdditionalProperty
public CheckResponse 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 CheckResponse 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 CheckResponse
-
fromJson
public static CheckResponse fromJson(String jsonString) throws IOException
Create an instance of CheckResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CheckResponse
- Throws:
IOException- if the JSON string is invalid with respect to CheckResponse
-
toJson
public String toJson()
Convert an instance of CheckResponse to an JSON string- Returns:
- JSON string
-
-