From 923ff3126ec45d62e362e36e374c9fcd4dbe3d60 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 12 Feb 2023 14:39:54 +0100 Subject: -work on AML trigger logic --- src/include/taler_exchangedb_plugin.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/include/taler_exchangedb_plugin.h') diff --git a/src/include/taler_exchangedb_plugin.h b/src/include/taler_exchangedb_plugin.h index 50a5c0efe..125254612 100644 --- a/src/include/taler_exchangedb_plugin.h +++ b/src/include/taler_exchangedb_plugin.h @@ -6605,6 +6605,23 @@ struct TALER_EXCHANGEDB_Plugin struct GNUNET_TIME_Absolute *last_change); + /** + * Obtain the current AML threshold set for an account. + * + * @param cls closure + * @param h_payto account for which the AML threshold is stored + * @param[out] decision set to current AML decision + * @param[out] threshold set to the existing threshold + * @return database transaction status, 0 if no threshold was set + */ + enum GNUNET_DB_QueryStatus + (*select_aml_threshold)( + void *cls, + const struct TALER_PaytoHashP *h_payto, + enum TALER_AmlDecisionState *decision, + struct TALER_Amount *threshold); + + /** * Trigger AML process, an account has crossed the threshold. Inserts or * updates the AML status. -- cgit v1.2.3