merchant

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

commit 6457b1aa2168dda6e33f6ac4702cad2f932d5f7b
parent 23c362cf59f8580556d556d0740c93ef420c6b51
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sun,  2 Mar 2025 00:54:33 +0100

-adjust to latest exchange API

Diffstat:
Msrc/backend/taler-merchant-httpd_get-orders-ID.c | 8++++----
Msrc/backend/taler-merchant-httpd_private-get-orders-ID.c | 8++++----
Msrc/backend/taler-merchant-httpd_private-get-orders.c | 24++++++++++++------------
Msrc/backend/taler-merchant-httpd_private-get-transfers.c | 8++++----
4 files changed, 24 insertions(+), 24 deletions(-)

diff --git a/src/backend/taler-merchant-httpd_get-orders-ID.c b/src/backend/taler-merchant-httpd_get-orders-ID.c @@ -1613,10 +1613,10 @@ TMH_get_orders_ID (const struct TMH_RequestHandler *rh, "token", &god->claim_token, god->claim_token_provided); - if (! (TALER_arg_to_yna (connection, - "allow_refunded_for_repurchase", - TALER_EXCHANGE_YNA_NO, - &god->allow_refunded_for_repurchase)) ) + if (! (TALER_MHD_arg_to_yna (connection, + "allow_refunded_for_repurchase", + TALER_EXCHANGE_YNA_NO, + &god->allow_refunded_for_repurchase)) ) return TALER_MHD_reply_with_error (connection, MHD_HTTP_BAD_REQUEST, TALER_EC_GENERIC_PARAMETER_MALFORMED, diff --git a/src/backend/taler-merchant-httpd_private-get-orders-ID.c b/src/backend/taler-merchant-httpd_private-get-orders-ID.c @@ -1518,10 +1518,10 @@ TMH_private_get_orders_ID ( gorc->session_id = MHD_lookup_connection_value (connection, MHD_GET_ARGUMENT_KIND, "session_id"); - if (! (TALER_arg_to_yna (connection, - "allow_refunded_for_repurchase", - TALER_EXCHANGE_YNA_NO, - &gorc->allow_refunded_for_repurchase)) ) + if (! (TALER_MHD_arg_to_yna (connection, + "allow_refunded_for_repurchase", + TALER_EXCHANGE_YNA_NO, + &gorc->allow_refunded_for_repurchase)) ) return TALER_MHD_reply_with_error (connection, MHD_HTTP_BAD_REQUEST, TALER_EC_GENERIC_PARAMETER_MALFORMED, diff --git a/src/backend/taler-merchant-httpd_private-get-orders.c b/src/backend/taler-merchant-httpd_private-get-orders.c @@ -674,10 +674,10 @@ TMH_private_get_orders (const struct TMH_RequestHandler *rh, po->instance_id = hc->instance->settings.id; po->mi = hc->instance; - if (! (TALER_arg_to_yna (connection, - "paid", - TALER_EXCHANGE_YNA_ALL, - &po->of.paid)) ) + if (! (TALER_MHD_arg_to_yna (connection, + "paid", + TALER_EXCHANGE_YNA_ALL, + &po->of.paid)) ) { GNUNET_break_op (0); return TALER_MHD_reply_with_error (connection, @@ -685,10 +685,10 @@ TMH_private_get_orders (const struct TMH_RequestHandler *rh, TALER_EC_GENERIC_PARAMETER_MALFORMED, "paid"); } - if (! (TALER_arg_to_yna (connection, - "refunded", - TALER_EXCHANGE_YNA_ALL, - &po->of.refunded)) ) + if (! (TALER_MHD_arg_to_yna (connection, + "refunded", + TALER_EXCHANGE_YNA_ALL, + &po->of.refunded)) ) { GNUNET_break_op (0); return TALER_MHD_reply_with_error (connection, @@ -696,10 +696,10 @@ TMH_private_get_orders (const struct TMH_RequestHandler *rh, TALER_EC_GENERIC_PARAMETER_MALFORMED, "refunded"); } - if (! (TALER_arg_to_yna (connection, - "wired", - TALER_EXCHANGE_YNA_ALL, - &po->of.wired)) ) + if (! (TALER_MHD_arg_to_yna (connection, + "wired", + TALER_EXCHANGE_YNA_ALL, + &po->of.wired)) ) { GNUNET_break_op (0); return TALER_MHD_reply_with_error (connection, diff --git a/src/backend/taler-merchant-httpd_private-get-transfers.c b/src/backend/taler-merchant-httpd_private-get-transfers.c @@ -159,10 +159,10 @@ TMH_private_get_transfers (const struct TMH_RequestHandler *rh, TALER_MHD_parse_request_number (connection, "offset", &offset); - if (! (TALER_arg_to_yna (connection, - "verified", - TALER_EXCHANGE_YNA_ALL, - &verified)) ) + if (! (TALER_MHD_arg_to_yna (connection, + "verified", + TALER_EXCHANGE_YNA_ALL, + &verified)) ) return TALER_MHD_reply_with_error (connection, MHD_HTTP_BAD_REQUEST, TALER_EC_GENERIC_PARAMETER_MALFORMED,