gnunet-svn
[Top][All Lists]
Advanced

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

[taler-taler-ios] 11/32: Identifiable


From: gnunet
Subject: [taler-taler-ios] 11/32: Identifiable
Date: Sat, 10 Feb 2024 15:04:37 +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 cb8db09e0455dc854bc7c0ff458c00f15386faa8
Author: Marc Stibane <marc@taler.net>
AuthorDate: Sun Feb 4 14:36:47 2024 +0100

    Identifiable
---
 TalerWallet1/Backend/WalletBackendRequest.swift | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/TalerWallet1/Backend/WalletBackendRequest.swift 
b/TalerWallet1/Backend/WalletBackendRequest.swift
index 9a95db2..6a5ef20 100644
--- a/TalerWallet1/Backend/WalletBackendRequest.swift
+++ b/TalerWallet1/Backend/WalletBackendRequest.swift
@@ -84,7 +84,7 @@ struct Tax: Codable {
 
 /// A product being purchased from a merchant.
 /// https://docs.taler.net/core/api-merchant.html#the-contract-terms
-struct Product: Codable {
+struct Product: Codable, Identifiable {
     var product_id: String?
     var description: String
 //    var description_i18n:   ?
@@ -94,6 +94,8 @@ struct Product: Codable {
     var image: String? // URL to a product image
     var taxes: [Tax]?
     var delivery_date: Timestamp?
+
+    var id: String { product_id ?? "unknown" }
 }
 
 /// Brief information about an order.

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