1 /**
2 * @schema AdminOrderChange
3 * type: object
4 * description: The order change's details.
5 * x-schemaName: AdminOrderChange
6 * required:
7 * - order
8 * - claim
9 * - return_order
10 * - exchange
11 * - actions
12 * - id
13 * - version
14 * - status
15 * - metadata
16 * - created_at
17 * - updated_at
18 * - order_id
19 * - internal_note
20 * - return_id
21 * - exchange_id
22 * - claim_id
23 * - requested_by
24 * - requested_at
25 * - confirmed_by
26 * - confirmed_at
27 * - declined_by
28 * - declined_reason
29 * - declined_at
30 * - canceled_by
31 * - canceled_at
32 * - created_by
33 * properties:
34 * id:
35 * type: string
36 * title: id
37 * description: The order change's ID.
38 * version:
39 * type: number
40 * title: version
41 * description: The order change's version. This will be the order's version when the change is applied.
42 * change_type:
43 * type: string
44 * description: The order change's type.
45 * enum:
46 * - return
47 * - exchange
48 * - claim
49 * - edit
50 * order_id:
51 * type: string
52 * title: order_id
53 * description: The ID of the order this change applies on.
54 * return_id:
55 * type: string
56 * title: return_id
57 * description: The ID of the associated return.
58 * exchange_id:
59 * type: string
60 * title: exchange_id
61 * description: The ID of the associated exchange.
62 * claim_id:
63 * type: string
64 * title: claim_id
65 * description: The ID of the associated claim.
66 * order:
67 * $ref: "#/components/schemas/AdminOrder"
68 * return_order:
69 * $ref: "#/components/schemas/AdminReturn"
70 * exchange:
71 * $ref: "#/components/schemas/AdminExchange"
72 * claim:
73 * $ref: "#/components/schemas/AdminClaim"
74 * actions:
75 * type: array
76 * description: The order change's actions.
77 * items:
78 * $ref: "#/components/schemas/AdminOrderChangeAction"
79 * status:
80 * type: string
81 * description: The order change's status.
82 * enum:
83 * - canceled
84 * - requested
85 * - pending
86 * - confirmed
87 * - declined
88 * requested_by:
89 * type: string
90 * title: requested_by
91 * description: The ID of the user that requested the change.
92 * requested_at:
93 * type: string
94 * title: requested_at
95 * description: The date the order change was requested.
96 * format: date-time
97 * confirmed_by:
98 * type: string
99 * title: confirmed_by
100 * description: The ID of the user that confirmed the order change.
101 * confirmed_at:
102 * type: string
103 * title: confirmed_at
104 * description: The date the order change was confirmed.
105 * format: date-time
106 * declined_by:
107 * type: string
108 * title: declined_by
109 * description: The ID of the user that declined the order change.
110 * declined_reason:
111 * type: string
112 * title: declined_reason
113 * description: The reason the order change was declined.
114 * metadata:
115 * type: object
116 * description: The order change's metadata, can hold custom key-value pairs.
117 * externalDocs:
118 * url: https://docs.medusajs.com/api/admin#manage-metadata
119 * description: Learn how to manage metadata
120 * declined_at:
121 * type: string
122 * title: declined_at
123 * description: The date the order change was declined.
124 * format: date-time
125 * canceled_by:
126 * type: string
127 * title: canceled_by
128 * description: The ID of the user that canceled the order change.
129 * canceled_at:
130 * type: string
131 * title: canceled_at
132 * description: The date the order change was canceled.
133 * format: date-time
134 * created_at:
135 * type: string
136 * format: date-time
137 * title: created_at
138 * description: The date the order change was created.
139 * updated_at:
140 * type: string
141 * format: date-time
142 * title: updated_at
143 * description: The date the order change was updated.
144 * carry_over_promotions:
145 * type: boolean
146 * title: carry_over_promotions
147 * description: Whether promotions from the original order should be carried over to the order change (specifically, exchanges).
148 * created_by:
149 * type: string
150 * title: created_by
151 * description: The ID of the user that created the order change.
152 * internal_note:
153 * type: string
154 * title: internal_note
155 * description: The order change's internal note.
156 * no_notification:
157 * type: boolean
158 * title: no_notification
159 * description: Whether to send notifications to the customer regarding the order change's updates.
160 *
161 */
162