diff options
Diffstat (limited to 'src/lib/merchant_api_get_transfers.c')
-rw-r--r-- | src/lib/merchant_api_get_transfers.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/lib/merchant_api_get_transfers.c b/src/lib/merchant_api_get_transfers.c index 481f7abd..90dce5d5 100644 --- a/src/lib/merchant_api_get_transfers.c +++ b/src/lib/merchant_api_get_transfers.c @@ -130,8 +130,6 @@ handle_transfers_get_finished (void *cls, struct TALER_MERCHANT_TransferData); ok = true; json_array_foreach (transfers, i, transfer) { - /* FIXME: handle 'execution_time', 'verified', and/or 'confirmed' - not present in the response. */ struct TALER_MERCHANT_TransferData *td = &tds[i]; struct GNUNET_JSON_Specification ispec[] = { TALER_JSON_spec_amount ("credit_amount", @@ -144,12 +142,15 @@ handle_transfers_get_finished (void *cls, &td->exchange_url), GNUNET_JSON_spec_uint64 ("transfer_serial_id", &td->credit_serial), + GNUNET_JSON_spec_mark_optional ( TALER_JSON_spec_absolute_time ("execution_time", - &td->execution_time), + &td->execution_time)), + GNUNET_JSON_spec_mark_optional ( GNUNET_JSON_spec_bool ("verified", - &td->verified), + &td->verified)), + GNUNET_JSON_spec_mark_optional ( GNUNET_JSON_spec_bool ("confirmed", - &td->confirmed), + &td->confirmed)), GNUNET_JSON_spec_end () }; |