The Inventory class exposes specialized methods to help
developers to access the inventory (products, items etc).
Kind: global class
Category: Operations
Creates an instance of the Inventory class.
Returns: Inventory
– An instance of the Inventory class.
Param | Type | Description |
---|---|---|
client | ConnectClient |
An instance of the ConnectClient class. |
Array
Retrieves the list of parameters configured for the product.
Kind: instance method of Inventory
Returns: Array
– An array with the Parameter objects.
Param | Type | Description |
---|---|---|
id | string |
The unique product identifier for which retrieve the parameters. |
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.
Param | Type | Description |
---|---|---|
id | string |
The unique product identifier for which retrieve the parameters. |
Array
Returns the list of templates configured for a product.
Kind: instance method of Inventory
Returns: Array
– An array of Template objects.
Param | Type | Description |
---|---|---|
id | string |
The unique identifier of the product. |
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.
Param | Type | Description |
---|---|---|
id | string |
The unique identifier of the product. |
Array
Returns the action link for a product action.
Kind: instance method of Inventory
Returns: Array
– An array of Template objects.
Param | Type | Description |
---|---|---|
id | string |
The unique identifier of the product. |
actionId | string |
The unique product action identifier. |
assetId | string |
The unique asset identifier. |
Array
Search the parameters configured for a product.
Kind: instance method of Inventory
Returns: Array
– An array with the Parameter objects.
Param | Type | Description |
---|---|---|
productId | string |
The id of the product for which search parameters. |
query | object |
The filter query. |