taler-ios

iOS apps for GNU Taler (wallet)
Log | Files | Refs | README | LICENSE

commit 5944e1af546ea050e18bbce70c7cf72dead17d55
parent 67c22be5b2192c0a092d2704b6a0505ad284bd24
Author: Marc Stibane <marc@taler.net>
Date:   Tue, 21 Jul 2026 08:25:02 +0200

acceptBankIntegratedWithdrawal progressToken withdrawURL

Diffstat:
MTalerWallet1/Model/Model+Withdraw.swift | 11++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/TalerWallet1/Model/Model+Withdraw.swift b/TalerWallet1/Model/Model+Withdraw.swift @@ -199,7 +199,8 @@ struct AcceptWithdrawalResponse: Decodable { fileprivate struct AcceptBankIntegratedWithdrawal: WalletBackendFormattedRequest { typealias Response = AcceptWithdrawalResponse var operation: String { "acceptBankIntegratedWithdrawal" } - func args() -> Args { Args(talerWithdrawUri: talerUri, exchangeBaseUrl: baseUrl, amount: amount, restrictAge: restrictAge) } + func args() -> Args { Args(talerWithdrawUri: talerUri, exchangeBaseUrl: baseUrl, + amount: amount, restrictAge: restrictAge, progressToken: talerUri) } var talerUri: String var baseUrl: String @@ -211,6 +212,7 @@ fileprivate struct AcceptBankIntegratedWithdrawal: WalletBackendFormattedRequest var exchangeBaseUrl: String var amount: Amount? var restrictAge: Int? + var progressToken: String } } // MARK: - @@ -300,8 +302,11 @@ extension WalletModel { restrictAge: Int?, viewHandles: Bool = false) async throws -> AcceptWithdrawalResponse? { - let request = AcceptBankIntegratedWithdrawal(talerUri: withdrawURL, baseUrl: baseUrl, - amount: amount, restrictAge: restrictAge) + let request = AcceptBankIntegratedWithdrawal(talerUri: withdrawURL, baseUrl: baseUrl, + amount: amount, restrictAge: restrictAge) + let controller = Controller.shared + controller.progressOperation = request.operation + controller.progressToken = withdrawURL let response = try await sendRequest(request, viewHandles: viewHandles) return response }