summaryrefslogtreecommitdiff
path: root/src/lib/merchant_api_get_orders.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-06-23 10:48:27 +0200
committerChristian Grothoff <christian@grothoff.org>2020-06-23 10:48:27 +0200
commit3e5a21a6178a3aaeccb0c098f01847ef04238544 (patch)
treed73be068f11ef78ba36fcd9c14252c6ee2b16607 /src/lib/merchant_api_get_orders.c
parentae52368483af8b18ac3a3b68d30d4aca1871b067 (diff)
downloadmerchant-3e5a21a6178a3aaeccb0c098f01847ef04238544.tar.gz
merchant-3e5a21a6178a3aaeccb0c098f01847ef04238544.tar.bz2
merchant-3e5a21a6178a3aaeccb0c098f01847ef04238544.zip
also parse and return timestamp and row_id
Diffstat (limited to 'src/lib/merchant_api_get_orders.c')
-rw-r--r--src/lib/merchant_api_get_orders.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/merchant_api_get_orders.c b/src/lib/merchant_api_get_orders.c
index 92d31428..df96c57a 100644
--- a/src/lib/merchant_api_get_orders.c
+++ b/src/lib/merchant_api_get_orders.c
@@ -86,8 +86,10 @@ parse_orders (const json_t *ia,
struct GNUNET_JSON_Specification spec[] = {
GNUNET_JSON_spec_string ("order_id",
&ie->order_id),
- // FIXME: also parse and return row_id and timestamp fields!
- // (=> needed to enable client to filter by those!)
+ GNUNET_JSON_spec_absolute_time ("timestamp",
+ &ie->timestamp),
+ GNUNET_JSON_spec_uint64 ("row_id",
+ &ie->order_serial),
GNUNET_JSON_spec_end ()
};