Files
medusa-store/www/apps/docs/content/references/fulfillment/classes/Swap.mdx
2023-11-29 11:58:08 +00:00

34 lines
1.0 KiB
Plaintext

---
displayed_sidebar: modules
---
import ParameterTypes from "@site/src/components/ParameterTypes"
# Swap
A swap can be created when a Customer wishes to exchange Products that they have purchased with different Products. It consists of a Return of previously purchased Products and a Fulfillment of new Products. It also includes information on any additional payment or refund required based on the difference between the exchanged products.
## constructor
A swap can be created when a Customer wishes to exchange Products that they have purchased with different Products. It consists of a Return of previously purchased Products and a Fulfillment of new Products. It also includes information on any additional payment or refund required based on the difference between the exchanged products.
___
## Methods
### beforeInsert
#### Returns
<ParameterTypes parameters={[
{
"name": "void",
"type": "`void`",
"optional": true,
"defaultValue": "",
"description": "",
"expandable": false,
"children": []
}
]} />