Skip to content

Commit

Permalink
Update generated code (#2158)
Browse files Browse the repository at this point in the history
* Update generated code for v1232

* Update generated code for v1233

* Update generated code for v1235

* Update generated code for v1238

* Update generated code for v1243

* Update generated code for v1244

* Update generated code for v1245

* Update generated code for v1246

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
  • Loading branch information
stripe-openapi[bot] authored Sep 5, 2024
1 parent 41a5b6a commit c6b19a8
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 11 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1230
v1246
10 changes: 10 additions & 0 deletions types/Billing/AlertsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,16 @@ declare module 'stripe' {
* Limit the scope to this alert only to this customer.
*/
customer?: string;

/**
* Limit the scope of this rated usage alert to this subscription.
*/
subscription?: string;

/**
* Limit the scope of this rated usage alert to this subscription item.
*/
subscription_item?: string;
}

interface UsageThresholdConfig {
Expand Down
2 changes: 1 addition & 1 deletion types/Checkout/Sessions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ declare module 'stripe' {
recovered_from: string | null;

/**
* This parameter applies to `ui_mode: embedded`. Learn more about the [redirect behavior](https://stripe.com/docs/payments/checkout/custom-redirect-behavior) of embedded sessions. Defaults to `always`.
* This parameter applies to `ui_mode: embedded`. Learn more about the [redirect behavior](https://stripe.com/docs/payments/checkout/custom-success-page?payment-ui=embedded-form) of embedded sessions. Defaults to `always`.
*/
redirect_on_completion?: Session.RedirectOnCompletion;

Expand Down
2 changes: 1 addition & 1 deletion types/Checkout/SessionsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ declare module 'stripe' {
phone_number_collection?: SessionCreateParams.PhoneNumberCollection;

/**
* This parameter applies to `ui_mode: embedded`. Learn more about the [redirect behavior](https://stripe.com/docs/payments/checkout/custom-redirect-behavior) of embedded sessions. Defaults to `always`.
* This parameter applies to `ui_mode: embedded`. Learn more about the [redirect behavior](https://stripe.com/docs/payments/checkout/custom-success-page?payment-ui=embedded-form) of embedded sessions. Defaults to `always`.
*/
redirect_on_completion?: SessionCreateParams.RedirectOnCompletion;

Expand Down
6 changes: 3 additions & 3 deletions types/InvoicesResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1753,7 +1753,7 @@ declare module 'stripe' {
expand?: Array<string>;

/**
* List of invoice items to add or update in the upcoming invoice preview.
* List of invoice items to add or update in the upcoming invoice preview (up to 250).
*/
invoice_items?: Array<InvoiceCreatePreviewParams.InvoiceItem>;

Expand Down Expand Up @@ -2867,7 +2867,7 @@ declare module 'stripe' {
expand?: Array<string>;

/**
* List of invoice items to add or update in the upcoming invoice preview.
* List of invoice items to add or update in the upcoming invoice preview (up to 250).
*/
invoice_items?: Array<InvoiceListUpcomingLinesParams.InvoiceItem>;

Expand Down Expand Up @@ -4253,7 +4253,7 @@ declare module 'stripe' {
expand?: Array<string>;

/**
* List of invoice items to add or update in the upcoming invoice preview.
* List of invoice items to add or update in the upcoming invoice preview (up to 250).
*/
invoice_items?: Array<InvoiceRetrieveUpcomingParams.InvoiceItem>;

Expand Down
3 changes: 3 additions & 0 deletions types/PaymentIntentsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7679,6 +7679,9 @@ declare module 'stripe' {
* after those actions are completed. Your server needs to then
* explicitly re-confirm the PaymentIntent to initiate the next payment
* attempt.
* There is a variable upper limit on how many times a PaymentIntent can be confirmed.
* After this limit is reached, any further calls to this endpoint will
* transition the PaymentIntent to the canceled state.
*/
confirm(
id: string,
Expand Down
8 changes: 4 additions & 4 deletions types/Terminal/ReadersResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,14 +151,14 @@ declare module 'stripe' {

interface ReaderProcessSetupIntentParams {
/**
* Customer Consent Collected
* SetupIntent ID
*/
customer_consent_collected: boolean;
setup_intent: string;

/**
* SetupIntent ID
* Customer Consent Collected
*/
setup_intent: string;
customer_consent_collected?: boolean;

/**
* Specifies which fields in the response should be expanded.
Expand Down
2 changes: 1 addition & 1 deletion types/Transfers.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ declare module 'stripe' {
reversed: boolean;

/**
* ID of the charge or payment that was used to fund the transfer. If null, the transfer was funded from the available balance.
* ID of the charge that was used to fund the transfer. If null, the transfer was funded from the available balance.
*/
source_transaction: string | Stripe.Charge | null;

Expand Down

0 comments on commit c6b19a8

Please sign in to comment.