lib/netsuite/records/partner.rb in netsuite-0.6.2 vs lib/netsuite/records/partner.rb in netsuite-0.6.3
- old
+ new
@@ -1,9 +1,11 @@
module NetSuite
module Records
- class Partner < Support::Base
+ class Partner
+ include Support::Records
+ include Support::Fields
include Support::Actions
include Support::RecordRefs
include Namespaces::ListRel
# https://system.netsuite.com/help/helpcenter/en_US/srbrowser/Browser2014_1/schema/record/partner.html
@@ -15,9 +17,17 @@
:date_created, :title, :mobile_phone, :comments, :middle_name, :send_email, :password, :password2
record_refs :klass, :access_role, :department
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