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