Class PurchaseQuantityExtensions
Extensions for PurchaseQuantity.
Inheritance
Inherited Members
Namespace: EPiServer.Commerce.Marketing.Extensions
Assembly: EPiServer.Business.Commerce.dll
Version: 12.17.2Syntax
public static class PurchaseQuantityExtensions
Methods
CanBeFulfilled(PurchaseQuantity)
Verifies that the purchase quantity condition can potentially be fulfilled.
Declaration
public static bool CanBeFulfilled(this PurchaseQuantity purchaseQuantity)
Parameters
Type | Name | Description |
---|---|---|
PurchaseQuantity | purchaseQuantity | The purchase amount. |
Returns
Type | Description |
---|---|
System.Boolean |
GetFulfillmentStatus(PurchaseQuantity, IOrderForm, CollectionTargetEvaluator, FulfillmentEvaluator)
Implements promotion specific logic for determining the fulfillment status of the purchase quantity condition.
Declaration
public static FulfillmentStatus GetFulfillmentStatus(this PurchaseQuantity purchaseQuantity, IOrderForm orderForm, CollectionTargetEvaluator targetEvaluator, FulfillmentEvaluator fulfillmentEvaluator)
Parameters
Type | Name | Description |
---|---|---|
PurchaseQuantity | purchaseQuantity | The purchase quantity condition. |
IOrderForm | orderForm | The order form. |
CollectionTargetEvaluator | targetEvaluator | The service that is used to evaluate an order against a promotion's target properties. |
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. |
GetFulfillmentStatus(PurchaseQuantity, IOrderForm, CollectionTargetEvaluator, FulfillmentEvaluator, out IList<String>)
Implements promotion specific logic for determining the fulfillment status of the purchase quantity condition.
Declaration
public static FulfillmentStatus GetFulfillmentStatus(this PurchaseQuantity purchaseQuantity, IOrderForm orderForm, CollectionTargetEvaluator targetEvaluator, FulfillmentEvaluator fulfillmentEvaluator, out IList<string> applicableCodes)
Parameters
Type | Name | Description |
---|---|---|
PurchaseQuantity | purchaseQuantity | The purchase quantity condition. |
IOrderForm | orderForm | The order form. |
CollectionTargetEvaluator | targetEvaluator | The service that is used to evaluate an order against a promotion's target properties. |
FulfillmentEvaluator | fulfillmentEvaluator | The service that is used to evaluate the fulfillment status of the promotion. |
System.Collections.Generic.IList<System.String> | applicableCodes | Out all applicable Codes in the order by the targets in the promotion. |
Returns
Type | Description |
---|---|
FulfillmentStatus | The calculated fulfillment status as a FulfillmentStatus value. |