summaryrefslogtreecommitdiff
path: root/core/api-merchant.rst
diff options
context:
space:
mode:
Diffstat (limited to 'core/api-merchant.rst')
-rw-r--r--core/api-merchant.rst18
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;