class Quickbooks::Service::Vendor

Public Instance Methods

delete(vendor) click to toggle source
# File lib/quickbooks/service/vendor.rb, line 11
def delete(vendor)
  vendor.active = false
  update(vendor, :sparse => false)
end
update(entity, options = {}) click to toggle source

override update as sparse is not supported

Calls superclass method Quickbooks::Service::ServiceCrud#update
# File lib/quickbooks/service/vendor.rb, line 6
def update(entity, options = {})
  raise InvalidModelException.new('Vendor sparse update is not supported by Intuit at this time') if options[:sparse] && options[:sparse] == true
  super(entity, options)
end

Private Instance Methods

model() click to toggle source
# File lib/quickbooks/service/vendor.rb, line 18
def model
  Quickbooks::Model::Vendor
end