gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-docs] branch master updated: Update


From: gnunet
Subject: [taler-docs] branch master updated: Update
Date: Tue, 15 Nov 2022 17:45:27 +0100

This is an automated email from the git hooks/post-receive script.

priscilla-huang pushed a commit to branch master
in repository docs.

The following commit(s) were added to refs/heads/master by this push:
     new a112d09  Update
a112d09 is described below

commit a112d096190fffa94572e5f660e0ef75f1834743
Author: priscilla <priscilla.huang@efrei.net>
AuthorDate: Tue Nov 15 11:40:48 2022 -0500

    Update
---
 core/api-merchant.rst | 61 ++++++++++++++-------------------------------------
 1 file changed, 17 insertions(+), 44 deletions(-)

diff --git a/core/api-merchant.rst b/core/api-merchant.rst
index 4d1df24..552ee77 100644
--- a/core/api-merchant.rst
+++ b/core/api-merchant.rst
@@ -3031,9 +3031,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.
+      // The time the customer need to pay before his order will be deleted.
       // It is deleted if the customer did not pay and if the duration is over.
-      pay_duration: TimeLimit;
+      pay_duration: RelativeTime;
 
    }
 
@@ -3173,75 +3173,48 @@ Removing template
 
 
 
-Dynamic template
+Using template
 ----------------
 
 .. http:post:: [/instances/$INSTANCES]/templates/$TEMPLATE_ID
 
-   This dynamic template can be modified by everyone and will be used to 
create order.
+   This using template can be modified by everyone and will be used to create 
order.
 
 
    **Request:**
 
-   The request must be a `DynamicTemplateDetails`.
+   The request must be a `UsingTemplateDetails` and we accept JSON application 
and URL encoded.
 
 
    **Response:**
 
    :http:statuscode:`200 OK`:
-     The creation of the dynamic template is successful. Returns a 
`DynamicTemplateResponse`.
-   :http:statuscode:`202 Accepted`:
-     If the user use a browser, he should be redirected to the provided 
locations to finish his order. The reponse will be an `RedirectTemplate`. After 
being redirected, it will returns `DynamicTemplateResponse`.
-     If the user use the application Taler, he will not redirected to another 
location.
+     The using template is successful. Returns a `UsingTemplateResponse`.
+   :http:statuscode:`302 Found`:
+     The client should go to the indicated location. Only returned if the 
content type was HTML. The target site may allow the client to pay his order.
    :http:statuscode:`404 Not found`:
-     The merchant instance is unknown or it is not in our data.
-
-
- .. ts:def:: DynamicTemplateDetails
-
-    interface DynamicTemplateDetails {
-
-      // Subject of the template
-      subject?: string;
-
-      // The amount entered by the customer
-      amount?: Amount;
-   }
+     The merchant instance is unknown or the template is unknown.
 
 
- .. ts:def:: DynamicTemplateWebBrowser
+ .. ts:def:: UsingTemplateDetails
 
-    interface DynamicTemplateWebBrowser {
+    interface UsingTemplateDetails {
 
       // Subject of the template
       subject?: string;
 
-      // The amount entered by the customer
+      // The amount entered by the customer.
       amount?: Amount;
-
-      // The button the user needs to complete his order.
-      button_url: RedirectTemplate;
-
    }
 
- .. ts:def:: DynamicTemplateResponse
-
-    interface DynamicTemplateResponse {
-
-       // After enter the request. The user will be pay with QR code.
-       public_qrcode: string;
-
-   }
-
-
- .. ts:def:: RedirectTemplate
 
-    interface RedirectTemplate {
+ .. ts:def:: UsingTemplateResponse
 
-      // The user should go to the URL.
-      // He will be redirected to finish his order and pay on it.
-      public_url: string;
+    interface UsingTemplateResponse {
 
+       // After enter the request. The user will be pay with a taler URL.
+       taler_url: string;
+       
    }
 
 

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]