From 36e15a501fc8285f75a0e403d4d64e46f77c732d Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 15 Dec 2019 18:16:33 +0100 Subject: purge history-range API, no longer needed (#5993) --- src/include/taler_bank_service.h | 35 ---------------------- src/include/taler_testing_bank_lib.h | 57 ------------------------------------ 2 files changed, 92 deletions(-) (limited to 'src/include') diff --git a/src/include/taler_bank_service.h b/src/include/taler_bank_service.h index b2a02f74..a7246ad2 100644 --- a/src/include/taler_bank_service.h +++ b/src/include/taler_bank_service.h @@ -289,41 +289,6 @@ TALER_BANK_history (struct GNUNET_CURL_Context *ctx, void *hres_cb_cls); -/** - * Request the wire transfer history of a bank account, - * using time stamps to narrow the results. - * - * @param ctx curl context for the event loop - * @param bank_base_url URL of the bank (used to execute this - * request) - * @param auth authentication data to use - * @param account_number which account number should we query - * @param direction what kinds of wire transfers should be - * returned - * @param ascending if GNUNET_YES, history elements will - * be returned in chronological order. - * @param start_date threshold for oldest result. - * @param end_date threshold for youngest result. - * @param hres_cb the callback to call with the transaction - * history - * @param hres_cb_cls closure for the above callback - * @return NULL if the inputs are invalid (i.e. zero value for - * @e num_results). In this case, the callback is not - * called. - */ -struct TALER_BANK_HistoryHandle * -TALER_BANK_history_range (struct GNUNET_CURL_Context *ctx, - const char *bank_base_url, - const struct TALER_BANK_AuthenticationData *auth, - uint64_t account_number, - enum TALER_BANK_Direction direction, - unsigned int ascending, - struct GNUNET_TIME_Absolute start_date, - struct GNUNET_TIME_Absolute end_date, - TALER_BANK_HistoryResultCallback hres_cb, - void *hres_cb_cls); - - /** * Cancel an history request. This function cannot be used on a request * handle if the last response (anything with a status code other than diff --git a/src/include/taler_testing_bank_lib.h b/src/include/taler_testing_bank_lib.h index 27db9d59..6b407197 100644 --- a/src/include/taler_testing_bank_lib.h +++ b/src/include/taler_testing_bank_lib.h @@ -126,63 +126,6 @@ TALER_TESTING_cmd_bank_history (const char *label, unsigned 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. * -- cgit v1.2.3