commit a579f6df065df7918023e3d3b5097eb35845d174
parent 92001c4385f0d5cb43b5c3ee589629f0da420e34
Author: Sebastian <sebasjm@gmail.com>
Date: Tue, 18 Jun 2024 15:16:33 -0300
return active state of the bank account
Diffstat:
2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/backend/taler-merchant-httpd_private-get-accounts-ID.c b/src/backend/taler-merchant-httpd_private-get-accounts-ID.c
@@ -81,6 +81,8 @@ TMH_private_get_accounts_ID (const struct TMH_RequestHandler *rh,
ret = TALER_MHD_REPLY_JSON_PACK (
connection,
MHD_HTTP_OK,
+ GNUNET_JSON_pack_bool ("active",
+ tp.active),
GNUNET_JSON_pack_string ("payto_uri",
tp.payto_uri),
GNUNET_JSON_pack_data_auto ("h_wire",
diff --git a/src/backend/taler-merchant-httpd_private-get-accounts.c b/src/backend/taler-merchant-httpd_private-get-accounts.c
@@ -38,6 +38,8 @@ add_account (void *cls,
json_array_append_new (
pa,
GNUNET_JSON_PACK (
+ GNUNET_JSON_pack_bool ("active",
+ ad->active),
GNUNET_JSON_pack_string ("payto_uri",
ad->payto_uri),
GNUNET_JSON_pack_data_auto ("h_wire",