1 /**
2 * @schema OrderClaim
3 * type: object
4 * description: The order change's claim.
5 * x-schemaName: OrderClaim
6 * required:
7 * - id
8 * - type
9 * - order_id
10 * - order_version
11 * - display_id
12 * - claim_items
13 * - additional_items
14 * - metadata
15 * properties:
16 * id:
17 * type: string
18 * title: id
19 * description: The claim's ID.
20 * order_id:
21 * type: string
22 * title: order_id
23 * description: The ID of the order associated with the claim.
24 * claim_items:
25 * type: array
26 * description: The order items targetted by the claim.
27 * items:
28 * $ref: "#/components/schemas/BaseClaimItem"
29 * additional_items:
30 * type: array
31 * description: The outbound or new items of the claim.
32 * items:
33 * $ref: "#/components/schemas/BaseClaimItem"
34 * return:
35 * $ref: "#/components/schemas/Return"
36 * return_id:
37 * type: string
38 * title: return_id
39 * description: The ID of the associated return.
40 * no_notification:
41 * type: boolean
42 * title: no_notification
43 * description: Whether the customer should be notified about changes in the claim.
44 * refund_amount:
45 * type: number
46 * title: refund_amount
47 * description: The amount to be refunded.
48 * display_id:
49 * type: number
50 * title: display_id
51 * description: The claim's display ID.
52 * shipping_methods:
53 * type: array
54 * description: The claim's shipping methods.
55 * items:
56 * $ref: "#/components/schemas/OrderShippingMethod"
57 * transactions:
58 * type: array
59 * description: The claim's transactions.
60 * externalDocs:
61 * url: https://docs.medusajs.com/resources/commerce-modules/order/transactions
62 * description: Learn more about transactions of orders and associated models.
63 * items:
64 * $ref: "#/components/schemas/OrderTransaction"
65 * metadata:
66 * type: object
67 * description: The claim's metadata, used to store custom key-value pairs.
68 * externalDocs:
69 * url: https://docs.medusajs.com/api/store#manage-metadata
70 * description: Learn how to manage metadata
71 * created_at:
72 * type: string
73 * format: date-time
74 * title: created_at
75 * description: The claim's creation date.
76 * updated_at:
77 * type: string
78 * format: date-time
79 * title: updated_at
80 * description: The claim's update date.
81 * type:
82 * type: string
83 * description: The claim's type.
84 * enum:
85 * - replace
86 * - refund
87 * order:
88 * $ref: "#/components/schemas/Order"
89 * order_version:
90 * type: number
91 * title: order_version
92 * description: The claim's order version.
93 * raw_refund_amount:
94 * oneOf:
95 * - type: string
96 * title: raw_refund_amount
97 * description: The claim's raw refund amount.
98 * - type: number
99 * title: raw_refund_amount
100 * description: The claim's raw refund amount.
101 * - type: string
102 * title: raw_refund_amount
103 * description: The claim's raw refund amount.
104 * - type: number
105 * title: raw_refund_amount
106 * description: The claim's raw refund amount.
107 * created_by:
108 * type: string
109 * title: created_by
110 * description: The ID of the user that created the claim.
111 * deleted_at:
112 * type: string
113 * format: date-time
114 * title: deleted_at
115 * description: The date the claim was deleted.
116 * canceled_at:
117 * type: string
118 * title: canceled_at
119 * description: The date the claim was canceled.
120 * format: date-time
121 *
122 */
123