BaseCalculatedPriceSet

Properties#

idstring
The ID of the price set.
calculated_amountnull | number
The amount of the calculated price, or null if there isn't a calculated price.
original_amountnull | number
The amount of the original price, or null if there isn't a calculated price.
currency_codenull | string
The currency code of the calculated price, or null if there isn't a calculated price.
is_calculated_price_price_listbooleanOptional
Whether the calculated price is associated with a price list. During the calculation process, if no valid price list is found, the calculated price is set to the original price, which doesn't belong to a price list. In that case, the value of this property is false.
is_calculated_price_tax_inclusivebooleanOptional
Whether the calculated price is tax inclusive.
calculated_amount_with_taxnull | numberOptional
The amount of the calculated price with taxes included. If the calculated price is tax inclusive, this field will be the same as calculated_amount.
calculated_amount_without_taxnull | numberOptional
The amount of the calculated price without taxes included. If the calculated price is tax exclusive, this field will be the same as calculated_amount.
is_original_price_price_listbooleanOptional
Whether the original price is associated with a price list. During the calculation process, if the price list of the calculated price is of type override, the original price will be the same as the calculated price. In that case, the value of this property is true.
is_original_price_tax_inclusivebooleanOptional
Whether the original price is tax inclusive.
calculated_priceobjectOptional
The details of the calculated price.
original_priceobjectOptional
The details of the original price.
Was this page helpful?
Edit this page
Ask Anything
FAQ
What is Medusa?
How can I create a module?
How can I create a data model?
How do I create a workflow?
How can I extend a data model in the Product Module?
Recipes
How do I build a marketplace with Medusa?
How do I build digital products with Medusa?
How do I build subscription-based purchases with Medusa?
What other recipes are available in the Medusa documentation?
Chat is cleared on refresh
Line break