[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-merchant] branch master updated: ~25% of /refund lib
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-merchant] branch master updated: ~25% of /refund lib |
Date: |
Thu, 15 Jun 2017 09:51:30 +0200 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository merchant.
The following commit(s) were added to refs/heads/master by this push:
new dd10181 ~25% of /refund lib
dd10181 is described below
commit dd1018117a0c67f693e146709959eb29a9d0a7e5
Author: Marcello Stanisci <address@hidden>
AuthorDate: Thu Jun 15 09:51:28 2017 +0200
~25% of /refund lib
---
src/include/taler_merchant_service.h | 21 ++++++++++++++++++++-
src/lib/Makefile.am | 3 ++-
src/lib/merchant_api_proposal.c | 4 ++--
3 files changed, 24 insertions(+), 4 deletions(-)
diff --git a/src/include/taler_merchant_service.h
b/src/include/taler_merchant_service.h
index aee46af..e813851 100644
--- 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
index f228d1a..803a511 100644
--- 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
index 84f7045..f8f1ab7 100644
--- 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
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [taler-merchant] branch master updated: ~25% of /refund lib,
gnunet <=