commit 73abd7b5382629702ddd4feb1038bb40ef2d9fa6
parent 2974634cabcd5a391303847346b36eff8f367acb
Author: Marc Stibane <marc@taler.net>
Date: Fri, 31 May 2024 09:05:46 +0200
WithdrawUriInfoResponse
Diffstat:
1 file changed, 10 insertions(+), 0 deletions(-)
diff --git a/TalerWallet1/Model/Model+Withdraw.swift b/TalerWallet1/Model/Model+Withdraw.swift
@@ -44,9 +44,19 @@ struct WithdrawalExchangeAccountDetails: Decodable {
// var conversionError: TalerErrorDetail? // only if error
}
// MARK: -
+enum WithdrawalOperationStatus: String, Codable {
+ case pending
+ case selected
+ case aborted
+ case confirmed
+}
/// The result from getWithdrawalDetailsForUri
struct WithdrawUriInfoResponse: Decodable {
+ var operationId: String
+ var status: WithdrawalOperationStatus // pending, selected, aborted, confirmed
+ var confirmTransferUrl: String?
var amount: Amount? // if nil then ask User
+ var maxAmount: Amount? // limit how much the user may withdraw
var currency: String // use this if amount=nil
var defaultExchangeBaseUrl: String? // if nil then use possibleExchanges
var possibleExchanges: [Exchange] // TODO: query these for fees?