Sha256: 10c2aef1d890d3526d940bb4e6a1cecddda4c7ebe12649740780701b3a377639

Contents?: true

Size: 949 Bytes

Versions: 5

Compression:

Stored size: 949 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_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, :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

5 entries across 5 versions & 1 rubygems

Version Path
netsuite-0.5.1 lib/netsuite/records/cash_refund.rb
netsuite-0.5.0 lib/netsuite/records/cash_refund.rb
netsuite-0.4.9 lib/netsuite/records/cash_refund.rb
netsuite-0.4.8 lib/netsuite/records/cash_refund.rb
netsuite-0.4.7 lib/netsuite/records/cash_refund.rb