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() -> BoolReturn Value
A
Boolrepresenting 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
valueA
Boolindicating 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
documentIdThe ID of the document to delete.
View on GitHub
TransactionDocsDataCoordinator Class Reference