Class: Modulr::API::TransactionsService

Inherits:
Service
  • Object
show all
Defined in:
lib/modulr/api/transactions_service.rb

Instance Attribute Summary

Attributes inherited from Service

#client

Instance Method Summary collapse

Methods inherited from Service

#format_datetime, #initialize

Constructor Details

This class inherits a constructor from Modulr::API::Service

Instance Method Details

#list(account_id:, **opts) ⇒ Object



6
7
8
9
10
11
# File 'lib/modulr/api/transactions_service.rb', line 6

def list(account_id:, **opts)
  response = client.get("/accounts/#{}/transactions", build_query_params(opts))
  attributes_collection = response.body[:content]

  Resources::Transactions::Transactions.new(response, attributes_collection)
end