PlanDefinition
Defined in: src/catalog.ts:228
A plan.
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
F |
Properties
Section titled “Properties”| Property | Type | Description | Defined in |
|---|---|---|---|
default? |
boolean |
Applies when the group has no entitled subscription. At most one per group. | src/catalog.ts:234 |
description? |
string |
- | src/catalog.ts:230 |
features |
PlanFeatures<F> |
- | src/catalog.ts:243 |
group? |
string |
Mutually exclusive group (one entitled plan per group). Default "base". |
src/catalog.ts:232 |
hidden? |
boolean |
- | src/catalog.ts:235 |
highlight? |
boolean |
Emphasize in pricing tables. | src/catalog.ts:237 |
metadata? |
JsonObject |
- | src/catalog.ts:246 |
name? |
string |
- | src/catalog.ts:229 |
previous? |
Record<number, PlanVersionDefinition<F>> |
Older versions still held by grandfathered subscriptions. | src/catalog.ts:245 |
price? |
| PriceDisplay | readonly PriceDisplay[] |
- | src/catalog.ts:241 |
providers? |
ProviderMapping |
- | src/catalog.ts:242 |
trial? |
object |
- | src/catalog.ts:240 |
trial.days |
number |
- | src/catalog.ts:240 |
version? |
number |
Current version. Default 1. |
src/catalog.ts:239 |