Sha256: 00da25bb0f69ca674de6755c2b162d11eaa366a284e1a9c88aedccb7a48a976c

Contents?: true

Size: 1.15 KB

Versions: 1

Compression:

Stored size: 1.15 KB

Contents

module NetSuite
  module Records

    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

      actions :get, :get_list, :add, :update, :upsert, :upsert_list, :delete, :search

      fields :phone, :home_phone, :first_name, :last_name, :alt_name, :is_inactive, :email, :give_access,
             :partner_code, :is_person, :company_name, :eligible_for_commission, :entity_id, :last_modified_date,
             :date_created, :title, :mobile_phone, :comments, :middle_name, :send_email, :password, :password2

      record_refs :klass, :access_role, :department, :subsidiary

      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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
netsuite-0.8.6 lib/netsuite/records/partner.rb