summaryrefslogtreecommitdiff
path: root/core/api-merchant.rst
diff options
context:
space:
mode:
authorpriscilla <priscilla.huang@efrei.net>2022-11-15 06:08:57 -0500
committerpriscilla <priscilla.huang@efrei.net>2022-11-15 06:08:57 -0500
commitc303c65074e5a4aa3c8ed38309ea96adbc0fd8ca (patch)
tree2a5c344ab70974eb2ad99115e29aa41e375c3d78 /core/api-merchant.rst
parent00b5b2599491a92648f85ba32d1f239cd898e9f8 (diff)
downloaddocs-c303c65074e5a4aa3c8ed38309ea96adbc0fd8ca.tar.gz
docs-c303c65074e5a4aa3c8ed38309ea96adbc0fd8ca.tar.bz2
docs-c303c65074e5a4aa3c8ed38309ea96adbc0fd8ca.zip
Update
Diffstat (limited to 'core/api-merchant.rst')
-rw-r--r--core/api-merchant.rst26
1 files changed, 10 insertions, 16 deletions
diff --git a/core/api-merchant.rst b/core/api-merchant.rst
index 4df7a135..1db9c6b0 100644
--- 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;