C# Class Kooboo.Commerce.Promotions.PromotionMatcher

显示文件 Open project: Kooboo/Ecommerce Class Usage Examples

Public Methods

Method Description
MatchApplicablePromotions ( PriceCalculationContext context, IEnumerable candidatePromotions ) : IEnumerable
PromotionMatcher ( ConditionEvaluator ruleEngine ) : System

Private Methods

Method Description
CheckOverlappingUsage ( List matches ) : void
GetMatchesToExclude ( List matches, int currentMatchIndex ) : List
TryMatchPromotion ( Kooboo.Commerce.Promotions.Promotion promotion, PriceCalculationContext context ) : PromotionMatch

Method Details

MatchApplicablePromotions() public method

public MatchApplicablePromotions ( PriceCalculationContext context, IEnumerable candidatePromotions ) : IEnumerable
context Kooboo.Commerce.Orders.Pricing.PriceCalculationContext
candidatePromotions IEnumerable
return IEnumerable

PromotionMatcher() public method

public PromotionMatcher ( ConditionEvaluator ruleEngine ) : System
ruleEngine ConditionEvaluator
return System