summaryrefslogtreecommitdiff
path: root/src/include/taler_exchangedb_plugin.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-02-12 14:39:54 +0100
committerChristian Grothoff <christian@grothoff.org>2023-02-12 14:39:54 +0100
commit923ff3126ec45d62e362e36e374c9fcd4dbe3d60 (patch)
tree140155b8c6852f449e4a7a3648b93e193bb4f8d6 /src/include/taler_exchangedb_plugin.h
parent19132b67165d04bede03ba83e98359849e357536 (diff)
downloadexchange-923ff3126ec45d62e362e36e374c9fcd4dbe3d60.tar.gz
exchange-923ff3126ec45d62e362e36e374c9fcd4dbe3d60.tar.bz2
exchange-923ff3126ec45d62e362e36e374c9fcd4dbe3d60.zip
-work on AML trigger logic
Diffstat (limited to 'src/include/taler_exchangedb_plugin.h')
-rw-r--r--src/include/taler_exchangedb_plugin.h17
1 files changed, 17 insertions, 0 deletions
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
@@ -6606,6 +6606,23 @@ struct TALER_EXCHANGEDB_Plugin
/**
+ * 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.
*