diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-04-20 15:48:01 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-04-20 15:48:11 +0200 |
commit | a233ae3ac90572cefc62a90b31f6b23822925750 (patch) | |
tree | 317fb425d920500ebdd007a98a8e1e54dcbc3968 /core | |
parent | cace043f865c4a2d0ba70c16014dfca55189dd1d (diff) | |
download | docs-a233ae3ac90572cefc62a90b31f6b23822925750.tar.gz docs-a233ae3ac90572cefc62a90b31f6b23822925750.tar.bz2 docs-a233ae3ac90572cefc62a90b31f6b23822925750.zip |
be more generous in terms of which fields are required when creating/updating products
Diffstat (limited to 'core')
-rw-r--r-- | core/api-merchant.rst | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/core/api-merchant.rst b/core/api-merchant.rst index f2a0f25b..c1de77e7 100644 --- a/core/api-merchant.rst +++ b/core/api-merchant.rst @@ -1238,7 +1238,7 @@ Adding products to the inventory description: string; // Map from IETF BCP 47 language tags to localized descriptions. - description_i18n: { [lang_tag: string]: string }; + description_i18n?: { [lang_tag: string]: string }; // Unit in which the product is measured (liters, kilograms, packages, etc.). unit: string; @@ -1251,10 +1251,10 @@ Adding products to the inventory price: Amount; // An optional base64-encoded product image. - image: ImageDataUrl; + image?: ImageDataUrl; // A list of taxes paid by the merchant for one unit of this product. - taxes: Tax[]; + taxes?: Tax[]; // Number of units of the product in stock in sum in total, // including all existing sales ever. Given in product-specific @@ -1263,7 +1263,7 @@ Adding products to the inventory total_stock: Integer; // Identifies where the product is in stock. - address: Location; + address?: Location; // Identifies when we expect the next restocking to happen. next_restock?: Timestamp; @@ -1303,7 +1303,7 @@ Adding products to the inventory description: string; // Map from IETF BCP 47 language tags to localized descriptions. - description_i18n: { [lang_tag: string]: string }; + description_i18n?: { [lang_tag: string]: string }; // Unit in which the product is measured (liters, kilograms, packages, etc.). unit: string; @@ -1316,10 +1316,10 @@ Adding products to the inventory price: Amount; // An optional base64-encoded product image. - image: ImageDataUrl; + image?: ImageDataUrl; // A list of taxes paid by the merchant for one unit of this product. - taxes: Tax[]; + taxes?: Tax[]; // Number of units of the product in stock in sum in total, // including all existing sales ever. Given in product-specific @@ -1328,10 +1328,10 @@ Adding products to the inventory total_stock: Integer; // Number of units of the product that were lost (spoiled, stolen, etc.). - total_lost: Integer; + total_lost?: Integer; // Identifies where the product is in stock. - address: Location; + address?: Location; // Identifies when we expect the next restocking to happen. next_restock?: Timestamp; |