aboutsummaryrefslogtreecommitdiff
path: root/src/lib/exchange_api_handle.c
diff options
context:
space:
mode:
authorÖzgür Kesim <oec-taler@kesim.org>2023-06-03 10:45:31 +0200
committerÖzgür Kesim <oec-taler@kesim.org>2023-06-03 10:45:31 +0200
commit80a1b8f5240e8307e1c73862fb8810d7c2bdc874 (patch)
tree5661068ec9976aa8711dc931355f6bd87ab35fd6 /src/lib/exchange_api_handle.c
parent4a31a180a4595aa040060e91ccde4f839aa02f72 (diff)
parent2ea3ae1008020589b43a51663c45556a08547212 (diff)
Merge branch 'master' into age-withdraw
Diffstat (limited to 'src/lib/exchange_api_handle.c')
-rw-r--r--src/lib/exchange_api_handle.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/exchange_api_handle.c b/src/lib/exchange_api_handle.c
index 0e804630..601b163d 100644
--- a/src/lib/exchange_api_handle.c
+++ b/src/lib/exchange_api_handle.c
@@ -733,6 +733,7 @@ decode_keys_json (const json_t *resp_obj,
struct TALER_ExchangePublicKeyP pub;
const char *currency;
const char *asset_type;
+ bool tipping_allowed = true;
json_t *wblwk = NULL;
struct GNUNET_JSON_Specification mspec[] = {
GNUNET_JSON_spec_fixed_auto ("denominations_sig",
@@ -750,6 +751,10 @@ decode_keys_json (const json_t *resp_obj,
GNUNET_JSON_spec_string ("asset_type",
&asset_type),
GNUNET_JSON_spec_mark_optional (
+ GNUNET_JSON_spec_bool ("tipping_allowed",
+ &tipping_allowed),
+ NULL),
+ GNUNET_JSON_spec_mark_optional (
GNUNET_JSON_spec_json ("wallet_balance_limit_without_kyc",
&wblwk),
NULL),
@@ -819,6 +824,7 @@ decode_keys_json (const json_t *resp_obj,
NULL, NULL));
key_data->currency = GNUNET_strdup (currency);
key_data->asset_type = GNUNET_strdup (asset_type);
+ key_data->tipping_allowed = tipping_allowed;
/* parse the global fees */
{