From dc40f6c679a382ec8ca1ac90f584f821c6be6a33 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 13 Feb 2023 16:00:37 +0100 Subject: work on AML notification logic --- src/lib/exchange_api_deposits_get.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/lib/exchange_api_deposits_get.c') diff --git a/src/lib/exchange_api_deposits_get.c b/src/lib/exchange_api_deposits_get.c index 7f83fad1..2e8a5e5e 100644 --- a/src/lib/exchange_api_deposits_get.c +++ b/src/lib/exchange_api_deposits_get.c @@ -177,6 +177,7 @@ handle_deposit_wtid_finished (void *cls, { /* Transaction known, but not executed yet */ bool no_legi = false; + uint32_t state32; struct GNUNET_JSON_Specification spec[] = { GNUNET_JSON_spec_timestamp ("execution_time", &dr.details.accepted.execution_time), @@ -184,6 +185,8 @@ handle_deposit_wtid_finished (void *cls, GNUNET_JSON_spec_uint64 ("requirement_row", &dr.details.accepted.requirement_row), &no_legi), + GNUNET_JSON_spec_uint32 ("aml_decision", + &state32), GNUNET_JSON_spec_bool ("kyc_ok", &dr.details.accepted.kyc_ok), GNUNET_JSON_spec_end () @@ -199,6 +202,8 @@ handle_deposit_wtid_finished (void *cls, dr.hr.ec = TALER_EC_GENERIC_REPLY_MALFORMED; break; } + dr.details.accepted.aml_decision + = (enum TALER_AmlDecisionState) state32; if (no_legi) dr.details.accepted.requirement_row = 0; dwh->cb (dwh->cb_cls, -- cgit v1.2.3