Class Inventory

Updated: March 5, 2020
Contents

Inventory

The Inventory class exposes specialized methods to help
developers to access the inventory (products, items etc).

Kind: global class
Category: Operations

new Inventory(client)

Creates an instance of the Inventory class.

Returns: Inventory – An instance of the Inventory class.

ParamTypeDescription
clientConnectClientAn instance of the ConnectClient class.

inventory.getParametersByProduct(id) ⇒ Array

Retrieves the list of parameters configured for the product.

Kind: instance method of Inventory
Returns: Array – An array with the Parameter objects.

ParamTypeDescription
idstringThe unique product identifier for which retrieve the parameters.

inventory.getAssetParametersForFulfillmentByProduct(id) ⇒ Array

Retrieves the list of parameters of scope asset and phase fulfillment configured for
the product.

Kind: instance method of Inventory
Returns: Array – An array with the Parameter objects.

ParamTypeDescription
idstringThe unique product identifier for which retrieve the parameters.

inventory.getProductTemplates(id) ⇒ Array

Returns the list of templates configured for a product.

Kind: instance method of Inventory
Returns: Array – An array of Template objects.

ParamTypeDescription
idstringThe unique identifier of the product.

inventory.getProductAssetTemplates(id) ⇒ Array

Returns the list of templates configured for a product with scope “asset”.

Kind: instance method of Inventory
Returns: Array – An array of Template objects.

ParamTypeDescription
idstringThe unique identifier of the product.
Is this page helpful?
Translate with Google
Copied to clipboard