aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2024-08-07 19:53:23 +0200
committerChristian Grothoff <christian@grothoff.org>2024-08-07 19:53:23 +0200
commitc08266947f14ee390cbc37a8dd70746215361e8e (patch)
treef8c01835f7380a1c25c0c66f5349f3ab93f94dcb /src/include
parentde42b35703ad010040bbbc932ca4aeaa0c582036 (diff)
implement logic to deal with expiration of measures; untested, but could theoretically work
Diffstat (limited to 'src/include')
-rw-r--r--src/include/taler_exchangedb_plugin.h29
-rw-r--r--src/include/taler_kyclogic_lib.h3
2 files changed, 30 insertions, 2 deletions
diff --git a/src/include/taler_exchangedb_plugin.h b/src/include/taler_exchangedb_plugin.h
index aa0339d0b..492823ab8 100644
--- a/src/include/taler_exchangedb_plugin.h
+++ b/src/include/taler_exchangedb_plugin.h
@@ -7159,6 +7159,34 @@ struct TALER_EXCHANGEDB_Plugin
/**
+ * Store automated legitimization outcome.
+ *
+ * @param cls closure
+ * @param h_payto account for which the attribute data is stored
+ * @param decision_time when was the decision taken
+ * @param expiration_time when does the data expire
+ * @param account_properties new account properties
+ * @param to_investigate true to flag account for investigation
+ * @param new_rules new KYC rules to apply to the account
+ * @param num_events length of the @a events array
+ * @param events array of KYC events to trigger
+ * @param require_aml true to trigger AML
+ * @return database transaction status
+ */
+ enum GNUNET_DB_QueryStatus
+ (*insert_programmatic_legitimization_outcome)(
+ void *cls,
+ const struct TALER_PaytoHashP *h_payto,
+ struct GNUNET_TIME_Timestamp decision_time,
+ struct GNUNET_TIME_Absolute expiration_time,
+ const json_t *account_properties,
+ bool to_investigate,
+ const json_t *new_rules,
+ unsigned int num_events,
+ const char **events);
+
+
+ /**
* Store KYC attribute data, update KYC process status and
* AML status for the given account.
*
@@ -7178,7 +7206,6 @@ struct TALER_EXCHANGEDB_Plugin
* @param events array of KYC events to trigger
* @param enc_attributes_size number of bytes in @a enc_attributes
* @param enc_attributes encrypted attribute data
- * @param require_aml true to trigger AML
* @return database transaction status
*/
enum GNUNET_DB_QueryStatus
diff --git a/src/include/taler_kyclogic_lib.h b/src/include/taler_kyclogic_lib.h
index f7fb9ed92..9dbcf92fd 100644
--- a/src/include/taler_kyclogic_lib.h
+++ b/src/include/taler_kyclogic_lib.h
@@ -597,7 +597,8 @@ TALER_KYCLOGIC_get_original_measure (
* no trigger has been hit.
*
* @param lrs rule set
- * @param kyc_rule rule that was triggered
+ * @param kyc_rule rule that was triggered, NULL
+ * to merely lookup the measure without any trigger
* @param measure_name selected measure,
* NULL to return the "new_check" set by the @a lrs
* @param[out] kcc set to check to run;