docs: rename provider module to module provider (#7869)
* docs: rename provider module to module provider * fix vale rule * vale fixes
This commit is contained in:
1 parent
2833e3c4d0
commit
1842cd33cf
28 files changed
+117
-117
No files matched your search
@@ -14,7 +14,7 @@ In this document, you'll learn about the options of the Tax Module.
|
||||
|
||||
## providers
|
||||
|
||||
The `providers` option is an array of either tax provider modules, tax plugins, or path to a file that defines a tax provider.
|
||||
The `providers` option is an array of either tax module providers, tax plugins, or path to a file that defines a tax provider.
|
||||
|
||||
When the Medusa application starts, these providers are registered and can be used to retrieve tax lines.
|
||||
|
||||
@@ -45,5 +45,5 @@ module.exports = defineConfig({
|
||||
|
||||
The objects in the array accept the following properties:
|
||||
|
||||
- `resolve`: A string indicating the package name of the tax provider module or the path to it relative to the `src` directory.
|
||||
- `options`: An object of options to pass to the tax provider.
|
||||
- `resolve`: A string indicating the package name of the module provider or the path to it relative to the `src` directory.
|
||||
- `options`: An object of options to pass to the module provider.
|
||||
@@ -45,13 +45,13 @@ The example above returns the tax lines based on the tax region for the United S
|
||||
|
||||
The tax lines retrieved by the `getTaxLines` method are actually retrieved from the tax region’s provider.
|
||||
|
||||
A tax provider module whose main service implements the logic to shape tax lines. Each tax region has a tax provider.
|
||||
A tax module provider whose main service implements the logic to shape tax lines. Each tax region has 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 provider modules match other modules.
|
||||
TODO add once tax provider guide is updated + add module providers match other modules.
|
||||
|
||||
## Create Tax Provider
|
||||
|
||||
|
||||
Reference in new issue
Block a user