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. |
| ProductType | type | The type of the product. |
Returns
| Type | Description |
|---|---|
| ConfigurationBuilder | 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. |
| ProductType | type | The type of the product. |
| IDs | storeIDs | The object representing store IDs the product is to be added to. |
Returns
| Type | Description |
|---|---|
| ConfigurationBuilder | 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. |
| ProductType | type | The type of the product. |
| IDs | storeIDs | The object representing store IDs the product is to be added to. |
| PayoutDefinition | payout | The payout definition of the product. |
Returns
| Type | Description |
|---|---|
| ConfigurationBuilder | 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. |
| ProductType | type | The type of the product. |
| IDs | storeIDs | The object representing store IDs the product is to be added to. |
| IEnumerable<PayoutDefinition> | payouts | The enumerator of the payout definitions of the product. |
Returns
| Type | Description |
|---|---|
| ConfigurationBuilder | The instance of the configuration builder with the new product added. |