From 6b8a9e91d3c17ba57ba240d45df94b712658ddd8 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 11 Aug 2020 18:12:57 +0530 Subject: spec Gone response for order status --- core/api-merchant.rst | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'core') 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 -- cgit v1.2.3