Skip to content

Commit

Permalink
chore(api): add business_account_token param for listing Balances (#564)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Nov 11, 2024
1 parent fe79fcf commit 88e2d76
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/resources/balances.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { SinglePage } from '../pagination';

export class Balances extends APIResource {
/**
* Get the balances for a program or a given end-user account
* Get the balances for a program, business, or a given end-user account
*/
list(
query?: BalanceListParams,
Expand Down Expand Up @@ -98,6 +98,11 @@ export interface BalanceListParams {
*/
balance_date?: string;

/**
* List balances for all financial accounts of a given business_account_token.
*/
business_account_token?: string;

/**
* List balances for a given Financial Account type.
*/
Expand Down
1 change: 1 addition & 0 deletions tests/api-resources/balances.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ describe('resource balances', () => {
{
account_token: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
balance_date: '2019-12-27T18:11:19.117Z',
business_account_token: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
financial_account_type: 'ISSUING',
},
{ path: '/_stainless_unknown_path' },
Expand Down

0 comments on commit 88e2d76

Please sign in to comment.