MrzCheckDigitMismatch

data class MrzCheckDigitMismatch(val field: MrzField, val expected: Char, val observed: Char, val position: Int) : MrzValidationError

Validation failure: a printed check digit differs from the one the SDK computes.

Reported by the validator for the document number, date of birth, date of expiry, optional data (TD3 personal number only), and composite check digits.

Since

0.1.0

Constructors

Link copied to clipboard
constructor(field: MrzField, expected: Char, observed: Char, position: Int)

Properties

Link copied to clipboard
open override val description: String

English text for logs: the field and the position. It never contains the digits; they are in expected and observed.

Link copied to clipboard

The check digit the SDK computed from the field.

Link copied to clipboard

The field the check digit covers.

Link copied to clipboard

The check digit printed on the document.

Link copied to clipboard

Zero-based index of the printed check digit across the lines joined with no separator.

Functions

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

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