summaryrefslogtreecommitdiff
path: root/core/api-merchant.rst
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-07-24 12:41:26 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-07-24 12:41:26 +0530
commit53f05129075ed4d7e783ca79a54a57d6451b499b (patch)
treee49be7e70e2124dfb846001d07255b9494f397aa /core/api-merchant.rst
parent83fa5f2aabda92ffb2d83f1b925c7329c4f05aa2 (diff)
downloaddocs-53f05129075ed4d7e783ca79a54a57d6451b499b.tar.gz
docs-53f05129075ed4d7e783ca79a54a57d6451b499b.tar.bz2
docs-53f05129075ed4d7e783ca79a54a57d6451b499b.zip
use strings as union tag
Diffstat (limited to 'core/api-merchant.rst')
-rw-r--r--core/api-merchant.rst12
1 files changed, 6 insertions, 6 deletions
diff --git a/core/api-merchant.rst b/core/api-merchant.rst
index cde9709..7c5e097 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;