diff options
author | Jonathan Buchanan <jonathan.russ.buchanan@gmail.com> | 2020-06-13 03:22:22 -0400 |
---|---|---|
committer | Jonathan Buchanan <jonathan.russ.buchanan@gmail.com> | 2020-06-13 03:22:22 -0400 |
commit | 2f853bebd269b51536bc357c9ae76d5aa24b9d3a (patch) | |
tree | 368ec059e00432b2c664c387f1932761530c1abf /src/include | |
parent | f0411396fada5862ce16b56dc57513b9aa79b706 (diff) | |
download | merchant-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.h | 37 |
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 ******************* */ |