From de0077b0a28c931e6ed23d1ea99a156996e5a0fd Mon Sep 17 00:00:00 2001 From: priscilla Date: Tue, 15 Nov 2022 05:56:07 -0500 Subject: Update --- core/api-merchant.rst | 84 +++++++++++++++++++++++---------------------------- 1 file changed, 38 insertions(+), 46 deletions(-) (limited to 'core/api-merchant.rst') diff --git a/core/api-merchant.rst b/core/api-merchant.rst index 8214fde4..726e4c2f 100644 --- a/core/api-merchant.rst +++ b/core/api-merchant.rst @@ -3075,29 +3075,38 @@ Adding templates interface TemplateAddDetail { // Template ID to use. - tenplate_id: string; - - // Name of the store. - name_store: string; - - // Human-readable summary for the template. - summary: string; + template_id: string; // The price is imposed by the merchant and cannot be changed by the customer. // This parametrer is optional. price_imposed?: Amount; // A base64-encoded image selected by the merchant. - image: ImageDataUrl; - - // Identifies where the store is. - address_store: Location; + // This parameter is optional. + // We are not sure about it. + image?: ImageDataUrl; // 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 ----------------- @@ -3128,28 +3137,21 @@ Editing templates interface TemplatePatchDetail { - // Template ID to use. - tenplate_id: string; - - // Name of the store. - name_store: string; - - // Human-readable summary for the template. - summary: string; - // The price is imposed by the merchant and cannot be changed by the customer. // This parametrer is optional. price_imposed?: Amount; // A base64-encoded image selected by the merchant. - image: ImageDataUrl; - - // Identifies where the store is. - address_store: Location; + // This parameter is optional. + // We are not sure about it. + image?: ImageDataUrl; // Minimum age buyer must have (in years). Default is 0. minimum_age: Integer; + // Another template that complete the main one. + template_details: TemplateSeparateDetail[]; + } @@ -3175,9 +3177,8 @@ Inspecting template interface TemplateSummaryResponse { - // List of templates that are present in our backend. - templates: TemplateEntry[]; - + // List of templates that are present in our backend. + templates_list: TemplateEntry[]; } @@ -3190,6 +3191,8 @@ Inspecting template // Template identifier, as found in the template. template_id: string; + } + .. http:get:: [/instances/$INSTANCE]/private/templates/$TEMPLATE_ID @@ -3205,38 +3208,27 @@ Inspecting template :http:statuscode:`404 Not found`: The template(ID) is unknown to the backend. - + .. ts:def:: TemplateDetail interface TemplateDetail { - // Template ID to use. - tenplate_id: string; - - // Name of the store. - name_store: string; - - // Name of the owner. - name_owner: string; - - // Human-readable summary for the template. - summary: string; - // The price is imposed by the merchant and cannot be changed by the customer. // This parametrer is optional. price_imposed: Amount; // A base64-encoded image selected by the merchant. - image: ImageDataUrl; - - // Identifies where the store is. - address_store: Location; + // This parameter is optional. + // We are not sure about it. + image?: ImageDataUrl; // Minimum age buyer must have (in years). Default is 0. minimum_age: Integer; - } + // Another template that complete the main one. + template_details: TemplateSeparateDetail[]; + } -- cgit v1.2.3