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