diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-01-18 16:26:33 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-01-18 16:26:33 +0100 |
commit | 9a86e1f1e10338bf869944b2fb215a53aa1fcc54 (patch) | |
tree | cdba1d99a1186e1c720811c775a14dd6a1315f6c /src/backend/taler-merchant-httpd_private-patch-products-ID.c | |
parent | 6ee72ea210a93327ee36fa360e5264c393ffa224 (diff) | |
download | merchant-9a86e1f1e10338bf869944b2fb215a53aa1fcc54.tar.gz merchant-9a86e1f1e10338bf869944b2fb215a53aa1fcc54.tar.bz2 merchant-9a86e1f1e10338bf869944b2fb215a53aa1fcc54.zip |
add minimum age to products
Diffstat (limited to 'src/backend/taler-merchant-httpd_private-patch-products-ID.c')
-rw-r--r-- | src/backend/taler-merchant-httpd_private-patch-products-ID.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/backend/taler-merchant-httpd_private-patch-products-ID.c b/src/backend/taler-merchant-httpd_private-patch-products-ID.c index 13a5c664..06e9e7be 100644 --- a/src/backend/taler-merchant-httpd_private-patch-products-ID.c +++ b/src/backend/taler-merchant-httpd_private-patch-products-ID.c @@ -143,7 +143,10 @@ TMH_private_patch_products_ID (const struct TMH_RequestHandler *rh, &pd.address)), GNUNET_JSON_spec_mark_optional ( GNUNET_JSON_spec_timestamp ("next_restock", - &pd.next_restock)), + &pd.next_restock)), + GNUNET_JSON_spec_mark_optional ( + GNUNET_JSON_spec_uint32 ("minimum_age", + &pd.minimum_age)), GNUNET_JSON_spec_end () }; |