summaryrefslogtreecommitdiff
path: root/src/backend/taler-merchant-httpd_private-patch-products-ID.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-01-18 16:26:33 +0100
committerChristian Grothoff <christian@grothoff.org>2022-01-18 16:26:33 +0100
commit9a86e1f1e10338bf869944b2fb215a53aa1fcc54 (patch)
treecdba1d99a1186e1c720811c775a14dd6a1315f6c /src/backend/taler-merchant-httpd_private-patch-products-ID.c
parent6ee72ea210a93327ee36fa360e5264c393ffa224 (diff)
downloadmerchant-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.c5
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 ()
};