aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2024-06-18 15:16:33 -0300
committerSebastian <sebasjm@gmail.com>2024-06-18 15:16:33 -0300
commita579f6df065df7918023e3d3b5097eb35845d174 (patch)
tree64b859bc300a2e1c7156d9edf45a0d62ea4faec8 /src
parent92001c4385f0d5cb43b5c3ee589629f0da420e34 (diff)
return active state of the bank account
Diffstat (limited to 'src')
-rw-r--r--src/backend/taler-merchant-httpd_private-get-accounts-ID.c2
-rw-r--r--src/backend/taler-merchant-httpd_private-get-accounts.c2
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
index 703beeca..6bc99d26 100644
--- 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
index 92ebb368..e420a0e8 100644
--- 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",