MrzKeyProblem

Why no MRZ key could be made (MrzKeyResult.NotBuilt). Each value is a fact about the input, never a verdict on a document.

May gain members in a later release: an exhaustive when over it then stops compiling until the new member is handled. An else branch keeps it compiling without handling the new member: that is your choice, and today the compiler warns that such an else is redundant.

Experimental: see ExperimentalTesseraChipApi.

Since

1.0.0

Entries

Link copied to clipboard

The scan or parse gave no document, so there is nothing to make a key from.

Link copied to clipboard

The document is a visa: its format has no chip.

Link copied to clipboard

The field is empty.

Link copied to clipboard

The field has the wrong number of characters.

Link copied to clipboard

The field holds a character outside the allowed set: A to Z, 0 to 9 and <, and digits only for a typed date.

Link copied to clipboard

The document number goes on in the optional data (its check-digit place holds <), but the optional data does not hold the rest of the number and its check digit.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.