DocumentDetailsModel

data class DocumentDetailsModel(@Json(name = "type") val documentTypeString: String, @Json(ignore = true) val documentType: DocumentTypeModel? = documentTypeString.getEnum<DocumentTypeModel>(), @Json(name = "file") var file: String?, @Json(name = "barcode_data") val barcodeData: String?, @Json(name = "fail_reasons") val failReasons: List<String>?, @Json(name = "extracted_data") val extractedData: DocumentExtractedDataModel?)

Document details.

Constructors

Link copied to clipboard
constructor(@Json(name = "type") documentTypeString: String, @Json(ignore = true) documentType: DocumentTypeModel? = documentTypeString.getEnum<DocumentTypeModel>(), @Json(name = "file") file: String?, @Json(name = "barcode_data") barcodeData: String?, @Json(name = "fail_reasons") failReasons: List<String>?, @Json(name = "extracted_data") extractedData: DocumentExtractedDataModel?)

Properties

Link copied to clipboard

Barcode data in Base64 format

Link copied to clipboard

Document type. Check documentTypeString if null

Link copied to clipboard

Document type

Link copied to clipboard

Document extracted data via OCR

Link copied to clipboard

Document failed reasons

Link copied to clipboard
var file: String?

File in Base64 format