summaryrefslogtreecommitdiff
path: root/src/bank-lib/test_bank_interpreter.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-05-04 23:52:54 +0200
committerChristian Grothoff <christian@grothoff.org>2017-05-04 23:52:54 +0200
commit69fa9b41d1896d2d2beeee086308f62b4f1e35c4 (patch)
tree8a6e021b1ecff81f32d3a52dd9cec98732c05a68 /src/bank-lib/test_bank_interpreter.h
parent0e632ffdd26d2473f476e6311f9ab544eb8c8a39 (diff)
downloadexchange-69fa9b41d1896d2d2beeee086308f62b4f1e35c4.tar.gz
exchange-69fa9b41d1896d2d2beeee086308f62b4f1e35c4.tar.bz2
exchange-69fa9b41d1896d2d2beeee086308f62b4f1e35c4.zip
start to add /history testing support to tests, fix some minor issues
Diffstat (limited to 'src/bank-lib/test_bank_interpreter.h')
-rw-r--r--src/bank-lib/test_bank_interpreter.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/bank-lib/test_bank_interpreter.h b/src/bank-lib/test_bank_interpreter.h
index 1f2772ca7..06b4e2d7f 100644
--- a/src/bank-lib/test_bank_interpreter.h
+++ b/src/bank-lib/test_bank_interpreter.h
@@ -45,6 +45,11 @@ enum TBI_OpCode
TBI_OC_ADMIN_ADD_INCOMING,
/**
+ * Request wire transfer history.
+ */
+ TBI_OC_HISTORY,
+
+ /**
* Expect that we have received the specified transfer at fakebank.
*/
TBI_OC_EXPECT_TRANSFER,
@@ -122,6 +127,36 @@ struct TBI_Command
} admin_add_incoming;
+ struct {
+
+ /**
+ * For which account do we query the history.
+ */
+ uint64_t account_number;
+
+ /**
+ * Which types of transactions should be listed?
+ */
+ enum TALER_BANK_Direction direction;
+
+ /**
+ * At which offset do we start?
+ * Use UINT64_MAX or 0 for the extremes.
+ */
+ uint64_t start_row;
+
+ /**
+ * How many results should be returned (if available)?
+ */
+ int64_t num_results;
+
+ /**
+ * Set to the API's handle during the operation.
+ */
+ struct TALER_BANK_HistoryHandle *hh;
+
+ } history;
+
/**
* If @e opcode is #TBI_OC_EXPECT_TRANSFER, this
* specifies which transfer we expected.