Skip to content

unlockersFromPricing

function unlockersFromPricing(
pricing,
feature,
needed,
active?
): string[];

Defined in: src/react/compute.ts:122

Plans and add-ons in a pricing table that would allow feature for a total of needed units, excluding the customer’s active plans. Cheapest first, then table order (the client-side twin of the engine’s unlockingPlans).

Parameter Type Default value
pricing | PricingTable | undefined undefined
feature string undefined
needed number undefined
active? readonly string[] []

string[]