Method: Finicity::Client#refresh_accounts
- Defined in:
- lib/finicity/client.rb
#refresh_accounts(customer_id) ⇒ Object
311 312 313 314 315 316 317 318 319 320 321 322 323 |
# File 'lib/finicity/client.rb', line 311 def refresh_accounts(customer_id) request = ::Finicity::V1::Request::RefreshAccounts.new(token, customer_id) request.log_request response = request.refresh_accounts log_response(response) if response.ok? parsed_response = ::Finicity::V1::Response::Accounts.parse(response.body) return parsed_response.accounts else raise_generic_error!(response) end end |