From c59794dd21d7bbc440bfbd2372a4e44f65ce70fc Mon Sep 17 00:00:00 2001 From: Dobes Vandermeer Date: Tue, 18 Jun 2019 22:09:39 -0700 Subject: [PATCH] stripe: Allow coupon to be removed from subscription (#36270) To remove a coupon from a subscription, you pass `null` when updating the subscription. The types previously did not allow `null` for this field. See https://stripe.com/docs/api/subscriptions/update#update_subscription-coupon --- types/stripe/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/stripe/index.d.ts b/types/stripe/index.d.ts index e579d95860..44ced3620c 100644 --- a/types/stripe/index.d.ts +++ b/types/stripe/index.d.ts @@ -6104,9 +6104,9 @@ declare namespace Stripe { /** * The code of the coupon to apply to this subscription. A coupon applied to a subscription will only affect invoices created for that - * particular subscription. + * particular subscription. Passing null will remove any coupon previously applied to a subscription. */ - coupon?: string; + coupon?: string | null; /** * @deprecated Use items property instead.