Class: Quickeebooks::Windows::Service::Payment

Inherits:
ServiceBase
  • Object
show all
Defined in:
lib/quickeebooks/windows/service/payment.rb

Constant Summary

Constants inherited from ServiceBase

ServiceBase::XML_NS

Instance Attribute Summary

Attributes inherited from ServiceBase

#base_uri, #last_response_body, #last_response_xml, #oauth, #realm_id

Instance Method Summary collapse

Methods inherited from ServiceBase

#access_token=, #guid, #initialize, #url_for_base, #url_for_resource

Constructor Details

This class inherits a constructor from Quickeebooks::Windows::Service::ServiceBase

Instance Method Details

#fetch_by_id(id, idDomain = 'QB', options = {}) ⇒ Object



15
16
17
18
# File 'lib/quickeebooks/windows/service/payment.rb', line 15

def fetch_by_id(id, idDomain = 'QB', options = {})
  url = "#{url_for_resource(Quickeebooks::Windows::Model::Payment::REST_RESOURCE)}/#{id}"
  fetch_object(Quickeebooks::Windows::Model::Payment, url, { :idDomain => idDomain })
end

#list(filters = [], page = 1, per_page = 20, sort = nil, options = {}) ⇒ Object



20
21
22
# File 'lib/quickeebooks/windows/service/payment.rb', line 20

def list(filters = [], page = 1, per_page = 20, sort = nil, options = {})
  fetch_collection(Quickeebooks::Windows::Model::Payment, nil, filters, page, per_page, sort, options)
end