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 PurchaseAmountExtensions

Extensions for PurchaseAmount.

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

Methods

CanBeFulfilled(PurchaseAmount, Currency)

Verifies that the purchase amount condition can potentially be fulfilled.

Declaration
public static bool CanBeFulfilled(this PurchaseAmount purchaseAmount, Currency orderCurrency)
Parameters
Type Name Description
PurchaseAmount purchaseAmount

The purchase amount condition.

Currency orderCurrency

The order currency.

Returns
Type Description
System.Boolean

GetFulfillmentStatus(PurchaseAmount, PromotionProcessorContext, FulfillmentEvaluator)

Implements promotion specific logic for determining the fulfillment status of the purchase amount condition.

Declaration
public static FulfillmentStatus GetFulfillmentStatus(this PurchaseAmount purchaseAmount, PromotionProcessorContext context, FulfillmentEvaluator fulfillmentEvaluator)
Parameters
Type Name Description
PurchaseAmount purchaseAmount

The purchase amount condition.

PromotionProcessorContext context

The promotion processor context.

FulfillmentEvaluator fulfillmentEvaluator

The service that is used to evaluate the fulfillment status of the promotion.

Returns
Type Description
FulfillmentStatus

The calculated fulfillment status as a FulfillmentStatus value.