class Quickbooks::Service::PaymentMethod
Public Instance Methods
Source
# File lib/quickbooks/service/payment_method.rb, line 18 def delete(department) department.active = false update(department, :sparse => false) end
Source
# File lib/quickbooks/service/payment_method.rb, line 5 def fetch_by_name(name) self.query(search_name_query(name)).entries.first end
Source
# File lib/quickbooks/service/payment_method.rb, line 9 def search_name_query(name) "SELECT * FROM PaymentMethod WHERE Name = '#{name}'" end
Source
# File lib/quickbooks/service/payment_method.rb, line 13 def update(entity, options = {}) raise Quickbooks::InvalidModelException.new('Payment Method sparse update is not supported by Intuit at this time') if options[:sparse] && options[:sparse] == true super(entity, options) end
Calls superclass method
Quickbooks::Service::ServiceCrud#update
Private Instance Methods
Source
# File lib/quickbooks/service/payment_method.rb, line 25 def model Quickbooks::Model::PaymentMethod end