SemanticsVerificationReport

data class SemanticsVerificationReport(val overallInvalidSemantics: Boolean, val expiryDateSemantics: CompositeFieldValueSemantics, val issueDateSemantics: CompositeFieldValueSemantics, val birthDateSemantics: CompositeFieldValueSemantics, val issueDateBeforeExpiryDate: ValueSemantics, val birthDateBeforeIssueDate: ValueSemantics, val birthDateBeforeExpiryDate: ValueSemantics) : Parcelable

Report of the document value semantics verification.

Constructors

Link copied to clipboard
constructor(source: Map<String, Any?>)
constructor(json: JSONObject)
constructor(overallInvalidSemantics: Boolean, expiryDateSemantics: CompositeFieldValueSemantics, issueDateSemantics: CompositeFieldValueSemantics, birthDateSemantics: CompositeFieldValueSemantics, issueDateBeforeExpiryDate: ValueSemantics, birthDateBeforeIssueDate: ValueSemantics, birthDateBeforeExpiryDate: ValueSemantics)

Properties

Link copied to clipboard

Result of verification whether the birth date is before the expiry date.

Link copied to clipboard

Result of verification whether the birth date is before the issue date.

Link copied to clipboard

Status of the birth date semantics verification. Shows whether the birth date in the document is in the past.

Link copied to clipboard

Status of the expiry date semantics verification. Shows whether the expiry date in the document is in the future.

Link copied to clipboard

Result of verification whether the issue date is before the expiry date.

Link copied to clipboard

Status of the issue date semantics verification. Shows whether the issue date in the document is in the past.

Link copied to clipboard

Overall status of the value semantics verification. Corresponds to the most severe status of all fields, i.e. if at least one field is semantically incorrect, the overall status is semantically incorrect. If some verifications are skipped, they do not impact the overall status.

Functions

Link copied to clipboard
Link copied to clipboard
fun toJson(config: ToJsonConfiguration = ToJsonConfiguration.default()): JSONObject