gnunet-svn
[Top][All Lists]
Advanced

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

[taler-docs] branch master updated: use 402 (required for consistency wi


From: gnunet
Subject: [taler-docs] branch master updated: use 402 (required for consistency with HTML API)
Date: Sun, 26 Jul 2020 13:23:31 +0200

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

grothoff pushed a commit to branch master
in repository docs.

The following commit(s) were added to refs/heads/master by this push:
     new 258de33  use 402 (required for consistency with HTML API)
258de33 is described below

commit 258de337784e561526e7cb307591ad21e34a416c
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sun Jul 26 13:23:27 2020 +0200

    use 402 (required for consistency with HTML API)
---
 core/api-merchant.rst | 18 +++++-------------
 1 file changed, 5 insertions(+), 13 deletions(-)

diff --git a/core/api-merchant.rst b/core/api-merchant.rst
index 4b478b3..2493608 100644
--- a/core/api-merchant.rst
+++ b/core/api-merchant.rst
@@ -1370,22 +1370,17 @@ Payment processing
   **Response:**
 
   :status 200 OK:
-    The response is a `PublicPayStatusResponse`, with ``paid`` true.
+    The response is a `StatusPaidResponse`.
+  :status 402 PaymentRequired:
+    The response is a `StatusUnpaidResponse`.
   :status 403 Forbidden:
     The ``h_contract`` does not match the order.
   :status 404 Not found:
     The merchant backend is unaware of the order.
 
-  .. ts:def:: PublicPayStatusResponse
-
-    type PublicPayStatusResponse = StatusPaid | StatusUnpaid
-
-  .. ts:def:: StatusPaid
+  .. ts:def:: StatusPaidResponse
 
     interface StatusPaid {
-      // Has the payment for this order (ever) been completed?
-      order_status: "paid";
-
       // Was the payment refunded (even partially, via refund or abort)?
       refunded: boolean;
 
@@ -1400,12 +1395,9 @@ Payment processing
 
     }
 
-  .. ts:def:: StatusUnpaid
+  .. ts:def:: StatusUnpaidResponse
 
     interface StatusUnpaid {
-      // Has the payment for this order (ever) been completed?
-      order_status: "unpaid";
-
       // URI that the wallet must process to complete the payment.
       taler_pay_uri: 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]