docs: edits and fixes to commerce module docs (#7468)

Apply edits and fixes to the commerce modules docs
This commit is contained in:
Shahed Nasser authored and GitHub committed 2024-05-29 11:08:06 +00:00
1 parent 130de74d6d
commit 2c5ba408d4
160 files changed
+6400 -3790

No files matched your search

@@ -27,7 +27,7 @@ In this guide, you’ll find common examples of how you can use the Tax Module i
)
const taxRegion = await taxModuleService.createTaxRegions({
country_code: "US",
country_code: "us",
default_tax_rate: {
rate: 10,
name: "Default rate",
@@ -54,7 +54,7 @@ In this guide, you’ll find common examples of how you can use the Tax Module i
const taxModuleService = await initializeTaxModule()
const taxRegion = await taxModuleService.createTaxRegions({
country_code: "US",
country_code: "us",
default_tax_rate: {
rate: 10,
name: "Default rate",
@@ -262,7 +262,7 @@ In this guide, you’ll find common examples of how you can use the Tax Module i
import { ITaxModuleService } from "@medusajs/types"
import { ModuleRegistrationName } from "@medusajs/modules-sdk"
export async function POST(
export async function GET(
req: MedusaRequest,
res: MedusaResponse
): Promise<void> {
@@ -312,7 +312,7 @@ In this guide, you’ll find common examples of how you can use the Tax Module i
initialize as initializeTaxModule,
} from "@medusajs/tax"
export async function POST(
export async function GET(
request: Request
) {
const taxModuleService = await initializeTaxModule()
@@ -356,4 +356,4 @@ In this guide, you’ll find common examples of how you can use the Tax Module i
## More Examples
The [module interface reference](/references/tax) provides a reference to all the methods available for use with examples for each.
The [Tax Module's main service reference](/references/tax) provides a reference to all the methods available for use with examples for each.