diff options
Diffstat (limited to 'src/lib/merchant_api_get_reserves.c')
-rw-r--r-- | src/lib/merchant_api_get_reserves.c | 14 |
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", |