MrzExpiryDateAfterNonHarmonizedPassportLimit

data class MrzExpiryDateAfterNonHarmonizedPassportLimit(val rawDocumentCode: String, val expiryDate: LocalDate) : MrzWarning

Warning: a passport whose document code has no harmonized second letter expires on or after 1 January 2038.

ICAO Doc 9303 Part 4 (8th edition), section 4.4: the second letter of a passport code comes from the table (PP, PE, PD, PO, PR, PT, PS, PL, PM), and a passport issued without a harmonized second letter shall expire before 1 January 2038. Reported by the validator for a TD3 document whose document code starts with P and whose second character is not a letter of that table (the filler < and any other character, such as PX), when the expiry date has a computed date on or after 2038-01-01. PU, the code for single sheet documents, is never reported. Not reported when the expiry century is unknown (that is MrzExpiryDateCenturyNotInferred). The SDK cannot tell when the document was issued, so a code outside the table is not reported on its own, only together with a late expiry date. This states only how the printed values relate to the rule; it says nothing about whether the document is genuine or valid.

Since

1.0.0

Constructors

constructor(rawDocumentCode: String, expiryDate: LocalDate)

Properties

Link copied to clipboard
open override val description: String

English text for logs. It never contains the code or the date; they are in the properties.

Link copied to clipboard
val expiryDate: LocalDate

The computed expiry date.

Link copied to clipboard

The two document code characters as printed, such as P< or PX.

Functions

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

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