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.
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.
# 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.
# async getProductActionLink(id, actionId, assetId) → {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.
# 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.
# 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.
# 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.