Click or drag to resize
MultiBuyDiscountsEvaluator Methods

The MultiBuyDiscountsEvaluator type exposes the following members.

Methods
  NameDescription
Protected methodApplyDiscount
Applies discount to given number of unit of given item using.
Protected methodCanBaseDiscountOn
Checks if given item can be used to fulfill discounts conditions.
Protected methodCanBeDiscounted
Checks if given item can be discounted using given discount.
Public methodEvaluateDiscounts
Evaluates given discounts and applies matching ones to corresponding cart items.
Protected methodFindItemsToBaseDiscountOn
Finds items satisfying given discounts conditions.
Protected methodFindItemsToBeDiscounted
Finds items to be discounted with given discount based on given items. Returns true when at least one item was found.
Protected methodGetUnusedNonFreeUnits
Returns the number of unit not used as base for any discount nor discounted.
Protected methodPrepareItemsForDiscount
Ensures that PrioritizedItems list is ready for application of given discount.
Protected methodRememberUsedItems
Remembers that given items in given number of units were used for given discount.
Protected methodReset
Resets evaluator to its initial state.
Top
Extension Methods
  NameDescription
Public Extension MethodAsValue
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.)
Public Extension MethodGetAPIString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodGetString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodToBoolean
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDateTime
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDouble
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToGuid
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToInteger
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToString
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.)
Top
See Also