class Quickeebooks::Online::Model::CustomerCustomField
Constants
- BOOLEAN_TYPE
- STRING_TYPE
- TYPES
Public Instance Methods
converted_value()
click to toggle source
Intuit sends back “DONT” for “None” but they dont accept it when WE send it back to them, they want “None”. ugh.…
# File lib/quickeebooks/online/model/customer_custom_field.rb, line 27 def converted_value if definition_id == "Preferred Delivery Method" if value == "DONT" "None" else value end else value end end
to_xml(options = {})
click to toggle source
# File lib/quickeebooks/online/model/customer_custom_field.rb, line 15 def to_xml(options = {}) # Intuit v3 doesnt support custom field updating... return "" # return "" if value.to_s.empty? # xml = %Q{<CustomField xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="#{type_attr}">} # xml = "#{xml}<DefinitionId>#{definition_id}</DefinitionId><Value>#{converted_value}</Value></CustomField>" # xml end
type_attr()
click to toggle source
# File lib/quickeebooks/online/model/customer_custom_field.rb, line 39 def type_attr if definition_id == "Bill With Parent" "BooleanTypeCustomeField" else "StringTypeCustomField" end end