Skip to content

basalt / subscriptions/src / PlanDefinition

Interface: PlanDefinition ​

Defined in: subscriptions/src/plans.ts:28

Properties ​

features ​

> features: Record<string, FeatureValue>

Defined in: subscriptions/src/plans.ts:37


price ​

> price: number | "custom" | { monthly: number; yearly: number; }

Defined in: subscriptions/src/plans.ts:35

Price in the currency's minor unit (integer; cents — 2900 = $29.00). 0 = free · number = same price both periods · object = per period · 'custom' = sales-led. Only gated (> 0) and displayed here; the actual Stripe charge uses a pre-created price id on the gateway.


trial? ​

> optional trial?: DurationInput

Defined in: subscriptions/src/plans.ts:36

Released under the MIT License.