class Quickeebooks::Windows::Model::Item
Constants
- REST_RESOURCE
- XML_COLLECTION_NODE
- XML_NODE
Public Instance Methods
active?()
click to toggle source
# File lib/quickeebooks/windows/model/item.rb, line 67 def active? active == "true" end
draft?()
click to toggle source
# File lib/quickeebooks/windows/model/item.rb, line 71 def draft? draft == "true" end
print_grouped_items?()
click to toggle source
# File lib/quickeebooks/windows/model/item.rb, line 75 def print_grouped_items? print_grouped_items == "true" end
synchronized?()
click to toggle source
# File lib/quickeebooks/windows/model/item.rb, line 79 def synchronized? synchronized == "true" end
taxable?()
click to toggle source
# File lib/quickeebooks/windows/model/item.rb, line 63 def taxable? taxable == "true" end
to_xml_ns(options = {})
click to toggle source
# File lib/quickeebooks/windows/model/item.rb, line 53 def to_xml_ns(options = {}) to_xml(options) end
valid_for_deletion?()
click to toggle source
To delete a record Intuit requires we provide Id
and SyncToken fields
# File lib/quickeebooks/windows/model/item.rb, line 58 def valid_for_deletion? return false if(id.nil? || sync_token.nil?) id.to_i > 0 && !sync_token.to_s.empty? && sync_token.to_i >= 0 end