PromotionUtils

PromotionUtils

Documentation generated from promotion-condition.ts on Feb 19 2019 at 16:20

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.

alpha