Class: PFS::API::StatementsService
- Defined in:
- lib/pfs/api/statements_service.rb
Instance Attribute Summary
Attributes inherited from Service
Instance Method Summary collapse
Methods inherited from Service
Constructor Details
This class inherits a constructor from PFS::API::Service
Instance Method Details
#by_id(account_id:, statement_id:, inward_outward:, processor:) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/pfs/api/statements_service.rb', line 4 def by_id(account_id:, statement_id:, inward_outward:, processor:) response = client.get( "/BankPayment/#{account_id}/StatementById?statementitemid=#{statement_id}&InwardOutward=#{inward_outward}&Processor=#{processor}" ) Resources::Statements::Statement.new(response, response.body.dig(:data, :transaction)) end |