diff options
author | ng0 <ng0@n0.is> | 2019-04-10 20:49:59 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2019-04-10 20:51:36 +0000 |
commit | 71acaff203586a956c71f0e90317d5fff0a50e14 (patch) | |
tree | fa2abb2a5b48894783da859e74c1966772be3ddf /src/include/taler_testing_bank_lib.h | |
parent | 2699155b81f8db564e27610896eb2af0c3e88c6d (diff) | |
parent | a73e1dd4198bd7fe83e6e00ee01fe5a83bbaa41d (diff) | |
download | exchange-71acaff203586a956c71f0e90317d5fff0a50e14.tar.gz exchange-71acaff203586a956c71f0e90317d5fff0a50e14.tar.bz2 exchange-71acaff203586a956c71f0e90317d5fff0a50e14.zip |
Merge branch 'master' of git.taler.net:exchange
Diffstat (limited to 'src/include/taler_testing_bank_lib.h')
-rw-r--r-- | src/include/taler_testing_bank_lib.h | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/src/include/taler_testing_bank_lib.h b/src/include/taler_testing_bank_lib.h index a3cc741e6..5beaf97f6 100644 --- a/src/include/taler_testing_bank_lib.h +++ b/src/include/taler_testing_bank_lib.h @@ -109,6 +109,63 @@ TALER_TESTING_cmd_bank_history const char *start_row_reference, long long num_results); + +/** + * Make a "history-range" CMD, picking dates from the arguments. + * + * @param label command label. + * @param bank_url base URL of the bank offering the "history" + * operation. + * @param account_no bank account number to ask the history for. + * @param direction which direction this operation is interested. + * @param ascending if GNUNET_YES, the bank will return the rows + * in ascending (= chronological) order. + * @param start_date value for the 'start' argument + * of "/history-range". + * @param end_date value for the 'end' argument + * of "/history-range". + * @return the command. + */ +struct TALER_TESTING_Command +TALER_TESTING_cmd_bank_history_range_with_dates + (const char *label, + const char *bank_url, + uint64_t account_no, + enum TALER_BANK_Direction direction, + unsigned int ascending, + struct GNUNET_TIME_Absolute start_date, + struct GNUNET_TIME_Absolute end_date); + + +/** + * Make a "history-range" CMD, picking dates from traits. + * + * @param label command label. + * @param bank_url base URL of the bank offering the "history" + * operation. + * @param account_no bank account number to ask the history for. + * @param direction which direction this operation is interested. + * @param ascending if GNUNET_YES, the bank will return the rows + * in ascending (= chronological) order. + * @param start_row_reference reference to a command that can + * offer a absolute time to use as the 'start' argument + * for "/history-range". + * @param end_row_reference reference to a command that can + * offer a absolute time to use as the 'end' argument + * for "/history-range". + * @return the command. + */ +struct TALER_TESTING_Command +TALER_TESTING_cmd_bank_history_range + (const char *label, + const char *bank_url, + uint64_t account_no, + enum TALER_BANK_Direction direction, + unsigned int ascending, + const char *start_row_reference, + const char *end_row_reference); + + /** * Create a "reject" CMD. * |