aboutsummaryrefslogtreecommitdiff
path: root/src/include/taler_testing_lib.h
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2018-05-17 15:50:50 +0200
committerMarcello Stanisci <stanisci.m@gmail.com>2018-05-17 15:50:50 +0200
commit381ac75ae0a29edb6585cc68fbd2b81b1aeaff85 (patch)
tree83c31b8d6099395924bdcf902a020f46545932d3 /src/include/taler_testing_lib.h
parent5e1178a74b9d581910bb1067a195e59f3c6ddcd2 (diff)
Trigger conflicting refunds
Diffstat (limited to 'src/include/taler_testing_lib.h')
-rw-r--r--src/include/taler_testing_lib.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/include/taler_testing_lib.h b/src/include/taler_testing_lib.h
index 910495e4b..f7d3cca76 100644
--- a/src/include/taler_testing_lib.h
+++ b/src/include/taler_testing_lib.h
@@ -829,6 +829,26 @@ struct TALER_TESTING_Command
TALER_TESTING_cmd_check_bank_empty (const char *label);
/**
+ * Create a /refund test command, allows to specify refund
+ * transaction id.
+ *
+ * @param label command label
+ * @param expected_response_code expected HTTP status code
+ * @param refund_amount the amount to ask a refund for
+ * @param refund_fee expected refund fee
+ * @param coin_reference reference to a command that can
+ * provide a coin to be refunded.
+ */
+struct TALER_TESTING_Command
+TALER_TESTING_cmd_refund_with_id
+ (const char *label,
+ unsigned int expected_response_code,
+ const char *refund_amount,
+ const char *refund_fee,
+ const char *deposit_reference,
+ uint64_t refund_transaction_id);
+
+/**
* Create a /refund test command.
*
* @param label command label