1 /**
2 * @schema StoreOrderShippingMethod
3 * type: object
4 * description: The shipping method's details.
5 * x-schemaName: StoreOrderShippingMethod
6 * required:
7 * - id
8 * - order_id
9 * - name
10 * - amount
11 * - is_tax_inclusive
12 * - shipping_option_id
13 * - data
14 * - metadata
15 * - original_total
16 * - original_subtotal
17 * - original_tax_total
18 * - total
19 * - subtotal
20 * - tax_total
21 * - discount_total
22 * - discount_tax_total
23 * - created_at
24 * - updated_at
25 * properties:
26 * tax_lines:
27 * type: array
28 * description: The shipping method's tax lines.
29 * items:
30 * allOf:
31 * - $ref: "#/components/schemas/BaseOrderShippingMethodTaxLine"
32 * - type: object
33 * description: The tax line's details.
34 * required:
35 * - shipping_method
36 * properties:
37 * shipping_method:
38 * $ref: "#/components/schemas/StoreOrderShippingMethod"
39 * adjustments:
40 * type: array
41 * description: The shipping method's adjustments.
42 * items:
43 * allOf:
44 * - $ref: "#/components/schemas/BaseOrderShippingMethodAdjustment"
45 * - type: object
46 * description: The adjustment's details.
47 * required:
48 * - shipping_method
49 * properties:
50 * shipping_method:
51 * $ref: "#/components/schemas/StoreOrderShippingMethod"
52 * detail:
53 * allOf:
54 * - $ref: "#/components/schemas/BaseOrderShippingDetail"
55 * - type: object
56 * description: The shipping method's detail.
57 * required:
58 * - shipping_method
59 * properties:
60 * shipping_method:
61 * $ref: "#/components/schemas/StoreOrderShippingMethod"
62 * id:
63 * type: string
64 * title: id
65 * description: The shipping method's ID.
66 * order_id:
67 * type: string
68 * title: order_id
69 * description: The ID of the order the shipping method belongs to.
70 * name:
71 * type: string
72 * title: name
73 * description: The shipping method's name.
74 * description:
75 * type: string
76 * title: description
77 * description: The shipping method's description.
78 * amount:
79 * type: number
80 * title: amount
81 * description: The shipping method's amount.
82 * is_tax_inclusive:
83 * type: boolean
84 * title: is_tax_inclusive
85 * description: Whether the shipping method's amount includes applied taxes.
86 * shipping_option_id:
87 * type: string
88 * title: shipping_option_id
89 * description: The ID of the shipping option this method was created from.
90 * data:
91 * type: object
92 * description: The shipping method's data, useful for fulfillment provider handling its fulfillment.
93 * externalDocs:
94 * url: https://docs.medusajs.com/resources/commerce-modules/fulfillment/shipping-option#data-property
95 * metadata:
96 * type: object
97 * description: The shipping method's metadata, can hold custom key-value pairs.
98 * externalDocs:
99 * url: https://docs.medusajs.com/api/store#manage-metadata
100 * description: Learn how to manage metadata
101 * original_total:
102 * type: number
103 * title: original_total
104 * description: The shipping method's total including taxes, excluding promotions.
105 * original_subtotal:
106 * type: number
107 * title: original_subtotal
108 * description: The shipping method's total excluding taxes, including promotions.
109 * original_tax_total:
110 * type: number
111 * title: original_tax_total
112 * description: The shipping method's total taxes excluding promotions.
113 * total:
114 * type: number
115 * title: total
116 * description: The shipping method's total including taxes and promotions.
117 * subtotal:
118 * type: number
119 * title: subtotal
120 * description: The shipping method's total excluding taxes, including promotions.
121 * tax_total:
122 * type: number
123 * title: tax_total
124 * description: The shipping method's tax total including promotions.
125 * discount_total:
126 * type: number
127 * title: discount_total
128 * description: The total discounts applied on the shipping method.
129 * discount_tax_total:
130 * type: number
131 * title: discount_tax_total
132 * description: The taxes applied on the discount amount.
133 * created_at:
134 * type: string
135 * format: date-time
136 * title: created_at
137 * description: The date the shipping method was created.
138 * updated_at:
139 * type: string
140 * format: date-time
141 * title: updated_at
142 * description: The date the shipping method was updated.
143 *
144 */
145