Class PurchaseQuantityExtensions

Extensions for PurchaseQuantity.

Inheritance
System.Object
PurchaseQuantityExtensions
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: 10.8.0
Syntax
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.