Skip to main content

FacetValueChecker

The FacetValueChecker is a helper class used to determine whether a given OrderLine consists of ProductVariants containing the given FacetValues.

Example

Ts
Signature
  • Implements: OnModuleInit

constructor

method(connection: TransactionalConnection, cacheService: CacheService, eventBus?: EventBus) => FacetValueChecker

onModuleInit

method() => any

hasFacetValues

method(orderLine: OrderLine, facetValueIds: ID[], ctx?: RequestContext) => Promise<boolean>

Checks a given OrderLine against the facetValueIds and returns true if the associated ProductVariant & Product together have all the specified FacetValues.

Was this chapter helpful?
Report Issue
Edited Feb 25, 2026ยทEdit this page