summaryrefslogtreecommitdiff
path: root/src/backend/taler-merchant-httpd_get-orders-ID.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-05-04 00:25:27 +0200
committerChristian Grothoff <christian@grothoff.org>2020-05-04 00:25:27 +0200
commite138cd0e5adff973cf1f065e3fd5588f4bd33ddc (patch)
tree8621e100caa867fcf64708ead7b11f7b1d892485 /src/backend/taler-merchant-httpd_get-orders-ID.h
parent2a5388a263a2edb63dee7865d9da2d9b6db65f6e (diff)
downloadmerchant-e138cd0e5adff973cf1f065e3fd5588f4bd33ddc.tar.gz
merchant-e138cd0e5adff973cf1f065e3fd5588f4bd33ddc.tar.bz2
merchant-e138cd0e5adff973cf1f065e3fd5588f4bd33ddc.zip
starting with get-orders-ID logic
Diffstat (limited to 'src/backend/taler-merchant-httpd_get-orders-ID.h')
-rw-r--r--src/backend/taler-merchant-httpd_get-orders-ID.h28
1 files changed, 10 insertions, 18 deletions
diff --git a/src/backend/taler-merchant-httpd_get-orders-ID.h b/src/backend/taler-merchant-httpd_get-orders-ID.h
index 24495daf..3aa157da 100644
--- a/src/backend/taler-merchant-httpd_get-orders-ID.h
+++ b/src/backend/taler-merchant-httpd_get-orders-ID.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,36 +13,28 @@
You should have received a copy of the GNU General Public License along with
TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
*/
-
/**
- * @file backend/taler-merchant-httpd_refund_lookup.h
- * @brief
+ * @file backend/taler-merchant-httpd_get-orders-ID.h
+ * @brief implementation of GET /orders/$ID
* @author Marcello Stanisci
*/
-
-#ifndef TALER_MERCHANT_HTTPD_REFUND_LOOKUP_H
-#define TALER_MERCHANT_HTTPD_REFUND_LOOKUP_H
+#ifndef TALER_MERCHANT_HTTPD_GET_ORDERS_ID_H
+#define TALER_MERCHANT_HTTPD_GET_ORDERS_ID_H
#include <microhttpd.h>
#include "taler-merchant-httpd.h"
/**
- * Return refund situation about a contract.
+ * Handle a GET "/orders/$ID" request.
*
* @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_lookup (struct TMH_RequestHandler *rh,
- struct MHD_Connection *connection,
- void **connection_cls,
- const char *upload_data,
- size_t *upload_data_size,
- struct MerchantInstance *mi);
+TMH_get_orders_ID (const struct TMH_RequestHandler *rh,
+ struct MHD_Connection *connection,
+ struct TMH_HandlerContext *hc);
#endif