// File generated from our OpenAPI spec declare module 'stripe' { namespace Stripe { namespace FinancialConnections { interface AccountRetrieveParams { /** * Specifies which fields in the response should be expanded. */ expand?: Array; } interface AccountListParams extends PaginationParams { /** * If present, only return accounts that belong to the specified account holder. `account_holder[customer]` and `account_holder[account]` are mutually exclusive. */ account_holder?: AccountListParams.AccountHolder; /** * Specifies which fields in the response should be expanded. */ expand?: Array; /** * If present, only return accounts that were collected as part of the given session. */ session?: string; } namespace AccountListParams { interface AccountHolder { /** * The ID of the Stripe account whose accounts will be retrieved. */ account?: string; /** * The ID of the Stripe customer whose accounts will be retrieved. */ customer?: string; } } interface AccountDisconnectParams { /** * Specifies which fields in the response should be expanded. */ expand?: Array; } interface AccountListOwnersParams extends PaginationParams { /** * The ID of the ownership object to fetch owners from. */ ownership: string; /** * Specifies which fields in the response should be expanded. */ expand?: Array; } interface AccountRefreshParams { /** * The list of account features that you would like to refresh. */ features: Array; /** * Specifies which fields in the response should be expanded. */ expand?: Array; } namespace AccountRefreshParams { 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 { /** * Retrieves the details of an Financial Connections Account. */ retrieve( id: string, params?: AccountRetrieveParams, options?: RequestOptions ): Promise>; retrieve( id: string, options?: RequestOptions ): Promise>; /** * Returns a list of Financial Connections Account objects. */ list( params?: AccountListParams, options?: RequestOptions ): ApiListPromise; list( options?: RequestOptions ): ApiListPromise; /** * Disables your access to a Financial Connections Account. You will no longer be able to access data associated with the account (e.g. balances, transactions). */ disconnect( id: string, params?: AccountDisconnectParams, options?: RequestOptions ): Promise>; disconnect( id: string, options?: RequestOptions ): Promise>; /** * Lists all owners for a given Account */ listOwners( id: string, params: AccountListOwnersParams, options?: RequestOptions ): ApiListPromise; /** * Refreshes the data associated with a Financial Connections Account. */ refresh( id: string, 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>; } } } }