taler-ios

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

commit 2426812a6cca3bb56960b7a5395c9d8b1b2feea2
parent 8b2b50780ad417cfcfa5833b7d471e344430540a
Author: Marc Stibane <marc@taler.net>
Date:   Thu, 16 Jul 2026 09:54:07 +0200

RequestProgressError, RequestProgressPhase

Diffstat:
MTalerWallet1/Model/Transaction.swift | 21+++++++++++++++++++++
1 file changed, 21 insertions(+), 0 deletions(-)

diff --git a/TalerWallet1/Model/Transaction.swift b/TalerWallet1/Model/Transaction.swift @@ -167,6 +167,27 @@ struct TransactionState: Codable, Hashable { var isKYCauth: Bool { minor == .kycAuthRequired } } +enum ProgressPhase: String, Codable { + case delayed // after 5 seconds + case stalled // after 10 seconds + case done // either successful or error +} +struct RequestProgressPhase: Codable { // Notification + var type: String // request-progress-phase + var operation: String + var progressToken: String + var phase: ProgressPhase +} + +struct RequestProgressError: Codable { // Notification + var type: String // request-progress-error + var operation: String + var progressToken: String + var error: TalerErrorDetail + var retryCounter: Int? + var nextRetryDelay: Duration? +} + struct TransactionTransition: Codable { // Notification enum TransitionType: String, Codable { case transition = "transaction-state-transition"