Package com.onfido.model
Class DocumentReport
- java.lang.Object
-
- com.onfido.model.DocumentReport
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.9.0") public class DocumentReport extends Object
DocumentReport
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDocumentReport.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_BREAKDOWNstatic StringSERIALIZED_NAME_CHECK_IDstatic StringSERIALIZED_NAME_CREATED_ATstatic StringSERIALIZED_NAME_DOCUMENTSstatic StringSERIALIZED_NAME_HREFstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_NAMEstatic StringSERIALIZED_NAME_PROPERTIESstatic StringSERIALIZED_NAME_RESULTstatic StringSERIALIZED_NAME_STATUSstatic StringSERIALIZED_NAME_SUB_RESULT
-
Constructor Summary
Constructors Constructor Description DocumentReport()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DocumentReportaddDocumentsItem(ReportDocument documentsItem)DocumentReportbreakdown(DocumentBreakdown breakdown)DocumentReportcheckId(UUID checkId)DocumentReportcreatedAt(OffsetDateTime createdAt)DocumentReportdocuments(List<ReportDocument> documents)booleanequals(Object o)static DocumentReportfromJson(String jsonString)Create an instance of DocumentReport given an JSON stringMap<String,Object>getAdditionalProperties()Return the additional (undeclared) property.ObjectgetAdditionalProperty(String key)Return the additional (undeclared) property with the specified name.DocumentBreakdowngetBreakdown()Get breakdownUUIDgetCheckId()The ID of the check to which the report belongs.OffsetDateTimegetCreatedAt()The date and time at which the report was first initiated.List<ReportDocument>getDocuments()Array of objects with document ids that were used in the Onfido engine.StringgetHref()The API endpoint to retrieve the report.UUIDgetId()The unique identifier for the report.ReportNamegetName()Get nameDocumentPropertiesgetProperties()Get propertiesReportResultgetResult()Get resultReportStatusgetStatus()Get statusReportSubResultgetSubResult()Get subResultinthashCode()DocumentReporthref(String href)DocumentReportid(UUID id)DocumentReportname(ReportName name)DocumentReportproperties(DocumentProperties properties)DocumentReportputAdditionalProperty(String key, Object value)Set the additional (undeclared) property with the specified name and value.DocumentReportresult(ReportResult result)voidsetBreakdown(DocumentBreakdown breakdown)voidsetCheckId(UUID checkId)voidsetCreatedAt(OffsetDateTime createdAt)voidsetDocuments(List<ReportDocument> documents)voidsetHref(String href)voidsetId(UUID id)voidsetName(ReportName name)voidsetProperties(DocumentProperties properties)voidsetResult(ReportResult result)voidsetStatus(ReportStatus status)voidsetSubResult(ReportSubResult subResult)DocumentReportstatus(ReportStatus status)DocumentReportsubResult(ReportSubResult subResult)StringtoJson()Convert an instance of DocumentReport to an JSON stringStringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found
-
-
-
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_SUB_RESULT
public static final String SERIALIZED_NAME_SUB_RESULT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CHECK_ID
public static final String SERIALIZED_NAME_CHECK_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DOCUMENTS
public static final String SERIALIZED_NAME_DOCUMENTS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NAME
public static final String SERIALIZED_NAME_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_BREAKDOWN
public static final String SERIALIZED_NAME_BREAKDOWN
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PROPERTIES
public static final String SERIALIZED_NAME_PROPERTIES
- See Also:
- Constant Field Values
-
-
Method Detail
-
id
public DocumentReport id(UUID id)
-
setId
public void setId(UUID id)
-
createdAt
public DocumentReport createdAt(OffsetDateTime createdAt)
-
getCreatedAt
@Nullable public OffsetDateTime getCreatedAt()
The date and time at which the report was first initiated. Read-only.- Returns:
- createdAt
-
setCreatedAt
public void setCreatedAt(OffsetDateTime createdAt)
-
href
public DocumentReport href(String href)
-
getHref
@Nullable public String getHref()
The API endpoint to retrieve the report. Read-only.- Returns:
- href
-
setHref
public void setHref(String href)
-
status
public DocumentReport status(ReportStatus status)
-
getStatus
@Nullable public ReportStatus getStatus()
Get status- Returns:
- status
-
setStatus
public void setStatus(ReportStatus status)
-
result
public DocumentReport result(ReportResult result)
-
getResult
@Nullable public ReportResult getResult()
Get result- Returns:
- result
-
setResult
public void setResult(ReportResult result)
-
subResult
public DocumentReport subResult(ReportSubResult subResult)
-
getSubResult
@Nullable public ReportSubResult getSubResult()
Get subResult- Returns:
- subResult
-
setSubResult
public void setSubResult(ReportSubResult subResult)
-
checkId
public DocumentReport checkId(UUID checkId)
-
getCheckId
@Nullable public UUID getCheckId()
The ID of the check to which the report belongs. Read-only.- Returns:
- checkId
-
setCheckId
public void setCheckId(UUID checkId)
-
documents
public DocumentReport documents(List<ReportDocument> documents)
-
addDocumentsItem
public DocumentReport addDocumentsItem(ReportDocument documentsItem)
-
getDocuments
@Nullable public List<ReportDocument> getDocuments()
Array of objects with document ids that were used in the Onfido engine. [ONLY POPULATED FOR DOCUMENT AND FACIAL SIMILARITY REPORTS]- Returns:
- documents
-
setDocuments
public void setDocuments(List<ReportDocument> documents)
-
name
public DocumentReport name(ReportName name)
-
getName
@Nonnull public ReportName getName()
Get name- Returns:
- name
-
setName
public void setName(ReportName name)
-
breakdown
public DocumentReport breakdown(DocumentBreakdown breakdown)
-
getBreakdown
@Nullable public DocumentBreakdown getBreakdown()
Get breakdown- Returns:
- breakdown
-
setBreakdown
public void setBreakdown(DocumentBreakdown breakdown)
-
properties
public DocumentReport properties(DocumentProperties properties)
-
getProperties
@Nullable public DocumentProperties getProperties()
Get properties- Returns:
- properties
-
setProperties
public void setProperties(DocumentProperties properties)
-
putAdditionalProperty
public DocumentReport 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 DocumentReport 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 DocumentReport
-
fromJson
public static DocumentReport fromJson(String jsonString) throws IOException
Create an instance of DocumentReport given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of DocumentReport
- Throws:
IOException- if the JSON string is invalid with respect to DocumentReport
-
toJson
public String toJson()
Convert an instance of DocumentReport to an JSON string- Returns:
- JSON string
-
-