class Lithic::Resources::FinancialAccounts::Balances

def initialize(client:)

Parameters:
  • client (Lithic::Client) --
def initialize(client:)
  @client = client
end

def list(financial_account_token, params = {})

Returns:
  • (Lithic::SinglePage) -

Options Hash: (**params)
  • :request_options (Lithic::RequestOptions, Hash{Symbol=>Object}, nil) --
  • :last_transaction_event_token (String) -- Balance after a given financial event occured. For example, passing the
  • :balance_date (Time) -- UTC date of the balance to retrieve. Defaults to latest available balance

Parameters:
  • params (Lithic::Models::FinancialAccounts::BalanceListParams, Hash{Symbol=>Object}) -- .
  • financial_account_token (String) -- Globally unique identifier for financial account.
def list(financial_account_token, params = {})
  parsed, options = Lithic::Models::FinancialAccounts::BalanceListParams.dump_request(params)
  @client.request(
    method: :get,
    path: ["v1/financial_accounts/%1$s/balances", financial_account_token],
    query: parsed,
    page: Lithic::SinglePage,
    model: Lithic::Models::FinancialAccounts::BalanceListResponse,
    options: options
  )
end