diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-06-13 16:40:34 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-06-13 16:40:34 +0200 |
commit | 573ee18c1c3c2be680f5ee16058e1ccb26bfe6a8 (patch) | |
tree | db614a288d2427a8208e08e4456fd55de8471512 /src/backend/taler-merchant-httpd_private-get-orders-ID.c | |
parent | 2f853bebd269b51536bc357c9ae76d5aa24b9d3a (diff) | |
download | merchant-573ee18c1c3c2be680f5ee16058e1ccb26bfe6a8.tar.gz merchant-573ee18c1c3c2be680f5ee16058e1ccb26bfe6a8.tar.bz2 merchant-573ee18c1c3c2be680f5ee16058e1ccb26bfe6a8.zip |
implement missing SQL
Diffstat (limited to 'src/backend/taler-merchant-httpd_private-get-orders-ID.c')
-rw-r--r-- | src/backend/taler-merchant-httpd_private-get-orders-ID.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/backend/taler-merchant-httpd_private-get-orders-ID.c b/src/backend/taler-merchant-httpd_private-get-orders-ID.c index 336d83fa..63b7148f 100644 --- a/src/backend/taler-merchant-httpd_private-get-orders-ID.c +++ b/src/backend/taler-merchant-httpd_private-get-orders-ID.c @@ -678,11 +678,9 @@ process_refunds_cb (void *cls, * the response. * * @param cls a `struct GetOrderRequestContext` - * @param wtid wire transfer subject of the wire transfer for the coin, - * or NULL if transfer is yet to be made + * @param wtid wire transfer subject of the wire transfer for the coin * @param exchange_url base URL of the exchange that made the payment - * @param execution_time when was the payment made (or in the future, - * when is it expected to be made) + * @param execution_time when was the payment made * @param deposit_value contribution of the coin to the total wire transfer value * @param deposit_fee deposit fee charged by the exchange for the coin * @param transfer_confirmed did the merchant confirm that a wire transfer with @@ -708,11 +706,9 @@ process_transfer_details (void *cls, GNUNET_assert (0 == json_array_append_new ( wire_details, - json_pack ("{s:o?, s:s, s:o, s:o, s:b}", + json_pack ("{s:o, s:s, s:o, s:o, s:b}", "wtid", - (NULL != wtid) - ? GNUNET_JSON_from_data_auto (wtid) - : NULL, + GNUNET_JSON_from_data_auto (wtid), "exchange_url", exchange_url, "amount", |