summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorJonathan Buchanan <jonathan.russ.buchanan@gmail.com>2020-07-07 05:52:23 -0400
committerJonathan Buchanan <jonathan.russ.buchanan@gmail.com>2020-07-07 05:52:23 -0400
commit5eb0a2e98faecfec89add4845f817548b3fee86b (patch)
tree113ddae80b46f5f34a2ae7f4159323d98bf021fd /src/include
parent002772c388aaa794c068c9239565c8467f6c65a8 (diff)
downloadmerchant-5eb0a2e98faecfec89add4845f817548b3fee86b.tar.gz
merchant-5eb0a2e98faecfec89add4845f817548b3fee86b.tar.bz2
merchant-5eb0a2e98faecfec89add4845f817548b3fee86b.zip
fixed merchant get order with transfer status
Diffstat (limited to 'src/include')
-rw-r--r--src/include/taler_merchant_testing_lib.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/include/taler_merchant_testing_lib.h b/src/include/taler_merchant_testing_lib.h
index 07d572a9..83201005 100644
--- a/src/include/taler_merchant_testing_lib.h
+++ b/src/include/taler_merchant_testing_lib.h
@@ -544,6 +544,38 @@ TALER_TESTING_cmd_merchant_get_order (const char *label,
/**
+ * Define a GET /private/orders/$ORDER_ID CMD.
+ *
+ * @param label the command label
+ * @param merchant_url base URL of the merchant which will
+ * serve the request.
+ * @param order_reference reference to a command that created an order.
+ * @param paid whether the order has been paid for or not.
+ * @param wired whether the order has been wired or not.
+ * @param transfers NULL-terminated list of labels (const char *) of
+ * wire transfers (commands) we expect to be aggregated in the order
+ * (assuming @a http_code is #MHD_HTTP_OK). If @e paid is fale, this
+ * parameter is ignored.
+ * @param refunded whether the order has been refunded.
+ * @param refunds NULL-terminated list of labels (const char *) of
+ * refunds (commands) we expect to be aggregated in the order
+ * (assuming @a http_code is #MHD_HTTP_OK). If @e refunded is false,
+ * this parameter is ignored.
+ * @param http_status expected HTTP response code for the request.
+ */
+struct TALER_TESTING_Command
+TALER_TESTING_cmd_merchant_get_order2 (const char *label,
+ const char *merchant_url,
+ const char *order_reference,
+ bool paid,
+ bool wired,
+ const char **transfers,
+ bool refunded,
+ const char **refunds,
+ unsigned int http_status);
+
+
+/**
* Start a long poll for GET /private/orders/$ORDER_ID.
*/
struct TALER_TESTING_Command