[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-taler-ios] 93/204: cleanup
From: |
gnunet |
Subject: |
[taler-taler-ios] 93/204: cleanup |
Date: |
Thu, 05 Dec 2024 23:51:01 +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 5aa95c61544443a0491c73201c29a94d0d107a36
Author: Marc Stibane <marc@taler.net>
AuthorDate: Thu Nov 7 19:43:39 2024 +0100
cleanup
---
TalerWallet1/Backend/WalletBackendRequest.swift | 28 +---------------------
TalerWallet1/Backend/WalletCore.swift | 2 +-
TalerWallet1/Controllers/DebugViewC.swift | 2 +-
.../Views/Settings/Exchange/ExchangeListView.swift | 2 +-
4 files changed, 4 insertions(+), 30 deletions(-)
diff --git a/TalerWallet1/Backend/WalletBackendRequest.swift
b/TalerWallet1/Backend/WalletBackendRequest.swift
index ddc493a..50b27e7 100644
--- a/TalerWallet1/Backend/WalletBackendRequest.swift
+++ b/TalerWallet1/Backend/WalletBackendRequest.swift
@@ -123,7 +123,7 @@ struct Product: Codable, Identifiable {
var quantity: Int?
var unit: String?
var price: Amount?
- var image: String? // URL to a product image
+ var image: String? // product image 128x128 encoded
var taxes: [Tax]?
var delivery_date: Timestamp?
@@ -209,32 +209,6 @@ struct WalletBackendPreparePayRequest:
WalletBackendFormattedRequest {
struct Response: Decodable {}
}
-/// A request to confirm a payment.
-struct WalletBackendConfirmPayRequest: WalletBackendFormattedRequest {
- func operation() -> String { "confirmPay" }
- func args() -> Args { Args(proposalId: proposalId) }
- var proposalId: String
-
- struct Args: Encodable {
- var proposalId: String
- }
-
- struct Response: Decodable {}
-}
-// MARK: -
-/// A request to abort a failed payment.
-struct WalletBackendAbortFailedPaymentRequest: WalletBackendFormattedRequest {
- func operation() -> String { "abortFailedPayWithRefund" }
- func args() -> Args { Args(proposalId: proposalId) }
-
- var proposalId: String
- struct Args: Encodable {
- var proposalId: String
- }
-
- struct Response: Decodable {}
-
-}
// MARK: -
struct IntegrationTestArgs: Codable {
var exchangeBaseUrl: String
diff --git a/TalerWallet1/Backend/WalletCore.swift
b/TalerWallet1/Backend/WalletCore.swift
index 1922a34..534723b 100644
--- a/TalerWallet1/Backend/WalletCore.swift
+++ b/TalerWallet1/Backend/WalletCore.swift
@@ -271,7 +271,7 @@ extension WalletCore {
postNotification(.TransactionStateTransition,
userInfo: [TRANSACTIONTRANSITION: decoded])
default:
if let newMinor {
- logger.warning("\(newMajor.rawValue, privacy:
.public):\(newMinor.rawValue, privacy: .public) \(decoded.transactionId,
privacy: .private(mask: .hash))")
+ logger.log("\(newMajor.rawValue, privacy:
.public):\(newMinor.rawValue, privacy: .public) \(decoded.transactionId,
privacy: .private(mask: .hash))")
} else {
logger.warning("\(newMajor.rawValue, privacy:
.public): \(decoded.transactionId, privacy: .private(mask: .hash))")
}
diff --git a/TalerWallet1/Controllers/DebugViewC.swift
b/TalerWallet1/Controllers/DebugViewC.swift
index 6fb0f0c..f0ab201 100644
--- a/TalerWallet1/Controllers/DebugViewC.swift
+++ b/TalerWallet1/Controllers/DebugViewC.swift
@@ -29,7 +29,7 @@ public let VIEW_EMPTY_WALLET = 10
// 10 Wallet
public let VIEW_BALANCES = VIEW_EMPTY_WALLET + 1 // 11
BalancesListView
public let VIEW_SETTINGS = VIEW_BALANCES + 1 // 12
SettingsView
public let VIEW_ABOUT = VIEW_SETTINGS + 1 // 13
AboutView
-public let VIEW_BANKING = VIEW_ABOUT + 1 // 14
ExchangeListView
+public let VIEW_PAYMENT_SERVICES = VIEW_ABOUT + 1 // 14
ExchangeListView
// MARK: Transactions
public let VIEW_EMPTY_HISTORY = VIEW_EMPTY_WALLET + 10 // 20
TransactionsEmptyView
diff --git a/TalerWallet1/Views/Settings/Exchange/ExchangeListView.swift
b/TalerWallet1/Views/Settings/Exchange/ExchangeListView.swift
index c089f3e..32e7d0b 100644
--- a/TalerWallet1/Views/Settings/Exchange/ExchangeListView.swift
+++ b/TalerWallet1/Views/Settings/Exchange/ExchangeListView.swift
@@ -116,7 +116,7 @@ struct ExchangeListCommonV: View {
}
//#endif
.onAppear() {
- DebugViewC.shared.setViewID(VIEW_BANKING, stack: stack.push())
+ DebugViewC.shared.setViewID(VIEW_PAYMENT_SERVICES, stack:
stack.push())
}
// .onNotification(.ExchangeAdded) { notification in
// // doesn't need to be received on main thread because we just
reload in the background anyway
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-taler-ios] 85/204: ScopePicker, (continued)
- [taler-taler-ios] 85/204: ScopePicker, gnunet, 2024/12/05
- [taler-taler-ios] 87/204: cleanup, gnunet, 2024/12/05
- [taler-taler-ios] 77/204: info2, gnunet, 2024/12/05
- [taler-taler-ios] 75/204: cleanup, gnunet, 2024/12/05
- [taler-taler-ios] 80/204: scope from balance, gnunet, 2024/12/05
- [taler-taler-ios] 79/204: -Binding, gnunet, 2024/12/05
- [taler-taler-ios] 81/204: iterate over balances, gnunet, 2024/12/05
- [taler-taler-ios] 82/204: cleanup, gnunet, 2024/12/05
- [taler-taler-ios] 90/204: Onboarding, gnunet, 2024/12/05
- [taler-taler-ios] 100/204: Minimalistic date, gnunet, 2024/12/05
- [taler-taler-ios] 93/204: cleanup,
gnunet <=
- [taler-taler-ios] 103/204: add amount, gnunet, 2024/12/05
- [taler-taler-ios] 76/204: CurrencySpecification, gnunet, 2024/12/05
- [taler-taler-ios] 88/204: cleanup, gnunet, 2024/12/05
- [taler-taler-ios] 74/204: - currencyName, gnunet, 2024/12/05
- [taler-taler-ios] 83/204: Comments, gnunet, 2024/12/05
- [taler-taler-ios] 89/204: cleanup, gnunet, 2024/12/05
- [taler-taler-ios] 92/204: take out scroll-end-buttons, gnunet, 2024/12/05
- [taler-taler-ios] 96/204: cleanup, gnunet, 2024/12/05
- [taler-taler-ios] 86/204: cleanup, gnunet, 2024/12/05
- [taler-taler-ios] 91/204: scope instead of currencyInfo, gnunet, 2024/12/05