summaryrefslogtreecommitdiff
path: root/src/backend/taler-merchant-httpd_private-post-orders-ID-refund.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-07-24 09:12:52 +0200
committerChristian Grothoff <christian@grothoff.org>2021-07-24 09:12:52 +0200
commitfb23045fe1d062cd4f26f3265ac94ded47660abd (patch)
treeb2c4f905f989aaca17830d18a1f7616753800993 /src/backend/taler-merchant-httpd_private-post-orders-ID-refund.c
parentf9fc9f73df9eb5544882815abe0afe8d789a4ef6 (diff)
downloadmerchant-fb23045fe1d062cd4f26f3265ac94ded47660abd.tar.gz
merchant-fb23045fe1d062cd4f26f3265ac94ded47660abd.tar.bz2
merchant-fb23045fe1d062cd4f26f3265ac94ded47660abd.zip
implement #6939 transformation
Diffstat (limited to 'src/backend/taler-merchant-httpd_private-post-orders-ID-refund.c')
-rw-r--r--src/backend/taler-merchant-httpd_private-post-orders-ID-refund.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/backend/taler-merchant-httpd_private-post-orders-ID-refund.c b/src/backend/taler-merchant-httpd_private-post-orders-ID-refund.c
index 4300c607..c0e4afb5 100644
--- a/src/backend/taler-merchant-httpd_private-post-orders-ID-refund.c
+++ b/src/backend/taler-merchant-httpd_private-post-orders-ID-refund.c
@@ -108,8 +108,11 @@ TMH_private_post_orders_ID_refund (const struct TMH_RequestHandler *rh,
struct TALER_Amount refund;
const char *reason;
struct GNUNET_JSON_Specification spec[] = {
- TALER_JSON_spec_amount ("refund", &refund),
- GNUNET_JSON_spec_string ("reason", &reason),
+ TALER_JSON_spec_amount ("refund",
+ TMH_currency,
+ &refund),
+ GNUNET_JSON_spec_string ("reason",
+ &reason),
GNUNET_JSON_spec_end ()
};
enum TALER_MERCHANTDB_RefundStatus rs;