Method AddProduct
AddProduct(string, ProductType)
Add a product to the configuration builder.
Declaration
public ConfigurationBuilder AddProduct(string id, ProductType type)
Parameters
Type | Name | Description |
---|---|---|
string | id | The id of the product. |
Product |
type | The type of the product. |
Returns
Type | Description |
---|---|
Configuration |
The instance of the configuration builder with the new product added. |
AddProduct(string, ProductType, IDs)
Add a product to the configuration builder.
Declaration
public ConfigurationBuilder AddProduct(string id, ProductType type, IDs storeIDs)
Parameters
Type | Name | Description |
---|---|---|
string | id | The id of the product. |
Product |
type | The type of the product. |
IDs | storeIDs | The object representing store IDs the product is to be added to. |
Returns
Type | Description |
---|---|
Configuration |
The instance of the configuration builder with the new product added. |
AddProduct(string, ProductType, IDs, PayoutDefinition)
Add a product to the configuration builder.
Declaration
public ConfigurationBuilder AddProduct(string id, ProductType type, IDs storeIDs, PayoutDefinition payout)
Parameters
Type | Name | Description |
---|---|---|
string | id | The id of the product. |
Product |
type | The type of the product. |
IDs | storeIDs | The object representing store IDs the product is to be added to. |
Payout |
payout | The payout definition of the product. |
Returns
Type | Description |
---|---|
Configuration |
The instance of the configuration builder with the new product added. |
AddProduct(string, ProductType, IDs, IEnumerable<PayoutDefinition>)
Add a product to the configuration builder.
Declaration
public ConfigurationBuilder AddProduct(string id, ProductType type, IDs storeIDs, IEnumerable<PayoutDefinition> payouts)
Parameters
Type | Name | Description |
---|---|---|
string | id | The id of the product. |
Product |
type | The type of the product. |
IDs | storeIDs | The object representing store IDs the product is to be added to. |
IEnumerable<Payout |
payouts | The enumerator of the payout definitions of the product. |
Returns
Type | Description |
---|---|
Configuration |
The instance of the configuration builder with the new product added. |