class Lithic::Resources::Balances

def initialize(client:)

Parameters:
  • client (Lithic::Client) --

Other tags:
    Api: - private
def initialize(client:)
  @client = client
end

def list(params = {})

Other tags:
    See: Lithic::Models::BalanceListParams -

Returns:
  • (Lithic::Internal::SinglePage) -

Parameters:
  • request_options (Lithic::RequestOptions, Hash{Symbol=>Object}, nil) --
  • financial_account_type (Symbol, Lithic::Models::BalanceListParams::FinancialAccountType) -- List balances for a given Financial Account type.
  • business_account_token (String) -- List balances for all financial accounts of a given business_account_token.
  • balance_date (Time) -- UTC date and time of the balances to retrieve. Defaults to latest available bala
  • account_token (String) -- List balances for all financial accounts of a given account_token.

Overloads:
  • list(account_token: nil, balance_date: nil, business_account_token: nil, financial_account_type: nil, request_options: {})
def list(params = {})
  parsed, options = Lithic::BalanceListParams.dump_request(params)
  @client.request(
    method: :get,
    path: "v1/balances",
    query: parsed,
    page: Lithic::Internal::SinglePage,
    model: Lithic::Balance,
    options: options
  )
end