commit 37bd361e2f02119d23593d5a94562069ac501377
parent 2720e310a73b3d6fcf09a2af79e4fb29c3325639
Author: Marc Stibane <marc@taler.net>
Date: Mon, 31 Aug 2026 11:29:46 +0200
insufficient (w.i.p.)
Diffstat:
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/TalerWallet1/Model/Model+P2P.swift b/TalerWallet1/Model/Model+P2P.swift
@@ -47,15 +47,16 @@ extension WalletModel {
} // getMaxPeerPushAmount
// MARK: - check PeerPushDebit
struct CheckPeerPushDebitResponse: Codable {
+ let type: String // ok, insufficient-balance
let exchangeBaseUrl: String? // API "2:0:1"
let amountRaw: Amount
- let amountEffective: Amount
- let defaultExpiration: Duration
+ let amountEffective: Amount?
+ let defaultExpiration: Duration?
let maxExpirationDate: Timestamp? // API "2:0:1" TODO: limit expiration (30 days or 7 days)
}
fileprivate struct CheckPeerPushDebit: WalletBackendFormattedRequest {
typealias Response = CheckPeerPushDebitResponse
- var operation: String { "checkPeerPushDebit" }
+ var operation: String { "checkPeerPushDebitV2" }
func args() -> Args { Args(amount: amount,
restrictScope: scope,
progressToken: operation) }