From dd2d6f96d1296ec1eeca3ebf58f9cd4932f7e13c Mon Sep 17 00:00:00 2001 From: priscilla Date: Tue, 15 Nov 2022 08:09:26 -0500 Subject: Update --- core/api-merchant.rst | 47 ++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 42 insertions(+), 5 deletions(-) (limited to 'core/api-merchant.rst') diff --git a/core/api-merchant.rst b/core/api-merchant.rst index 85b241f6..58c20fb8 100644 --- a/core/api-merchant.rst +++ b/core/api-merchant.rst @@ -3058,7 +3058,7 @@ Adding templates **Request:** - The request must be a `TemplateAddDetail`. + The request must be a `TemplateAddDetails`. **Response:** @@ -3103,6 +3103,9 @@ Adding templates // Minimum age buyer must have (in years). Default is 0. minimum_age: Integer; + // The time that indicates the duration of the created order before it is deleted + pay_duration: TimeLimit; + } @@ -3116,7 +3119,7 @@ Editing templates **Request:** - The request must be a `TemplatePatchDetail`. + The request must be a `TemplatePatchDetails`. **Response:** @@ -3201,14 +3204,14 @@ The `TemplatesEntry` object describes a template. It has the following structure :http:statuscode:`200 OK`: The backend has successfully returned the detailed information about a specific template. - Returns a `TemplateDetail`. + Returns a `TemplateDetails`. :http:statuscode:`404 Not found`: The template(ID) is unknown to the backend. - .. ts:def:: TemplateDetail + .. ts:def:: TemplateDetails - interface TemplateDetail { + interface TemplateDetails { // Human-readable description for the template. template_description: string; @@ -3240,6 +3243,40 @@ Removing template +Adding public template +---------------------- + +.. http:post:: [/instances/$INSTANCES]/templates/$TEMPLATE_ID + + This is used to adding public template. This public template can be modified by everyone. + + + **Request:** + + The request must be a `PublicTemplateDetails`. + + + **Response:** + + :http:statuscode:`204 No content`: + The creation of the public template is successful. + :http:statuscode:`404 Not found`: + The merchant instance is unknown or it is not in our data. + + + .. ts:def:: PublicTemplateDetails + + interface PublicTemplateDetails { + + // Subject of the template + subject: string; + + // The amount entered by the customer + amount: Amount; + + } + + ------------------ The Contract Terms ------------------ -- cgit v1.2.3