Sha256: 650bde210fa070eb075233ff84261181d3a66885062109d5c679a82a8473063c

Contents?: true

Size: 1005 Bytes

Versions: 14

Compression:

Stored size: 1005 Bytes

Contents

module NetSuite
  module Records
    class Account
      include Support::Fields
      include Support::RecordRefs
      include Support::Records
      include Support::Actions
      include Namespaces::ListAcct

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

      fields :acct_name, :acct_number, :acct_type, :cash_flow_rate, :cur_doc_num, :description, :eliminate, :exchange_rate,
        :general_rate, :include_children, :inventory, :is_inactive, :opening_balance, :revalue, :tran_date

      record_refs :billable_expenses_acct, :category1099misc, :currency, :deferral_acct, :department, :klass, :location, :parent

      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

14 entries across 14 versions & 1 rubygems

Version Path
netsuite-0.5.1 lib/netsuite/records/account.rb
netsuite-0.5.0 lib/netsuite/records/account.rb
netsuite-0.4.9 lib/netsuite/records/account.rb
netsuite-0.4.8 lib/netsuite/records/account.rb
netsuite-0.4.7 lib/netsuite/records/account.rb
netsuite-0.4.6 lib/netsuite/records/account.rb
netsuite-0.4.5 lib/netsuite/records/account.rb
netsuite-0.4.4 lib/netsuite/records/account.rb
netsuite-0.4.3 lib/netsuite/records/account.rb
netsuite-0.4.2 lib/netsuite/records/account.rb
netsuite-0.4.1 lib/netsuite/records/account.rb
netsuite-0.4.0 lib/netsuite/records/account.rb
netsuite-0.3.3 lib/netsuite/records/account.rb
netsuite-0.3.2 lib/netsuite/records/account.rb