CheckOutcome

sealed interface CheckOutcome

The outcome of one check that a reader ran (or did not run) on read data.

The outcomes are facts about the check, never a verdict on the document: Passed means the check ran and its observation agreed with what the SDK computed from the read data, Failed means it ran and they differed, NotApplicable means the check does not apply to this input, and NotRun means it did not run.

Every module that reports checks shares this vocabulary: MRZ validation, chip reading and master-list reading all return it. Failed, NotApplicable and NotRun carry a reason when there is one; each module names its reasons in its own enum implementing CheckReason.

Since

1.0.0

Inheritors

Types

Link copied to clipboard
data class Failed(val reason: CheckReason? = null) : CheckOutcome

The check ran and its observation differed from what the SDK computed from the read data.

Link copied to clipboard
data class NotApplicable(val reason: CheckReason? = null) : CheckOutcome

The check does not apply: the format has no such check, or the check position holds a filler where the standard allows one.

Link copied to clipboard
data class NotRun(val reason: CheckReason? = null) : CheckOutcome

The check did not run, for example because the structure could not be read.

Link copied to clipboard
data object Passed : CheckOutcome

The check ran and its observation agreed with what the SDK computed from the read data.