docs: tax provider updates for next release (#12431)

* docs: tax provider updates for next release

* change images

* fix vale error

* fix vale errors

* generate
This commit is contained in:
Shahed Nasser
2025-05-13 14:13:17 +03:00
committed by GitHub
parent 0c698194ea
commit 76bc21ff25
18 changed files with 18716 additions and 18297 deletions
@@ -4,7 +4,7 @@ export const metadata = {
# {metadata.title}
In this document, youll learn how tax lines are calculated and what a tax provider is.
In this guide, youll learn how tax lines are calculated using the tax provider.
## Tax Lines Calculation
@@ -64,16 +64,8 @@ The method returns tax lines for the line item and shipping methods. For example
## Using the Tax Provider in the Calculation
The tax lines retrieved by the `getTaxLines` method are actually retrieved from the tax regions provider.
The tax lines retrieved by the `getTaxLines` method are actually retrieved from the tax regions [Tax Module Provider](../tax-provider/page.mdx).
A tax module provider whose main service implements the logic to shape tax lines. Each tax region has a tax provider.
A tax module implements the logic to shape tax lines. Each tax region uses a tax provider.
The Tax Module provides a `system` tax provider that only transforms calculated item and shipping tax rates into the required return type.
{/* ---
TODO add once tax provider guide is updated + add module providers match other modules.
## Create Tax Provider
Refer to [this guide](/modules/tax/provider) to learn more about creating a tax provider. */}
Learn more about tax providers, configuring, and creating them in the [Tax Module Provider](../tax-provider/page.mdx) guide.