Class PromotionEntry
Implements operations for the promotion entry. (Inherits System.ICloneable.)
Inheritance
Implements
Inherited Members
Namespace: Mediachase.Commerce.Marketing
Assembly: Mediachase.Commerce.dll
Version: 12.17.2Syntax
[Obsolete("Use promotion system in EPiServer.Commerce.Marketing instead. Will be removed in a future major release, but not earlier than August 2018.")]
public class PromotionEntry : ICloneable
Constructors
PromotionEntry(Hashtable)
Initializes a new instance of the PromotionEntry class.
Declaration
public PromotionEntry(Hashtable context)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Hashtable | context | The context. |
PromotionEntry(String, String, String, Decimal)
Initializes a new instance of the PromotionEntry class.
Declaration
public PromotionEntry(string catalogName, string catalogNodeCode, string catalogEntryCode, decimal costPerEntry)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | catalogName | Name of the catalog. |
| System.String | catalogNodeCode | The catalog node code. |
| System.String | catalogEntryCode | The catalog entry code. |
| System.Decimal | costPerEntry | The cost per entry. |
Properties
CatalogEntryCode
Gets or sets the catalog entry code.
Declaration
public string CatalogEntryCode { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | The catalog entry code. |
CatalogName
Gets or sets the name of the catalog.
Declaration
public string CatalogName { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | The name of the catalog. |
CatalogNodeCode
Gets or sets the catalog node code.
Declaration
public string CatalogNodeCode { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | The catalog node code. |
CostPerEntry
Gets or sets the cost per entry.
Declaration
public decimal CostPerEntry { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Decimal | The cost per entry. |
Item[String]
Gets or sets the System.Object with the specified key.
Declaration
public object this[string key] { get; set; }
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | key |
Property Value
| Type | Description |
|---|---|
| System.Object |
Outline
Gets or sets the outline. Outline represent directory like locations for the entry.
Declaration
public string Outline { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | The outline. |
Examples
/Everything/Digital-Cameras/Accessories or /Everything/Digital-Cameras/Accessories;/Everything/DailySpecials
Owner
Gets or sets the owner.
Declaration
public object Owner { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Object | The owner. |
Quantity
Gets or sets the quantity of the ENTRY discount to be applied. The default is the line item quantity of the appropriate entry. Note that the actual quantity of the entry discount applied can be lower than the initial line item quantity.
Declaration
public decimal Quantity { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Decimal | The quantity. |
Storage
Gets the storage.
Declaration
public Hashtable Storage { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Hashtable | The storage. |
Methods
Clone()
Creates a new object that is a copy of the current instance.
Declaration
public object Clone()
Returns
| Type | Description |
|---|---|
| System.Object | A new object that is a copy of this instance. |