docs: added tax-inclusive conceptual guide and updates to storefront guide (#8186)
* docs: added tax-inclusive conceptual guide and updates to storefront guide * sentence fix * currency_code -> country_code
This commit is contained in:
1 parent
c900a104ce
commit
e0c0a86264
8 files changed
+596
-370
No files matched your search
@@ -1,7 +1,7 @@
|
||||
import { Tabs, TabsList, TabsTrigger, TabsContent, TabsContentWrapper, TypeList } from "docs-ui"
|
||||
|
||||
export const metadata = {
|
||||
title: `Prices Calculation Strategy`,
|
||||
title: `Prices Calculation`,
|
||||
}
|
||||
|
||||
# {metadata.title}
|
||||
@@ -77,6 +77,16 @@ Both prices are returned in an object along with the following properties:
|
||||
type: "`string`",
|
||||
description: "The currency code of the calculated price, or `null` if there isn't a calculated price."
|
||||
},
|
||||
{
|
||||
name: "is_calculated_price_tax_inclusive",
|
||||
type: "`boolean`",
|
||||
description: "Whether the calculated price is tax inclusive. Learn more about tax-inclusivity in [this document](../tax-inclusive-pricing/page.mdx)"
|
||||
},
|
||||
{
|
||||
name: "is_original_price_tax_inclusive",
|
||||
type: "`boolean`",
|
||||
description: "Whether the original price is tax inclusive. Learn more about tax-inclusivity in [this document](../tax-inclusive-pricing/page.mdx)"
|
||||
},
|
||||
{
|
||||
name: "calculated_price",
|
||||
type: "`object`",
|
||||
@@ -224,6 +234,9 @@ const priceSet = await pricingModuleService.createPriceSets({
|
||||
|
||||
currency_code: "EUR",
|
||||
|
||||
is_calculated_price_tax_inclusive: false,
|
||||
is_original_price_tax_inclusive: false,
|
||||
|
||||
calculated_price: {
|
||||
price_id: "<DEFAULT_PRICE_ID>",
|
||||
price_list_id: null,
|
||||
@@ -288,6 +301,9 @@ const priceSet = await pricingModuleService.createPriceSets({
|
||||
|
||||
currency_code: "EUR",
|
||||
|
||||
is_calculated_price_tax_inclusive: false,
|
||||
is_original_price_tax_inclusive: false,
|
||||
|
||||
calculated_price: {
|
||||
price_id: "<FOURTH_PRICE_ID>",
|
||||
price_list_id: null,
|
||||
@@ -375,6 +391,9 @@ const priceSet = await pricingModuleService.createPriceSets({
|
||||
|
||||
currency_code: "EUR",
|
||||
|
||||
is_calculated_price_tax_inclusive: false,
|
||||
is_original_price_tax_inclusive: false,
|
||||
|
||||
calculated_price: {
|
||||
price_id: "<FOURTH_PRICE_ID>",
|
||||
price_list_id: null,
|
||||
|
||||
Reference in new issue
Block a user