expose now returned purse_expiration in exchange API

This commit is contained in:
Christian Grothoff 2023-02-19 18:32:38 +01:00
parent 9a841f6047
commit 95e3087984
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC
2 changed files with 8 additions and 0 deletions

View File

@ -5192,6 +5192,7 @@ struct TALER_EXCHANGE_PurseGetResponse
*/ */
struct struct
{ {
/** /**
* Time when the purse was merged (or zero if it * Time when the purse was merged (or zero if it
* was not merged). * was not merged).
@ -5211,6 +5212,11 @@ struct TALER_EXCHANGE_PurseGetResponse
*/ */
struct TALER_Amount balance; struct TALER_Amount balance;
/**
* Time when the purse will expire.
*/
struct GNUNET_TIME_Timestamp purse_expiration;
} success; } success;
} details; } details;

View File

@ -109,6 +109,8 @@ handle_purse_get_finished (void *cls,
&no_deposit), &no_deposit),
TALER_JSON_spec_amount_any ("balance", TALER_JSON_spec_amount_any ("balance",
&dr.details.success.balance), &dr.details.success.balance),
GNUNET_JSON_spec_timestamp ("purse_expiration",
&dr.details.success.purse_expiration),
GNUNET_JSON_spec_fixed_auto ("exchange_pub", GNUNET_JSON_spec_fixed_auto ("exchange_pub",
&exchange_pub), &exchange_pub),
GNUNET_JSON_spec_fixed_auto ("exchange_sig", GNUNET_JSON_spec_fixed_auto ("exchange_sig",