From 7c72ecac37190e3fef53c4fab600f7d13fc404e7 Mon Sep 17 00:00:00 2001 From: toddrobinsonce Date: Wed, 17 Apr 2019 19:47:38 -0400 Subject: [PATCH] stripe: Update missing fields and add a deprecated field for backwards compatibility (#34694) --- types/stripe/index.d.ts | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/types/stripe/index.d.ts b/types/stripe/index.d.ts index 6833b20fd3..8e2af3e489 100644 --- a/types/stripe/index.d.ts +++ b/types/stripe/index.d.ts @@ -885,6 +885,13 @@ declare namespace Stripe { */ receipt_number: string | null; + /** + * This is the URL to view the receipt for this charge. The receipt is kept up-to-date to the + * latest state of the charge, including any refunds. If the charge is for an Invoice, the + * receipt will be stylized as an Invoice receipt. + */ + receipt_url: string; + /** * Whether or not the charge has been fully refunded. If the charge is only partially refunded, * this attribute will still be false. @@ -1501,6 +1508,11 @@ declare namespace Stripe { */ email?: string; + /** + * The prefix for the customer used to generate unique invoice numbers. + */ + invoice_prefix?: string; + shipping?: IShippingInformation; /** @@ -2111,6 +2123,11 @@ declare namespace Stripe { */ statement_descriptor: string; + /** + * The status of the invoice, one of draft, open, paid, uncollectible, or void. + */ + status: string; + /** * The subscription that this invoice was prepared for, if any. */ @@ -2215,6 +2232,11 @@ declare namespace Stripe { */ subscription: string; + /** + * The subscription item that generated this invoice item. Left empty if the line item is not an explicit result of a subscription. + */ + subscription_item: string; + /** * A string identifying the type of the source of this line item, either an invoiceitem or a subscription */ @@ -2412,6 +2434,11 @@ declare namespace Stripe { */ created?: IDateFilter; + /** + * @deprecated Use created property instead as of api version 2019-03-14. + */ + date?: IDateFilter; + /** * The identifier of the customer whose invoices to return. If none is provided, all invoices will be returned. */