DocumentClassInfo

@Serializable
@SerialName(value = "DocumentClassInfo")
data class DocumentClassInfo(val country: DocumentClassInfo.Country?, val region: DocumentClassInfo.Region?, val documentType: DocumentClassInfo.DocumentType?, val countryName: String?, val isoAlpha3CountryCode: String?, val isoAlpha2CountryCode: String?, val isoNumericCountryCode: String?)

Represents the document class information.

Classification values keep both a strongly-typed ID (when known at SDK build time) and a rawValue string. For OTA-supported documents the ID may be null while rawValue is still populated. A missing country/region/document type is represented by a null nested value (e.g. when the native value would be "NONE").

Constructors

Link copied to clipboard
constructor(country: DocumentClassInfo.Country?, region: DocumentClassInfo.Region?, documentType: DocumentClassInfo.DocumentType?, countryName: String?, isoAlpha3CountryCode: String?, isoAlpha2CountryCode: String?, isoNumericCountryCode: String?)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
@Serializable
@SerialName(value = "DocumentClassCountry")
data class Country(val id: CountryId?, val rawValue: String)

Document country classification, with optional strongly-typed ID and raw string value.

Link copied to clipboard
@Serializable
@SerialName(value = "DocumentClassDocumentType")
data class DocumentType(val id: DocumentTypeId?, val rawValue: String)

Document type classification, with optional strongly-typed ID and raw string value.

Link copied to clipboard
@Serializable
@SerialName(value = "DocumentClassRegion")
data class Region(val id: RegionId?, val rawValue: String)

Document region classification, with optional strongly-typed ID and raw string value.

Properties

Link copied to clipboard

The document country.

Link copied to clipboard

The name of the country that issued the scanned document.

Link copied to clipboard
Link copied to clipboard

The 2 letter ISO code of the country that issued the scanned document.

Link copied to clipboard

The 3 letter ISO code of the country that issued the scanned document.

Link copied to clipboard

The ISO numeric code of the country that issued the scanned document.

Link copied to clipboard

The document region.