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 for beta #2180

Merged
merged 8 commits into from
Oct 8, 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
v1278
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: 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 @@ -88,7 +88,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 @@ -106,7 +111,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 @@ -123,13 +133,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 @@ -209,7 +224,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 @@ -292,13 +312,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
52 changes: 46 additions & 6 deletions types/AccountSessionsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,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 @@ -176,7 +181,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 Down Expand Up @@ -238,13 +248,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 @@ -351,6 +366,11 @@ declare module 'stripe' {

namespace FinancialAccount {
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 external accounts to be linked for money transfer.
*/
Expand Down Expand Up @@ -385,7 +405,7 @@ declare module 'stripe' {
namespace FinancialAccountTransactions {
interface Features {
/**
* Whether to allow card spend dispute features.
* Whether to allow card spend dispute management features.
*/
card_spend_dispute_management?: boolean;
}
Expand Down Expand Up @@ -426,10 +446,20 @@ declare module 'stripe' {
*/
card_management?: boolean;

/**
* Whether to allow card spend dispute management features.
*/
card_spend_dispute_management?: boolean;

/**
* Whether to allow cardholder management features.
*/
cardholder_management?: boolean;

/**
* Whether to allow spend control management features.
*/
spend_control_management?: boolean;
}
}

Expand All @@ -448,7 +478,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 @@ -556,13 +591,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
16 changes: 14 additions & 2 deletions types/Accounts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ declare module 'stripe' {
capabilities?: Account.Capabilities;

/**
* Whether the account can create live charges.
* Whether the account can process charges.
*/
charges_enabled: boolean;

Expand Down Expand Up @@ -85,6 +85,11 @@ declare module 'stripe' {

future_requirements?: Account.FutureRequirements;

/**
* The groups associated with the account.
*/
groups?: Account.Groups | null;

/**
* This is an object representing a person associated with a Stripe account.
*
Expand All @@ -100,7 +105,7 @@ declare module 'stripe' {
metadata?: Stripe.Metadata;

/**
* Whether Stripe can send payouts to this account.
* Whether the funds in this account can be paid out.
*/
payouts_enabled: boolean;

Expand Down Expand Up @@ -1075,6 +1080,13 @@ declare module 'stripe' {
}
}

interface Groups {
/**
* The group the account is in to determine their payments pricing, and null if the account is on customized pricing. [See the Platform pricing tool documentation](https://stripe.com/docs/connect/platform-pricing-tools) for details.
*/
payments_pricing: string | null;
}

interface Requirements {
/**
* Fields that are due and can be satisfied by providing the corresponding alternative fields instead.
Expand Down
Loading
Loading