diff options
Diffstat (limited to 'src/include/taler_merchant_testing_lib.h')
-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 ******************* */ |