From 06e2e8022c01f2a2866eb79ed38552ef5ac2a6b2 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 19 Feb 2023 10:21:29 +0100 Subject: return KYC requirement row when AML imposed KYC requirements on withdraw; return KYC choices in new /config endpoint --- src/include/taler_exchangedb_plugin.h | 1 + src/include/taler_kyclogic_lib.h | 9 +++++++++ 2 files changed, 10 insertions(+) (limited to 'src/include') diff --git a/src/include/taler_exchangedb_plugin.h b/src/include/taler_exchangedb_plugin.h index 44dd912f8..db3289ffc 100644 --- a/src/include/taler_exchangedb_plugin.h +++ b/src/include/taler_exchangedb_plugin.h @@ -6621,6 +6621,7 @@ struct TALER_EXCHANGEDB_Plugin void *cls, const struct TALER_PaytoHashP *h_payto, enum TALER_AmlDecisionState *decision, + struct TALER_EXCHANGEDB_KycStatus *kyc, struct TALER_Amount *threshold); diff --git a/src/include/taler_kyclogic_lib.h b/src/include/taler_kyclogic_lib.h index 34a429121..2d8b39f2b 100644 --- a/src/include/taler_kyclogic_lib.h +++ b/src/include/taler_kyclogic_lib.h @@ -311,6 +311,15 @@ TALER_KYCLOGIC_check_satisfiable ( const char *check_name); +/** + * Return list of all KYC checks that are possible. + * + * @return JSON array of strings with the allowed KYC checks + */ +json_t * +TALER_KYCLOGIC_get_satisfiable (void); + + /** * Obtain the provider logic for a given set of @a requirements. * -- cgit v1.2.3