summaryrefslogtreecommitdiff
path: root/src/lib/merchant_api_get_reserves.c
diff options
context:
space:
mode:
authorJonathan Buchanan <jonathan.russ.buchanan@gmail.com>2020-06-15 19:26:40 -0400
committerJonathan Buchanan <jonathan.russ.buchanan@gmail.com>2020-06-15 19:26:40 -0400
commit1d22e4f8b263446f24fbdb3d2b92f7c1f2939f48 (patch)
tree2f2a8495e4b9cd06122eb482e17ba1a1539670eb /src/lib/merchant_api_get_reserves.c
parentaf158318c6923a51ec8a75bbf2f857ce60cec139 (diff)
downloadmerchant-1d22e4f8b263446f24fbdb3d2b92f7c1f2939f48.tar.gz
merchant-1d22e4f8b263446f24fbdb3d2b92f7c1f2939f48.tar.bz2
merchant-1d22e4f8b263446f24fbdb3d2b92f7c1f2939f48.zip
test for GET /private/reserves
Diffstat (limited to 'src/lib/merchant_api_get_reserves.c')
-rw-r--r--src/lib/merchant_api_get_reserves.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/lib/merchant_api_get_reserves.c b/src/lib/merchant_api_get_reserves.c
index 017dcd9c..f524514a 100644
--- a/src/lib/merchant_api_get_reserves.c
+++ b/src/lib/merchant_api_get_reserves.c
@@ -132,6 +132,12 @@ handle_reserves_get_finished (void *cls,
json_array_foreach (reserves, i, reserve) {
struct TALER_MERCHANT_ReserveSummary *rd = &rds[i];
struct GNUNET_JSON_Specification ispec[] = {
+ GNUNET_JSON_spec_fixed_auto ("reserve_pub",
+ &rd->reserve_pub),
+ GNUNET_JSON_spec_absolute_time ("creation_time",
+ &rd->creation_time),
+ GNUNET_JSON_spec_absolute_time ("expiration_time",
+ &rd->expiration_time),
TALER_JSON_spec_amount ("merchant_initial_amount",
&rd->merchant_initial_amount),
TALER_JSON_spec_amount ("exchange_initial_amount",
@@ -140,12 +146,6 @@ handle_reserves_get_finished (void *cls,
&rd->pickup_amount),
TALER_JSON_spec_amount ("committed_amount",
&rd->committed_amount),
- GNUNET_JSON_spec_fixed_auto ("reserve_pub",
- &rd->reserve_pub),
- GNUNET_JSON_spec_absolute_time ("creation_time",
- &rd->creation_time),
- GNUNET_JSON_spec_absolute_time ("expiration_time",
- &rd->expiration_time),
GNUNET_JSON_spec_bool ("active",
&rd->active),
GNUNET_JSON_spec_end ()
@@ -246,7 +246,7 @@ TALER_MERCHANT_reserves_get (struct GNUNET_CURL_Context *ctx,
after_s = GNUNET_strdup (GNUNET_STRINGS_absolute_time_to_string (
after));
rgh->url = TALER_url_join (backend_url,
- "reserves",
+ "private/reserves",
"active",
active_s,
"failures",