From dcc083c0959d395bcd4bcf9aee276eb96ea76dee Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 2 May 2020 17:11:55 +0200 Subject: POST /orders/ID/refund implementation --- ...-merchant-httpd_private-post-orders-ID-refund.h | 26 +++++++++------------- 1 file changed, 10 insertions(+), 16 deletions(-) (limited to 'src/backend/taler-merchant-httpd_private-post-orders-ID-refund.h') diff --git a/src/backend/taler-merchant-httpd_private-post-orders-ID-refund.h b/src/backend/taler-merchant-httpd_private-post-orders-ID-refund.h index ff178001..8912011c 100644 --- a/src/backend/taler-merchant-httpd_private-post-orders-ID-refund.h +++ b/src/backend/taler-merchant-httpd_private-post-orders-ID-refund.h @@ -1,6 +1,6 @@ /* This file is part of TALER - (C) 2014, 2015, 2016, 2017 Taler Systems SA + (C) 2014, 2015, 2016, 2017, 2020 Taler Systems SA TALER is free software; you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software @@ -13,15 +13,14 @@ You should have received a copy of the GNU General Public License along with TALER; see the file COPYING. If not, see */ - /** - * @file backend/taler-merchant-httpd_refund_increase.h - * @brief HTTP serving layer mainly intended to communicate with the frontend + * @file backend/taler-merchant-httpd_private-post-orders-ID-refund.h + * @brief Handle request to increase the refund for an order * @author Marcello Stanisci + * @author Christian Grothoff */ - -#ifndef TALER_MERCHANT_HTTPD_REFUND_INCREASE_H -#define TALER_MERCHANT_HTTPD_REFUND_INCREASE_H +#ifndef TALER_MERCHANT_HTTPD_PRIVATE_POST_ORDERS_ID_REFUND_H +#define TALER_MERCHANT_HTTPD_PRIVATE_POST_ORDERS_ID_REFUND_H #include #include "taler-merchant-httpd.h" @@ -30,20 +29,15 @@ * Handle request for increasing the refund associated with * a contract. * + * @param rh context of the handler * @param connection the MHD connection to handle - * @param[in,out] connection_cls the connection's closure (can be updated) - * @param upload_data upload data - * @param[in,out] upload_data_size number of bytes (left) in @a upload_data - * @param mi merchant backend instance, never NULL + * @param[in,out] hc context with further information about the request * @return MHD result code */ MHD_RESULT -MH_handler_refund_increase (struct TMH_RequestHandler *rh, +MH_handler_refund_increase (const struct TMH_RequestHandler *rh, struct MHD_Connection *connection, - void **connection_cls, - const char *upload_data, - size_t *upload_data_size, - struct MerchantInstance *mi); + struct TMH_HandlerContext *hc); #endif -- cgit v1.2.3