Table of Contents

Class PriceCalculationPromotionCandidate<TPromotionCandidate>

Namespace
CMS.Commerce
Assembly
CMS.Commerce.dll

Represents a promotion candidate.

public class PriceCalculationPromotionCandidate<TPromotionCandidate> : IPriceCalculationPromotionCandidate<TPromotionCandidate> where TPromotionCandidate : IPromotionCandidate

Type Parameters

TPromotionCandidate
Inheritance
object
PriceCalculationPromotionCandidate<TPromotionCandidate>
Implements
Extension Methods

Constructors

PriceCalculationPromotionCandidate(int, TPromotionCandidate)

public PriceCalculationPromotionCandidate(int promotionID, TPromotionCandidate promotionCandidate)

Parameters

promotionID int

Promotion identifier.

promotionCandidate TPromotionCandidate

Promotion candidate.

Exceptions

ArgumentNullException

Thrown when promotionCandidate is null.

Properties

Applied

Indicates if the promotion applied to the order.

public bool Applied { get; set; }

Property Value

bool

PromotionCandidate

Promotion candidate.

public TPromotionCandidate PromotionCandidate { get; }

Property Value

TPromotionCandidate

PromotionID

Promotion identifier.

public int PromotionID { get; }

Property Value

int