@letsgo/pricing
This package defines the pricing plans of your app.
• Const ActivePlans: Plan[]
The list of active plans only.
• Const DefaultPlanId: string = "free"
The default plan Id to use for all new tenants. This is typically a freemium plan.
• Const Plans: Plan[]
The list of all plans, active and non-active. Never remove a plan from this list that has any active tenants using it,
even if you no longer offer this plan to new users. Mark it as active: false instead.
▸ getActivePlan(planId): Plan | undefined
Gets an active plan by Id.
| Name | Type | Description |
|---|---|---|
planId |
string |
The plan Id |
Plan | undefined
The plan if it exists and is active, undefined otherwise.
▸ getPlan(planId): Plan | undefined
Gets a plan by Id.
| Name | Type | Description |
|---|---|---|
planId |
string |
The plan Id |
Plan | undefined
The plan or undefined if it does not exist.