Skip to content

Commit ba364f1

Browse files
authored
docs: add TSDocs for 2045c77 (#15063)
Co-authored-by: shahednasser <[email protected]>
1 parent 2045c77 commit ba364f1

File tree

4 files changed

+27
-0
lines changed

4 files changed

+27
-0
lines changed

packages/core/types/src/http/order/admin/payload.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,35 @@
1+
/**
2+
* The details to request an order transfer.
3+
*/
14
export 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+
*/
1220
export 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+
*/
1630
export interface StoreDeclineOrderTransfer {
31+
/**
32+
* The transfer token received in the email notification.
33+
*/
1734
token: string
1835
}

packages/core/types/src/workflow/order/request-transfer.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
/**
2+
* The input to the request order transfer workflow.
3+
*/
14
export 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
}

packages/medusa/src/api/admin/orders/[id]/transfer/route.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ import {
99
remoteQueryObjectFromString,
1010
} from "@medusajs/framework/utils"
1111

12+
/**
13+
* Request a transfer of an order to a customer.
14+
*/
1215
export const POST = async (
1316
req: AuthenticatedMedusaRequest<
1417
HttpTypes.AdminRequestOrderTransfer,

0 commit comments

Comments
 (0)