From 025922950dcf39700625e04be9f6037af67dddf5 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 9 Feb 2022 22:02:29 +0100 Subject: pass exchange values to /recoup --- src/include/taler_json_lib.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'src/include/taler_json_lib.h') diff --git a/src/include/taler_json_lib.h b/src/include/taler_json_lib.h index 21b6d4e7..fef73391 100644 --- a/src/include/taler_json_lib.h +++ b/src/include/taler_json_lib.h @@ -131,6 +131,20 @@ TALER_JSON_pack_blinded_planchet ( const struct TALER_BlindedPlanchet *blinded_planchet); +/** + * Generate packer instruction for a JSON field of type + * exchange withdraw values (/csr). + * + * @param name name of the field to add to the object + * @param ewv values to transmit + * @return json pack specification + */ +struct GNUNET_JSON_PackSpec +TALER_JSON_pack_exchange_withdraw_values ( + const char *name, + const struct TALER_ExchangeWithdrawValues *ewv); + + /** * Generate packer instruction for a JSON field of type * amount. @@ -274,6 +288,20 @@ TALER_JSON_spec_blinded_denom_sig ( struct TALER_BlindedDenominationSignature *sig); +/** + * Generate line in parser specification for + * exchange withdraw values (/csr). + * + * @param field name of the field + * @param[out] ewv the exchange withdraw values to initialize + * @return corresponding field spec + */ +struct GNUNET_JSON_Specification +TALER_JSON_spec_exchange_withdraw_values ( + const char *field, + struct TALER_ExchangeWithdrawValues *ewv); + + /** * Generate line in parser specification for a * blinded planchet. -- cgit v1.2.3