diff options
author | Jonathan Buchanan <jonathan.russ.buchanan@gmail.com> | 2020-08-15 18:22:28 -0400 |
---|---|---|
committer | Jonathan Buchanan <jonathan.russ.buchanan@gmail.com> | 2020-08-15 18:22:28 -0400 |
commit | 002eea95b8fd5b6acdcccc9d5b93cdafde3d7075 (patch) | |
tree | 21e8d9defb8000fc5498ba0ce0c5677f39fc6953 /core/api-merchant.rst | |
parent | b86bb3377a8052e3a88645287311ce1dd39bc8c5 (diff) | |
download | docs-002eea95b8fd5b6acdcccc9d5b93cdafde3d7075.tar.gz docs-002eea95b8fd5b6acdcccc9d5b93cdafde3d7075.tar.bz2 docs-002eea95b8fd5b6acdcccc9d5b93cdafde3d7075.zip |
change wallet refund spec
Diffstat (limited to 'core/api-merchant.rst')
-rw-r--r-- | core/api-merchant.rst | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/core/api-merchant.rst b/core/api-merchant.rst index cff71d0..f576e10 100644 --- a/core/api-merchant.rst +++ b/core/api-merchant.rst @@ -1428,9 +1428,6 @@ Payment processing // Amount that was refunded in total. refund_amount: Amount; - // Public key of the merchant. - merchant_pub: EddsaPublicKey; - } .. ts:def:: StatusUnpaidResponse @@ -1527,23 +1524,31 @@ Giving Refunds **Request:** - :query h_contract=HASH: hash of the order's contract terms (this is used to authenticate the wallet/customer in case $ORDER_ID is guessable). Required. + The request body is a `WalletRefundRequest` object. **Response:** :status 200 OK: The response is a `WalletRefundResponse`. + :status 204 No content: + There are no refunds for the order. :status 403 Forbidden: The ``h_contract`` does not match the order. :status 404 Not found: The merchant backend is unaware of the order. + .. ts:def:: WalletRefundRequest + + interface WalletRefundRequest { + // hash of the order's contract terms (this is used to authenticate the + // wallet/customer). + h_contract: HashCode; + + } + .. ts:def:: WalletRefundResponse interface WalletRefundResponse { - // Was the payment refunded (even partially, via refund or abort)? - refunded: boolean; - // Amount that was refunded in total. refund_amount: Amount; |