[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-taler-ios] 46/69: AccountRestriction
From: |
gnunet |
Subject: |
[taler-taler-ios] 46/69: AccountRestriction |
Date: |
Fri, 19 Jan 2024 09:02:19 +0100 |
This is an automated email from the git hooks/post-receive script.
marc-stibane pushed a commit to branch master
in repository taler-ios.
commit 5ed30b8bc5ce953b891769c17be36496766d7fad
Author: Marc Stibane <marc@taler.net>
AuthorDate: Sun Jan 7 15:06:06 2024 +0100
AccountRestriction
---
TalerWallet1/Model/Model+Withdraw.swift | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/TalerWallet1/Model/Model+Withdraw.swift
b/TalerWallet1/Model/Model+Withdraw.swift
index f618019..a2d3ca9 100644
--- a/TalerWallet1/Model/Model+Withdraw.swift
+++ b/TalerWallet1/Model/Model+Withdraw.swift
@@ -7,16 +7,23 @@ import taler_swift
import SymLog
fileprivate let ASYNCDELAY: UInt = 0 //set e.g to 6 or 9 seconds for
debugging
-enum AccountRestrictionType: String, Decodable {
+enum AccountRestrictionType: String, Codable {
case deny
case regex
}
-struct AccountRestriction: Decodable {
+
+typealias HintDict = [String:String]
+
+struct AccountRestriction: Codable, Hashable {
var type: AccountRestrictionType
var payto_regex: String?
var human_hint: String?
- var human_hint_i18n: [String:String]?
+ var human_hint_i18n: HintDict?
}
+extension AccountRestriction: Identifiable {
+ var id: AccountRestriction {self}
+}
+
struct WithdrawalExchangeAccountDetails: Decodable {
var status: String
var bankName: String?
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-taler-ios] 13/69: definitions, (continued)
- [taler-taler-ios] 13/69: definitions, gnunet, 2024/01/19
- [taler-taler-ios] 23/69: aborting Notification, gnunet, 2024/01/19
- [taler-taler-ios] 28/69: AccountRestriction, gnunet, 2024/01/19
- [taler-taler-ios] 60/69: P2P Expiration Timestamp, gnunet, 2024/01/19
- [taler-taler-ios] 26/69: Layout transactions, gnunet, 2024/01/19
- [taler-taler-ios] 51/69: cleanup, gnunet, 2024/01/19
- [taler-taler-ios] 67/69: Bump version to 0.9.4 (0), gnunet, 2024/01/19
- [taler-taler-ios] 68/69: lowercased(), gnunet, 2024/01/19
- [taler-taler-ios] 54/69: Keyboard needs more time, gnunet, 2024/01/19
- [taler-taler-ios] 49/69: accessibilityDate, gnunet, 2024/01/19
- [taler-taler-ios] 46/69: AccountRestriction,
gnunet <=
- [taler-taler-ios] 59/69: bugfix, gnunet, 2024/01/19
- [taler-taler-ios] 43/69: currency == ISO 4217, gnunet, 2024/01/19
- [taler-taler-ios] 56/69: remove "code", since "currency" IS ISO-4217 already for global, gnunet, 2024/01/19
- [taler-taler-ios] 58/69: use scopeInfo, gnunet, 2024/01/19
- [taler-taler-ios] 52/69: return to Balances after tx, gnunet, 2024/01/19
- [taler-taler-ios] 33/69: bars relative to fontSize, gnunet, 2024/01/19
- [taler-taler-ios] 63/69: Locale.preferredLanguageCode, gnunet, 2024/01/19
- [taler-taler-ios] 40/69: Exchange -> Banking, gnunet, 2024/01/19
- [taler-taler-ios] 65/69: Restrictions, gnunet, 2024/01/19
- [taler-taler-ios] 62/69: cleanup, preview, gnunet, 2024/01/19