From 067504a0480407be58158ac461c93a5ef4b3270d Mon Sep 17 00:00:00 2001 From: Dobes Vandermeer Date: Mon, 21 Jan 2019 16:35:28 -0800 Subject: [PATCH] stripe: Mark subscription.plan optional This field now "Only set if the subscription contains a single plan." See https://stripe.com/docs/api/subscriptions/object#subscription_object-plan --- types/stripe/index.d.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/types/stripe/index.d.ts b/types/stripe/index.d.ts index 5ab2666e58..08b65a2155 100644 --- a/types/stripe/index.d.ts +++ b/types/stripe/index.d.ts @@ -4642,9 +4642,10 @@ declare namespace Stripe { items: IList; /** - * Hash describing the plan the customer is subscribed to + * Hash describing the plan the customer is subscribed to. Only set if the subscription + * contains a single plan. */ - plan: plans.IPlan; + plan?: plans.IPlan | null; /** * The number of subscriptions for the associated plan