summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-08-11 18:12:57 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-08-11 18:12:57 +0530
commit6b8a9e91d3c17ba57ba240d45df94b712658ddd8 (patch)
tree9a16a42417126691b75ebb655873410cffa55975
parent3f9f0bb6c6b979b68625c8af1d9a3be882e253b6 (diff)
downloaddocs-6b8a9e91d3c17ba57ba240d45df94b712658ddd8.tar.gz
docs-6b8a9e91d3c17ba57ba240d45df94b712658ddd8.tar.bz2
docs-6b8a9e91d3c17ba57ba240d45df94b712658ddd8.zip
spec Gone response for order status
-rw-r--r--core/api-merchant.rst13
1 files changed, 12 insertions, 1 deletions
diff --git a/core/api-merchant.rst b/core/api-merchant.rst
index 381e17bd..db1bf9cb 100644
--- a/core/api-merchant.rst
+++ b/core/api-merchant.rst
@@ -1409,6 +1409,8 @@ Payment processing
The response is a `StatusUnpaidResponse`.
:status 403 Forbidden:
The ``h_contract`` (or the ``token`` for unclaimed orders) does not match the order.
+ :status 410 Gone:
+ The response is a `StatusGoneResponse`.
:status 404 Not found:
The merchant backend is unaware of the order.
:status 406 Not Acceptable:
@@ -1436,7 +1438,7 @@ Payment processing
.. ts:def:: StatusUnpaidResponse
- interface StatusUnpaid {
+ interface StatusUnpaidResponse {
// URI that the wallet must process to complete the payment.
taler_pay_uri: string;
@@ -1446,6 +1448,15 @@ Payment processing
}
+ .. ts:def:: StatusGoneResponse
+
+ // The client tried to access the order via the claim
+ // token (and not a valid h_contract), but the order can't be claimed
+ // anymore, as it is already paid.
+ interface StatusGoneResponse {
+ // Fulfillment URL for the order.
+ fulfillment_url: string;
+ }
.. ts:def:: MerchantCoinRefundStatus