From cf0d981a220f9d850284f283d1fffebffece3748 Mon Sep 17 00:00:00 2001 From: Richard Marmorstein Date: Wed, 14 Oct 2020 16:42:28 -0400 Subject: [PATCH] Codegen for openapi aacc1c6 --- types/2020-08-27/Checkout/Sessions.d.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/types/2020-08-27/Checkout/Sessions.d.ts b/types/2020-08-27/Checkout/Sessions.d.ts index f8c073ff00..68004cf51e 100644 --- a/types/2020-08-27/Checkout/Sessions.d.ts +++ b/types/2020-08-27/Checkout/Sessions.d.ts @@ -598,6 +598,11 @@ declare module 'stripe' { */ customer_email?: string; + /** + * The coupon or promotion code to apply to this session. Currently, only up to one may be specified. + */ + discounts?: Array; + /** * Specifies which fields in the response should be expanded. */ @@ -659,6 +664,18 @@ declare module 'stripe' { namespace SessionCreateParams { type BillingAddressCollection = 'auto' | 'required'; + interface Discount { + /** + * The ID of the coupon to apply to this session. + */ + coupon?: string; + + /** + * The ID of a promotion code to apply to this session. + */ + promotion_code?: string; + } + interface LineItem { /** * The amount to be collected per unit of the line item. If specified, must also pass `currency` and `name`.