summaryrefslogtreecommitdiff
path: root/src/backend/taler-merchant-httpd_post-orders-ID-claim.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-04-27 05:44:17 +0200
committerChristian Grothoff <christian@grothoff.org>2020-04-27 05:44:17 +0200
commit255f162ddb88e932d087574a52d959a7a1d5ba80 (patch)
treeae1c3da206a4cb6da5a8317b8e6a4f58004ec3cd /src/backend/taler-merchant-httpd_post-orders-ID-claim.h
parenteef2a6453518a039de604a25fbc42865cf4b585f (diff)
downloadmerchant-255f162ddb88e932d087574a52d959a7a1d5ba80.tar.gz
merchant-255f162ddb88e932d087574a52d959a7a1d5ba80.tar.bz2
merchant-255f162ddb88e932d087574a52d959a7a1d5ba80.zip
work on POST /orders/ID/claim (unfinished)
Diffstat (limited to 'src/backend/taler-merchant-httpd_post-orders-ID-claim.h')
-rw-r--r--src/backend/taler-merchant-httpd_post-orders-ID-claim.h31
1 files changed, 13 insertions, 18 deletions
diff --git a/src/backend/taler-merchant-httpd_post-orders-ID-claim.h b/src/backend/taler-merchant-httpd_post-orders-ID-claim.h
index 677fee0e..5da16070 100644
--- a/src/backend/taler-merchant-httpd_post-orders-ID-claim.h
+++ b/src/backend/taler-merchant-httpd_post-orders-ID-claim.h
@@ -1,6 +1,6 @@
/*
This file is part of TALER
- (C) 2014, 2015 INRIA
+ (C) 2014, 2015, 2020 Taler Systems SA
TALER is free software; you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
@@ -14,34 +14,29 @@
TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
*/
/**
- * @file backend/taler-merchant-httpd_propose.h
- * @brief headers for /contract handler
+ * @file backend/taler-merchant-httpd_post-orders-ID-claim.h
+ * @brief headers for POST /orders/$ID/claim handler
* @author Marcello Stanisci
+ * @author Christian Grothoff
*/
-#ifndef TALER_MERCHANT_HTTPD_CONTRACT_H
-#define TALER_MERCHANT_HTTPD_CONTRACT_H
+#ifndef TALER_MERCHANT_HTTPD_POST_ORDERS_ID_CLAIM_H
+#define TALER_MERCHANT_HTTPD_POST_ORDERS_ID_CLAIM_H
#include <microhttpd.h>
#include "taler-merchant-httpd.h"
/**
- * Manage a GET /proposal request. Query the db and returns the
- * proposal's data related to the transaction id given as the URL's
- * parameter.
+ * Manage a POST /orders/$ID/claim request. Allows the client to
+ * claim the order (unless already claims) and creates the respective
+ * contract. Returns the contract terms.
*
* @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_proposal_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_post_orders_ID_claim (const struct TMH_RequestHandler *rh,
+ struct MHD_Connection *connection,
+ struct TMH_HandlerContext *hc);
#endif