diff options
author | priscilla <priscilla.huang@efrei.net> | 2022-11-15 08:09:26 -0500 |
---|---|---|
committer | priscilla <priscilla.huang@efrei.net> | 2022-11-15 08:09:26 -0500 |
commit | dd2d6f96d1296ec1eeca3ebf58f9cd4932f7e13c (patch) | |
tree | 6595b899dd6d19875cf88285cf3f3af9d429b5b6 /core/api-merchant.rst | |
parent | 6655bcc961f210389c4d40db35b516a150854ee3 (diff) | |
download | docs-dd2d6f96d1296ec1eeca3ebf58f9cd4932f7e13c.tar.gz docs-dd2d6f96d1296ec1eeca3ebf58f9cd4932f7e13c.tar.bz2 docs-dd2d6f96d1296ec1eeca3ebf58f9cd4932f7e13c.zip |
Update
Diffstat (limited to 'core/api-merchant.rst')
-rw-r--r-- | core/api-merchant.rst | 47 |
1 files changed, 42 insertions, 5 deletions
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 ------------------ |