Document

public struct Document : Codable

Document model.

  • The type of document.

    Declaration

    Swift

    public var typeString: String
  • The type of document. Check documentTypeString if nil.

    Declaration

    Swift

    public var type: DocumentType? { get }
  • The file in base64 format.

    Declaration

    Swift

    public var file: String?
  • Barcode data in base64.

    Declaration

    Swift

    public var barcodeData: String?
  • UIImage of the card.

    Note

    This will be nil 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.