module NetSuite module Records class SalesRole include Support::Records include Support::Fields include Support::Actions include Support::RecordRefs include Namespaces::ListEmp # https://system.netsuite.com/help/helpcenter/en_US/srbrowser/Browser2017_1/script/record/sales_role.html actions :get, :get_list, :add, :update, :upsert, :upsert_list, :delete, :search fields :name attr_reader :internal_id attr_accessor :external_id def initialize(attributes = {}) @internal_id = attributes.delete(:internal_id) || attributes.delete(:@internal_id) @external_id = attributes.delete(:external_id) || attributes.delete(:@external_id) initialize_from_attributes_hash(attributes) end end end end