Skip to content

Commit

Permalink
Codegen for openapi aacc1c6 (#1044)
Browse files Browse the repository at this point in the history
  • Loading branch information
richardm-stripe authored Oct 14, 2020
1 parent ee92afb commit 48a5008
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions types/2020-08-27/Checkout/Sessions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<SessionCreateParams.Discount>;

/**
* Specifies which fields in the response should be expanded.
*/
Expand Down Expand Up @@ -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`.
Expand Down

0 comments on commit 48a5008

Please sign in to comment.