class Quickbooks::Model::Account
Constants
- ACCOUNT_CLASSIFICATION
- ASSET
- EQUITY
- EXPENSE
- LIABILITY
- REST_RESOURCE
- REVENUE
- XML_COLLECTION_NODE
- XML_NODE
Public Instance Methods
name_cannot_contain_invalid_characters()
click to toggle source
# File lib/quickbooks/model/account.rb, line 53 def name_cannot_contain_invalid_characters if name && (name.index(':') || name.index('"')) errors.add('name', ":#{name} cannot contain a colon (:) or double quotes (\").") end end
valid_for_create?()
click to toggle source
# File lib/quickbooks/model/account.rb, line 66 def valid_for_create? valid? errors.empty? end
valid_for_deletion?()
click to toggle source
# File lib/quickbooks/model/account.rb, line 71 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
valid_for_update?()
click to toggle source
# File lib/quickbooks/model/account.rb, line 59 def valid_for_update? if sync_token.nil? errors.add(:sync_token, "Missing required attribute SyncToken for update") end errors.empty? end