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