summaryrefslogtreecommitdiff
path: root/src/include/taler_merchant_service.h
diff options
context:
space:
mode:
authorMarcello Stanisci <marcello.stanisci@inria.fr>2017-06-19 11:30:45 +0200
committerMarcello Stanisci <marcello.stanisci@inria.fr>2017-06-19 11:30:45 +0200
commita6b996f6a2ee55dff2c33bb9b8ef209b532c8bf3 (patch)
tree300f03176e9df813839c9186567b689a9f581f61 /src/include/taler_merchant_service.h
parent8ef1f72ca93cebceed0c4b99b59d8fd70ac38d01 (diff)
downloadmerchant-a6b996f6a2ee55dff2c33bb9b8ef209b532c8bf3.tar.gz
merchant-a6b996f6a2ee55dff2c33bb9b8ef209b532c8bf3.tar.bz2
merchant-a6b996f6a2ee55dff2c33bb9b8ef209b532c8bf3.zip
/refund lib, issuing the POST and defining cb skeleton
Diffstat (limited to 'src/include/taler_merchant_service.h')
-rw-r--r--src/include/taler_merchant_service.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/include/taler_merchant_service.h b/src/include/taler_merchant_service.h
index e813851c..15287c55 100644
--- a/src/include/taler_merchant_service.h
+++ b/src/include/taler_merchant_service.h
@@ -621,4 +621,28 @@ TALER_MERCHANT_history (struct GNUNET_CURL_Context *ctx,
void
TALER_MERCHANT_history_cancel (struct TALER_MERCHANT_HistoryOperation *ho);
+/************************ /refund ****************************/
+
+/**
+ * Increase the refund associated to a order
+ *
+ * @param ctx the CURL context used to connect to the backend
+ * @param backend_uri backend's base URL, including final "/"
+ * @param order_id id of the order whose refund is to be increased
+ * @param refund amount to which increase the refund
+ * @param reason human-readable reason justifying the refund
+ * @param instance id of the merchant instance issuing the request
+ * @param cb callback processing the response from /refund
+ * @param cb_cls closure for cb
+ */
+struct TALER_MERCHANT_RefundIncreaseOperation *
+TALER_MERCHANT_refund_increase (struct GNUNET_CURL_Context *ctx,
+ const char *backend_uri,
+ const char *order_id,
+ const struct TALER_Amount *refund,
+ const char *reason,
+ const char *instance,
+ TALER_MERCHANT_RefundIncreaseCallback cb,
+ void *cb_cls);
+
#endif /* _TALER_MERCHANT_SERVICE_H */