summaryrefslogtreecommitdiff
path: root/src/include/taler_merchant_testing_lib.h
diff options
context:
space:
mode:
authorJonathan Buchanan <jonathan.russ.buchanan@gmail.com>2020-07-11 19:55:28 -0400
committerJonathan Buchanan <jonathan.russ.buchanan@gmail.com>2020-07-11 19:55:28 -0400
commitecb3a2afa27257816b34e4e959d98424ef123033 (patch)
tree7c75fe2d6e4a11357d26b24f0a3e70ba0ee4f0ce /src/include/taler_merchant_testing_lib.h
parentd299f7e7d288309dc696962edd9ce257d2c1a926 (diff)
downloadmerchant-ecb3a2afa27257816b34e4e959d98424ef123033.tar.gz
merchant-ecb3a2afa27257816b34e4e959d98424ef123033.tar.bz2
merchant-ecb3a2afa27257816b34e4e959d98424ef123033.zip
clean up testing post orders cmd
Diffstat (limited to 'src/include/taler_merchant_testing_lib.h')
-rw-r--r--src/include/taler_merchant_testing_lib.h25
1 files changed, 20 insertions, 5 deletions
diff --git a/src/include/taler_merchant_testing_lib.h b/src/include/taler_merchant_testing_lib.h
index 89f45307..d5453068 100644
--- a/src/include/taler_merchant_testing_lib.h
+++ b/src/include/taler_merchant_testing_lib.h
@@ -474,15 +474,22 @@ TALER_TESTING_cmd_merchant_delete_product (const char *label,
* @param merchant_url base URL of the merchant serving
* the proposal request.
* @param http_status expected HTTP status.
- * @param order the order to PUT to the merchant.
- *
+ * @param order_id the name of the order to add.
+ * @param refund_deadline the deadline for refunds on this order.
+ * @param pay_deadline the deadline for payment on this order.
+ * @param amount the amount this order is for.
* @return the command
*/
struct TALER_TESTING_Command
TALER_TESTING_cmd_merchant_post_orders (const char *label,
const char *merchant_url,
unsigned int http_status,
- const char *order);
+ const char *order_id,
+ struct GNUNET_TIME_Absolute
+ refund_deadline,
+ struct GNUNET_TIME_Absolute
+ pay_deadline,
+ const char *amount);
/**
@@ -492,7 +499,10 @@ TALER_TESTING_cmd_merchant_post_orders (const char *label,
* @param merchant_url base URL of the merchant serving
* the proposal request.
* @param http_status expected HTTP status.
- * @param order the order to PUT to the merchant.
+ * @param order_id the name of the order to add.
+ * @param refund_deadline the deadline for refunds on this order.
+ * @param pay_deadline the deadline for payment on this order.
+ * @param amount the amount this order is for.
* @param payment_target payment target for the order.
* @param products a string indicating the products this order will be
* purchasing. Should be formatted as
@@ -505,7 +515,12 @@ struct TALER_TESTING_Command
TALER_TESTING_cmd_merchant_post_orders2 (const char *label,
const char *merchant_url,
unsigned int http_status,
- const char *order,
+ const char *order_id,
+ struct GNUNET_TIME_Absolute
+ refund_deadline,
+ struct GNUNET_TIME_Absolute
+ pay_deadline,
+ const char *amount,
const char *payment_target,
const char *products,
const char *locks);