Skip to content

Commit

Permalink
Update generated code for v1088
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Jun 18, 2024
1 parent 67d37a0 commit 4789a03
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1087
v1088
2 changes: 1 addition & 1 deletion src/apiVersion.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// File generated from our OpenAPI spec

export const ApiVersion = '2024-04-10';
export const ApiVersion = '2024-06-20';
export const PreviewVersion = '2024-05-23.preview-v2';
3 changes: 2 additions & 1 deletion types/WebhookEndpointsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@ declare module 'stripe' {
| '2022-11-15'
| '2023-08-16'
| '2023-10-16'
| '2024-04-10';
| '2024-04-10'
| '2024-06-20';

type EnabledEvent =
| '*'
Expand Down
2 changes: 1 addition & 1 deletion types/lib.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ declare module 'stripe' {
}): (...args: any[]) => Response<ResponseObject>; //eslint-disable-line @typescript-eslint/no-explicit-any
static MAX_BUFFERED_REQUEST_METRICS: number;
}
export type LatestApiVersion = '2024-04-10';
export type LatestApiVersion = '2024-06-20';
export type HttpAgent = Agent;
export type HttpProtocol = 'http' | 'https';

Expand Down
6 changes: 3 additions & 3 deletions types/test/typescriptTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import Stripe from 'stripe';

let stripe = new Stripe('sk_test_123', {
apiVersion: '2024-04-10',
apiVersion: '2024-06-20',
});

stripe = new Stripe('sk_test_123');
Expand All @@ -26,7 +26,7 @@ stripe = new Stripe('sk_test_123', {

// Check config object.
stripe = new Stripe('sk_test_123', {
apiVersion: '2024-04-10',
apiVersion: '2024-06-20',
typescript: true,
maxNetworkRetries: 1,
timeout: 1000,
Expand All @@ -44,7 +44,7 @@ stripe = new Stripe('sk_test_123', {
description: 'test',
};
const opts: Stripe.RequestOptions = {
apiVersion: '2024-04-10',
apiVersion: '2024-06-20',
};
const customer: Stripe.Customer = await stripe.customers.create(params, opts);

Expand Down

0 comments on commit 4789a03

Please sign in to comment.