PromotionUtils

PromotionUtils

PromotionUtils

An object containing utility methods which may be used in promotion check functions in order to determine whether a promotion should be applied.

Signature

interface PromotionUtils {
  hasFacetValues: (orderLine: OrderLine, facetValueIds: ID[]) => Promise<boolean>;
}

Members

hasFacetValues

property
type:
(orderLine: OrderLine, facetValueIds: ID[]) => Promise<boolean>
Checks a given OrderLine against the facetValueIds and returns true if the associated ProductVariant & Product together have all the specified FacetValues.