DocumentData

@Serializable
data class DocumentData(val docType: String? = null, val country: String? = null, val surname: String? = null, val firstName: String? = null, val docNumber: String? = null, val nationality: String? = null, val dateOfBirth: String? = null, val sex: String? = null, val dateOfExpiration: String? = null, val optionalData1: String? = null, val optionalData2: String? = null, val rawData: String? = null)

Describes the formatted extracted contents of a document.

Constructors

Link copied to clipboard
constructor(docType: String? = null, country: String? = null, surname: String? = null, firstName: String? = null, docNumber: String? = null, nationality: String? = null, dateOfBirth: String? = null, sex: String? = null, dateOfExpiration: String? = null, optionalData1: String? = null, optionalData2: String? = null, rawData: String? = null)

Properties

Link copied to clipboard
val country: String? = null

The country parsed from the MRZ.

Link copied to clipboard
val dateOfBirth: String? = null

The date of birth parsed from the MRZ formatted as YYYY-MM-DD.

Link copied to clipboard

The date of expiration parsed from the MRZ formatted as YYYY-MM-DD.

Link copied to clipboard
val docNumber: String? = null

The document number parsed from the MRZ.

Link copied to clipboard
val docType: String? = null

The type of document parsed from the MRZ.

Link copied to clipboard
val firstName: String? = null

The first name parsed from the MRZ.

Link copied to clipboard
val nationality: String? = null

The nationality parsed from the MRZ.

Link copied to clipboard
val optionalData1: String? = null

The optional data 1 parsed from the MRZ.

Link copied to clipboard
val optionalData2: String? = null

The optional data 2 parsed from the MRZ.

Link copied to clipboard
val rawData: String? = null

The raw MRZ data.

Link copied to clipboard
val sex: String? = null

The sex parsed from the MRZ.

Link copied to clipboard
val surname: String? = null

The surname parsed from the MRZ.