MrzExpiryDateCenturyNotInferred

data class MrzExpiryDateCenturyNotInferred(val rawYear: String, val rawMonth: String, val rawDay: String, val referenceDate: LocalDate) : MrzWarning

Warning: the SDK could not place the expiry year in a century.

Reported by the validator when the expiry date's parts are digits and form a real calendar date, but neither the 2000s nor the 1900s puts the year from 10 years before to 50 years after the year of referenceDate. The expiry date then has no computed date, so the other expiry warnings are not reported. This states only that the century is unknown; it says nothing about whether the document has expired.

Since

1.0.0

Constructors

Link copied to clipboard
constructor(rawYear: String, rawMonth: String, rawDay: String, referenceDate: LocalDate)

Properties

Link copied to clipboard
open override val description: String

English text for logs. It never contains dates; they are in the properties.

Link copied to clipboard

The two day digits as printed.

Link copied to clipboard

The two month digits as printed.

Link copied to clipboard

The two year digits as printed.

Link copied to clipboard
val referenceDate: LocalDate

The UTC date the expiry year was compared with.

Functions

Link copied to clipboard
open override fun toString(): String

MrzExpiryDateCenturyNotInferred: followed by description, so logs carry no document values.