Skip to content

Commit

Permalink
Update generated code for v1347
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Nov 13, 2024
1 parent 18306a5 commit 09ca78d
Show file tree
Hide file tree
Showing 9 changed files with 34 additions and 8 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1341
v1347
2 changes: 1 addition & 1 deletion src/apiVersion.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// File generated from our OpenAPI spec

export const ApiVersion = '2024-10-28.acacia';
export const ApiVersion = '2024-11-20.acacia';
2 changes: 1 addition & 1 deletion test/resources/generated_examples_test.spec.js

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions types/AccountsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3637,6 +3637,11 @@ declare module 'stripe' {
}

interface Relationship {
/**
* Whether the person is the authorizer of the account's representative.
*/
authorizer?: boolean;

/**
* Whether the person is a director of the account's legal entity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations.
*/
Expand Down Expand Up @@ -3753,6 +3758,11 @@ declare module 'stripe' {

namespace AccountListPersonsParams {
interface Relationship {
/**
* A filter on the list of people returned based on whether these people are authorizers of the account's representative.
*/
authorizer?: boolean;

/**
* A filter on the list of people returned based on whether these people are directors of the account's company.
*/
Expand Down Expand Up @@ -4167,6 +4177,11 @@ declare module 'stripe' {
}

interface Relationship {
/**
* Whether the person is the authorizer of the account's representative.
*/
authorizer?: boolean;

/**
* Whether the person is a director of the account's legal entity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations.
*/
Expand Down
5 changes: 5 additions & 0 deletions types/Persons.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,11 @@ declare module 'stripe' {
type PoliticalExposure = 'existing' | 'none';

interface Relationship {
/**
* Whether the person is the authorizer of the account's representative.
*/
authorizer: boolean | null;

/**
* Whether the person is a director of the account's legal entity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations.
*/
Expand Down
5 changes: 5 additions & 0 deletions types/TokensResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -797,6 +797,11 @@ declare module 'stripe' {
}

interface Relationship {
/**
* Whether the person is the authorizer of the account's representative.
*/
authorizer?: boolean;

/**
* Whether the person is a director of the account's legal entity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations.
*/
Expand Down
3 changes: 2 additions & 1 deletion types/WebhookEndpointsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,8 @@ declare module 'stripe' {
| '2024-04-10'
| '2024-06-20'
| '2024-09-30.acacia'
| '2024-10-28.acacia';
| '2024-10-28.acacia'
| '2024-11-20.acacia';

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-10-28.acacia';
export type LatestApiVersion = '2024-11-20.acacia';
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-10-28.acacia',
apiVersion: '2024-11-20.acacia',
});

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-10-28.acacia',
apiVersion: '2024-11-20.acacia',
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-10-28.acacia',
apiVersion: '2024-11-20.acacia',
};
const customer: Stripe.Customer = await stripe.customers.create(params, opts);

Expand Down

0 comments on commit 09ca78d

Please sign in to comment.