diff --git a/types/stripe/index.d.ts b/types/stripe/index.d.ts index 57de752245..9d70a87805 100644 --- a/types/stripe/index.d.ts +++ b/types/stripe/index.d.ts @@ -8571,6 +8571,16 @@ declare namespace Stripe { * be affected. */ product?: string; + + /** + * Whether the plan is currently available for new subscriptions. + */ + active?: boolean; + + /** + * Default number of trial days when subscribing a customer to this plan using `trial_from_plan=true`. + */ + trial_period_days?: number; } interface IPlanCreationOptionsProductHash { diff --git a/types/stripe/stripe-tests.ts b/types/stripe/stripe-tests.ts index a23273fd94..c505f4ac33 100644 --- a/types/stripe/stripe-tests.ts +++ b/types/stripe/stripe-tests.ts @@ -2351,6 +2351,12 @@ stripe.plans.update( stripe.plans.update('gold-plan', { nickname: 'New gold plan nickname' }).then(plan => { // asynchronously called }); +stripe.plans.update('gold-plan', { active: true }).then(plan => { + // asynchronously called +}); +stripe.plans.update('gold-plan', { trial_period_days: 1 }).then(plan => { + // asynchronously called +}); stripe.plans.del('gold-plan', (err, confirmation) => { // asynchronously called