commit 2d8ca75fc54c536092daf766d400af0a3400c3d3
parent 439ae30198a1a7ec4dc33ea1b62e183b1748ac13
Author: Marc Stibane <marc@taler.net>
Date: Sun, 7 Jan 2024 14:54:46 +0100
currency == ISO 4217
Diffstat:
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/TalerWallet1/Backend/WalletBackendRequest.swift b/TalerWallet1/Backend/WalletBackendRequest.swift
@@ -31,8 +31,8 @@ struct ScopeInfo: Codable, Hashable {
case auditor
}
var type: ScopeInfoType
- var url: String? // only for "exchange"
- var currency: String
+ var url: String? // only for "exchange"
+ var currency: String // 3-char ISO 4217 code for global currency. Regional MUST be >= 4 letters
public static func == (lhs: ScopeInfo, rhs: ScopeInfo) -> Bool {
if let lhsBaseURL = lhs.url {
diff --git a/taler-swift/Sources/taler-swift/Amount.swift b/taler-swift/Sources/taler-swift/Amount.swift
@@ -66,6 +66,7 @@ public final class Amount: Codable, Hashable, @unchecked Sendable, CustomStringC
public static let decimalSeparator = "."
+ /// 3-char ISO 4217 code for global currency. Regional MUST be >= 4 letters
/// The currency of the amount. Cannot be changed later, except...
private var currency: String