Class: Quickbooks::Model::Customer

Inherits:
BaseModel
  • Object
show all
Includes:
NameEntity::PermitAlterations, NameEntity::Quality
Defined in:
lib/quickbooks/model/customer.rb

Constant Summary collapse

XML_COLLECTION_NODE =
"Customer"
XML_NODE =
"Customer"
REST_RESOURCE =
'customer'

Instance Method Summary collapse

Methods included from NameEntity::PermitAlterations

#valid_for_create?, #valid_for_deletion?, #valid_for_update?

Methods included from NameEntity::Quality

#billable_status_is_valid, #email_address, #email_address=, #email_address_is_valid, #entity_type_is_valid, #journal_line_entry_tax, #names_cannot_contain_invalid_characters, #posting_type_is_valid

Methods inherited from BaseModel

#as_json, attribute_names, #attributes, attrs_with_types, #initialize, inspect, #inspect, reference_attrs, reference_setters, resource_for_collection, resource_for_singular, to_xml_big_decimal, #to_xml_inject_ns, #to_xml_ns

Methods included from Validator

#line_item_size

Methods included from Definition

included, #is_name_list_entity?, #is_transaction_entity?

Constructor Details

This class inherits a constructor from Quickbooks::Model::BaseModel

Instance Method Details

#bill_with_parent?Boolean

Returns:

  • (Boolean)


71
72
73
# File 'lib/quickbooks/model/customer.rb', line 71

def bill_with_parent?
  bill_with_parent.to_s == 'true'
end

#job?Boolean

Returns:

  • (Boolean)


67
68
69
# File 'lib/quickbooks/model/customer.rb', line 67

def job?
  job.to_s == 'true'
end

#taxable?Boolean

Returns:

  • (Boolean)


75
76
77
# File 'lib/quickbooks/model/customer.rb', line 75

def taxable?
  taxable.to_s == 'true'
end