Skip to content

Commit c6b19a8

Browse files
Update generated code (#2158)
* 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>
1 parent 41a5b6a commit c6b19a8

File tree

8 files changed

+24
-11
lines changed

8 files changed

+24
-11
lines changed

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1230
1+
v1246

types/Billing/AlertsResource.d.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,16 @@ declare module 'stripe' {
3636
* Limit the scope to this alert only to this customer.
3737
*/
3838
customer?: string;
39+
40+
/**
41+
* Limit the scope of this rated usage alert to this subscription.
42+
*/
43+
subscription?: string;
44+
45+
/**
46+
* Limit the scope of this rated usage alert to this subscription item.
47+
*/
48+
subscription_item?: string;
3949
}
4050

4151
interface UsageThresholdConfig {

types/Checkout/Sessions.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ declare module 'stripe' {
219219
recovered_from: string | null;
220220

221221
/**
222-
* 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`.
222+
* 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`.
223223
*/
224224
redirect_on_completion?: Session.RedirectOnCompletion;
225225

types/Checkout/SessionsResource.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ declare module 'stripe' {
196196
phone_number_collection?: SessionCreateParams.PhoneNumberCollection;
197197

198198
/**
199-
* 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`.
199+
* 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`.
200200
*/
201201
redirect_on_completion?: SessionCreateParams.RedirectOnCompletion;
202202

types/InvoicesResource.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1753,7 +1753,7 @@ declare module 'stripe' {
17531753
expand?: Array<string>;
17541754

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

@@ -2867,7 +2867,7 @@ declare module 'stripe' {
28672867
expand?: Array<string>;
28682868

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

@@ -4253,7 +4253,7 @@ declare module 'stripe' {
42534253
expand?: Array<string>;
42544254

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

types/PaymentIntentsResource.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7679,6 +7679,9 @@ declare module 'stripe' {
76797679
* after those actions are completed. Your server needs to then
76807680
* explicitly re-confirm the PaymentIntent to initiate the next payment
76817681
* attempt.
7682+
* There is a variable upper limit on how many times a PaymentIntent can be confirmed.
7683+
* After this limit is reached, any further calls to this endpoint will
7684+
* transition the PaymentIntent to the canceled state.
76827685
*/
76837686
confirm(
76847687
id: string,

types/Terminal/ReadersResource.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,14 +151,14 @@ declare module 'stripe' {
151151

152152
interface ReaderProcessSetupIntentParams {
153153
/**
154-
* Customer Consent Collected
154+
* SetupIntent ID
155155
*/
156-
customer_consent_collected: boolean;
156+
setup_intent: string;
157157

158158
/**
159-
* SetupIntent ID
159+
* Customer Consent Collected
160160
*/
161-
setup_intent: string;
161+
customer_consent_collected?: boolean;
162162

163163
/**
164164
* Specifies which fields in the response should be expanded.

types/Transfers.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ declare module 'stripe' {
8686
reversed: boolean;
8787

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

0 commit comments

Comments
 (0)