Class: Lithic::Resources::AggregateBalances

Inherits:
Object
  • Object
show all
Defined in:
lib/lithic/resources/aggregate_balances.rb

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ AggregateBalances

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of AggregateBalances.

Parameters:



33
34
35
# File 'lib/lithic/resources/aggregate_balances.rb', line 33

def initialize(client:)
  @client = client
end

Instance Method Details

#list(financial_account_type: nil, request_options: {}) ⇒ Lithic::Internal::SinglePage<Lithic::Models::AggregateBalance>

Get the aggregated balance across all end-user accounts by financial account type

Parameters:

Returns:

See Also:



18
19
20
21
22
23
24
25
26
27
28
# File 'lib/lithic/resources/aggregate_balances.rb', line 18

def list(params = {})
  parsed, options = Lithic::AggregateBalanceListParams.dump_request(params)
  @client.request(
    method: :get,
    path: "v1/aggregate_balances",
    query: parsed,
    page: Lithic::Internal::SinglePage,
    model: Lithic::AggregateBalance,
    options: options
  )
end