Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Class FulfillmentEvaluator

Used by the promotion processors to get the FulfillmentStatus.

Inheritance
System.Object
FulfillmentEvaluator
Namespace: EPiServer.Commerce.Marketing
Assembly: EPiServer.Business.Commerce.dll
Version: 14.26.0
Syntax
public class FulfillmentEvaluator : Object

Constructors

FulfillmentEvaluator()

Declaration
public FulfillmentEvaluator()

Methods

GetStatusForBuyFromCategoryPromotion(IEnumerable<String>, IEnumerable<ILineItem>)

Gets the fulfillment status using codes for Buy from category get item discount promotion.

Declaration
public FulfillmentStatus GetStatusForBuyFromCategoryPromotion(IEnumerable<string> codes, IEnumerable<ILineItem> lineItems)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<System.String> codes

The codes for eligible products.

System.Collections.Generic.IEnumerable<ILineItem> lineItems

The line items in current order form.

Returns
Type Description
FulfillmentStatus

The fulfillment status.

GetStatusForBuyQuantityPromotion(IEnumerable<String>, IEnumerable<ILineItem>, Int32, Decimal)

Gets the fulfillment status using codes and requiredQuantity for Buy X number of items.

Declaration
public FulfillmentStatus GetStatusForBuyQuantityPromotion(IEnumerable<string> codes, IEnumerable<ILineItem> lineItems, int requiredQuantity, Decimal partialRequiredQuantity)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<System.String> codes

The codes for eligible products.

System.Collections.Generic.IEnumerable<ILineItem> lineItems

The line items in current order form.

System.Int32 requiredQuantity

The quantity needed to return Fulfilled.

System.Decimal partialRequiredQuantity

The quantity needed to return PartiallyFulfilled.

Returns
Type Description
FulfillmentStatus

The fulfillment status.

GetStatusForSpendAmountPromotion(Decimal, Currency, IList<Money>, Decimal)

Gets the fulfillment status using subTotal, orderCurrency, spentAmountsCondition and partialFulfilledPercentage for Spend amount promotions.

Declaration
public FulfillmentStatus GetStatusForSpendAmountPromotion(Decimal subTotal, Currency orderCurrency, IList<Money> spentAmountsCondition, Decimal partialFulfilledPercentage)
Parameters
Type Name Description
System.Decimal subTotal

The order form subTotal.

Currency orderCurrency

The currency of the order form.

System.Collections.Generic.IList<Money> spentAmountsCondition

A collection of Money representing the spent amounts condition.

System.Decimal partialFulfilledPercentage

The partial fulfilled percentage value. This value should be between 0 and 1.

Returns
Type Description
FulfillmentStatus

The fulfillment status.