Class PromotionEntryPopulate
Default implementation of the IPromotionEntryPopulate interface.
Inheritance
Implements
Inherited Members
Namespace: Mediachase.Commerce.Marketing.Validators
Assembly: Mediachase.Commerce.Marketing.Validators.dll
Version: 10.8.0Syntax
public class PromotionEntryPopulate : IPromotionEntryPopulate
Constructors
PromotionEntryPopulate()
Creates an instance of the PromotionEntryPopulate class.
Declaration
public PromotionEntryPopulate()
PromotionEntryPopulate(IPriceService)
Creates an instance of the PromotionEntryPopulate class with explicit dependencies.
Declaration
public PromotionEntryPopulate(IPriceService priceService)
Parameters
Type | Name | Description |
---|---|---|
IPriceService | priceService | The price service dependency. |
Methods
Populate(PromotionEntry, Entry, MarketId, Currency)
Populates the specified entry.
Declaration
public void Populate(PromotionEntry entry, Entry catalogEntry, MarketId marketId, Currency currency)
Parameters
Type | Name | Description |
---|---|---|
PromotionEntry | entry | The entry. |
Entry | catalogEntry | The catalog entry. |
MarketId | marketId | The market id. |
Currency | currency | The currency. |
Populate(PromotionEntry, LineItem)
Populates the line item.
Declaration
public void Populate(PromotionEntry entry, LineItem lineItem)
Parameters
Type | Name | Description |
---|---|---|
PromotionEntry | entry | The promotion entry. |
LineItem | lineItem | The line item. |
Populate(ref PromotionEntry, Object)
Populates the specified promotion catalogEntry with attribute values from the val object. Automatically adds all the meta fields. The objects supported are LineItem and Entry.
Declaration
public void Populate(ref PromotionEntry promotionEntry, object val)
Parameters
Type | Name | Description |
---|---|---|
PromotionEntry | promotionEntry | The catalogEntry. |
System.Object | val | The val. Can be LineItem or Entry. |
PopulateCustom(PromotionEntry, Object)
Populates the specified promotion entry with attribute values from the object.
Declaration
public 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. |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | The method is not supported in this implementation. |