aboutsummaryrefslogtreecommitdiff
path: root/src/include/taler_merchantdb_plugin.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2024-09-10 15:47:31 +0200
committerChristian Grothoff <christian@grothoff.org>2024-09-10 15:47:31 +0200
commita8f851315ceb958ae7e1ee730f38384b5dab0799 (patch)
tree2a21a8f3067a78865b37861e5f6a8ddadcdf886e /src/include/taler_merchantdb_plugin.h
parent044c308a71b692977b02556cf9633fb5bb2f094a (diff)
add logic to enforce hard limit on order creation
Diffstat (limited to 'src/include/taler_merchantdb_plugin.h')
-rw-r--r--src/include/taler_merchantdb_plugin.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/include/taler_merchantdb_plugin.h b/src/include/taler_merchantdb_plugin.h
index 41d7570d..0c301a0a 100644
--- a/src/include/taler_merchantdb_plugin.h
+++ b/src/include/taler_merchantdb_plugin.h
@@ -1772,6 +1772,27 @@ struct TALER_MERCHANTDB_Plugin
/**
+ * Check an account's KYC limits at an exchange.
+ *
+ * @param cls closure
+ * @param merchant_payto_uri merchant backend instance ID
+ * @param instance_id the instance for which to check
+ * @param exchange_url base URL of the exchange
+ * @param[out] kyc_ok true if no urgent KYC work must be done for this account
+ * @param[out] jlimits set to JSON array with AccountLimits, NULL if unknown (and likely defaults apply or KYC auth is urgently needed, see @a auth_ok)
+ * @return database result code
+ */
+ enum GNUNET_DB_QueryStatus
+ (*get_kyc_limits)(
+ void *cls,
+ const char *merchant_account_uri,
+ const char *instance_id,
+ const char *exchange_url,
+ bool *kyc_ok,
+ json_t **jlimits);
+
+
+ /**
* Update an instance's account's KYC status.
*
* @param cls closure