1 /**
2 * @schema StoreCalculatedPrice
3 * type: object
4 * description: The shipping option's calculated price.
5 * x-schemaName: StoreCalculatedPrice
6 * required:
7 * - id
8 * - calculated_amount
9 * - original_amount
10 * - original_amount_with_tax
11 * - original_amount_without_tax
12 * - currency_code
13 * properties:
14 * id:
15 * type: string
16 * title: id
17 * description: The ID of the price set from which the price was selected.
18 * is_calculated_price_price_list:
19 * type: boolean
20 * title: is_calculated_price_price_list
21 * description: Whether the calculated price belongs to a price list.
22 * is_calculated_price_tax_inclusive:
23 * type: boolean
24 * title: is_calculated_price_tax_inclusive
25 * description: Whether the calculated price is tax inclusive.
26 * externalDocs:
27 * url: https://docs.medusajs.com/resources/commerce-modules/pricing/tax-inclusive-pricing
28 * calculated_amount:
29 * type: number
30 * title: calculated_amount
31 * description: The amount of the calculated price, or `null` if there isn't a calculated price. This is the amount shown to the customer.
32 * calculated_amount_with_tax:
33 * type: number
34 * title: calculated_amount_with_tax
35 * description: The `calculated_amount` with taxes applied.
36 * calculated_amount_without_tax:
37 * type: number
38 * title: calculated_amount_without_tax
39 * description: The `calculated_amount` without taxes applied.
40 * is_original_price_price_list:
41 * type: boolean
42 * title: is_original_price_price_list
43 * description: Whether the original price belongs to a price list.
44 * is_original_price_tax_inclusive:
45 * type: boolean
46 * title: is_original_price_tax_inclusive
47 * description: Whether the original price is tax inclusive.
48 * externalDocs:
49 * url: https://docs.medusajs.com/resources/commerce-modules/pricing/tax-inclusive-pricing
50 * original_amount:
51 * type: number
52 * title: original_amount
53 * description: The amount of the original price, or `null` if there isn't an original price. This amount is useful to compare with the `calculated_amount`, such as to check for discounted value.
54 * currency_code:
55 * type: string
56 * title: currency_code
57 * description: The currency code of the calculated price, or `null` if there isn't a calculated price.
58 * calculated_price:
59 * type: object
60 * description: The calculated price's details.
61 * required:
62 * - id
63 * - price_list_id
64 * - price_list_type
65 * - min_quantity
66 * - max_quantity
67 * properties:
68 * id:
69 * type: string
70 * title: id
71 * description: The ID of the price.
72 * price_list_id:
73 * type: string
74 * title: price_list_id
75 * description: The ID of the associated price list.
76 * price_list_type:
77 * type: string
78 * title: price_list_type
79 * description: The price list's type. For example, `sale` or `override`.
80 * min_quantity:
81 * type: number
82 * title: min_quantity
83 * description: The minimum quantity required in the cart for the price to apply.
84 * max_quantity:
85 * type: number
86 * title: max_quantity
87 * description: The maximum quantity required in the cart for the price to apply.
88 * original_price:
89 * type: object
90 * description: The origin price's details.
91 * required:
92 * - id
93 * - price_list_id
94 * - price_list_type
95 * - min_quantity
96 * - max_quantity
97 * properties:
98 * id:
99 * type: string
100 * title: id
101 * description: The ID of the price.
102 * price_list_id:
103 * type: string
104 * title: price_list_id
105 * description: The ID of the associated price list.
106 * price_list_type:
107 * type: string
108 * title: price_list_type
109 * description: The price list's type. For example, `sale` or `override`.
110 * min_quantity:
111 * type: number
112 * title: min_quantity
113 * description: The minimum quantity required in the cart for the price to apply.
114 * max_quantity:
115 * type: number
116 * title: max_quantity
117 * description: The maximum quantity required in the cart for the price to apply.
118 * original_amount_with_tax:
119 * type: number
120 * title: original_amount_with_tax
121 * description: The original amount with taxes applied.
122 * original_amount_without_tax:
123 * type: number
124 * title: original_amount_without_tax
125 * description: The original amount without taxes.
126 *
127 */
128