Document
public struct Document : Codable
Document model.
-
The type of document.
Declaration
Swift
public var typeString: String
-
The type of document. Check
typeString
ifnil
.Declaration
Swift
public var type: DocumentType? { get }
-
The country of issuance.
Declaration
Swift
public var countryOfIssuanceString: String?
-
The country of issuance.
Declaration
Swift
public var countryOfIssuance: Country? { get }
-
The file in base64 format.
Declaration
Swift
public var file: String?
-
Barcode data in base64.
Declaration
Swift
public var barcodeData: String?
-
If the document failed to be verified, this field will contain the reasons why.
Declaration
Swift
public var failReasons: [String]?
-
Data extracted from this document via OCR.
Declaration
Swift
public var extractedData: DocumentExtractedData?
-
UIImage
of the card.Note
This will benil
when you list the cards for an account.Declaration
Swift
public var image: UIImage? { get }
-
Auxiliary constructor.
Declaration
Swift
public init(typeString: String)
Parameters
typeString
The document type.