gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-taler-ios] 153/204: products


From: gnunet
Subject: [taler-taler-ios] 153/204: products
Date: Thu, 05 Dec 2024 23:52: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 6899f8c0e5bf50e76e560dd4361eee3fd6763142
Author: Marc Stibane <marc@taler.net>
AuthorDate: Thu Nov 21 21:58:05 2024 +0100

    products
---
 TalerWallet1/Views/Sheets/P2P_Sheets/P2pPayURIView.swift            | 3 ++-
 TalerWallet1/Views/Sheets/P2P_Sheets/P2pReceiveURIView.swift        | 3 ++-
 TalerWallet1/Views/Sheets/Payment/PaymentView.swift                 | 6 ++++--
 .../Views/Sheets/WithdrawBankIntegrated/WithdrawAcceptView.swift    | 3 ++-
 TalerWallet1/Views/Transactions/ThreeAmountsSection.swift           | 4 +++-
 5 files changed, 13 insertions(+), 6 deletions(-)

diff --git a/TalerWallet1/Views/Sheets/P2P_Sheets/P2pPayURIView.swift 
b/TalerWallet1/Views/Sheets/P2P_Sheets/P2pPayURIView.swift
index 5f0909b..933b065 100644
--- a/TalerWallet1/Views/Sheets/P2P_Sheets/P2pPayURIView.swift
+++ b/TalerWallet1/Views/Sheets/P2P_Sheets/P2pPayURIView.swift
@@ -57,7 +57,8 @@ struct P2pPayURIView: View {
                                       baseURL: nil,
                                    txStateLcl: nil,
                                       summary: 
peerPullDebitResponse.contractTerms.summary,
-                                     merchant: nil)
+                                     merchant: nil,
+                                     products: nil)
                     let expiration = 
peerPullDebitResponse.contractTerms.purse_expiration
                     let (dateString, date) = TalerDater.dateString(expiration, 
minimalistic)
                     let a11yDate = TalerDater.accessibilityDate(date) ?? 
dateString
diff --git a/TalerWallet1/Views/Sheets/P2P_Sheets/P2pReceiveURIView.swift 
b/TalerWallet1/Views/Sheets/P2P_Sheets/P2pReceiveURIView.swift
index 27ed98f..c9f0ce5 100644
--- a/TalerWallet1/Views/Sheets/P2P_Sheets/P2pReceiveURIView.swift
+++ b/TalerWallet1/Views/Sheets/P2P_Sheets/P2pReceiveURIView.swift
@@ -78,7 +78,8 @@ struct P2pReceiveURIView: View {
                                       baseURL: nil,
                                    txStateLcl: nil,
                                       summary: 
peerPushCreditResponse.contractTerms.summary,
-                                     merchant: nil)
+                                     merchant: nil,
+                                     products: nil)
                     let expiration = 
peerPushCreditResponse.contractTerms.purse_expiration
                     let (dateString, date) = TalerDater.dateString(expiration, 
minimalistic)
                     let a11yDate = TalerDater.accessibilityDate(date) ?? 
dateString
diff --git a/TalerWallet1/Views/Sheets/Payment/PaymentView.swift 
b/TalerWallet1/Views/Sheets/Payment/PaymentView.swift
index 69a36b5..cf20706 100644
--- a/TalerWallet1/Views/Sheets/Payment/PaymentView.swift
+++ b/TalerWallet1/Views/Sheets/Payment/PaymentView.swift
@@ -183,7 +183,8 @@ struct PaymentView: View, Sendable {
                                       baseURL: baseURL,
                                    txStateLcl: nil,
                                       summary: terms.summary,
-                                     merchant: terms.merchant.name)
+                                     merchant: terms.merchant.name,
+                                     products: terms.products)
                     // TODO: payment: popup with all possible exchanges, check 
fees
                 } else if let balanceDetails = preparePayResult.balanceDetails 
{    // Insufficient
                     Text("You don't have enough \(currency).")
@@ -205,7 +206,8 @@ struct PaymentView: View, Sendable {
                                       baseURL: baseURL,
                                    txStateLcl: nil,
                                       summary: terms.summary,
-                                     merchant: terms.merchant.name)
+                                     merchant: terms.merchant.name,
+                                     products: terms.products)
                 } else {
                     // TODO: Error - neither effective nor balanceDetails
                     Text("Error")
diff --git 
a/TalerWallet1/Views/Sheets/WithdrawBankIntegrated/WithdrawAcceptView.swift 
b/TalerWallet1/Views/Sheets/WithdrawBankIntegrated/WithdrawAcceptView.swift
index 6bed3a5..bded39c 100644
--- a/TalerWallet1/Views/Sheets/WithdrawBankIntegrated/WithdrawAcceptView.swift
+++ b/TalerWallet1/Views/Sheets/WithdrawBankIntegrated/WithdrawAcceptView.swift
@@ -88,7 +88,8 @@ struct WithdrawAcceptView: View {
                                       baseURL: exchange.exchangeBaseUrl,
                                    txStateLcl: nil,        // 
common.txState.major.localizedState
                                       summary: nil,
-                                     merchant: nil)
+                                     merchant: nil,
+                                     products: nil)
                     if let wireFee {
                         if !wireFee.isZero {
                             let currencyInfo = controller.info(for: scope, 
controller.currencyTicker)
diff --git a/TalerWallet1/Views/Transactions/ThreeAmountsSection.swift 
b/TalerWallet1/Views/Transactions/ThreeAmountsSection.swift
index 80ac0d5..9e95941 100644
--- a/TalerWallet1/Views/Transactions/ThreeAmountsSection.swift
+++ b/TalerWallet1/Views/Transactions/ThreeAmountsSection.swift
@@ -66,7 +66,8 @@ struct ThreeAmountsSheet: View {    // should be in a 
separate file
                           baseURL: baseURL,
                        txStateLcl: txStateLcl,
                           summary: summary,
-                         merchant: merchant)
+                         merchant: merchant,
+                         products: nil)
     }
 }
 // MARK: -
@@ -89,6 +90,7 @@ struct ThreeAmountsSection: View {
     let txStateLcl: String?                 // localizedState
     let summary: String?
     let merchant: String?
+    let products: [Product]?
 
     @Environment(\.colorScheme) private var colorScheme
     @Environment(\.colorSchemeContrast) private var colorSchemeContrast

-- 
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]