|
1
|
/** |
|
2
|
* @schema StoreCartShippingMethod |
|
3
|
* type: object |
|
4
|
* description: A cart's shipping method. |
|
5
|
* x-schemaName: StoreCartShippingMethod |
|
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
|
* allOf: |
|
59
|
* - $ref: "#/components/schemas/BaseShippingMethodTaxLine" |
|
60
|
* - type: object |
|
61
|
* description: The tax line's details. |
|
62
|
* required: |
|
63
|
* - shipping_method |
|
64
|
* properties: |
|
65
|
* shipping_method: |
|
66
|
* type: object |
|
67
|
* title: shipping_method |
|
68
|
* description: The details of the method that the tax line belongs to. |
|
69
|
* description: The tax line's details. |
|
70
|
* adjustments: |
|
71
|
* type: array |
|
72
|
* description: The shipping method's adjustments, such as applied promotions. |
|
73
|
* items: |
|
74
|
* allOf: |
|
75
|
* - $ref: "#/components/schemas/BaseShippingMethodAdjustment" |
|
76
|
* - type: object |
|
77
|
* description: The adjustment's details. |
|
78
|
* required: |
|
79
|
* - shipping_method |
|
80
|
* properties: |
|
81
|
* shipping_method: |
|
82
|
* type: object |
|
83
|
* title: shipping_method |
|
84
|
* description: The details of the method that the adjustment belongs to. |
|
85
|
* description: The adjustment's details. |
|
86
|
* created_at: |
|
87
|
* type: string |
|
88
|
* format: date-time |
|
89
|
* title: created_at |
|
90
|
* description: The date the shipping method was created. |
|
91
|
* updated_at: |
|
92
|
* type: string |
|
93
|
* format: date-time |
|
94
|
* title: updated_at |
|
95
|
* description: The date the shipping method was updated. |
|
96
|
* original_total: |
|
97
|
* type: number |
|
98
|
* title: original_total |
|
99
|
* description: The shipping method's original total before discounts, including taxes. This field is only available if you expand the `shipping_methods.*` relation. Learn more in the [Cart |
|
100
|
* Totals](https://docs.medusajs.com/resources/storefront-development/cart/totals#retrieve-and-show-shipping-method-totals) guide. |
|
101
|
* original_subtotal: |
|
102
|
* type: number |
|
103
|
* title: original_subtotal |
|
104
|
* description: The shipping method's original subtotal before discounts, excluding taxes. This field is only available if you expand the `shipping_methods.*` relation. Learn more in the [Cart |
|
105
|
* Totals](https://docs.medusajs.com/resources/storefront-development/cart/totals#retrieve-and-show-shipping-method-totals) guide. |
|
106
|
* original_tax_total: |
|
107
|
* type: number |
|
108
|
* title: original_tax_total |
|
109
|
* description: The shipping method's original tax total before discounts. This field is only available if you expand the `shipping_methods.*` relation. Learn more in the [Cart |
|
110
|
* Totals](https://docs.medusajs.com/resources/storefront-development/cart/totals#retrieve-and-show-shipping-method-totals) guide. |
|
111
|
* total: |
|
112
|
* type: number |
|
113
|
* title: total |
|
114
|
* description: The shipping method's total after discounts, including taxes. This field is only available if you expand the `shipping_methods.*` relation. Learn more in the [Cart |
|
115
|
* Totals](https://docs.medusajs.com/resources/storefront-development/cart/totals#retrieve-and-show-shipping-method-totals) guide. |
|
116
|
* subtotal: |
|
117
|
* type: number |
|
118
|
* title: subtotal |
|
119
|
* description: The shipping method's subtotal before discounts, excluding taxes. This field is only available if you expand the `shipping_methods.*` relation. Learn more in the [Cart |
|
120
|
* Totals](https://docs.medusajs.com/resources/storefront-development/cart/totals#retrieve-and-show-shipping-method-totals) guide. |
|
121
|
* tax_total: |
|
122
|
* type: number |
|
123
|
* title: tax_total |
|
124
|
* description: The shipping method's tax total after discounts. This field is only available if you expand the `shipping_methods.*` relation. Learn more in the [Cart |
|
125
|
* Totals](https://docs.medusajs.com/resources/storefront-development/cart/totals#retrieve-and-show-shipping-method-totals) guide. |
|
126
|
* discount_total: |
|
127
|
* type: number |
|
128
|
* title: discount_total |
|
129
|
* description: The total amount of discounts applied to the shipping method, including the tax portion of discounts. This field is only available if you expand the `shipping_methods.*` relation. Learn |
|
130
|
* more in the [Cart Totals](https://docs.medusajs.com/resources/storefront-development/cart/totals#retrieve-and-show-shipping-method-totals) guide. |
|
131
|
* discount_tax_total: |
|
132
|
* type: number |
|
133
|
* title: discount_tax_total |
|
134
|
* description: The total amount of discounts applied to the shipping method's tax. Represents the tax portion of discounts. This field is only available if you expand the `shipping_methods.*` relation. |
|
135
|
* Learn more in the [Cart Totals](https://docs.medusajs.com/resources/storefront-development/cart/totals#retrieve-and-show-shipping-method-totals) guide. |
|
136
|
* |
|
137
|
*/ |
|
138
|
|