From 53f05129075ed4d7e783ca79a54a57d6451b499b Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Fri, 24 Jul 2020 12:41:26 +0530 Subject: use strings as union tag --- core/api-merchant.rst | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'core') diff --git a/core/api-merchant.rst b/core/api-merchant.rst index cde9709b..7c5e097d 100644 --- a/core/api-merchant.rst +++ b/core/api-merchant.rst @@ -1105,7 +1105,7 @@ Payment processing // Details about why a refund failed. interface MerchantAbortPayRefundFailureStatus { // Used as tag for the sum type RefundStatus sum type. - success: false; + type: "failure" // HTTP status of the exchange request, must NOT be 200. exchange_status: Integer; @@ -1124,7 +1124,7 @@ Payment processing // to the wallet and thus not included. interface MerchantAbortPayRefundSuccessStatus { // Used as tag for the sum type MerchantCoinRefundStatus sum type. - success: true; + type: "success" // HTTP status of the exchange request, 200 (integer) required for refund confirmations. exchange_status: 200; @@ -1219,7 +1219,7 @@ Payment processing interface CheckPaymentPaidResponse { // did the customer pay for this contract - paid: true; + status: "paid"; // Was the payment refunded (even partially) refunded: boolean; @@ -1262,7 +1262,7 @@ Payment processing .. ts:def:: CheckPaymentUnpaidResponse interface CheckPaymentUnpaidResponse { - paid: false; + status: "unpaid"; // URI that the wallet must process to complete the payment. taler_pay_uri: string; @@ -1409,7 +1409,7 @@ Payment processing // Details about why a refund failed. interface MerchantCoinRefundFailureStatus { // Used as tag for the sum type RefundStatus sum type. - success: false; + type: "failure"; // HTTP status of the exchange request, must NOT be 200. exchange_status: Integer; @@ -1439,7 +1439,7 @@ Payment processing // to the wallet and thus not included. interface RefundConfirmation { // Used as tag for the sum type MerchantCoinRefundStatus sum type. - success: true; + type: "success"; // HTTP status of the exchange request, 200 (integer) required for refund confirmations. exchange_status: 200; -- cgit v1.2.3