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:
@@ -4,7 +4,7 @@ export const metadata = {
|
||||
|
||||
# {metadata.title}
|
||||
|
||||
In this document, you’ll learn what a fulfillment module provider is.
|
||||
In this guide, you’ll learn about the Fulfillment Module Provider and how it's used.
|
||||
|
||||
<Note title="Looking for no-code docs?">
|
||||
|
||||
@@ -12,22 +12,75 @@ Refer to this [Medusa Admin User Guide](!user-guide!/settings/locations-and-ship
|
||||
|
||||
</Note>
|
||||
|
||||
## What’s a Fulfillment Module Provider?
|
||||
## What is a Fulfillment Module Provider?
|
||||
|
||||
A fulfillment module provider handles fulfilling items, typically using a third-party integration.
|
||||
A Fulfillment Module Provider handles fulfilling items, typically using a third-party integration.
|
||||
|
||||
Fulfillment module providers registered in the Fulfillment Module's [options](../module-options/page.mdx) are stored and represented by the [FulfillmentProvider data model](/references/fulfillment/models/FulfillmentProvider).
|
||||
Fulfillment Module Providers registered in the Fulfillment Module's [options](../module-options/page.mdx) are stored and represented by the [FulfillmentProvider data model](/references/fulfillment/models/FulfillmentProvider).
|
||||
|
||||

|
||||
|
||||
---
|
||||
|
||||
## Configure Fulfillment Providers
|
||||
## Default Fulfillment Provider
|
||||
|
||||
The Fulfillment Module accepts a `providers` option that allows you to register providers in your application.
|
||||
Medusa provides a Manual Fulfillment Provider that acts as a placeholder fulfillment provider. It doesn't process fulfillment and delegates that to the merchant.
|
||||
|
||||
Learn more about the `providers` option in [this documentation](../module-options/page.mdx).
|
||||
This provider is installed by default in your application and you can use it to fulfill items manually.
|
||||
|
||||
<Note title="Tip">
|
||||
|
||||
The identifier of the manual fulfillment provider is `fp_manual_manual`.
|
||||
|
||||
</Note>
|
||||
|
||||
---
|
||||
|
||||
## How to Create a Fulfillment Provider?
|
||||
## How to Create a Custom Fulfillment Provider?
|
||||
|
||||
Refer to [this guide](/references/fulfillment/provider) to learn how to create a fulfillment module provider.
|
||||
A Fulfillment Module Provider is a module whose service implements the `IFulfillmentProvider` imported from `@medusajs/framework/types`.
|
||||
|
||||
The module can have multiple fulfillment provider services, where each are registered as separate fulfillment providers.
|
||||
|
||||
Refer to the [Create Fulfillment Module Provider](/references/fulfillment/provider) guide to learn how to create a Fulfillment Module Provider.
|
||||
|
||||
{/* TODO add link to user guide */}
|
||||
|
||||
After you create a fulfillment provider, you can choose it as the default Fulfillment Module Provider for a stock location in the Medusa Admin dashboard.
|
||||
|
||||
---
|
||||
|
||||
## How are Fulfillment Providers Registered?
|
||||
|
||||
### Configure Fulfillment Module's Providers
|
||||
|
||||
The Fulfillment Module accepts a `providers` option that allows you to configure the providers registered in your application.
|
||||
|
||||
Learn more about this option in the [Module Options](../module-options/page.mdx) guide.
|
||||
|
||||
### Registration on Application Start
|
||||
|
||||
When the Medusa application starts, it registers the Fulfillment Module Providers defined in the `providers` option of the Fulfillment Module.
|
||||
|
||||
For each Fulfillment Module Provider, the Medusa application finds all fulfillment provider services defined in them to register.
|
||||
|
||||
### FulfillmentProvider Data Model
|
||||
|
||||
A registered fulfillment provider is represented by the [FulfillmentProvider data model](/references/fulfillment/models/FulfillmentProvider) in the Medusa application.
|
||||
|
||||
This data model is used to reference a service in the Fulfillment Module Provider and determine whether it's installed in the application.
|
||||
|
||||

|
||||
|
||||
The `FulfillmentProvider` data model has the following properties:
|
||||
|
||||
- `id`: The unique identifier of the fulfillment provider. The ID's format is `fp_{identifier}_{id}`, where:
|
||||
- `identifier` is the value of the `identifier` property in the Fulfillment Module Provider's service.
|
||||
- `id` is the value of the `id` property of the Fulfillment Module Provider in `medusa-config.ts`.
|
||||
- `is_enabled`: A boolean indicating whether the fulfillment provider is enabled.
|
||||
|
||||
### How to Remove a Fulfillment Provider?
|
||||
|
||||
You can remove a registered fulfillment provider from the Medusa application by removing it from the `providers` option in the Fulfillment Module's configuration.
|
||||
|
||||
Then, the next time the Medusa application starts, it will set the `is_enabled` property of the `FulfillmentProvider`'s record to `false`. This allows you to re-enable the fulfillment provider later if needed by adding it back to the `providers` option.
|
||||
|
||||
Reference in New Issue
Block a user