summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2019-04-11 18:06:19 +0200
committerMarcello Stanisci <stanisci.m@gmail.com>2019-04-11 18:06:19 +0200
commit9b33452ad515ef8bae0552fd5df8fd29146b7dba (patch)
tree0a0c51cad42f50cabee50af5555c1bb23afcd77a /src/include
parentba4ded3d6e038096c9a0ad6b32546716c418110a (diff)
downloadexchange-9b33452ad515ef8bae0552fd5df8fd29146b7dba.tar.gz
exchange-9b33452ad515ef8bae0552fd5df8fd29146b7dba.tar.bz2
exchange-9b33452ad515ef8bae0552fd5df8fd29146b7dba.zip
Introduce new "history range" wire API.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/taler_wire_plugin.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/include/taler_wire_plugin.h b/src/include/taler_wire_plugin.h
index 57122a437..ff89593eb 100644
--- a/src/include/taler_wire_plugin.h
+++ b/src/include/taler_wire_plugin.h
@@ -310,6 +310,30 @@ struct TALER_WIRE_Plugin
TALER_WIRE_HistoryResultCallback hres_cb,
void *hres_cb_cls);
+ /**
+ * Query transfer history of an account. The query is based on
+ * the dates where the wire transfers got settled at the bank.
+ *
+ * @param cls the @e cls of this struct with the plugin-specific state
+ * @param account_section specifies the configuration section which
+ * identifies the account for which we should get the history
+ * @param direction what kinds of wire transfers should be returned
+ * @param start_date each history entry in the result will be time
+ * stamped after, or at this date.
+ * @param end_date each history entry in the result will be time
+ * stamped before, or at this date.
+ * @param hres_cb the callback to call with the transaction history
+ * @param hres_cb_cls closure for the above callback
+ * @param return the operation handle, or NULL on errors.
+ */
+ struct TALER_WIRE_HistoryHandle *
+ (*get_history_range) (void *cls,
+ const char *account_section,
+ enum TALER_BANK_Direction direction,
+ struct GNUNET_TIME_Absolute start_date,
+ struct GNUNET_TIME_Absolute end_date,
+ TALER_WIRE_HistoryResultCallback hres_cb,
+ void *hres_cb_cls);
/**
* Cancel going over the account's history.