Class PromotionEntriesSet

Implements operations for the promotion entries set.

Inheritance
System.Object
PromotionEntriesSet
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Mediachase.Commerce.Marketing
Assembly: Mediachase.Commerce.dll
Version: 10.8.0
Syntax
public class PromotionEntriesSet

Constructors

PromotionEntriesSet()

Declaration
public PromotionEntriesSet()

Properties

Entries

Gets or sets the entries.

Declaration
public IList<PromotionEntry> Entries { get; set; }
Property Value
Type Description
System.Collections.Generic.IList<PromotionEntry>

The entries.

OrderFormId

Gets or sets the order form id. Used to store the order form id that the list belongs to.

Declaration
public string OrderFormId { get; set; }
Property Value
Type Description
System.String

The owner id.

ShipmentId

Gets or sets the shipment id for this set. Used to store the reference to the shpment that the list belongs to. Used for shipping promotions.

Declaration
public string ShipmentId { get; set; }
Property Value
Type Description
System.String

The owner id.

TotalCost

Gets the total cost.

Declaration
public decimal TotalCost { get; }
Property Value
Type Description
System.Decimal

The total cost.

TotalQuantity

Gets the total quantity.

Declaration
public decimal TotalQuantity { get; }
Property Value
Type Description
System.Decimal

The total quantity.

Methods

ContainsEntry(String)

Determines whether the specified code contains entry.

Declaration
public bool ContainsEntry(string code)
Parameters
Type Name Description
System.String code

The code.

Returns
Type Description
System.Boolean

true if the specified code contains entry; otherwise, false.

ContainsEntry(String, Decimal)

Determines whether the specified code contains entry with a specified qauntity or more.

Declaration
public bool ContainsEntry(string code, decimal quantity)
Parameters
Type Name Description
System.String code

The code.

System.Decimal quantity

The quantity.

Returns
Type Description
System.Boolean

true if the specified code contains entry; otherwise, false.

ContainsNode(String)

Determines whether the specified code contains node.

Declaration
public bool ContainsNode(string code)
Parameters
Type Name Description
System.String code

The code.

Returns
Type Description
System.Boolean

true if the specified code contains node; otherwise, false.

FindEntryByCode(String)

Finds the entry by code.

Declaration
public PromotionEntry FindEntryByCode(string code)
Parameters
Type Name Description
System.String code

The code.

Returns
Type Description
PromotionEntry

FindEntryByNodeCode(String)

Finds the entry by node code.

Declaration
public PromotionEntry FindEntryByNodeCode(string code)
Parameters
Type Name Description
System.String code

The code.

Returns
Type Description
PromotionEntry

GetQuantityRange(Decimal)

Gets the quantity range.

Declaration
public PromotionEntriesSet GetQuantityRange(decimal quantity)
Parameters
Type Name Description
System.Decimal quantity

The quantity.

Returns
Type Description
PromotionEntriesSet

MakeCopy(String[])

Creates a copy of current entries Set with specified items only.

Declaration
public PromotionEntriesSet MakeCopy(string[] codes)
Parameters
Type Name Description
System.String[] codes

The codes.

Returns
Type Description
PromotionEntriesSet

MakeCopy(String[], Boolean)

Makes the copy.

Declaration
public PromotionEntriesSet MakeCopy(string[] codes, bool exclude)
Parameters
Type Name Description
System.String[] codes

The codes.

System.Boolean exclude

if set to true [exclude].

Returns
Type Description
PromotionEntriesSet