diff options
author | Christian Grothoff <christian@grothoff.org> | 2024-09-01 15:32:58 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2024-09-01 15:32:58 +0200 |
commit | 39e51a95be1539467efc146bf72e88631414ef9d (patch) | |
tree | 8c8a8371c50d0430c32d93a69836b5f1b15ad52e /src/include | |
parent | 262ecc1dec0d764878b02c3eaee83da3370f1592 (diff) |
work on #9039
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/taler_exchangedb_plugin.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/include/taler_exchangedb_plugin.h b/src/include/taler_exchangedb_plugin.h index f4b5d8556..278994287 100644 --- a/src/include/taler_exchangedb_plugin.h +++ b/src/include/taler_exchangedb_plugin.h @@ -7164,6 +7164,28 @@ struct TALER_EXCHANGEDB_Plugin /** + * Call @a kac on deposited amounts after @a time_limit which are relevant for a + * KYC trigger for a merchant identified by @a h_payto. + * + * @param cls the @e cls of this struct with the plugin-specific state + * @param h_payto account identifier + * @param time_limit oldest transaction that could be relevant + * @param kac function to call for each applicable amount, + * in reverse chronological order (or until @a kac aborts + * by returning anything except #GNUNET_OK). + * @param kac_cls closure for @a kac + * @return transaction status code, @a kac aborting with #GNUNET_NO is not an error + */ + enum GNUNET_DB_QueryStatus + (*select_deposit_amounts_for_kyc_check)( + void *cls, + const struct TALER_PaytoHashP *h_payto, + struct GNUNET_TIME_Absolute time_limit, + TALER_EXCHANGEDB_KycAmountCallback kac, + void *kac_cls); + + + /** * Store automated legitimization outcome. * * @param cls closure |