class Quickbooks::Model::Item
def initialize(*args)
def initialize(*args) self.type = INVENTORY_TYPE super end
def valid_for_create?
def valid_for_create? valid? errors.empty? end
def valid_for_deletion?
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
def valid_for_update?
def valid_for_update? if sync_token.nil? errors.add(:sync_token, "Missing required attribute SyncToken for update") end errors.empty? end