Class

Inventory

Inventory(client) → {Inventory}

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

Constructor

# new Inventory(client) → {Inventory}

Creates an instance of the Inventory class.

Parameters:
Name Type Description
client ConnectClient

An instance of the ConnectClient class.

An instance of the Inventory class.

Inventory

Methods

# async getAssetParametersForFulfillmentByProduct(id) → {Array}

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

Parameters:
Name Type Description
id string

The unique product identifier for which retrieve the parameters.

An array with the Parameter objects.

Array

# async getParametersByProduct(id) → {Array}

Retrieves the list of parameters configured for the product.

Parameters:
Name Type Description
id string

The unique product identifier for which retrieve the parameters.

An array with the Parameter objects.

Array

Returns the action link for a product action.

Parameters:
Name Type Description
id string

The unique identifier of the product.

actionId string

The unique product action identifier.

assetId string

The unique asset identifier.

An array of Template objects.

Array

# async getProductAssetTemplates(id) → {Array}

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

Parameters:
Name Type Description
id string

The unique identifier of the product.

An array of Template objects.

Array

# async getProductTemplates(id) → {Array}

Returns the list of templates configured for a product.

Parameters:
Name Type Description
id string

The unique identifier of the product.

An array of Template objects.

Array

# async searchProductParameters(productId, query) → {Array}

Search the parameters configured for a product.

Parameters:
Name Type Description
productId string

The id of the product for which search parameters.

query object

The filter query.

An array with the Parameter objects.

Array