Kaizen
Browse modulesPricingpricing/sharedSchemas and constants

Variable: PRICING\_SCOPES

const PRICING_SCOPES: PricingScopeMapping<EvaluatePricingContext>;

Defined in: shared/pricing/scope-mapping.ts:55

Built-in scope mapping covering universal pricing-domain concepts:

  • module on every line item (the only fixed line-item discriminator)
  • discount_codes on the order (default field for DiscountCodeConfig)

Consuming apps that author rules scoped on product-specific fields (facility, venue, membership tier, etc.) compose their own mapping with buildEngineScopeMapping and pass it via evaluatePricing's scopeMapping option.