From 002772c388aaa794c068c9239565c8467f6c65a8 Mon Sep 17 00:00:00 2001 From: Jonathan Buchanan Date: Mon, 6 Jul 2020 21:32:26 -0400 Subject: do test for lock product --- src/include/taler_merchant_testing_lib.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'src/include/taler_merchant_testing_lib.h') diff --git a/src/include/taler_merchant_testing_lib.h b/src/include/taler_merchant_testing_lib.h index 7b978157..07d572a9 100644 --- a/src/include/taler_merchant_testing_lib.h +++ b/src/include/taler_merchant_testing_lib.h @@ -397,6 +397,28 @@ TALER_TESTING_cmd_merchant_get_product (const char *label, const char *product_reference); +/** + * Define a "LOCK /products/$ID" CMD. + * + * @param label command label. + * @param merchant_url base URL of the merchant serving the + * LOCK /product request. + * @param product_id the ID of the product to lock. + * @param duration how long the lock should last. + * @param quantity how money units to lock. + * @param http_status expected HTTP response code. + * @return the command. + */ +struct TALER_TESTING_Command +TALER_TESTING_cmd_merchant_lock_product ( + const char *label, + const char *merchant_url, + const char *product_id, + struct GNUNET_TIME_Relative duration, + uint32_t quantity, + unsigned int http_status); + + /** * Define a "DELETE product" CMD. * -- cgit v1.2.3