Class: Increase::Resources::IntrafiBalances

Inherits:
Object
  • Object
show all
Defined in:
lib/increase/resources/intrafi_balances.rb

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ IntrafiBalances

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 IntrafiBalances.

Parameters:



31
32
33
# File 'lib/increase/resources/intrafi_balances.rb', line 31

def initialize(client:)
  @client = client
end

Instance Method Details

#intrafi_balance(account_id, request_options: {}) ⇒ Increase::Models::IntrafiBalance

Returns the IntraFi balance for the given account. IntraFi may sweep funds to multiple banks. This endpoint will include both the total balance and the amount swept to each institution.

Parameters:

  • account_id (String)

    The identifier of the Account to get balances for.

  • request_options (Increase::RequestOptions, Hash{Symbol=>Object}, nil)

Returns:

See Also:



19
20
21
22
23
24
25
26
# File 'lib/increase/resources/intrafi_balances.rb', line 19

def intrafi_balance(, params = {})
  @client.request(
    method: :get,
    path: ["accounts/%1$s/intrafi_balance", ],
    model: Increase::IntrafiBalance,
    options: params[:request_options]
  )
end