DateElementWithCheckDigit

data class DateElementWithCheckDigit(val date: Date, val value: String, val positions: List<StringPosition>, val checkDigit: CheckDigit)

Represents a date element extracted from a Machine Readable Zone (MRZ) according to the ICAO Doc 9303.

A date element typically includes the date value, its string representation, its position within the MRZ, and its check digit.

Constructors

Link copied to clipboard
fun DateElementWithCheckDigit(date: Date, value: String, positions: List<StringPosition>, checkDigit: CheckDigit)

Properties

Link copied to clipboard

The check digit associated with the date element.

Link copied to clipboard
val date: Date

The date component extracted from the MRZ.

Link copied to clipboard

The list of string positions within the MRZ where this date element appears.

Link copied to clipboard

The string representation of the date element.