From a233ae3ac90572cefc62a90b31f6b23822925750 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 20 Apr 2021 15:48:01 +0200 Subject: be more generous in terms of which fields are required when creating/updating products --- core/api-merchant.rst | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'core/api-merchant.rst') 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; -- cgit v1.2.3