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

34 lines
709 B
Plaintext

---
displayed_sidebar: modules
---
import ParameterTypes from "@site/src/components/ParameterTypes"
# DraftOrder
A draft order is created by an admin without direct involvement of the customer. Once its payment is marked as captured, it is transformed into an order.
## constructor
A draft order is created by an admin without direct involvement of the customer. Once its payment is marked as captured, it is transformed into an order.
___
## Methods
### beforeInsert
#### Returns
<ParameterTypes parameters={[
{
"name": "Promise",
"type": "Promise&#60;void&#62;",
"optional": false,
"defaultValue": "",
"description": "",
"expandable": false,
"children": []
}
]} />