Sha256: 5acc0a7b4dfeccb507c6dedc222005cc1c498ea191ad6170054aa3b299d274f9

Contents?: true

Size: 967 Bytes

Versions: 14

Compression:

Stored size: 967 Bytes

Contents

module NetSuite
  module Records
    class CashRefund
      include Support::Fields
      include Support::RecordRefs
      include Support::Records
      include Support::Actions
      include Namespaces::TranCust

      actions :add, :get, :delete, :initialize, :upsert

      fields :tran_id, :tran_date, :to_be_emailed, :memo, :total, :currency_name, :exchange_rate, :source, :tax_rate

      field :item_list, CashRefundItemList
      field :custom_field_list, CustomFieldList

      record_refs :entity, :custom_form, :payment_method, :created_from, :klass, :account, :currency, :posting_period

      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.7.0 lib/netsuite/records/cash_refund.rb
netsuite-0.6.9 lib/netsuite/records/cash_refund.rb
netsuite-0.6.8 lib/netsuite/records/cash_refund.rb
netsuite-0.6.7 lib/netsuite/records/cash_refund.rb
netsuite-0.6.6 lib/netsuite/records/cash_refund.rb
netsuite-0.6.5 lib/netsuite/records/cash_refund.rb
netsuite-0.6.4 lib/netsuite/records/cash_refund.rb
netsuite-0.6.3 lib/netsuite/records/cash_refund.rb
netsuite-0.6.2 lib/netsuite/records/cash_refund.rb
netsuite-0.6.1 lib/netsuite/records/cash_refund.rb
netsuite-0.6.0 lib/netsuite/records/cash_refund.rb
netsuite-0.5.9 lib/netsuite/records/cash_refund.rb
netsuite-0.5.8 lib/netsuite/records/cash_refund.rb
netsuite-0.5.7 lib/netsuite/records/cash_refund.rb