diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-07-22 15:09:00 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-07-22 15:09:00 +0530 |
commit | 8fa1486bd944d3ebc24d1deef245b93f86051319 (patch) | |
tree | 8a0b1a3e48386b352a9303f46e15001a92729572 /core/api-merchant.rst | |
parent | c6f93351aaa881f1fb4a8c3fb6e7b1065addd857 (diff) | |
download | docs-8fa1486bd944d3ebc24d1deef245b93f86051319.tar.gz docs-8fa1486bd944d3ebc24d1deef245b93f86051319.tar.bz2 docs-8fa1486bd944d3ebc24d1deef245b93f86051319.zip |
add clear sum type discriminator to make parsing in TS/Kotlin easier
Diffstat (limited to 'core/api-merchant.rst')
-rw-r--r-- | core/api-merchant.rst | 4 |
1 files changed, 4 insertions, 0 deletions
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; |