Files
medusa-store/www/apps/resources/app/commerce-modules/fulfillment/module-options/page.mdx
Shahed Nasser 964927b597 docs: general fixes and improvements (#7918)
* docs improvements and changes

* updated module definition

* modules + dml changes

* fix build

* fix vale error

* fix lint errors

* fixes to stripe docs

* fix condition

* fix condition

* fix module defintion

* fix checkout

* disable UI action

* change oas preview action

* flatten provider module options

* fix lint errors

* add module link docs

* pr comments fixes

* fix vale error

* change node engine version

* links -> linkable

* add note about database name

* small fixes

* link fixes

* fix response code in api reference

* added migrations step
2024-07-04 17:26:03 +03:00

54 lines
1.2 KiB
Plaintext

---
sidebar_label: "Module Options"
---
import { Table } from "docs-ui"
export const metadata = {
title: `Fulfillment Module Options`,
}
# {metadata.title}
In this document, you'll learn about the options of the Fulfillment Module.
## providers
The `providers` option is an array of fulfillment module providers.
When the Medusa application starts, these providers are registered and can be used to process fulfillments.
For example:
```js title="medusa-config.js"
import { Modules } from "@medusajs/utils"
// ...
module.exports = defineConfig({
// ...
modules: {
[Modules.FULFILLMENT]: {
resolve: "@medusajs/fulfillment",
options: {
providers: [
{
resolve: `@medusajs/fulfillment-manual`,
name: "manual",
options: {
// provider options...
},
},
],
},
},
},
})
```
The `providers` option is an array of objects that accept the following properties:
- `resolve`: A string indicating either the package name of the module provider or the path to it relative to the `src` directory.
- `name`: A string indicating the provider's unique name.
- `options`: An optional object of the module provider's options.