1 /**
2 * @schema BaseCartShippingMethod
3 * type: object
4 * description: A cart's shipping method.
5 * x-schemaName: BaseCartShippingMethod
6 * required:
7 * - id
8 * - cart_id
9 * - name
10 * - amount
11 * - is_tax_inclusive
12 * - created_at
13 * - updated_at
14 * properties:
15 * id:
16 * type: string
17 * title: id
18 * description: The shipping method's ID.
19 * cart_id:
20 * type: string
21 * title: cart_id
22 * description: The ID of the cart this shipping method belongs to.
23 * name:
24 * type: string
25 * title: name
26 * description: The shipping method's name.
27 * description:
28 * type: string
29 * title: description
30 * description: The shipping method's description.
31 * amount:
32 * type: number
33 * title: amount
34 * description: The shipping method's amount.
35 * is_tax_inclusive:
36 * type: boolean
37 * title: is_tax_inclusive
38 * description: Whether the shipping method's amount is tax inclusive.
39 * shipping_option_id:
40 * type: string
41 * title: shipping_option_id
42 * description: The ID of the shipping option this method was created from.
43 * data:
44 * type: object
45 * description: The shipping method's data, useful for fulfillment handling by third-party services.
46 * externalDocs:
47 * url: https://docs.medusajs.com/resources/commerce-modules/cart/concepts#data-property
48 * metadata:
49 * type: object
50 * description: The shipping method's metadata, can hold custom key-value pairs.
51 * externalDocs:
52 * url: https://docs.medusajs.com/api/store#manage-metadata
53 * description: Learn how to manage metadata
54 * tax_lines:
55 * type: array
56 * description: The shipping method's tax lines.
57 * items:
58 * $ref: "#/components/schemas/BaseShippingMethodTaxLine"
59 * adjustments:
60 * type: array
61 * description: The shipping method's adjustments, such as applied promotions.
62 * items:
63 * $ref: "#/components/schemas/BaseShippingMethodAdjustment"
64 * created_at:
65 * type: string
66 * format: date-time
67 * title: created_at
68 * description: The date the shipping method was created.
69 * updated_at:
70 * type: string
71 * format: date-time
72 * title: updated_at
73 * description: The date the shipping method was updated.
74 * original_total:
75 * type: number
76 * title: original_total
77 * description: The shipping method's original total before discounts, including taxes.
78 * original_subtotal:
79 * type: number
80 * title: original_subtotal
81 * description: The shipping method's original subtotal before discounts, excluding taxes.
82 * original_tax_total:
83 * type: number
84 * title: original_tax_total
85 * description: The shipping method's original tax total before discounts.
86 * total:
87 * type: number
88 * title: total
89 * description: The shipping method's total after discounts, including taxes.
90 * subtotal:
91 * type: number
92 * title: subtotal
93 * description: The shipping method's subtotal before discounts, excluding taxes.
94 * tax_total:
95 * type: number
96 * title: tax_total
97 * description: The shipping method's tax total after discounts.
98 * discount_total:
99 * type: number
100 * title: discount_total
101 * description: The total amount of discounts applied to the shipping method, including the tax portion of discounts.
102 * discount_tax_total:
103 * type: number
104 * title: discount_tax_total
105 * description: The total amount of discounts applied to the shipping method's tax. Represents the tax portion of discounts.
106 *
107 */
108