merchant

Merchant backend to process payments, run by merchants
Log | Files | Refs | Submodules | README | LICENSE

commit 82cb92a7ba419d9baba2c486525cc30d9511fe4e
parent 9105ef268853675c1a227847ec3dd2bbc25c1753
Author: Christian Grothoff <christian@grothoff.org>
Date:   Tue, 24 Mar 2026 00:56:10 +0100

fix some discrepancies in libtalermerchant with respect to actual latest REST API implemented by the server

Diffstat:
Msrc/include/taler/taler-merchant/get-private-accounts-H_WIRE.h | 6++++++
Msrc/lib/merchant_api_get-private-accounts-H_WIRE.c | 5+++++
2 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/src/include/taler/taler-merchant/get-private-accounts-H_WIRE.h b/src/include/taler/taler-merchant/get-private-accounts-H_WIRE.h @@ -58,6 +58,12 @@ struct TALER_MERCHANT_GetPrivateAccountDetails const char *credit_facade_url; /** + * Extra wire subject metadata, or NULL if not provided. + * Available since protocol v27. + */ + const json_t *extra_wire_subject_metadata; + + /** * True if the account is currently active. */ bool active; diff --git a/src/lib/merchant_api_get-private-accounts-H_WIRE.c b/src/lib/merchant_api_get-private-accounts-H_WIRE.c @@ -118,6 +118,11 @@ handle_get_account_finished (void *cls, &agr.details.ok.ad.h_wire), GNUNET_JSON_spec_bool ("active", &agr.details.ok.ad.active), + GNUNET_JSON_spec_mark_optional ( + GNUNET_JSON_spec_object_const ( + "extra_wire_subject_metadata", + &agr.details.ok.ad.extra_wire_subject_metadata), + NULL), GNUNET_JSON_spec_end () };