Class: Order

Order(shopify)

new Order(shopify)

Creates an Order instance.
Parameters:
Name Type Description
shopify Shopify Reference to the Shopify instance

Methods

cancel(id) → {Promise}

Cancels an order.
Parameters:
Name Type Description
id Number Order ID
Returns:
Promise that resolves with the result
Type
Promise

close(id) → {Promise}

Closes an order.
Parameters:
Name Type Description
id Number Order ID
Returns:
Promise that resolves with the result
Type
Promise

fulfillmentOrders(id) → {Promise}

Retrieves a list of all fulfillment orders for an order.
Parameters:
Name Type Description
id Number Order ID
Returns:
Promise that resolves with the result
Type
Promise

open(id) → {Promise}

Re-opens a closed order.
Parameters:
Name Type Description
id Number Order ID
Returns:
Promise that resolves with the result
Type
Promise