diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-10-14 21:06:47 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-10-14 21:06:47 +0200 |
commit | ca12adced4ab5a54d7ee25b40b49cd034b920cc8 (patch) | |
tree | c181ebd5850cd907ca73a078c2050859c113454c /src/include | |
parent | 7d62fa065bba408860a79fe121a62ef8f515159c (diff) | |
download | exchange-ca12adced4ab5a54d7ee25b40b49cd034b920cc8.tar.gz exchange-ca12adced4ab5a54d7ee25b40b49cd034b920cc8.tar.bz2 exchange-ca12adced4ab5a54d7ee25b40b49cd034b920cc8.zip |
-basic logic for withdraw KYC checks
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/taler_exchangedb_plugin.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/include/taler_exchangedb_plugin.h b/src/include/taler_exchangedb_plugin.h index d94a985d8..34196aadd 100644 --- a/src/include/taler_exchangedb_plugin.h +++ b/src/include/taler_exchangedb_plugin.h @@ -2012,6 +2012,18 @@ typedef enum GNUNET_GenericReturnValue /** + * Function called with the amounts historically + * withdrawn from the same origin account. + * + * @param cls closure + * @param val one of the withdrawn amounts + */ +typedef void +(*TALER_EXCHANGEDB_WithdrawHistoryCallback)( + void *cls, + const struct TALER_Amount *val); + +/** * Function called with details about expired reserves. * * @param cls closure @@ -2451,6 +2463,27 @@ struct TALER_EXCHANGEDB_Plugin /** + * Find out all of the amounts that have been withdrawn + * so far from the same bank account that created the + * given reserve. + * + * @param cls closure + * @param reserve_pub reserve to select withdrawals by + * @param duration how far back should we select withdrawals + * @param cb function to call on each amount withdrawn + * @param cb_cls closure for @a cb + * @return transaction status + */ + enum GNUNET_DB_QueryStatus + (*select_withdraw_amounts_by_account)( + void *cls, + const struct TALER_ReservePublicKeyP *reserve_pub, + struct GNUNET_TIME_Relative duration, + TALER_EXCHANGEDB_WithdrawHistoryCallback cb, + void *cb_cls); + + + /** * Free memory associated with the given reserve history. * * @param cls the @e cls of this struct with the plugin-specific state |