gnunet-svn
[Top][All Lists]
Advanced

[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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]