Constructor ProductDefinition
ProductDefinition(string, string, ProductType)
Parametrized constructor
Declaration
public ProductDefinition(string id, string storeSpecificId, ProductType type)
Parameters
Type | Name | Description |
---|---|---|
string | id | The product id. |
string | storeSpecificId | The product's id for a specific store. |
ProductType | type | The product type. |
ProductDefinition(string, string, ProductType, bool)
Parametrized constructor
Declaration
public ProductDefinition(string id, string storeSpecificId, ProductType type, bool enabled)
Parameters
Type | Name | Description |
---|---|---|
string | id | The product id. |
string | storeSpecificId | The product's id for a specific store. |
ProductType | type | The product type. |
bool | enabled | Whether the product is enabled for purchase or not. |
ProductDefinition(string, string, ProductType, bool, PayoutDefinition)
Parametrized constructor
Declaration
public ProductDefinition(string id, string storeSpecificId, ProductType type, bool enabled, PayoutDefinition payout)
Parameters
Type | Name | Description |
---|---|---|
string | id | The product id. |
string | storeSpecificId | The product's id for a specific store. |
ProductType | type | The product type. |
bool | enabled | Whether the product is enabled for purchase or not. |
PayoutDefinition | payout | The payout definition for the product once purchased. |
ProductDefinition(string, string, ProductType, bool, IEnumerable<PayoutDefinition>)
Parametrized constructor
Declaration
public ProductDefinition(string id, string storeSpecificId, ProductType type, bool enabled, IEnumerable<PayoutDefinition> payouts)
Parameters
Type | Name | Description |
---|---|---|
string | id | The product id. |
string | storeSpecificId | The product's id for a specific store. |
ProductType | type | The product type. |
bool | enabled | Whether the product is enabled for purchase or not. |
IEnumerable<PayoutDefinition> | payouts | The payout definitions for the product once purchased. |
ProductDefinition(string, ProductType)
Parametrized constructor, creating a ProductDefinition where the id is the same as the store specific ID.
Declaration
public ProductDefinition(string id, ProductType type)
Parameters
Type | Name | Description |
---|---|---|
string | id | The product id as well as its store-specific id. |
ProductType | type | The product type. |