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 #2204

Merged
merged 8 commits into from
Oct 29, 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 @@
v1268
v1319
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-09-30.acacia';
export const ApiVersion = '2024-10-28.acacia';
4 changes: 4 additions & 0 deletions src/resources/TestHelpers/Issuing/Cards.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,8 @@ export const Cards = StripeResource.extend({
method: 'POST',
fullPath: '/v1/test_helpers/issuing/cards/{card}/shipping/ship',
}),
submitCard: stripeMethod({
method: 'POST',
fullPath: '/v1/test_helpers/issuing/cards/{card}/shipping/submit',
}),
});
2 changes: 2 additions & 0 deletions src/resources/V2/Core.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
// File generated from our OpenAPI spec

import {StripeResource} from '../../StripeResource.js';
import {EventDestinations} from './Core/EventDestinations.js';
import {Events} from './Core/Events.js';
export const Core = StripeResource.extend({
constructor: function(...args: any) {
StripeResource.apply(this, args);
this.eventDestinations = new EventDestinations(...args);
this.events = new Events(...args);
},
});
39 changes: 39 additions & 0 deletions src/resources/V2/Core/EventDestinations.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
// File generated from our OpenAPI spec

import {StripeResource} from '../../../StripeResource.js';
const stripeMethod = StripeResource.method;
export const EventDestinations = StripeResource.extend({
create: stripeMethod({
method: 'POST',
fullPath: '/v2/core/event_destinations',
}),
retrieve: stripeMethod({
method: 'GET',
fullPath: '/v2/core/event_destinations/{id}',
}),
update: stripeMethod({
method: 'POST',
fullPath: '/v2/core/event_destinations/{id}',
}),
list: stripeMethod({
method: 'GET',
fullPath: '/v2/core/event_destinations',
methodType: 'list',
}),
del: stripeMethod({
method: 'DELETE',
fullPath: '/v2/core/event_destinations/{id}',
}),
disable: stripeMethod({
method: 'POST',
fullPath: '/v2/core/event_destinations/{id}/disable',
}),
enable: stripeMethod({
method: 'POST',
fullPath: '/v2/core/event_destinations/{id}/enable',
}),
ping: stripeMethod({
method: 'POST',
fullPath: '/v2/core/event_destinations/{id}/ping',
}),
});
2 changes: 1 addition & 1 deletion test/resources/generated_examples_test.spec.js

Large diffs are not rendered by default.

35 changes: 30 additions & 5 deletions types/AccountSessions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,12 @@ declare module 'stripe' {
namespace AccountManagement {
interface Features {
/**
* Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements.
* Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
*/
disable_stripe_user_authentication?: boolean;

/**
* Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
*/
external_account_collection: boolean;
}
Expand All @@ -100,7 +105,12 @@ declare module 'stripe' {
namespace AccountOnboarding {
interface Features {
/**
* Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements.
* Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
*/
disable_stripe_user_authentication?: boolean;

/**
* Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
*/
external_account_collection: boolean;
}
Expand All @@ -117,13 +127,18 @@ declare module 'stripe' {

namespace Balances {
interface Features {
/**
* Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
*/
disable_stripe_user_authentication?: boolean;

/**
* Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
*/
edit_payout_schedule: boolean;

/**
* Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements.
* Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
*/
external_account_collection: boolean;

Expand Down Expand Up @@ -164,7 +179,12 @@ declare module 'stripe' {
namespace NotificationBanner {
interface Features {
/**
* Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements.
* Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
*/
disable_stripe_user_authentication?: boolean;

/**
* Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
*/
external_account_collection: boolean;
}
Expand Down Expand Up @@ -247,13 +267,18 @@ declare module 'stripe' {

namespace Payouts {
interface Features {
/**
* Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
*/
disable_stripe_user_authentication?: boolean;

/**
* Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
*/
edit_payout_schedule: boolean;

/**
* Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements.
* Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
*/
external_account_collection: boolean;

Expand Down
35 changes: 30 additions & 5 deletions types/AccountSessionsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,12 @@ declare module 'stripe' {
namespace AccountManagement {
interface Features {
/**
* Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements.
* Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
*/
disable_stripe_user_authentication?: boolean;

/**
* Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
*/
external_account_collection?: boolean;
}
Expand All @@ -114,7 +119,12 @@ declare module 'stripe' {
namespace AccountOnboarding {
interface Features {
/**
* Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements.
* Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
*/
disable_stripe_user_authentication?: boolean;

/**
* Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
*/
external_account_collection?: boolean;
}
Expand All @@ -134,13 +144,18 @@ declare module 'stripe' {

namespace Balances {
interface Features {
/**
* Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
*/
disable_stripe_user_authentication?: boolean;

/**
* Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
*/
edit_payout_schedule?: boolean;

/**
* Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements.
* Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
*/
external_account_collection?: boolean;

Expand Down Expand Up @@ -187,7 +202,12 @@ declare module 'stripe' {
namespace NotificationBanner {
interface Features {
/**
* Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements.
* Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
*/
disable_stripe_user_authentication?: boolean;

/**
* Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
*/
external_account_collection?: boolean;
}
Expand Down Expand Up @@ -279,13 +299,18 @@ declare module 'stripe' {

namespace Payouts {
interface Features {
/**
* Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
*/
disable_stripe_user_authentication?: boolean;

/**
* Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
*/
edit_payout_schedule?: boolean;

/**
* Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements.
* Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
*/
external_account_collection?: boolean;

Expand Down
Loading
Loading