pricing4ts
Version:
 Pricing4TS is a TypeScript-based toolkit designed to enhance the server-side functionality of a pricing-driven SaaS by enabling the seamless integration of pricing plans into the application logic. T
6 lines (5 loc) • 376 B
Markdown
In this case we have two plans `BASIC` and `PRO` and two addons `A` and `B`.
Addon `A` can only be purchased if you subscribe to plan `BASIC`
(`availableFor: ["BASIC"]`) and to addon `B` (`dependsOn: ["B"]`).
But addon `B` can only be purchased if you subscribe to plan `PRO` (`availableFor: ["PRO"]`).
Since you can only subscribe to one plan at a time this is inconsistent.