Class FulfillmentEvaluator
Used by the promotion processors to get the FulfillmentStatus.
Inheritance
Inherited Members
Namespace: EPiServer.Commerce.Marketing
Assembly: EPiServer.Business.Commerce.dll
Version: 13.30.0Syntax
public class FulfillmentEvaluator
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. |