summaryrefslogtreecommitdiff
path: root/src/include/taler_merchant_testing_lib.h
diff options
context:
space:
mode:
authorJonathan Buchanan <jonathan.russ.buchanan@gmail.com>2020-07-06 21:32:26 -0400
committerJonathan Buchanan <jonathan.russ.buchanan@gmail.com>2020-07-06 21:32:26 -0400
commit002772c388aaa794c068c9239565c8467f6c65a8 (patch)
treeb19a017773da518f1b7ac1e2fd87c7686a9bd23a /src/include/taler_merchant_testing_lib.h
parent85a02216d8a1926f2a528e0bae64c76410a6263d (diff)
downloadmerchant-002772c388aaa794c068c9239565c8467f6c65a8.tar.gz
merchant-002772c388aaa794c068c9239565c8467f6c65a8.tar.bz2
merchant-002772c388aaa794c068c9239565c8467f6c65a8.zip
do test for lock product
Diffstat (limited to 'src/include/taler_merchant_testing_lib.h')
-rw-r--r--src/include/taler_merchant_testing_lib.h22
1 files changed, 22 insertions, 0 deletions
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
@@ -398,6 +398,28 @@ TALER_TESTING_cmd_merchant_get_product (const char *label,
/**
+ * 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.
*
* @param label command label.