commit dd1018117a0c67f693e146709959eb29a9d0a7e5
parent e5d817ebb7cb1934b17639638c33129f5f3e6256
Author: Marcello Stanisci <marcello.stanisci@inria.fr>
Date: Thu, 15 Jun 2017 09:51:28 +0200
~25% of /refund lib
Diffstat:
3 files changed, 24 insertions(+), 4 deletions(-)
diff --git a/src/include/taler_merchant_service.h b/src/include/taler_merchant_service.h
@@ -28,7 +28,26 @@
#include <jansson.h>
-/* ********************* /map/{in,out} *********************** */
+/* ********************* /refund ************************** */
+
+struct TALER_MERCHANT_RefundIncreaseOperation;
+
+/**
+ * Callbacks of this type get passed the result of a GET /refund
+ * request to the backend.
+ *
+ * @param cls closure
+ * @param http_status the HTTP status of the connection to the backend
+ * @param ec taler-specific error code
+ * @param obj the resposne in JSON format. NOTE, this object is an array,
+ * so it makes little sense to extract values from it and serve them to the
+ * callback.
+ */
+typedef void
+(*TALER_MERCHANT_RefundIncreaseCallback) (void *cls,
+ unsigned int http_status,
+ enum TALER_ErrorCode ec,
+ const json_t *obj);
/* ********************* /proposal *********************** */
diff --git a/src/lib/Makefile.am b/src/lib/Makefile.am
@@ -18,7 +18,8 @@ libtalermerchant_la_SOURCES = \
merchant_api_pay.c \
merchant_api_track_transaction.c \
merchant_api_track_transfer.c \
- merchant_api_history.c
+ merchant_api_history.c \
+ merchant_api_refund.c
libtalermerchant_la_LIBADD = \
-ltalerexchange \
diff --git a/src/lib/merchant_api_proposal.c b/src/lib/merchant_api_proposal.c
@@ -16,7 +16,7 @@
*/
/**
* @file lib/merchant_api_proposal.c
- * @brief Implementation of the /proposal PUT and GET
+ * @brief Implementation of the /proposal POST and GET
* @author Christian Grothoff
* @author Marcello Stanisci
*/
@@ -192,7 +192,7 @@ handle_proposal_finished (void *cls,
/**
- * PUT an order to the backend and receives the related proposal.
+ * POST an order to the backend and receives the related proposal.
*
* @param ctx execution context
* @param backend_uri URI of the backend