From 3fd9f73e8391611b7309edbd430b083e0102da89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1=C4=8Fa=20Durch=C3=A1nek?= Date: Fri, 8 Nov 2019 00:26:46 +0100 Subject: [PATCH] Stripe: Update type for Product (#40215) * Update type for Product As per https://stripe.com/docs/api/service_products/create#create_service_product-type * Version bump --- types/stripe/index.d.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/types/stripe/index.d.ts b/types/stripe/index.d.ts index c1d71c303d..94062e64ea 100644 --- a/types/stripe/index.d.ts +++ b/types/stripe/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for stripe 7.10 +// Type definitions for stripe 7.11 // Project: https://github.com/stripe/stripe-node/ // Definitions by: William Johnston // Peter Harris @@ -7028,10 +7028,11 @@ declare namespace Stripe { statement_descriptor: string; /** - * The type of the product. The product is either of type good, which is eligible for use with Orders and SKUs, or service, which is eligible for - * use with Subscriptions and Plans. + * The type of the product. Defaults to `service` if not explicitly specified, enabling use of this product + * withSubscriptions and Plans. Set this parameter to `good` to use this product with Orders and SKUs. On API + * versions before `2018-02-05`, this field defaults to `good` for compatibility reasons. */ - type: ProductType; + type?: ProductType; /** * A label that represents units of this product, such as seat(s), in Stripe and on customers’ receipts and invoices.