summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorJonathan Buchanan <jonathan.russ.buchanan@gmail.com>2020-06-13 03:22:22 -0400
committerJonathan Buchanan <jonathan.russ.buchanan@gmail.com>2020-06-13 03:22:22 -0400
commit2f853bebd269b51536bc357c9ae76d5aa24b9d3a (patch)
tree368ec059e00432b2c664c387f1932761530c1abf /src/include
parentf0411396fada5862ce16b56dc57513b9aa79b706 (diff)
downloadmerchant-2f853bebd269b51536bc357c9ae76d5aa24b9d3a.tar.gz
merchant-2f853bebd269b51536bc357c9ae76d5aa24b9d3a.tar.bz2
merchant-2f853bebd269b51536bc357c9ae76d5aa24b9d3a.zip
test DELETE /private/reserves/
Diffstat (limited to 'src/include')
-rw-r--r--src/include/taler_merchant_testing_lib.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/include/taler_merchant_testing_lib.h b/src/include/taler_merchant_testing_lib.h
index c38ac880..9fb9e573 100644
--- a/src/include/taler_merchant_testing_lib.h
+++ b/src/include/taler_merchant_testing_lib.h
@@ -562,6 +562,7 @@ TALER_TESTING_cmd_merchant_get_transfers (const char *label,
/* ******************* /reserves *************** */
+
/**
* Define a "POST /reserves" CMD
*
@@ -581,6 +582,41 @@ TALER_TESTING_cmd_merchant_post_reserves (const char *label,
const char *wire_method,
unsigned int http_status);
+
+/**
+ * Define a "DELETE reserve" CMD.
+ *
+ * @param label command label.
+ * @param merchant_url base URL of the merchant serving the
+ * DELETE /reserves/$RESERVE_PUB request.
+ * @param reserve_reference command label of a command providing a reserve
+ * @param http_status expected HTTP response code.
+ * @return the command.
+ */
+struct TALER_TESTING_Command
+TALER_TESTING_cmd_merchant_delete_reserve (const char *label,
+ const char *merchant_url,
+ const char *reserve_reference,
+ unsigned int http_status);
+
+
+/**
+ * Define a "PURGE reserve" CMD.
+ *
+ * @param label command label.
+ * @param merchant_url base URL of the merchant serving the
+ * DELETE /reserves/$RESERVE_PUB request.
+ * @param reserve_reference command label of a command providing a reserve
+ * @param http_status expected HTTP response code.
+ * @return the command.
+ */
+struct TALER_TESTING_Command
+TALER_TESTING_cmd_merchant_purge_reserve (const char *label,
+ const char *merchant_url,
+ const char *reserve_reference,
+ unsigned int http_status);
+
+
/**
* Define a get tips CMD.
*
@@ -595,6 +631,7 @@ TALER_TESTING_cmd_get_tips (const char *label,
const char *merchant_url,
unsigned int http_status);
+
/* ******************** OLD ******************* */