summaryrefslogtreecommitdiff
path: root/src/lib/exchange_api_deposits_get.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-02-13 16:00:37 +0100
committerChristian Grothoff <christian@grothoff.org>2023-02-13 16:00:37 +0100
commitdc40f6c679a382ec8ca1ac90f584f821c6be6a33 (patch)
tree99f5179d86c754f1785a0c898e43cd41fef0f96d /src/lib/exchange_api_deposits_get.c
parent3760d43097b8b72dbb7c45ab061aad669c36aefa (diff)
downloadexchange-dc40f6c679a382ec8ca1ac90f584f821c6be6a33.tar.gz
exchange-dc40f6c679a382ec8ca1ac90f584f821c6be6a33.tar.bz2
exchange-dc40f6c679a382ec8ca1ac90f584f821c6be6a33.zip
work on AML notification logic
Diffstat (limited to 'src/lib/exchange_api_deposits_get.c')
-rw-r--r--src/lib/exchange_api_deposits_get.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/exchange_api_deposits_get.c b/src/lib/exchange_api_deposits_get.c
index 7f83fad17..2e8a5e5e8 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,