commit e834f0fb63da2ba8a08678664e3bb77f3da53d43
parent b2deb4dcc3b09d40479573bde10e32e05971016b
Author: Jonathan Buchanan <jonathan.russ.buchanan@gmail.com>
Date: Sat, 25 Jul 2020 15:58:33 -0400
move refund_delay in POST orders and add refundable in GET orders
Diffstat:
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/core/api-merchant.rst b/core/api-merchant.rst
@@ -647,8 +647,6 @@ Payment processing
The request must be a `PostOrderRequest`.
- :query refund_delay: *Optional*. If set, must be a relative time. The backend will then set the refund deadline to the current time plus the specified delay.
-
**Response:**
:status 200 OK:
@@ -671,6 +669,10 @@ Payment processing
// order detail, but can override all
order: Order;
+ // if set, the backend will then set the refund deadline to the current
+ // time plus the specified delay.
+ refund_delay?: RelativeTime;
+
// specifies the payment target preferred by the client. Can be used
// to select among the various (active) wire methods supported by the instance.
payment_target?: string;
@@ -822,6 +824,9 @@ Payment processing
// the summary of the order
summary: string;
+
+ // whether some part of the order is refundable
+ refundable: boolean;
}