[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] branch master updated: expose now returned purse_expira
From: |
gnunet |
Subject: |
[taler-exchange] branch master updated: expose now returned purse_expiration in exchange API |
Date: |
Sun, 19 Feb 2023 18:32:40 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository exchange.
The following commit(s) were added to refs/heads/master by this push:
new 95e30879 expose now returned purse_expiration in exchange API
95e30879 is described below
commit 95e30879841a2925c23b51ff56c0a292a7370674
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sun Feb 19 18:32:38 2023 +0100
expose now returned purse_expiration in exchange API
---
src/include/taler_exchange_service.h | 6 ++++++
src/lib/exchange_api_purses_get.c | 2 ++
2 files changed, 8 insertions(+)
diff --git a/src/include/taler_exchange_service.h
b/src/include/taler_exchange_service.h
index 5cfe6a98..2bf71a17 100644
--- a/src/include/taler_exchange_service.h
+++ b/src/include/taler_exchange_service.h
@@ -5192,6 +5192,7 @@ struct TALER_EXCHANGE_PurseGetResponse
*/
struct
{
+
/**
* Time when the purse was merged (or zero if it
* was not merged).
@@ -5211,6 +5212,11 @@ struct TALER_EXCHANGE_PurseGetResponse
*/
struct TALER_Amount balance;
+ /**
+ * Time when the purse will expire.
+ */
+ struct GNUNET_TIME_Timestamp purse_expiration;
+
} success;
} details;
diff --git a/src/lib/exchange_api_purses_get.c
b/src/lib/exchange_api_purses_get.c
index be142e39..5d63ecf1 100644
--- a/src/lib/exchange_api_purses_get.c
+++ b/src/lib/exchange_api_purses_get.c
@@ -109,6 +109,8 @@ handle_purse_get_finished (void *cls,
&no_deposit),
TALER_JSON_spec_amount_any ("balance",
&dr.details.success.balance),
+ GNUNET_JSON_spec_timestamp ("purse_expiration",
+ &dr.details.success.purse_expiration),
GNUNET_JSON_spec_fixed_auto ("exchange_pub",
&exchange_pub),
GNUNET_JSON_spec_fixed_auto ("exchange_sig",
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-exchange] branch master updated: expose now returned purse_expiration in exchange API,
gnunet <=