aboutsummaryrefslogtreecommitdiff
path: root/src/exchangedb/pg_insert_aml_decision.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-12-30 13:45:36 +0100
committerChristian Grothoff <christian@grothoff.org>2022-12-30 13:45:36 +0100
commitb7000379ed2c7ca31aeb4561a0ffc1c4bf9405c7 (patch)
tree50006273f188424fa93403c9866377961fd47619 /src/exchangedb/pg_insert_aml_decision.h
parent5169abcdcd2710d002721ff0d1c6fcc53b8dab54 (diff)
downloadexchange-b7000379ed2c7ca31aeb4561a0ffc1c4bf9405c7.tar.xz
-add prototypes
Diffstat (limited to 'src/exchangedb/pg_insert_aml_decision.h')
-rw-r--r--src/exchangedb/pg_insert_aml_decision.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/exchangedb/pg_insert_aml_decision.h b/src/exchangedb/pg_insert_aml_decision.h
index e5123a7aa..205c1c74b 100644
--- a/src/exchangedb/pg_insert_aml_decision.h
+++ b/src/exchangedb/pg_insert_aml_decision.h
@@ -26,4 +26,30 @@
#include "taler_exchangedb_plugin.h"
+/**
+ * Insert an AML decision. Inserts into AML history and insert or updates AML
+ * status.
+ *
+ * @param cls closure
+ * @param h_payto account for which the attribute data is stored
+ * @param new_threshold new monthly threshold that would trigger an AML check
+ * @param new_status AML decision status
+ * @param decision_time when was the decision made
+ * @param justification human-readable text justifying the decision
+ * @param decider_pub public key of the staff member
+ * @param decider_sig signature of the staff member
+ * @return database transaction status
+ */
+enum GNUNET_DB_QueryStatus
+TEH_PG_insert_aml_decision (
+ void *cls,
+ const struct TALER_PaytoHashP *h_payto,
+ const struct TALER_Amount *new_threshold,
+ enum TALER_AmlDecisionState new_status,
+ struct GNUNET_TIME_Absolute decision_time,
+ const char *justification,
+ const struct TALER_AmlOfficerPublicKeyP *decider_pub,
+ const struct TALER_AmlOfficerSignatureP *decider_sig);
+
+
#endif