commit c303c65074e5a4aa3c8ed38309ea96adbc0fd8ca
parent 00b5b2599491a92648f85ba32d1f239cd898e9f8
Author: priscilla <priscilla.huang@efrei.net>
Date: Tue, 15 Nov 2022 06:08:57 -0500
Update
Diffstat:
1 file changed, 10 insertions(+), 16 deletions(-)
diff --git a/core/api-merchant.rst b/core/api-merchant.rst
@@ -3077,6 +3077,9 @@ Adding templates
// Template ID to use.
template_id: string;
+ // Human-readable summary for the template.
+ template_descripton: string;
+
// The price is imposed by the merchant and cannot be changed by the customer.
// This parametrer is optional.
amount?: Amount;
@@ -3089,24 +3092,9 @@ Adding templates
// Minimum age buyer must have (in years). Default is 0.
minimum_age: Integer;
- // Another template that complete the main one.
- template_details: TemplateSeparateDetail[];
-
}
- .. ts:def:: TemplateSeparateDetail
-
- interface TemplateSeparateDetail {
-
- // Identifies where the store is.
- address_store: Location;
-
- // Human-readable summary for the template.
- template_descripton: string;
-
- }
-
Editing templates
-----------------
@@ -3137,6 +3125,9 @@ Editing templates
interface TemplatePatchDetail {
+ // Human-readable summary for the template.
+ template_descripton: string;
+
// The price is imposed by the merchant and cannot be changed by the customer.
// This parametrer is optional.
amount?: Amount;
@@ -3187,7 +3178,7 @@ The `TemplatesEntry` object describes a template. It has the following structure
-.. ts:def:: TemplateEntry
+ .. ts:def:: TemplateEntry
interface TemplateEntry {
@@ -3217,6 +3208,9 @@ The `TemplatesEntry` object describes a template. It has the following structure
interface TemplateDetail {
+ // Human-readable summary for the template.
+ template_descripton: string;
+
// The price is imposed by the merchant and cannot be changed by the customer.
// This parametrer is optional.
amount: Amount;