File tree Expand file tree Collapse file tree 4 files changed +27
-0
lines changed
medusa/src/api/admin/orders/[id]/transfer Expand file tree Collapse file tree 4 files changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -122,6 +122,8 @@ export interface AdminRequestOrderTransfer {
122122 description ?: string
123123 /**
124124 * Whether to update the order.email to the transferred customer email.
125+ *
126+ * @since 2.13.7
125127 */
126128 update_order_email ?: boolean
127129}
Original file line number Diff line number Diff line change 1+ /**
2+ * The details to request an order transfer.
3+ */
14export interface StoreRequestOrderTransfer {
25 /**
36 * The description of the transfer request.
47 */
58 description ?: string
69 /**
710 * Whether to update the order.email to the transferred customer email.
11+ *
12+ * @since 2.13.7
813 */
914 update_order_email ?: boolean
1015}
1116
17+ /**
18+ * The details to accept an order transfer.
19+ */
1220export interface StoreAcceptOrderTransfer {
21+ /**
22+ * The transfer token received in the email notification.
23+ */
1324 token : string
1425}
1526
27+ /**
28+ * The details to decline an order transfer.
29+ */
1630export interface StoreDeclineOrderTransfer {
31+ /**
32+ * The transfer token received in the email notification.
33+ */
1734 token : string
1835}
Original file line number Diff line number Diff line change 1+ /**
2+ * The input to the request order transfer workflow.
3+ */
14export interface RequestOrderTransferWorkflowInput {
25 /**
36 * The ID of the order to transfer.
@@ -23,6 +26,8 @@ export interface RequestOrderTransferWorkflowInput {
2326 internal_note ?: string
2427 /**
2528 * Whether to update the order.email to the transferred customer email.
29+ *
30+ * @since 2.13.7
2631 */
2732 update_order_email ?: boolean
2833}
Original file line number Diff line number Diff line change 99 remoteQueryObjectFromString ,
1010} from "@medusajs/framework/utils"
1111
12+ /**
13+ * Request a transfer of an order to a customer.
14+ */
1215export const POST = async (
1316 req : AuthenticatedMedusaRequest <
1417 HttpTypes . AdminRequestOrderTransfer ,
You can’t perform that action at this time.
0 commit comments