Sha256: bb3d46d623c318376c8f85b98b86fa6580f6a504ea0c1f6ebc78b57cdacb8548

Contents?: true

Size: 855 Bytes

Versions: 9

Compression:

Stored size: 855 Bytes

Contents

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

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

      fields :due_next_month_if_within_days, :name, :date_driven, :days_until_expiry, :days_until_next_due,
        :day_discount_expires, :day_of_month_net_due, :discount_percent, :discount_percent_date_driven, :is_inactive,
        :preferred

      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

9 entries across 9 versions & 1 rubygems

Version Path
netsuite-0.6.9 lib/netsuite/records/term.rb
netsuite-0.6.8 lib/netsuite/records/term.rb
netsuite-0.6.7 lib/netsuite/records/term.rb
netsuite-0.6.6 lib/netsuite/records/term.rb
netsuite-0.6.5 lib/netsuite/records/term.rb
netsuite-0.6.4 lib/netsuite/records/term.rb
netsuite-0.6.3 lib/netsuite/records/term.rb
netsuite-0.6.2 lib/netsuite/records/term.rb
netsuite-0.6.1 lib/netsuite/records/term.rb