From fa70abd6c150a5254f959c5ece0f9ff5e644137e Mon Sep 17 00:00:00 2001 From: Shmuel Lamm Date: Mon, 8 Jul 2019 18:43:00 -0400 Subject: [PATCH] correct types for invoice.charge and invoiceItem.invoice (#36679) --- types/stripe/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/stripe/index.d.ts b/types/stripe/index.d.ts index d8ad5f59ce..8cac20b9ce 100644 --- a/types/stripe/index.d.ts +++ b/types/stripe/index.d.ts @@ -2643,7 +2643,7 @@ declare namespace Stripe { /** * ID of the latest charge generated for this invoice, if any. [Expandable] */ - charge: string | charges.ICharge; + charge: string | charges.ICharge | null; /** * Whether or not the invoice is still trying to collect payment. An invoice is closed if it's either paid or @@ -3339,9 +3339,9 @@ declare namespace Stripe { discountable: boolean; /** - * If null, the invoice item is pending and will be included in the upcoming invoice. + * If null, the invoice item is pending and will be included in the upcoming invoice. [Expandable] */ - invoice: string | null; + invoice: string | invoices.IInvoice | null; livemode: boolean; metadata: IMetadata;