exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit 4052ef25a5c29362c5342aeefcecab262cc5041d
parent 9bf796954ffe4a1a52f1f1bdd0e8e1dc639a9569
Author: Florian Dold <dold@taler.net>
Date:   Thu, 27 Aug 2026 02:17:48 +0200

bank client: retain URI transfer amounts

Diffstat:
Msrc/bank-lib/bank_api_helper.c | 1+
Msrc/bank-lib/bank_api_registration.c | 3+++
Msrc/include/taler/taler_bank_service.h | 8+++++---
3 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/src/bank-lib/bank_api_helper.c b/src/bank-lib/bank_api_helper.c @@ -42,6 +42,7 @@ TALER_BANK_transfer_subject_copy ( return; case TALER_BANK_SUBJECT_FORMAT_URI: + dst->details.uri.credit_amount = src->details.uri.credit_amount; dst->details.uri.uri = (src->details.uri.uri != NULL) ? GNUNET_strdup (src->details.uri.uri) diff --git a/src/bank-lib/bank_api_registration.c b/src/bank-lib/bank_api_registration.c @@ -117,6 +117,9 @@ parse_transfer_subject (const json_t *subject_json, "URI")) { struct GNUNET_JSON_Specification spec[] = { + TALER_JSON_spec_amount_any ( + "credit_amount", + &ts->details.uri.credit_amount), GNUNET_JSON_spec_string ( "uri", (const char **) &ts->details.uri.uri), diff --git a/src/include/taler/taler_bank_service.h b/src/include/taler/taler_bank_service.h @@ -1110,14 +1110,16 @@ struct TALER_BANK_TransferSubject { /** + * Amount to transfer. + */ + struct TALER_Amount credit_amount; + + /** * Prepared-payment confirmation URI. Should already * be a payto:// URI. */ char *uri; - // FIXME-#11537: spec mentiones "credit_amount" field, - // but we do not parse it here. Is the spec wrong? - } uri; /**