summaryrefslogtreecommitdiff
path: root/src/lib/merchant_api_get_reserve.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/merchant_api_get_reserve.c')
-rw-r--r--src/lib/merchant_api_get_reserve.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/lib/merchant_api_get_reserve.c b/src/lib/merchant_api_get_reserve.c
index 710bcbc4..79a3fb32 100644
--- a/src/lib/merchant_api_get_reserve.c
+++ b/src/lib/merchant_api_get_reserve.c
@@ -1,6 +1,6 @@
/*
This file is part of TALER
- Copyright (C) 2014-2017, 2020 Taler Systems SA
+ Copyright (C) 2014-2021 Taler Systems SA
TALER is free software; you can redistribute it and/or modify it under the
terms of the GNU Lesser General Public License as published by the Free Software
@@ -95,6 +95,8 @@ handle_reserve_get_finished (void *cls,
{
struct TALER_MERCHANT_ReserveSummary rs;
const json_t *tips;
+ const char *exchange_url = NULL;
+ const char *payto_uri = NULL;
struct GNUNET_JSON_Specification spec[] = {
TALER_JSON_spec_absolute_time ("creation_time",
&rs.creation_time),
@@ -102,6 +104,12 @@ handle_reserve_get_finished (void *cls,
&rs.expiration_time),
GNUNET_JSON_spec_bool ("active",
&active),
+ GNUNET_JSON_spec_mark_optional (
+ GNUNET_JSON_spec_string ("exchange_url",
+ &exchange_url)),
+ GNUNET_JSON_spec_mark_optional (
+ GNUNET_JSON_spec_string ("payto_uri",
+ &payto_uri)),
TALER_JSON_spec_amount ("merchant_initial_amount",
&rs.merchant_initial_amount),
TALER_JSON_spec_amount ("exchange_initial_amount",
@@ -133,6 +141,8 @@ handle_reserve_get_finished (void *cls,
&hr,
&rs,
false,
+ NULL,
+ NULL,
0,
NULL);
TALER_MERCHANT_reserve_get_cancel (rgh);
@@ -191,6 +201,8 @@ handle_reserve_get_finished (void *cls,
&hr,
&rs,
active,
+ exchange_url,
+ payto_uri,
tds_length,
tds);
GNUNET_free (tds);
@@ -226,6 +238,8 @@ handle_reserve_get_finished (void *cls,
&hr,
NULL,
false,
+ NULL,
+ NULL,
0,
NULL);
TALER_MERCHANT_reserve_get_cancel (rgh);