commit 835e740e042f2317f1ae2347e986ceeea7b423a7
parent b38c0d54de538b7ae46775e77aeab0ef4c5816ae
Author: Marc Stibane <marc@taler.net>
Date: Thu, 7 Dec 2023 00:16:33 +0100
cleanup
Diffstat:
1 file changed, 3 insertions(+), 9 deletions(-)
diff --git a/TalerWallet1/Model/Model+Withdraw.swift b/TalerWallet1/Model/Model+Withdraw.swift
@@ -45,7 +45,6 @@ fileprivate struct GetWithdrawalDetailsForURI: WalletBackendFormattedRequest {
// MARK: -
/// The result from getWithdrawalDetailsForAmount
struct WithdrawalAmountDetails: Decodable {
- var tosAccepted: Bool // Did the user accept the current version of the exchange's terms of service?
var amountRaw: Amount // Amount that the user will transfer to the exchange
var amountEffective: Amount // Amount that will be added to the user's wallet balance
var numCoins: Int? // Number of coins this amountEffective will create
@@ -68,14 +67,9 @@ fileprivate struct GetWithdrawalDetailsForAmount: WalletBackendFormattedRequest
}
// MARK: -
enum ExchangeTosStatus: String, Codable {
- case new = "new" // deprecated
-// case accepted = "accepted" // old == new
- case changed = "changed" // deprecated
- case notFound = "not-found" // deprecated
- case unknown = "unknown" // deprecated
- case pending // new, but not yet deployed in demo.taler.net
- case proposed // new, but not yet deployed in demo.taler.net
- case accepted // new == old
+ case pending
+ case proposed
+ case accepted
}
struct ExchangeTermsOfService: Decodable {
var currentEtag: String