commit 309632dc2cd797aa01a8c2a0e11242d160e3beec parent 16923e7f1bc1576af1d247eb130f2bac39fcce61 Author: Florian Dold <florian@dold.me> Date: Tue, 7 Jan 2025 19:33:53 +0100 mechant API: add undeposited response for abort refunds Diffstat:
| M | core/api-merchant.rst | | | 10 | ++++++++++ |
1 file changed, 10 insertions(+), 0 deletions(-)
diff --git a/core/api-merchant.rst b/core/api-merchant.rst @@ -834,6 +834,7 @@ are for incomplete payments for an order and never for established contracts. type MerchantAbortPayRefundStatus = | MerchantAbortPayRefundSuccessStatus + | MerchantAbortPayRefundUndepositedStatus | MerchantAbortPayRefundFailureStatus; .. ts:def:: MerchantAbortPayRefundFailureStatus @@ -877,6 +878,15 @@ are for incomplete payments for an order and never for established contracts. exchange_pub: EddsaPublicKey; } + .. ts:def:: MerchantAbortPayRefundUndepositedStatus + + // The merchant didn't deposit the coin in the first place, + // no refund possible. + interface MerchantAbortPayRefundSuccessStatus { + // Used as tag for the sum type MerchantCoinRefundStatus sum type. + type: "undeposited"; + } + Obtaining refunds -----------------