1 /**
2 * @schema OrderShippingMethod
3 * type: object
4 * description: The shipping method's details.
5 * x-schemaName: OrderShippingMethod
6 * required:
7 * - id
8 * - order_id
9 * - name
10 * - amount
11 * - is_tax_inclusive
12 * - is_custom_amount
13 * - created_at
14 * - updated_at
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 * properties:
24 * id:
25 * type: string
26 * title: id
27 * description: The shipping method's ID.
28 * order_id:
29 * type: string
30 * title: order_id
31 * description: The ID of the order that the shipping method belongs to.
32 * name:
33 * type: string
34 * title: name
35 * description: The shipping method's name.
36 * description:
37 * type: string
38 * title: description
39 * description: The shipping method's description.
40 * amount:
41 * type: number
42 * title: amount
43 * description: The shipping method's amount.
44 * is_tax_inclusive:
45 * type: boolean
46 * title: is_tax_inclusive
47 * description: Whether the shipping method's amount includes taxes.
48 * shipping_option_id:
49 * type: string
50 * title: shipping_option_id
51 * description: The ID of the shipping option this method was created from.
52 * data:
53 * type: object
54 * description: The shipping method's data, useful for the fulfillment provider handling the fulfillment.
55 * externalDocs:
56 * url: https://docs.medusajs.com/resources/commerce-modules/order/concepts#data-property
57 * metadata:
58 * type: object
59 * description: The shipping method's metadata, can hold custom key-value pairs.
60 * externalDocs:
61 * url: https://docs.medusajs.com/api/store#manage-metadata
62 * description: Learn how to manage metadata
63 * tax_lines:
64 * type: array
65 * description: The shipping method's tax lines.
66 * items:
67 * $ref: "#/components/schemas/OrderShippingMethodTaxLine"
68 * adjustments:
69 * type: array
70 * description: The shipping method's adjustments.
71 * items:
72 * $ref: "#/components/schemas/OrderShippingMethodAdjustment"
73 * created_at:
74 * type: string
75 * format: date-time
76 * title: created_at
77 * description: The date the shipping method was created.
78 * updated_at:
79 * type: string
80 * format: date-time
81 * title: updated_at
82 * description: The date the shipping method was updated.
83 * original_total:
84 * type: number
85 * title: original_total
86 * description: The shipping method's total including taxes, excluding promotions.
87 * original_subtotal:
88 * type: number
89 * title: original_subtotal
90 * description: The shipping method's subtotal excluding taxes, including promotions.
91 * original_tax_total:
92 * type: number
93 * title: original_tax_total
94 * description: The total taxes of the shipping method excluding promotions.
95 * total:
96 * type: number
97 * title: total
98 * description: The shipping method's total including taxes and promotions.
99 * subtotal:
100 * type: number
101 * title: subtotal
102 * description: The shipping method's total excluding taxes, including promotions.
103 * tax_total:
104 * type: number
105 * title: tax_total
106 * description: The total taxes of the shipping method, including promotions.
107 * discount_total:
108 * type: number
109 * title: discount_total
110 * description: The shipping method's discount total.
111 * discount_tax_total:
112 * type: number
113 * title: discount_tax_total
114 * description: The total taxes of the discount amount.
115 * is_custom_amount:
116 * type: boolean
117 * title: is_custom_amount
118 * description: Whether the shipping method price is custom amount or not.
119 *
120 */
121