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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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 @@
v1412
v1455
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-12-18.acacia';
export const ApiVersion = '2025-01-27.acacia';
4 changes: 4 additions & 0 deletions src/resources/Treasury/FinancialAccounts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ export const FinancialAccounts = StripeResource.extend({
fullPath: '/v1/treasury/financial_accounts',
methodType: 'list',
}),
close: stripeMethod({
method: 'POST',
fullPath: '/v1/treasury/financial_accounts/{financial_account}/close',
}),
retrieveFeatures: stripeMethod({
method: 'GET',
fullPath: '/v1/treasury/financial_accounts/{financial_account}/features',
Expand Down
13 changes: 12 additions & 1 deletion test/resources/generated_examples_test.spec.js

Large diffs are not rendered by default.

130 changes: 130 additions & 0 deletions types/AccountSessions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,14 @@ declare module 'stripe' {

documents: Components.Documents;

financial_account: Components.FinancialAccount;

financial_account_transactions: Components.FinancialAccountTransactions;

issuing_card: Components.IssuingCard;

issuing_cards_list: Components.IssuingCardsList;

notification_banner: Components.NotificationBanner;

payment_details: Components.PaymentDetails;
Expand Down Expand Up @@ -167,6 +175,128 @@ declare module 'stripe' {
interface Features {}
}

interface FinancialAccount {
/**
* Whether the embedded component is enabled.
*/
enabled: boolean;

features: FinancialAccount.Features;
}

namespace FinancialAccount {
interface Features {
/**
* Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
*/
disable_stripe_user_authentication: boolean;

/**
* Whether to allow external accounts to be linked for money transfer.
*/
external_account_collection: boolean;

/**
* Whether to allow sending money.
*/
send_money: boolean;

/**
* Whether to allow transferring balance.
*/
transfer_balance: boolean;
}
}

interface FinancialAccountTransactions {
/**
* Whether the embedded component is enabled.
*/
enabled: boolean;

features: FinancialAccountTransactions.Features;
}

namespace FinancialAccountTransactions {
interface Features {
/**
* Whether to allow card spend dispute management features.
*/
card_spend_dispute_management: boolean;
}
}

interface IssuingCard {
/**
* Whether the embedded component is enabled.
*/
enabled: boolean;

features: IssuingCard.Features;
}

namespace IssuingCard {
interface Features {
/**
* Whether to allow card management features.
*/
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;
}
}

interface IssuingCardsList {
/**
* Whether the embedded component is enabled.
*/
enabled: boolean;

features: IssuingCardsList.Features;
}

namespace IssuingCardsList {
interface Features {
/**
* Whether to allow card management features.
*/
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;

/**
* 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.
*/
disable_stripe_user_authentication: boolean;

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

interface NotificationBanner {
/**
* Whether the embedded component is enabled.
Expand Down
154 changes: 154 additions & 0 deletions types/AccountSessionsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,26 @@ declare module 'stripe' {
*/
documents?: Components.Documents;

/**
* Configuration for the financial account embedded component.
*/
financial_account?: Components.FinancialAccount;

/**
* Configuration for the financial account transactions embedded component.
*/
financial_account_transactions?: Components.FinancialAccountTransactions;

/**
* Configuration for the issuing card embedded component.
*/
issuing_card?: Components.IssuingCard;

/**
* Configuration for the issuing cards list embedded component.
*/
issuing_cards_list?: Components.IssuingCardsList;

/**
* Configuration for the notification banner embedded component.
*/
Expand Down Expand Up @@ -187,6 +207,140 @@ declare module 'stripe' {
interface Features {}
}

interface FinancialAccount {
/**
* Whether the embedded component is enabled.
*/
enabled: boolean;

/**
* The list of features enabled in the embedded component.
*/
features?: FinancialAccount.Features;
}

namespace FinancialAccount {
interface Features {
/**
* Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
*/
disable_stripe_user_authentication?: boolean;

/**
* Whether to allow external accounts to be linked for money transfer.
*/
external_account_collection?: boolean;

/**
* Whether to allow sending money.
*/
send_money?: boolean;

/**
* Whether to allow transferring balance.
*/
transfer_balance?: boolean;
}
}

interface FinancialAccountTransactions {
/**
* Whether the embedded component is enabled.
*/
enabled: boolean;

/**
* The list of features enabled in the embedded component.
*/
features?: FinancialAccountTransactions.Features;
}

namespace FinancialAccountTransactions {
interface Features {
/**
* Whether to allow card spend dispute management features.
*/
card_spend_dispute_management?: boolean;
}
}

interface IssuingCard {
/**
* Whether the embedded component is enabled.
*/
enabled: boolean;

/**
* The list of features enabled in the embedded component.
*/
features?: IssuingCard.Features;
}

namespace IssuingCard {
interface Features {
/**
* Whether to allow card management features.
*/
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;
}
}

interface IssuingCardsList {
/**
* Whether the embedded component is enabled.
*/
enabled: boolean;

/**
* The list of features enabled in the embedded component.
*/
features?: IssuingCardsList.Features;
}

namespace IssuingCardsList {
interface Features {
/**
* Whether to allow card management features.
*/
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;

/**
* 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.
*/
disable_stripe_user_authentication?: boolean;

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

interface NotificationBanner {
/**
* Whether the embedded component is enabled.
Expand Down
Loading
Loading