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
2024-05-29 11:08:06 +00:00
committed by GitHub
parent 130de74d6d
commit 2c5ba408d4
160 changed files with 6400 additions and 3790 deletions
@@ -1,25 +1,27 @@
export const metadata = {
title: `Fulfillment Provider`,
title: `Fulfillment Provider Module`,
}
# {metadata.title}
In this document, youll learn what a fulfillment provider is.
In this document, youll learn what a fulfillment provider module is.
## Whats a Fulfillment Provider?
## Whats a Fulfillment Provider Module?
A fulfillment provider implements the functionality of fulfilling items, typically using a third-party integration. Its represented by the `FulfillmentProvider` data model.
A fulfillment provider module handles fulfilling items, typically using a third-party integration.
---
## How to Create a Fulfillment Provider?
A fulfillment provider is a TypeScript or JavaScript class that extends the `AbstractFulfillmentProviderService` class imported from `@medusajs/utils`. You can create it part of your Medusa application codebase, in a plugin, or in a provider module.
Fulfillment provider modules are stored and represented by the [FulfillmentProvider data model](/references/fulfillment/models/FulfillmentProvider).
---
## Configure Fulfillment Providers
The Fulfillment Module accepts a `providers` option that allows you to register providers in your application. When the Medusa application starts, it registers these modules and adds records of the `FulfillmentProvider` for them.
The Fulfillment Module accepts a `providers` option that allows you to register providers in your application.
Learn more about the `providers` option in [this documentation](../module-options/page.mdx).
---
## How to Create a Fulfillment Provider?
Refer to [this guide](/references/fulfillment/provider) to learn how to create a fulfillment provider module.