Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update generated code #2158

Merged
merged 8 commits into from
Sep 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading