summaryrefslogtreecommitdiff
path: root/src/include/taler_exchangedb_plugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/taler_exchangedb_plugin.h')
-rw-r--r--src/include/taler_exchangedb_plugin.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/include/taler_exchangedb_plugin.h b/src/include/taler_exchangedb_plugin.h
index 4b90396bb..b8c504063 100644
--- a/src/include/taler_exchangedb_plugin.h
+++ b/src/include/taler_exchangedb_plugin.h
@@ -1630,6 +1630,13 @@ struct TALER_EXCHANGEDB_RefreshRevealedCoin
*/
enum TALER_EXCHANGEDB_KycType
{
+
+ /**
+ * It is unclear for which type of KYC operation
+ * this information is.
+ */
+ TALER_EXCHANGEDB_KYC_UNKNOWN = 0,
+
/**
* KYC to be applied for simple withdraws without
* the involvement of wallet-to-wallet payments.
@@ -2368,6 +2375,22 @@ struct TALER_EXCHANGEDB_Plugin
/**
+ * Get the @a kyc status and @a h_payto by UUID.
+ *
+ * @param cls the @e cls of this struct with the plugin-specific state
+ * @param payment_target_uuid which account to get the KYC status for
+ * @param[out] h_payto set to the hash of the account's payto URI (unsalted)
+ * @param[out] kyc set to the KYC status of the account
+ * @return transaction status
+ */
+ enum GNUNET_DB_QueryStatus
+ (*select_kyc_status)(void *cls,
+ uint64_t payment_target_uuid,
+ struct GNUNET_HashCode *h_payto,
+ struct TALER_EXCHANGEDB_KycStatus *kyc);
+
+
+ /**
* Get the KYC status for a wallet. If the status is unknown,
* inserts a new status record (hence INsertSELECT).
*