From 381ac75ae0a29edb6585cc68fbd2b81b1aeaff85 Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Thu, 17 May 2018 15:50:50 +0200 Subject: Trigger conflicting refunds --- src/include/taler_testing_lib.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'src/include/taler_testing_lib.h') 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 @@ -828,6 +828,26 @@ TALER_TESTING_cmd_check_bank_transfer_with_ref 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. * -- cgit v1.2.3