aboutsummaryrefslogtreecommitdiff
path: root/src/include/taler_exchangedb_plugin.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-08-04 11:36:05 +0200
committerChristian Grothoff <christian@grothoff.org>2022-08-04 11:36:05 +0200
commit61f39f0941340f9f7f4a60ad123cda4bccbefbfe (patch)
tree8f665004a3bbb516ae1b43bd9b4570b6658021dc /src/include/taler_exchangedb_plugin.h
parent266068c96cbe64d84da2c79fc6db56e8c56ba6b5 (diff)
downloadexchange-61f39f0941340f9f7f4a60ad123cda4bccbefbfe.tar.xz
-more general KYC logic
Diffstat (limited to 'src/include/taler_exchangedb_plugin.h')
-rw-r--r--src/include/taler_exchangedb_plugin.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/include/taler_exchangedb_plugin.h b/src/include/taler_exchangedb_plugin.h
index 5a5e8cab2..26636d441 100644
--- a/src/include/taler_exchangedb_plugin.h
+++ b/src/include/taler_exchangedb_plugin.h
@@ -866,6 +866,20 @@ typedef void
/**
+ * Function called on all KYC process names that the given
+ * account has already passed.
+ *
+ * @param cls closure
+ * @param kyc_provider_section_name configuration section
+ * of the respective KYC process
+ */
+typedef void
+(*TALER_EXCHANGEDB_SatisfiedProviderCallback)(
+ void *cls,
+ const char *kyc_provider_section_name);
+
+
+/**
* Function called with information about the exchange's auditors.
*
* @param cls closure with a `struct TEH_KeyStateHandle *`
@@ -5607,6 +5621,24 @@ struct TALER_EXCHANGEDB_Plugin
uint64_t serial);
+ /**
+ * Call us on KYC processes satisfied for the given
+ * account.
+ *
+ * @param cls the @e cls of this struct with the plugin-specific state
+ * @param h_payto account identifier
+ * @param spc function to call for each satisfied KYC process
+ * @param spc_cls closure for @a spc
+ * @return transaction status code
+ */
+ enum GNUNET_DB_QueryStatus
+ (*select_satisfied_kyc_processes)(
+ void *cls,
+ const struct TALER_PaytoHashP *h_payto,
+ TALER_EXCHANGEDB_SatisfiedProviderCallback spc,
+ void *spc_cls);
+
+
};
#endif /* _TALER_EXCHANGE_DB_H */