diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-05-18 21:05:19 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-05-18 21:05:19 +0200 |
commit | 83afcc2e6ab7e4be1b62614445087e4df22b83f7 (patch) | |
tree | 09535025454cd79471ee5ce1cdb59b524eb614e9 /src/testing/testing_api_cmd_post_transfers.c | |
parent | 031e2fed3aae424bc47f6634fa52415729c75ed3 (diff) |
implement delete transfer cmd
Diffstat (limited to 'src/testing/testing_api_cmd_post_transfers.c')
-rw-r--r-- | src/testing/testing_api_cmd_post_transfers.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/testing/testing_api_cmd_post_transfers.c b/src/testing/testing_api_cmd_post_transfers.c index 72b6f132..e78af34e 100644 --- a/src/testing/testing_api_cmd_post_transfers.c +++ b/src/testing/testing_api_cmd_post_transfers.c @@ -100,6 +100,12 @@ struct PostTransfersState const char **deposits; /** + * Serial number of the wire transfer in the merchant backend, + * set by #TALER_TESTING_cmd_merchant_get_transfers(). 0 if unknown. + */ + uint64_t serial; + + /** * Length of @e deposits. */ unsigned int deposits_length; @@ -338,6 +344,7 @@ post_transfers_traits (void *cls, TALER_TESTING_make_trait_amount_obj (1, &pts->wire_fee), TALER_TESTING_make_trait_string (1, pts->exchange_url), TALER_TESTING_make_trait_absolute_time (0, &pts->execution_time), + TALER_TESTING_make_trait_bank_row (&pts->serial), TALER_TESTING_trait_end (), }; @@ -537,4 +544,16 @@ TALER_TESTING_cmd_merchant_post_transfer ( } +void +TALER_TESTING_cmd_merchant_post_transfer_set_serial ( + struct TALER_TESTING_Command *cmd, + uint64_t serial) +{ + struct PostTransfersState *pts = cmd->cls; + + GNUNET_assert (cmd->run = &post_transfers_run); + pts->serial = serial; +} + + /* end of testing_api_cmd_post_transfers.c */ |