Interface IPromotionEntryPopulate

Promotion entry populate interface. This interface will be used to populate promotion entry object with attributes from the line item or other object.

Namespace: Mediachase.Commerce.Marketing
Assembly: Mediachase.Commerce.dll
Version: 10.8.0
Syntax
public interface IPromotionEntryPopulate

Methods

Populate(PromotionEntry, Entry, MarketId, Currency)

Populates the specified promotion entry with attribute values from the catalog entry.

Declaration
void Populate(PromotionEntry promotionEntry, Entry catalogEntry, MarketId marketId, Currency currency)
Parameters
Type Name Description
PromotionEntry promotionEntry

The promotion entry.

Entry catalogEntry

The catalog entry to populate the promotion entry from.

MarketId marketId

The market to use for pricing the item.

Currency currency

The currency to use for pricing the item.

Populate(PromotionEntry, LineItem)

Populates the specified promotion entry with attribute values from the line item.

Declaration
void Populate(PromotionEntry promotionEntry, LineItem lineItem)
Parameters
Type Name Description
PromotionEntry promotionEntry

The promotion entry.

LineItem lineItem

The line item to populate the promotion entry from.

PopulateCustom(PromotionEntry, Object)

Populates the specified promotion entry with attribute values from the object.

Declaration
void PopulateCustom(PromotionEntry promotionEntry, object obj)
Parameters
Type Name Description
PromotionEntry promotionEntry

The promotion entry to populate.

System.Object obj

The object to populate values from.

Remarks

This method exists only for extensibility, and stock implementations will throw a NotSupportedException.

Exceptions
Type Condition
System.NotSupportedException

The method is not supported in this implementation.