From 8fa1486bd944d3ebc24d1deef245b93f86051319 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 22 Jul 2020 15:09:00 +0530 Subject: add clear sum type discriminator to make parsing in TS/Kotlin easier --- core/api-merchant.rst | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'core/api-merchant.rst') diff --git a/core/api-merchant.rst b/core/api-merchant.rst index e1de4a66..516163de 100644 --- a/core/api-merchant.rst +++ b/core/api-merchant.rst @@ -1375,6 +1375,8 @@ Payment processing // Details about why a refund failed. interface RefundFailure { + // Used as tag for the sum type RefundStatus sum type. + success: false; // HTTP status of the exchange request, must NOT be 200. exchange_status: Integer; @@ -1403,6 +1405,8 @@ Payment processing // (``h_contract_terms`` and ``merchant_pub``) are already known // to the wallet and thus not included. interface RefundConfirmation { + // Used as tag for the sum type RefundStatus sum type. + success: true; // HTTP status of the exchange request, 200 (integer) required for refund confirmations. exchange_status: 200; -- cgit v1.2.3