Class PurchaseAmountExtensions
Extensions for PurchaseAmount.
Inheritance
System.Object
PurchaseAmountExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Commerce.Marketing.Extensions
Assembly: EPiServer.Business.Commerce.dll
Version: 12.17.2Syntax
public static class PurchaseAmountExtensions
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. |