new DraftOrder(shopify)
Creates a DraftOrder instance.
Parameters:
Name | Type | Description |
---|---|---|
shopify |
Shopify | Reference to the Shopify instance |
Methods
complete(id, paramsopt) → {Promise}
Completes a draft order.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
id |
Number | Draft order ID | |
params |
Object |
<optional> |
Query parameters |
Returns:
Promise that resolves with the result
- Type
- Promise
sendInvoice(id, params) → {Promise}
Sends an invoice for a draft order.
Parameters:
Name | Type | Description |
---|---|---|
id |
Number | Draft order ID |
params |
Object | Invoice properties |
Returns:
Promise that resolves with the result
- Type
- Promise