aboutsummaryrefslogtreecommitdiff
path: root/src/lib/exchange_api_add_aml_decision.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-02-14 14:26:00 +0100
committerChristian Grothoff <christian@grothoff.org>2023-02-14 14:26:00 +0100
commitafe3f70d336e151598e02ebedb6498e13122530e (patch)
tree16b28b9fec850465e963dd1eb2acee796d86d9f2 /src/lib/exchange_api_add_aml_decision.c
parent437e6ec86a1cd3a391de437999ad21ac5e256e68 (diff)
downloadexchange-afe3f70d336e151598e02ebedb6498e13122530e.tar.xz
begin API change to allow AML officers to trigger KYC process
Diffstat (limited to 'src/lib/exchange_api_add_aml_decision.c')
-rw-r--r--src/lib/exchange_api_add_aml_decision.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/exchange_api_add_aml_decision.c b/src/lib/exchange_api_add_aml_decision.c
index 5e5383f25..7245db3b1 100644
--- a/src/lib/exchange_api_add_aml_decision.c
+++ b/src/lib/exchange_api_add_aml_decision.c
@@ -132,6 +132,7 @@ TALER_EXCHANGE_add_aml_decision (
const struct TALER_Amount *new_threshold,
const struct TALER_PaytoHashP *h_payto,
enum TALER_AmlDecisionState new_state,
+ const json_t *kyc_requirements,
const struct TALER_AmlOfficerPrivateKeyP *officer_priv,
TALER_EXCHANGE_AddAmlDecisionCallback cb,
void *cb_cls)
@@ -149,6 +150,7 @@ TALER_EXCHANGE_add_aml_decision (
new_threshold,
h_payto,
new_state,
+ kyc_requirements,
officer_priv,
&officer_sig);
wh = GNUNET_new (struct TALER_EXCHANGE_AddAmlDecision);
@@ -190,6 +192,9 @@ TALER_EXCHANGE_add_aml_decision (
h_payto),
GNUNET_JSON_pack_uint64 ("new_state",
(uint32_t) new_state),
+ GNUNET_JSON_pack_allow_null (
+ GNUNET_JSON_pack_array_incref ("kyc_requirements",
+ (json_t *) kyc_requirements)),
TALER_JSON_pack_amount ("new_threshold",
new_threshold),
GNUNET_JSON_pack_timestamp ("decision_time",