258
259
260
261
262
263
264
265
266
267
268
269
270
|
# File 'lib/finicity/client.rb', line 258
def get_transactions(customer_id, account_id, from_date, to_date)
request = ::Finicity::V1::Request::GetTransactions.new(token, customer_id, account_id, from_date, to_date)
request.log_request
response = request.get_transactions
log_response(response)
if response.ok?
parsed_response = ::Finicity::V1::Response::Transactions.parse(response.body)
return parsed_response.transactions
else
raise_generic_error!(response)
end
end
|