ResultMetadata

data class ResultMetadata(val readMethod: ReadMethod, val warnings: List<MrzWarning>, val validationFailures: List<MrzValidationError>, val transliterationDetails: TransliterationDetails? = null, val checks: List<MrzCheckRecord> = emptyList())

The reading method, warnings, validation failures, and check records attached to every parse and generation result.

A parse ParseResult.Failure carries empty warnings, validationFailures, and checks.

toString() shows no document values; they are in the warnings, the validation failures, the transliteration details, and their properties.

Since

0.1.0

Constructors

Link copied to clipboard
constructor(readMethod: ReadMethod, warnings: List<MrzWarning>, validationFailures: List<MrzValidationError>, transliterationDetails: TransliterationDetails? = null, checks: List<MrzCheckRecord> = emptyList())
constructor(readMethod: ReadMethod, warnings: List<MrzWarning>, validationFailures: List<MrzValidationError>, transliterationDetails: TransliterationDetails?)

The constructor without checks: the checks come out empty.

Properties

Link copied to clipboard

One record per check the validator ran on the document, in io.lightine.tessera.mrz.validation.MrzCheck order, so a consumer can tell which checks ran and passed from the ones that failed. Empty on a failure and on every generation result. Default: an empty list.

Link copied to clipboard

How the data reached the SDK: MrzParser and the generator set BACKEND_STRING_INPUT, and ManualMrzReader sets MANUAL_ENTRY.

Link copied to clipboard

The transliteration a generator applied. null on parse results and when the generator applied no profile. Default: null.

Link copied to clipboard

Validation failures found. Non-empty only on a ParseResult.PartialSuccess.

Link copied to clipboard

Warnings found while validating. Empty if there are none, on a failure, and on every generation result.

Functions

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

The read method and the counts; never a document value.