TransactionDocsDataCoordinator
public class TransactionDocsDataCoordinator : TransactionDocsDataProtocol, TransactionDocsDataInternalProtocol
A class that implements the TransactionDocsDataProtocol
to manage transaction document data.
Responsible for handling the state of attaching, managing, and presenting documents attached to a transaction.
-
Initializes a new instance of the class.
Declaration
Swift
public init()
-
The view controller responsible for presenting document-related views.
Declaration
Swift
public weak var presentingViewController: UIViewController?
-
A closure that handles loading document data.
Declaration
Swift
public var loadDocumentData: (() -> Void)?
-
Retrieves the current value of the “Always Attach Documents” setting.
Declaration
Swift
public func getAlwaysAttachDocsValue() -> Bool
Return Value
A
Bool
representing whether documents should always be attached to the transaction. -
Declaration
Swift
public var transactionDocIDs: [String] { get }
-
Sets the “Always Attach Documents” setting to the given value.
Declaration
Swift
public func setAlwaysAttachDocs(_ value: Bool)
Parameters
value
A
Bool
indicating whether documents should always be attached to the transaction. -
Resets the “Always Attach Documents” setting.
Declaration
Swift
public func resetAlwaysAttachDocs()
-
Deletes a attached document to a transaction from the list.
Declaration
Swift
public func deleteTransactionDoc(with documentId: String)
Parameters
documentId
The ID of the document to delete.