commit 5c20bbc9b7b8b2bcc9f2e625553888c062d43875 parent 8f2956d707639404e45669bc70582ba65184bc01 Author: Marc Stibane <marc@taler.net> Date: Thu, 11 Dec 2025 18:55:51 +0100 transactionType Diffstat:
| M | TalerWallet1/Controllers/Controller.swift | | | 16 | ++++++++++++++++ |
1 file changed, 16 insertions(+), 0 deletions(-)
diff --git a/TalerWallet1/Controllers/Controller.swift b/TalerWallet1/Controllers/Controller.swift @@ -69,6 +69,22 @@ enum UrlCommand: String, Codable { #endif } } + var transactionType: TransactionType { + switch self { + case .unknown: .dummy + case .withdraw: .withdrawal + case .withdrawExchange: .withdrawal + case .addExchange: .withdrawal + case .pay: .payment + case .payPull: .scanPullDebit + case .payPush: .scanPushCredit + case .payTemplate: .payment + case .refund: .refund +#if GNU_TALER + case .devExperiment: .dummy +#endif + } + } } // MARK: -