taler-docs

Documentation for GNU Taler components, APIs and protocols
Log | Files | Refs | README | LICENSE

commit 8fa1486bd944d3ebc24d1deef245b93f86051319
parent c6f93351aaa881f1fb4a8c3fb6e7b1065addd857
Author: Florian Dold <florian.dold@gmail.com>
Date:   Wed, 22 Jul 2020 15:09:00 +0530

add clear sum type discriminator to make parsing in TS/Kotlin easier

Diffstat:
Mcore/api-merchant.rst | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git 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;