data class DocumentDetailsModel(val documentTypeString: String, val documentType: DocumentTypeModel? = documentTypeString.getEnum<DocumentTypeModel>(), var countryOfIssuance: CountryModel? = null, var file: String?, val barcodeData: String?, val failReasons: List<String>?, val extractedData: DocumentExtractedDataModel?)

Document details.


Link copied to clipboard
constructor(documentTypeString: String, documentType: DocumentTypeModel? = documentTypeString.getEnum<DocumentTypeModel>(), countryOfIssuance: CountryModel? = null, file: String?, barcodeData: String?, failReasons: List<String>?, extractedData: DocumentExtractedDataModel?)


Link copied to clipboard
@SerialName(value = "barcode_data")
val barcodeData: String?

Barcode data in Base64 format

Link copied to clipboard
@SerialName(value = "country_of_issuance")
var countryOfIssuance: CountryModel?

The origin country of the submitted documents

Link copied to clipboard

Document type. Check documentTypeString if null

Link copied to clipboard
@SerialName(value = "type")
val documentTypeString: String

Document type

Link copied to clipboard
@SerialName(value = "extracted_data")
val extractedData: DocumentExtractedDataModel?

Document extracted data via OCR

Link copied to clipboard
@SerialName(value = "fail_reasons")
val failReasons: List<String>?

Document failed reasons

Link copied to clipboard
@SerialName(value = "file")
var file: String?

File in Base64 format