diff options
Diffstat (limited to 'src/bank-lib/test_bank_interpreter.h')
-rw-r--r-- | src/bank-lib/test_bank_interpreter.h | 29 |
1 files changed, 25 insertions, 4 deletions
diff --git a/src/bank-lib/test_bank_interpreter.h b/src/bank-lib/test_bank_interpreter.h index d4e9c1a6c..ed2a00df7 100644 --- a/src/bank-lib/test_bank_interpreter.h +++ b/src/bank-lib/test_bank_interpreter.h @@ -57,7 +57,12 @@ enum TBI_OpCode /** * Expect that we have exhaustively gone over all transfers at fakebank. */ - TBI_OC_EXPECT_TRANSFERS_EMPTY + TBI_OC_EXPECT_TRANSFERS_EMPTY, + + /** + * Reject incoming transfer. + */ + TBI_OC_REJECT }; @@ -110,10 +115,9 @@ struct TBI_Command const char *exchange_base_url; /** - * Wire transfer identifier to use. Initialized to - * a random value. + * Wire transfer subject to use. */ - struct TALER_WireTransferIdentifierRawP wtid; + const char *subject; /** * Which response code do we expect for this command? @@ -186,6 +190,23 @@ struct TBI_Command } expect_transfer; + /** + * Execute /reject operation. + */ + struct { + + /** + * Reference to the matching transfer that is now to be rejected. + */ + const char *cmd_ref; + + /** + * Set to the API's handle during the operation. + */ + struct TALER_BANK_RejectHandle *rh; + + } reject; + } details; }; |