--- displayed_sidebar: servicesSidebar --- 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. ## Constructors ### constructor `**new 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. ## Properties `", "description": "An optional key-value map with additional details", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "no_notification_order", "type": "`boolean`", "description": "Whether to send the customer notifications regarding order updates.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "order", "type": "[Order](Order.mdx)", "description": "The details of the order created from the draft order when its payment is captured.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "order_id", "type": "`string`", "description": "The ID of the order created from the draft order when its payment is captured.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "status", "type": "[DraftOrderStatus](../enums/DraftOrderStatus.mdx)", "description": "The status of the draft order. It's changed to `completed` when it's transformed to an order.", "optional": false, "defaultValue": "open", "expandable": false, "children": [] }, { "name": "updated_at", "type": "`Date`", "description": "The date with timezone at which the resource was updated.", "optional": false, "defaultValue": "", "expandable": false, "children": [] } ]} /> ## Methods ### beforeInsert `Private **beforeInsert**(): Promise<void>` #### Returns Promise<void>