Class: Lithic::Resources::Cards::AggregateBalances

Inherits:
Object
  • Object
show all
Defined in:
lib/lithic/resources/cards/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.



35
36
37
# File 'lib/lithic/resources/cards/aggregate_balances.rb', line 35

def initialize(client:)
  @client = client
end

Instance Method Details

#list(account_token: nil, business_account_token: nil, request_options: {}) ⇒ Lithic::Internal::SinglePage<Lithic::Models::Cards::AggregateBalanceListResponse>

Get the aggregated card balance across all end-user accounts.



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

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