Class: InventoryLevel

InventoryLevel(shopify)

new InventoryLevel(shopify)

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

Methods

adjust(params) → {Promise}

Adjusts the inventory level of an inventory item at a single location.
Parameters:
Name Type Description
params Object Adjustment parameters
Returns:
Promise that resolves with the result
Type
Promise

connect(params) → {Promise}

Connects an inventory item to a location by creating an inventory level at that location.
Parameters:
Name Type Description
params Object Connection parameters
Returns:
Promise that resolves with the result
Type
Promise

delete(params) → {Promise}

Deletes an inventory level for an inventory item at a location.
Parameters:
Name Type Description
params Object Query parameters
Returns:
Promise that resolves with the result
Type
Promise

set(params) → {Promise}

Sets an inventory level for a single inventory item within a location.
Parameters:
Name Type Description
params Object Location and inventory item parameters
Returns:
Promise that resolves with the result
Type
Promise