From dba16fc15f9bdea4c264e316dd0e892a2ca09154 Mon Sep 17 00:00:00 2001 From: "stripe-openapi[bot]" <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 21 Dec 2023 14:55:14 -0800 Subject: [PATCH] Update generated code (#1976) * Update generated code for v717 * Update generated code for v720 * Update generated code for v721 * Update generated code for v721 * Update generated code for v722 * Update generated code for v725 * Update generated code for v726 * Update generated code for v729 * Update generated code for v730 * Update generated code for v731 * Update generated code for v733 * Update generated code for v733 * Update generated code for v734 * Update generated code for v734 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> --- OPENAPI_VERSION | 2 +- src/resources.ts | 2 + .../FinancialConnections/Accounts.ts | 8 + .../FinancialConnections/Transactions.ts | 15 ++ .../resources/generated_examples_test.spec.js | 78 ++++++ types/AccountSessions.d.ts | 17 +- types/AccountSessionsResource.d.ts | 20 +- types/Checkout/Sessions.d.ts | 6 +- types/Checkout/SessionsResource.d.ts | 6 +- types/EventTypes.d.ts | 30 ++- types/Events.d.ts | 1 + types/Files.d.ts | 2 +- types/FinancialConnections/Accounts.d.ts | 41 +++ .../AccountsResource.d.ts | 44 +++- types/FinancialConnections/Sessions.d.ts | 2 +- .../SessionsResource.d.ts | 2 +- types/FinancialConnections/Transactions.d.ts | 85 +++++++ .../TransactionsResource.d.ts | 68 +++++ types/Invoices.d.ts | 4 +- types/InvoicesResource.d.ts | 8 +- types/Issuing/Authorizations.d.ts | 5 +- types/PaymentIntents.d.ts | 6 +- types/PaymentIntentsResource.d.ts | 18 +- types/PaymentMethodConfigurations.d.ts | 36 +++ .../PaymentMethodConfigurationsResource.d.ts | 50 ++++ types/Quotes.d.ts | 5 +- types/Refunds.d.ts | 233 ++++++++++++++++++ types/SetupIntents.d.ts | 4 +- types/SetupIntentsResource.d.ts | 18 +- types/Subscriptions.d.ts | 4 +- types/SubscriptionsResource.d.ts | 8 +- types/Tax/CalculationsResource.d.ts | 2 +- .../Issuing/AuthorizationsResource.d.ts | 5 +- types/WebhookEndpointsResource.d.ts | 2 + types/index.d.ts | 3 + 35 files changed, 794 insertions(+), 46 deletions(-) create mode 100644 src/resources/FinancialConnections/Transactions.ts create mode 100644 types/FinancialConnections/Transactions.d.ts create mode 100644 types/FinancialConnections/TransactionsResource.d.ts diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 4dcad4de20..409300d1ce 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v715 \ No newline at end of file +v734 \ No newline at end of file diff --git a/src/resources.ts b/src/resources.ts index eff2ffbc62..7a9ec67799 100644 --- a/src/resources.ts +++ b/src/resources.ts @@ -47,6 +47,7 @@ import {TestClocks as TestHelpersTestClocks} from './resources/TestHelpers/TestC import {Tokens as IssuingTokens} from './resources/Issuing/Tokens.js'; import {TransactionEntries as TreasuryTransactionEntries} from './resources/Treasury/TransactionEntries.js'; import {Transactions as TestHelpersIssuingTransactions} from './resources/TestHelpers/Issuing/Transactions.js'; +import {Transactions as FinancialConnectionsTransactions} from './resources/FinancialConnections/Transactions.js'; import {Transactions as IssuingTransactions} from './resources/Issuing/Transactions.js'; import {Transactions as TaxTransactions} from './resources/Tax/Transactions.js'; import {Transactions as TreasuryTransactions} from './resources/Treasury/Transactions.js'; @@ -119,6 +120,7 @@ export const Climate = resourceNamespace('climate', { export const FinancialConnections = resourceNamespace('financialConnections', { Accounts: FinancialConnectionsAccounts, Sessions: FinancialConnectionsSessions, + Transactions: FinancialConnectionsTransactions, }); export const Identity = resourceNamespace('identity', { VerificationReports: IdentityVerificationReports, diff --git a/src/resources/FinancialConnections/Accounts.ts b/src/resources/FinancialConnections/Accounts.ts index e498d6d915..a7b8dabcd1 100644 --- a/src/resources/FinancialConnections/Accounts.ts +++ b/src/resources/FinancialConnections/Accounts.ts @@ -25,4 +25,12 @@ export const Accounts = StripeResource.extend({ method: 'POST', fullPath: '/v1/financial_connections/accounts/{account}/refresh', }), + subscribe: stripeMethod({ + method: 'POST', + fullPath: '/v1/financial_connections/accounts/{account}/subscribe', + }), + unsubscribe: stripeMethod({ + method: 'POST', + fullPath: '/v1/financial_connections/accounts/{account}/unsubscribe', + }), }); diff --git a/src/resources/FinancialConnections/Transactions.ts b/src/resources/FinancialConnections/Transactions.ts new file mode 100644 index 0000000000..94e7f8d506 --- /dev/null +++ b/src/resources/FinancialConnections/Transactions.ts @@ -0,0 +1,15 @@ +// File generated from our OpenAPI spec + +import {StripeResource} from '../../StripeResource.js'; +const stripeMethod = StripeResource.method; +export const Transactions = StripeResource.extend({ + retrieve: stripeMethod({ + method: 'GET', + fullPath: '/v1/financial_connections/transactions/{transaction}', + }), + list: stripeMethod({ + method: 'GET', + fullPath: '/v1/financial_connections/transactions', + methodType: 'list', + }), +}); diff --git a/test/resources/generated_examples_test.spec.js b/test/resources/generated_examples_test.spec.js index 03a4abe81c..5d6457da14 100644 --- a/test/resources/generated_examples_test.spec.js +++ b/test/resources/generated_examples_test.spec.js @@ -1110,6 +1110,26 @@ describe('Generated tests', function() { expect(account).not.to.be.null; }); + it('test_financial_connections_accounts_subscribe_post', async function() { + const account = await stripe.financialConnections.accounts.subscribe( + 'fa_123', + { + features: ['transactions'], + } + ); + expect(account).not.to.be.null; + }); + + it('test_financial_connections_accounts_unsubscribe_post', async function() { + const account = await stripe.financialConnections.accounts.unsubscribe( + 'fa_123', + { + features: ['transactions'], + } + ); + expect(account).not.to.be.null; + }); + it('test_financial_connections_sessions_get', async function() { const session = await stripe.financialConnections.sessions.retrieve( 'fcsess_xyz' @@ -1149,6 +1169,20 @@ describe('Generated tests', function() { expect(session).not.to.be.null; }); + it('test_financial_connections_transactions_get', async function() { + const transaction = await stripe.financialConnections.transactions.retrieve( + 'tr_123' + ); + expect(transaction).not.to.be.null; + }); + + it('test_financial_connections_transactions_get_2', async function() { + const transactions = await stripe.financialConnections.transactions.list({ + account: 'fca_xyz', + }); + expect(transactions).not.to.be.null; + }); + it('test_identity_verification_reports_get', async function() { const verificationReports = await stripe.identity.verificationReports.list({ limit: 3, @@ -2641,6 +2675,50 @@ describe('Generated tests', function() { expect(taxRate).not.to.be.null; }); + it('test_tax_registrations_get', async function() { + const registrations = await stripe.tax.registrations.list({ + status: 'all', + }); + expect(registrations).not.to.be.null; + }); + + it('test_tax_registrations_post', async function() { + const registration = await stripe.tax.registrations.create({ + country: 'IE', + country_options: { + ie: { + type: 'oss_union', + }, + }, + active_from: 'now', + }); + expect(registration).not.to.be.null; + }); + + it('test_tax_registrations_post_2', async function() { + const registration = await stripe.tax.registrations.update( + 'taxreg_xxxxxxxxxxxxx', + { + expires_at: 'now', + } + ); + expect(registration).not.to.be.null; + }); + + it('test_tax_settings_get', async function() { + const settings = await stripe.tax.settings.retrieve(); + expect(settings).not.to.be.null; + }); + + it('test_tax_settings_post', async function() { + const settings = await stripe.tax.settings.update({ + defaults: { + tax_code: 'txcd_10000000', + }, + }); + expect(settings).not.to.be.null; + }); + it('test_tax_transactions_create_from_calculation_post', async function() { const transaction = await stripe.tax.transactions.createFromCalculation({ calculation: 'xxx', diff --git a/types/AccountSessions.d.ts b/types/AccountSessions.d.ts index d5014cc02f..ecac44b1aa 100644 --- a/types/AccountSessions.d.ts +++ b/types/AccountSessions.d.ts @@ -135,7 +135,22 @@ declare module 'stripe' { } namespace Payouts { - interface Features {} + interface Features { + /** + * 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 creation of instant payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise. + */ + instant_payouts: boolean; + + /** + * Whether to allow creation of standard payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise. + */ + standard_payouts: boolean; + } } } } diff --git a/types/AccountSessionsResource.d.ts b/types/AccountSessionsResource.d.ts index 8b80ff0077..005e43d56f 100644 --- a/types/AccountSessionsResource.d.ts +++ b/types/AccountSessionsResource.d.ts @@ -127,11 +127,29 @@ declare module 'stripe' { */ enabled: boolean; + /** + * The list of features enabled in the embedded component. + */ features?: Payouts.Features; } namespace Payouts { - interface Features {} + interface Features { + /** + * 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 creation of instant payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise. + */ + instant_payouts?: boolean; + + /** + * Whether to allow creation of standard payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise. + */ + standard_payouts?: boolean; + } } } } diff --git a/types/Checkout/Sessions.d.ts b/types/Checkout/Sessions.d.ts index dce71e57b1..037bd7b6bc 100644 --- a/types/Checkout/Sessions.d.ts +++ b/types/Checkout/Sessions.d.ts @@ -262,7 +262,7 @@ declare module 'stripe' { * Describes the type of transaction being performed by Checkout in order to customize * relevant text on the page, such as the submit button. `submit_type` can only be * specified on Checkout Sessions in `payment` mode, but not Checkout Sessions - * in `subscription` or `setup` mode. + * in `subscription` or `setup` mode. Possible values are `auto`, `pay`, `book`, `donate`. If blank or `auto`, `pay` is used. */ submit_type: Session.SubmitType | null; @@ -1384,7 +1384,7 @@ declare module 'stripe' { /** * Data features requested to be retrieved upon account creation. */ - prefetch: Array<'balances'> | null; + prefetch: Array | null; /** * For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app. @@ -1398,6 +1398,8 @@ declare module 'stripe' { | 'ownership' | 'payment_method' | 'transactions'; + + type Prefetch = 'balances' | 'transactions'; } type SetupFutureUsage = 'none' | 'off_session' | 'on_session'; diff --git a/types/Checkout/SessionsResource.d.ts b/types/Checkout/SessionsResource.d.ts index 472e7ee8fd..9d0624f041 100644 --- a/types/Checkout/SessionsResource.d.ts +++ b/types/Checkout/SessionsResource.d.ts @@ -221,7 +221,7 @@ declare module 'stripe' { * Describes the type of transaction being performed by Checkout in order to customize * relevant text on the page, such as the submit button. `submit_type` can only be * specified on Checkout Sessions in `payment` mode, but not Checkout Sessions - * in `subscription` or `setup` mode. + * in `subscription` or `setup` mode. Possible values are `auto`, `pay`, `book`, `donate`. If blank or `auto`, `pay` is used. */ submit_type?: SessionCreateParams.SubmitType; @@ -1614,7 +1614,7 @@ declare module 'stripe' { /** * List of data features that you would like to retrieve upon account creation. */ - prefetch?: Array<'balances'>; + prefetch?: Array; } namespace FinancialConnections { @@ -1623,6 +1623,8 @@ declare module 'stripe' { | 'ownership' | 'payment_method' | 'transactions'; + + type Prefetch = 'balances' | 'transactions'; } type SetupFutureUsage = 'none' | 'off_session' | 'on_session'; diff --git a/types/EventTypes.d.ts b/types/EventTypes.d.ts index f6ccb82586..e61b308633 100644 --- a/types/EventTypes.d.ts +++ b/types/EventTypes.d.ts @@ -76,6 +76,7 @@ declare module 'stripe' { | FinancialConnectionsAccountDisconnectedEvent | FinancialConnectionsAccountReactivatedEvent | FinancialConnectionsAccountRefreshedBalanceEvent + | FinancialConnectionsAccountRefreshedTransactionsEvent | IdentityVerificationSessionCanceledEvent | IdentityVerificationSessionCreatedEvent | IdentityVerificationSessionProcessingEvent @@ -274,7 +275,7 @@ declare module 'stripe' { namespace AccountExternalAccountCreatedEvent { interface Data extends Stripe.Event.Data { - object: Stripe.BankAccount | Stripe.Card | Stripe.Source; + object: Stripe.ExternalAccount; } } @@ -288,7 +289,7 @@ declare module 'stripe' { namespace AccountExternalAccountDeletedEvent { interface Data extends Stripe.Event.Data { - object: Stripe.BankAccount | Stripe.Card | Stripe.Source; + object: Stripe.ExternalAccount; } } @@ -302,7 +303,7 @@ declare module 'stripe' { namespace AccountExternalAccountUpdatedEvent { interface Data extends Stripe.Event.Data { - object: Stripe.BankAccount | Stripe.Card | Stripe.Source; + object: Stripe.ExternalAccount; } } @@ -946,7 +947,7 @@ declare module 'stripe' { namespace CustomerSourceCreatedEvent { interface Data extends Stripe.Event.Data { - object: Stripe.BankAccount | Stripe.Card | Stripe.Source; + object: Stripe.CustomerSource; } } @@ -960,7 +961,7 @@ declare module 'stripe' { namespace CustomerSourceDeletedEvent { interface Data extends Stripe.Event.Data { - object: Stripe.BankAccount | Stripe.Card | Stripe.Source; + object: Stripe.CustomerSource; } } @@ -974,7 +975,7 @@ declare module 'stripe' { namespace CustomerSourceExpiringEvent { interface Data extends Stripe.Event.Data { - object: Stripe.Card | Stripe.Source; + object: Stripe.CustomerSource; } } @@ -988,7 +989,7 @@ declare module 'stripe' { namespace CustomerSourceUpdatedEvent { interface Data extends Stripe.Event.Data { - object: Stripe.BankAccount | Stripe.Card | Stripe.Source; + object: Stripe.CustomerSource; } } @@ -1259,6 +1260,21 @@ declare module 'stripe' { } } + /** + * Occurs when an Account’s `transaction_refresh` status transitions from `pending` to either `succeeded` or `failed`. + */ + interface FinancialConnectionsAccountRefreshedTransactionsEvent + extends EventBase { + type: 'financial_connections.account.refreshed_transactions'; + data: FinancialConnectionsAccountRefreshedTransactionsEvent.Data; + } + + namespace FinancialConnectionsAccountRefreshedTransactionsEvent { + interface Data extends Stripe.Event.Data { + object: Stripe.FinancialConnections.Account; + } + } + /** * Occurs whenever a VerificationSession is canceled */ diff --git a/types/Events.d.ts b/types/Events.d.ts index d34f106412..660151ede5 100644 --- a/types/Events.d.ts +++ b/types/Events.d.ts @@ -107,6 +107,7 @@ declare module 'stripe' { | 'financial_connections.account.disconnected' | 'financial_connections.account.reactivated' | 'financial_connections.account.refreshed_balance' + | 'financial_connections.account.refreshed_transactions' | 'identity.verification_session.canceled' | 'identity.verification_session.created' | 'identity.verification_session.processing' diff --git a/types/Files.d.ts b/types/Files.d.ts index 12fa3c10b8..5d6a58990b 100644 --- a/types/Files.d.ts +++ b/types/Files.d.ts @@ -6,7 +6,7 @@ declare module 'stripe' { * This object represents files hosted on Stripe's servers. You can upload * files with the [create file](https://stripe.com/docs/api#create_file) request * (for example, when uploading dispute evidence). Stripe also - * creates files independetly (for example, the results of a [Sigma scheduled + * creates files independently (for example, the results of a [Sigma scheduled * query](https://stripe.com/docs/api#scheduled_queries)). * * Related guide: [File upload guide](https://stripe.com/docs/file-upload) diff --git a/types/FinancialConnections/Accounts.d.ts b/types/FinancialConnections/Accounts.d.ts index d5e5f98049..770808e7d1 100644 --- a/types/FinancialConnections/Accounts.d.ts +++ b/types/FinancialConnections/Accounts.d.ts @@ -100,12 +100,22 @@ declare module 'stripe' { */ subcategory: Account.Subcategory; + /** + * The list of data refresh subscriptions requested on this account. + */ + subscriptions: Array<'transactions'> | null; + /** * The [PaymentMethod type](https://stripe.com/docs/api/payment_methods/object#payment_method_object-type)(s) that can be created from this account. */ supported_payment_method_types: Array< Account.SupportedPaymentMethodType >; + + /** + * The state of the most recent attempt to refresh the account transactions. + */ + transaction_refresh: Account.TransactionRefresh | null; } namespace Account { @@ -193,6 +203,11 @@ declare module 'stripe' { */ last_attempted_at: number; + /** + * Time at which the next balance refresh can be initiated. This value will be `null` when `status` is `pending`. Measured in seconds since the Unix epoch. + */ + next_refresh_available_at: number | null; + /** * The status of the last refresh attempt. */ @@ -238,6 +253,32 @@ declare module 'stripe' { | 'savings'; type SupportedPaymentMethodType = 'link' | 'us_bank_account'; + + interface TransactionRefresh { + /** + * Unique identifier for the object. + */ + id: string; + + /** + * The time at which the last refresh attempt was initiated. Measured in seconds since the Unix epoch. + */ + last_attempted_at: number; + + /** + * Time at which the next transaction refresh can be initiated. This value will be `null` when `status` is `pending`. Measured in seconds since the Unix epoch. + */ + next_refresh_available_at: number | null; + + /** + * The status of the last refresh attempt. + */ + status: TransactionRefresh.Status; + } + + namespace TransactionRefresh { + type Status = 'failed' | 'pending' | 'succeeded'; + } } } } diff --git a/types/FinancialConnections/AccountsResource.d.ts b/types/FinancialConnections/AccountsResource.d.ts index 980a08cb8e..9c899f8649 100644 --- a/types/FinancialConnections/AccountsResource.d.ts +++ b/types/FinancialConnections/AccountsResource.d.ts @@ -73,7 +73,31 @@ declare module 'stripe' { } namespace AccountRefreshParams { - type Feature = 'balance' | 'ownership'; + type Feature = 'balance' | 'ownership' | 'transactions'; + } + + interface AccountSubscribeParams { + /** + * The list of account features to which you would like to subscribe.`. + */ + features: Array<'transactions'>; + + /** + * Specifies which fields in the response should be expanded. + */ + expand?: Array; + } + + interface AccountUnsubscribeParams { + /** + * The list of account features from which you would like to unsubscribe. + */ + features: Array<'transactions'>; + + /** + * Specifies which fields in the response should be expanded. + */ + expand?: Array; } class AccountsResource { @@ -131,6 +155,24 @@ declare module 'stripe' { params: AccountRefreshParams, options?: RequestOptions ): Promise>; + + /** + * Subscribes to periodic refreshes of data associated with a Financial Connections Account. + */ + subscribe( + id: string, + params: AccountSubscribeParams, + options?: RequestOptions + ): Promise>; + + /** + * Unsubscribes from periodic refreshes of data associated with a Financial Connections Account. + */ + unsubscribe( + id: string, + params: AccountUnsubscribeParams, + options?: RequestOptions + ): Promise>; } } } diff --git a/types/FinancialConnections/Sessions.d.ts b/types/FinancialConnections/Sessions.d.ts index 542dba5e28..e894797543 100644 --- a/types/FinancialConnections/Sessions.d.ts +++ b/types/FinancialConnections/Sessions.d.ts @@ -90,7 +90,7 @@ declare module 'stripe' { | 'payment_method' | 'transactions'; - type Prefetch = 'balances' | 'ownership'; + type Prefetch = 'balances' | 'ownership' | 'transactions'; } } } diff --git a/types/FinancialConnections/SessionsResource.d.ts b/types/FinancialConnections/SessionsResource.d.ts index 04c01a0af7..f1a9deb383 100644 --- a/types/FinancialConnections/SessionsResource.d.ts +++ b/types/FinancialConnections/SessionsResource.d.ts @@ -72,7 +72,7 @@ declare module 'stripe' { | 'payment_method' | 'transactions'; - type Prefetch = 'balances' | 'ownership'; + type Prefetch = 'balances' | 'ownership' | 'transactions'; } interface SessionRetrieveParams { diff --git a/types/FinancialConnections/Transactions.d.ts b/types/FinancialConnections/Transactions.d.ts new file mode 100644 index 0000000000..2ded7e8511 --- /dev/null +++ b/types/FinancialConnections/Transactions.d.ts @@ -0,0 +1,85 @@ +// File generated from our OpenAPI spec + +declare module 'stripe' { + namespace Stripe { + namespace FinancialConnections { + /** + * A Transaction represents a real transaction that affects a Financial Connections Account balance. + */ + interface Transaction { + /** + * Unique identifier for the object. + */ + id: string; + + /** + * String representing the object's type. Objects of the same type share the same value. + */ + object: 'financial_connections.transaction'; + + /** + * The ID of the Financial Connections Account this transaction belongs to. + */ + account: string; + + /** + * The amount of this transaction, in cents (or local equivalent). + */ + amount: number; + + /** + * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + */ + currency: string; + + /** + * The description of this transaction. + */ + description: string; + + /** + * Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. + */ + livemode: boolean; + + /** + * The status of the transaction. + */ + status: Transaction.Status; + + status_transitions: Transaction.StatusTransitions; + + /** + * Time at which the transaction was transacted. Measured in seconds since the Unix epoch. + */ + transacted_at: number; + + /** + * The token of the transaction refresh that last updated or created this transaction. + */ + transaction_refresh: string; + + /** + * Time at which the object was last updated. Measured in seconds since the Unix epoch. + */ + updated: number; + } + + namespace Transaction { + type Status = 'pending' | 'posted' | 'void'; + + interface StatusTransitions { + /** + * Time at which this transaction posted. Measured in seconds since the Unix epoch. + */ + posted_at: number | null; + + /** + * Time at which this transaction was voided. Measured in seconds since the Unix epoch. + */ + void_at: number | null; + } + } + } + } +} diff --git a/types/FinancialConnections/TransactionsResource.d.ts b/types/FinancialConnections/TransactionsResource.d.ts new file mode 100644 index 0000000000..c840a320d6 --- /dev/null +++ b/types/FinancialConnections/TransactionsResource.d.ts @@ -0,0 +1,68 @@ +// File generated from our OpenAPI spec + +declare module 'stripe' { + namespace Stripe { + namespace FinancialConnections { + interface TransactionRetrieveParams { + /** + * Specifies which fields in the response should be expanded. + */ + expand?: Array; + } + + interface TransactionListParams extends PaginationParams { + /** + * The ID of the Stripe account whose transactions will be retrieved. + */ + account: string; + + /** + * Specifies which fields in the response should be expanded. + */ + expand?: Array; + + /** + * A filter on the list based on the object `transacted_at` field. The value can be a string with an integer Unix timestamp, or it can be a dictionary with the following options: + */ + transacted_at?: Stripe.RangeQueryParam | number; + + /** + * A filter on the list based on the object `transaction_refresh` field. The value can be a dictionary with the following options: + */ + transaction_refresh?: TransactionListParams.TransactionRefresh; + } + + namespace TransactionListParams { + interface TransactionRefresh { + /** + * Return results where the transactions were created or updated by a refresh that took place after this refresh (non-inclusive). + */ + after: string; + } + } + + class TransactionsResource { + /** + * Retrieves the details of a Financial Connections Transaction + */ + retrieve( + id: string, + params?: TransactionRetrieveParams, + options?: RequestOptions + ): Promise>; + retrieve( + id: string, + options?: RequestOptions + ): Promise>; + + /** + * Returns a list of Financial Connections Transaction objects. + */ + list( + params: TransactionListParams, + options?: RequestOptions + ): ApiListPromise; + } + } + } +} diff --git a/types/Invoices.d.ts b/types/Invoices.d.ts index db29b92cb2..5956e5d602 100644 --- a/types/Invoices.d.ts +++ b/types/Invoices.d.ts @@ -1071,11 +1071,13 @@ declare module 'stripe' { /** * Data features requested to be retrieved upon account creation. */ - prefetch: Array<'balances'> | null; + prefetch: Array | null; } namespace FinancialConnections { type Permission = 'balances' | 'payment_method' | 'transactions'; + + type Prefetch = 'balances' | 'transactions'; } type VerificationMethod = 'automatic' | 'instant' | 'microdeposits'; diff --git a/types/InvoicesResource.d.ts b/types/InvoicesResource.d.ts index bcd17cc453..345b335139 100644 --- a/types/InvoicesResource.d.ts +++ b/types/InvoicesResource.d.ts @@ -407,7 +407,7 @@ declare module 'stripe' { /** * List of data features that you would like to retrieve upon account creation. */ - prefetch?: Array<'balances'>; + prefetch?: Array; } namespace FinancialConnections { @@ -416,6 +416,8 @@ declare module 'stripe' { | 'ownership' | 'payment_method' | 'transactions'; + + type Prefetch = 'balances' | 'transactions'; } type VerificationMethod = 'automatic' | 'instant' | 'microdeposits'; @@ -1039,7 +1041,7 @@ declare module 'stripe' { /** * List of data features that you would like to retrieve upon account creation. */ - prefetch?: Array<'balances'>; + prefetch?: Array; } namespace FinancialConnections { @@ -1048,6 +1050,8 @@ declare module 'stripe' { | 'ownership' | 'payment_method' | 'transactions'; + + type Prefetch = 'balances' | 'transactions'; } type VerificationMethod = 'automatic' | 'instant' | 'microdeposits'; diff --git a/types/Issuing/Authorizations.d.ts b/types/Issuing/Authorizations.d.ts index 2ba2553bba..4f4270e4dd 100644 --- a/types/Issuing/Authorizations.d.ts +++ b/types/Issuing/Authorizations.d.ts @@ -439,7 +439,10 @@ declare module 'stripe' { namespace AuthenticationExemption { type ClaimedBy = 'acquirer' | 'issuer'; - type Type = 'low_value_transaction' | 'transaction_risk_analysis'; + type Type = + | 'low_value_transaction' + | 'transaction_risk_analysis' + | 'unknown'; } type CvcCheck = 'match' | 'mismatch' | 'not_provided'; diff --git a/types/PaymentIntents.d.ts b/types/PaymentIntents.d.ts index 6f1b90c630..62fe22d22e 100644 --- a/types/PaymentIntents.d.ts +++ b/types/PaymentIntents.d.ts @@ -1658,7 +1658,7 @@ declare module 'stripe' { type RequestOvercapture = 'if_available' | 'never'; - type RequestThreeDSecure = 'any' | 'automatic'; + type RequestThreeDSecure = 'any' | 'automatic' | 'challenge'; type SetupFutureUsage = 'none' | 'off_session' | 'on_session'; } @@ -2081,7 +2081,7 @@ declare module 'stripe' { /** * Data features requested to be retrieved upon account creation. */ - prefetch: Array<'balances'> | null; + prefetch: Array | null; /** * For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app. @@ -2095,6 +2095,8 @@ declare module 'stripe' { | 'ownership' | 'payment_method' | 'transactions'; + + type Prefetch = 'balances' | 'transactions'; } type PreferredSettlementSpeed = 'fastest' | 'standard'; diff --git a/types/PaymentIntentsResource.d.ts b/types/PaymentIntentsResource.d.ts index 962185d559..e4fd172b75 100644 --- a/types/PaymentIntentsResource.d.ts +++ b/types/PaymentIntentsResource.d.ts @@ -1395,7 +1395,7 @@ declare module 'stripe' { type RequestOvercapture = 'if_available' | 'never'; - type RequestThreeDSecure = 'any' | 'automatic'; + type RequestThreeDSecure = 'any' | 'automatic' | 'challenge'; type SetupFutureUsage = 'none' | 'off_session' | 'on_session'; @@ -2082,7 +2082,7 @@ declare module 'stripe' { /** * List of data features that you would like to retrieve upon account creation. */ - prefetch?: Array<'balances'>; + prefetch?: Array; /** * For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app. @@ -2096,6 +2096,8 @@ declare module 'stripe' { | 'ownership' | 'payment_method' | 'transactions'; + + type Prefetch = 'balances' | 'transactions'; } interface Networks { @@ -3495,7 +3497,7 @@ declare module 'stripe' { type RequestOvercapture = 'if_available' | 'never'; - type RequestThreeDSecure = 'any' | 'automatic'; + type RequestThreeDSecure = 'any' | 'automatic' | 'challenge'; type SetupFutureUsage = 'none' | 'off_session' | 'on_session'; @@ -4182,7 +4184,7 @@ declare module 'stripe' { /** * List of data features that you would like to retrieve upon account creation. */ - prefetch?: Array<'balances'>; + prefetch?: Array; /** * For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app. @@ -4196,6 +4198,8 @@ declare module 'stripe' { | 'ownership' | 'payment_method' | 'transactions'; + + type Prefetch = 'balances' | 'transactions'; } interface Networks { @@ -5733,7 +5737,7 @@ declare module 'stripe' { type RequestOvercapture = 'if_available' | 'never'; - type RequestThreeDSecure = 'any' | 'automatic'; + type RequestThreeDSecure = 'any' | 'automatic' | 'challenge'; type SetupFutureUsage = 'none' | 'off_session' | 'on_session'; @@ -6420,7 +6424,7 @@ declare module 'stripe' { /** * List of data features that you would like to retrieve upon account creation. */ - prefetch?: Array<'balances'>; + prefetch?: Array; /** * For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app. @@ -6434,6 +6438,8 @@ declare module 'stripe' { | 'ownership' | 'payment_method' | 'transactions'; + + type Prefetch = 'balances' | 'transactions'; } interface Networks { diff --git a/types/PaymentMethodConfigurations.d.ts b/types/PaymentMethodConfigurations.d.ts index c9266a636a..9e3345fcbd 100644 --- a/types/PaymentMethodConfigurations.d.ts +++ b/types/PaymentMethodConfigurations.d.ts @@ -123,6 +123,8 @@ declare module 'stripe' { promptpay?: PaymentMethodConfiguration.Promptpay; + revolut_pay?: PaymentMethodConfiguration.RevolutPay; + sepa_debit?: PaymentMethodConfiguration.SepaDebit; sofort?: PaymentMethodConfiguration.Sofort; @@ -1223,6 +1225,40 @@ declare module 'stripe' { } } + interface RevolutPay { + /** + * Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active. + */ + available: boolean; + + display_preference: RevolutPay.DisplayPreference; + } + + namespace RevolutPay { + interface DisplayPreference { + /** + * For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. + */ + overridable: boolean | null; + + /** + * The account's display preference. + */ + preference: DisplayPreference.Preference; + + /** + * The effective display preference value. + */ + value: DisplayPreference.Value; + } + + namespace DisplayPreference { + type Preference = 'none' | 'off' | 'on'; + + type Value = 'off' | 'on'; + } + } + interface SepaDebit { /** * Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active. diff --git a/types/PaymentMethodConfigurationsResource.d.ts b/types/PaymentMethodConfigurationsResource.d.ts index 4c0a258057..df0a95e31d 100644 --- a/types/PaymentMethodConfigurationsResource.d.ts +++ b/types/PaymentMethodConfigurationsResource.d.ts @@ -163,6 +163,11 @@ declare module 'stripe' { */ promptpay?: PaymentMethodConfigurationCreateParams.Promptpay; + /** + * Revolut Pay, developed by Revolut, a global finance app, is a digital wallet payment method. Revolut Pay uses the customer's stored balance or cards to fund the payment, and offers the option for non-Revolut customers to save their details after their first purchase. + */ + revolut_pay?: PaymentMethodConfigurationCreateParams.RevolutPay; + /** * The [Single Euro Payments Area (SEPA)](https://en.wikipedia.org/wiki/Single_Euro_Payments_Area) is an initiative of the European Union to simplify payments within and across member countries. SEPA established and enforced banking standards to allow for the direct debiting of every EUR-denominated bank account within the SEPA region, check this [page](https://stripe.com/docs/payments/sepa-debit) for more details. */ @@ -765,6 +770,26 @@ declare module 'stripe' { } } + interface RevolutPay { + /** + * Whether or not the payment method should be displayed. + */ + display_preference?: RevolutPay.DisplayPreference; + } + + namespace RevolutPay { + interface DisplayPreference { + /** + * The account's preference for whether or not to display this payment method. + */ + preference?: DisplayPreference.Preference; + } + + namespace DisplayPreference { + type Preference = 'none' | 'off' | 'on'; + } + } + interface SepaDebit { /** * Whether or not the payment method should be displayed. @@ -1014,6 +1039,11 @@ declare module 'stripe' { */ promptpay?: PaymentMethodConfigurationUpdateParams.Promptpay; + /** + * Revolut Pay, developed by Revolut, a global finance app, is a digital wallet payment method. Revolut Pay uses the customer's stored balance or cards to fund the payment, and offers the option for non-Revolut customers to save their details after their first purchase. + */ + revolut_pay?: PaymentMethodConfigurationUpdateParams.RevolutPay; + /** * The [Single Euro Payments Area (SEPA)](https://en.wikipedia.org/wiki/Single_Euro_Payments_Area) is an initiative of the European Union to simplify payments within and across member countries. SEPA established and enforced banking standards to allow for the direct debiting of every EUR-denominated bank account within the SEPA region, check this [page](https://stripe.com/docs/payments/sepa-debit) for more details. */ @@ -1616,6 +1646,26 @@ declare module 'stripe' { } } + interface RevolutPay { + /** + * Whether or not the payment method should be displayed. + */ + display_preference?: RevolutPay.DisplayPreference; + } + + namespace RevolutPay { + interface DisplayPreference { + /** + * The account's preference for whether or not to display this payment method. + */ + preference?: DisplayPreference.Preference; + } + + namespace DisplayPreference { + type Preference = 'none' | 'off' | 'on'; + } + } + interface SepaDebit { /** * Whether or not the payment method should be displayed. diff --git a/types/Quotes.d.ts b/types/Quotes.d.ts index d20a178fba..013560af47 100644 --- a/types/Quotes.d.ts +++ b/types/Quotes.d.ts @@ -110,10 +110,7 @@ declare module 'stripe' { */ invoice: string | Stripe.Invoice | Stripe.DeletedInvoice | null; - /** - * All invoices will be billed using the specified settings. - */ - invoice_settings: Quote.InvoiceSettings | null; + invoice_settings: Quote.InvoiceSettings; /** * A list of items the customer is being quoted for. diff --git a/types/Refunds.d.ts b/types/Refunds.d.ts index b555065b70..a32449cf9b 100644 --- a/types/Refunds.d.ts +++ b/types/Refunds.d.ts @@ -50,6 +50,8 @@ declare module 'stripe' { */ description?: string; + destination_details?: Refund.DestinationDetails; + /** * After the refund fails, this balance transaction describes the adjustment made on your account balance that reverses the initial balance transaction. */ @@ -104,6 +106,237 @@ declare module 'stripe' { } namespace Refund { + interface DestinationDetails { + affirm?: DestinationDetails.Affirm; + + afterpay_clearpay?: DestinationDetails.AfterpayClearpay; + + alipay?: DestinationDetails.Alipay; + + au_bank_transfer?: DestinationDetails.AuBankTransfer; + + blik?: DestinationDetails.Blik; + + br_bank_transfer?: DestinationDetails.BrBankTransfer; + + card?: DestinationDetails.Card; + + cashapp?: DestinationDetails.Cashapp; + + customer_cash_balance?: DestinationDetails.CustomerCashBalance; + + eps?: DestinationDetails.Eps; + + eu_bank_transfer?: DestinationDetails.EuBankTransfer; + + gb_bank_transfer?: DestinationDetails.GbBankTransfer; + + giropay?: DestinationDetails.Giropay; + + grabpay?: DestinationDetails.Grabpay; + + jp_bank_transfer?: DestinationDetails.JpBankTransfer; + + klarna?: DestinationDetails.Klarna; + + mx_bank_transfer?: DestinationDetails.MxBankTransfer; + + p24?: DestinationDetails.P24; + + paynow?: DestinationDetails.Paynow; + + paypal?: DestinationDetails.Paypal; + + pix?: DestinationDetails.Pix; + + revolut?: DestinationDetails.Revolut; + + sofort?: DestinationDetails.Sofort; + + th_bank_transfer?: DestinationDetails.ThBankTransfer; + + /** + * The type of transaction-specific details of the payment method used in the refund (e.g., `card`). An additional hash is included on `destination_details` with a name matching this value. It contains information specific to the refund transaction. + */ + type: string; + + us_bank_transfer?: DestinationDetails.UsBankTransfer; + + wechat_pay?: DestinationDetails.WechatPay; + + zip?: DestinationDetails.Zip; + } + + namespace DestinationDetails { + interface Affirm {} + + interface AfterpayClearpay {} + + interface Alipay {} + + interface AuBankTransfer {} + + interface Blik { + /** + * The reference assigned to the refund. + */ + reference: string | null; + + /** + * Status of the reference on the refund. This can be `pending`, `available` or `unavailable`. + */ + reference_status: string | null; + } + + interface BrBankTransfer { + /** + * The reference assigned to the refund. + */ + reference: string | null; + + /** + * Status of the reference on the refund. This can be `pending`, `available` or `unavailable`. + */ + reference_status: string | null; + } + + interface Card { + /** + * Value of the reference number assigned to the refund. + */ + reference?: string; + + /** + * Status of the reference number on the refund. This can be `pending`, `available` or `unavailable`. + */ + reference_status?: string; + + /** + * Type of the reference number assigned to the refund. + */ + reference_type?: string; + + /** + * The type of refund. This can be `refund`, `reversal`, or `pending`. + */ + type: Card.Type; + } + + namespace Card { + type Type = 'pending' | 'refund' | 'reversal'; + } + + interface Cashapp {} + + interface CustomerCashBalance {} + + interface Eps {} + + interface EuBankTransfer { + /** + * The reference assigned to the refund. + */ + reference: string | null; + + /** + * Status of the reference on the refund. This can be `pending`, `available` or `unavailable`. + */ + reference_status: string | null; + } + + interface GbBankTransfer { + /** + * The reference assigned to the refund. + */ + reference: string | null; + + /** + * Status of the reference on the refund. This can be `pending`, `available` or `unavailable`. + */ + reference_status: string | null; + } + + interface Giropay {} + + interface Grabpay {} + + interface JpBankTransfer { + /** + * The reference assigned to the refund. + */ + reference: string | null; + + /** + * Status of the reference on the refund. This can be `pending`, `available` or `unavailable`. + */ + reference_status: string | null; + } + + interface Klarna {} + + interface MxBankTransfer { + /** + * The reference assigned to the refund. + */ + reference: string | null; + + /** + * Status of the reference on the refund. This can be `pending`, `available` or `unavailable`. + */ + reference_status: string | null; + } + + interface P24 { + /** + * The reference assigned to the refund. + */ + reference: string | null; + + /** + * Status of the reference on the refund. This can be `pending`, `available` or `unavailable`. + */ + reference_status: string | null; + } + + interface Paynow {} + + interface Paypal {} + + interface Pix {} + + interface Revolut {} + + interface Sofort {} + + interface ThBankTransfer { + /** + * The reference assigned to the refund. + */ + reference: string | null; + + /** + * Status of the reference on the refund. This can be `pending`, `available` or `unavailable`. + */ + reference_status: string | null; + } + + interface UsBankTransfer { + /** + * The reference assigned to the refund. + */ + reference: string | null; + + /** + * Status of the reference on the refund. This can be `pending`, `available` or `unavailable`. + */ + reference_status: string | null; + } + + interface WechatPay {} + + interface Zip {} + } + interface NextAction { /** * Contains the refund details. diff --git a/types/SetupIntents.d.ts b/types/SetupIntents.d.ts index c8237f3a2b..6b9c7a1bdd 100644 --- a/types/SetupIntents.d.ts +++ b/types/SetupIntents.d.ts @@ -766,7 +766,7 @@ declare module 'stripe' { /** * Data features requested to be retrieved upon account creation. */ - prefetch: Array<'balances'> | null; + prefetch: Array | null; /** * For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app. @@ -780,6 +780,8 @@ declare module 'stripe' { | 'ownership' | 'payment_method' | 'transactions'; + + type Prefetch = 'balances' | 'transactions'; } type VerificationMethod = 'automatic' | 'instant' | 'microdeposits'; diff --git a/types/SetupIntentsResource.d.ts b/types/SetupIntentsResource.d.ts index 8c823e4e05..fd141cd77c 100644 --- a/types/SetupIntentsResource.d.ts +++ b/types/SetupIntentsResource.d.ts @@ -923,7 +923,7 @@ declare module 'stripe' { | 'unknown' | 'visa'; - type RequestThreeDSecure = 'any' | 'automatic'; + type RequestThreeDSecure = 'any' | 'automatic' | 'challenge'; interface ThreeDSecure { /** @@ -1067,7 +1067,7 @@ declare module 'stripe' { /** * List of data features that you would like to retrieve upon account creation. */ - prefetch?: Array<'balances'>; + prefetch?: Array; /** * For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app. @@ -1081,6 +1081,8 @@ declare module 'stripe' { | 'ownership' | 'payment_method' | 'transactions'; + + type Prefetch = 'balances' | 'transactions'; } interface Networks { @@ -1939,7 +1941,7 @@ declare module 'stripe' { | 'unknown' | 'visa'; - type RequestThreeDSecure = 'any' | 'automatic'; + type RequestThreeDSecure = 'any' | 'automatic' | 'challenge'; interface ThreeDSecure { /** @@ -2083,7 +2085,7 @@ declare module 'stripe' { /** * List of data features that you would like to retrieve upon account creation. */ - prefetch?: Array<'balances'>; + prefetch?: Array; /** * For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app. @@ -2097,6 +2099,8 @@ declare module 'stripe' { | 'ownership' | 'payment_method' | 'transactions'; + + type Prefetch = 'balances' | 'transactions'; } interface Networks { @@ -3035,7 +3039,7 @@ declare module 'stripe' { | 'unknown' | 'visa'; - type RequestThreeDSecure = 'any' | 'automatic'; + type RequestThreeDSecure = 'any' | 'automatic' | 'challenge'; interface ThreeDSecure { /** @@ -3179,7 +3183,7 @@ declare module 'stripe' { /** * List of data features that you would like to retrieve upon account creation. */ - prefetch?: Array<'balances'>; + prefetch?: Array; /** * For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app. @@ -3193,6 +3197,8 @@ declare module 'stripe' { | 'ownership' | 'payment_method' | 'transactions'; + + type Prefetch = 'balances' | 'transactions'; } interface Networks { diff --git a/types/Subscriptions.d.ts b/types/Subscriptions.d.ts index 19ec206d01..f756c67b08 100644 --- a/types/Subscriptions.d.ts +++ b/types/Subscriptions.d.ts @@ -497,11 +497,13 @@ declare module 'stripe' { /** * Data features requested to be retrieved upon account creation. */ - prefetch: Array<'balances'> | null; + prefetch: Array | null; } namespace FinancialConnections { type Permission = 'balances' | 'payment_method' | 'transactions'; + + type Prefetch = 'balances' | 'transactions'; } type VerificationMethod = 'automatic' | 'instant' | 'microdeposits'; diff --git a/types/SubscriptionsResource.d.ts b/types/SubscriptionsResource.d.ts index 72e86f3e53..bd0a1cd365 100644 --- a/types/SubscriptionsResource.d.ts +++ b/types/SubscriptionsResource.d.ts @@ -568,7 +568,7 @@ declare module 'stripe' { /** * List of data features that you would like to retrieve upon account creation. */ - prefetch?: Array<'balances'>; + prefetch?: Array; } namespace FinancialConnections { @@ -577,6 +577,8 @@ declare module 'stripe' { | 'ownership' | 'payment_method' | 'transactions'; + + type Prefetch = 'balances' | 'transactions'; } type VerificationMethod = 'automatic' | 'instant' | 'microdeposits'; @@ -1286,7 +1288,7 @@ declare module 'stripe' { /** * List of data features that you would like to retrieve upon account creation. */ - prefetch?: Array<'balances'>; + prefetch?: Array; } namespace FinancialConnections { @@ -1295,6 +1297,8 @@ declare module 'stripe' { | 'ownership' | 'payment_method' | 'transactions'; + + type Prefetch = 'balances' | 'transactions'; } type VerificationMethod = 'automatic' | 'instant' | 'microdeposits'; diff --git a/types/Tax/CalculationsResource.d.ts b/types/Tax/CalculationsResource.d.ts index 58815df770..08fa4e2043 100644 --- a/types/Tax/CalculationsResource.d.ts +++ b/types/Tax/CalculationsResource.d.ts @@ -58,7 +58,7 @@ declare module 'stripe' { ip_address?: string; /** - * The customer's tax IDs. + * The customer's tax IDs. Stripe Tax might consider a transaction with applicable tax IDs to be B2B, which might affect the tax calculation result. Stripe Tax doesn't validate tax IDs for correctness. */ tax_ids?: Array; diff --git a/types/TestHelpers/Issuing/AuthorizationsResource.d.ts b/types/TestHelpers/Issuing/AuthorizationsResource.d.ts index ba7c653b06..273b6eb725 100644 --- a/types/TestHelpers/Issuing/AuthorizationsResource.d.ts +++ b/types/TestHelpers/Issuing/AuthorizationsResource.d.ts @@ -485,7 +485,10 @@ declare module 'stripe' { namespace AuthenticationExemption { type ClaimedBy = 'acquirer' | 'issuer'; - type Type = 'low_value_transaction' | 'transaction_risk_analysis'; + type Type = + | 'low_value_transaction' + | 'transaction_risk_analysis' + | 'unknown'; } type CvcCheck = 'match' | 'mismatch' | 'not_provided'; diff --git a/types/WebhookEndpointsResource.d.ts b/types/WebhookEndpointsResource.d.ts index de2932cdb0..1282467143 100644 --- a/types/WebhookEndpointsResource.d.ts +++ b/types/WebhookEndpointsResource.d.ts @@ -217,6 +217,7 @@ declare module 'stripe' { | 'financial_connections.account.disconnected' | 'financial_connections.account.reactivated' | 'financial_connections.account.refreshed_balance' + | 'financial_connections.account.refreshed_transactions' | 'identity.verification_session.canceled' | 'identity.verification_session.created' | 'identity.verification_session.processing' @@ -493,6 +494,7 @@ declare module 'stripe' { | 'financial_connections.account.disconnected' | 'financial_connections.account.reactivated' | 'financial_connections.account.refreshed_balance' + | 'financial_connections.account.refreshed_transactions' | 'identity.verification_session.canceled' | 'identity.verification_session.created' | 'identity.verification_session.processing' diff --git a/types/index.d.ts b/types/index.d.ts index ef882d445c..a01f136281 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -35,6 +35,7 @@ /// /// /// +/// /// /// /// @@ -151,6 +152,7 @@ /// /// /// +/// /// /// /// @@ -315,6 +317,7 @@ declare module 'stripe' { financialConnections: { accounts: Stripe.FinancialConnections.AccountsResource; sessions: Stripe.FinancialConnections.SessionsResource; + transactions: Stripe.FinancialConnections.TransactionsResource; }; identity: { verificationReports: Stripe.Identity.VerificationReportsResource;