From 56ad2793de0dde27009d8c79fc4a99202ea8ee46 Mon Sep 17 00:00:00 2001 From: Dobes Vandermeer Date: Mon, 21 Jan 2019 16:04:44 -0800 Subject: [PATCH] Mark discounts option in stripe The `discount` can be (and usually is) `null` for invoices and subscriptions. --- 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 5ab2666e58..05fde1c3ca 100644 --- a/types/stripe/index.d.ts +++ b/types/stripe/index.d.ts @@ -1999,7 +1999,7 @@ declare namespace Stripe { */ description: string; - discount: coupons.IDiscount; + discount: coupons.IDiscount | null; /** * The date on which payment for this invoice is due. This value will be null for invoices where billing=charge_automatically. @@ -4629,7 +4629,7 @@ declare namespace Stripe { * Describes the current discount applied to this subscription, if there is one. When billing, a discount applied to a * subscription overrides a discount applied on a customer-wide basis. */ - discount: coupons.IDiscount; + discount: coupons.IDiscount | null; /** * If the subscription has ended (either because it was canceled or because the customer was switched to a subscription