Skip to content

Commit

Permalink
Merge pull request #880 from stripe/remi/codegen-3b0ec34
Browse files Browse the repository at this point in the history
Make `display_items` on Checkout `Session` optional
  • Loading branch information
ob-stripe committed Apr 28, 2020
2 parents d78f4aa + 1f6561c commit c0fd4c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions types/2020-03-02/Checkout/Sessions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ declare module 'stripe' {
/**
* The line items, plans, or SKUs purchased by the customer.
*/
display_items: Array<Session.DisplayItem> | null;
display_items?: Array<Session.DisplayItem>;

/**
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
Expand Down Expand Up @@ -614,7 +614,7 @@ declare module 'stripe' {
description?: string;

/**
* A list of images representing this line item.
* A list of images representing this line item. Each image can be up to 5 MB in size.
*/
images?: Array<string>;

Expand Down
2 changes: 1 addition & 1 deletion types/2020-03-02/InvoiceLineItems.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ declare module 'stripe' {
>;

/**
* If previewing an update to a subscription, this decides whether the preview will show the result of applying prorations or not. If set, one of `subscription_items` or `subscription`, and one of `subscription_items` or `subscription_trial_end` are required.
* If previewing an update to a subscription, this decides whether the preview will show the result of applying prorations or not. If set, one of `subscription_items` or `subscription`, and one of `subscription_items` or `subscription_trial_end` are required. This field has been deprecated and will be removed in a future API version. Use `subscription_proration_behavior=create_prorations` as a replacement for `subscription_prorate=true` and `subscription_proration_behavior=none` for `subscription_prorate=false`.
*/
subscription_prorate?: boolean;

Expand Down

0 comments on commit c0fd4c8

Please sign in to comment.