Sha256: 17119d20315bee5b59d21a742b4bb411d78bff37d4d81a1bc2d3052059cd2001

Contents?: true

Size: 859 Bytes

Versions: 7

Compression:

Stored size: 859 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

      field :item_list, CashRefundItemList
      field :custom_field_list, CustomFieldList

      record_refs :entity, :custom_form, :payment_method, :created_from

      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

7 entries across 7 versions & 1 rubygems

Version Path
netsuite-0.4.6 lib/netsuite/records/cash_refund.rb
netsuite-0.4.5 lib/netsuite/records/cash_refund.rb
netsuite-0.4.4 lib/netsuite/records/cash_refund.rb
netsuite-0.4.3 lib/netsuite/records/cash_refund.rb
netsuite-0.4.2 lib/netsuite/records/cash_refund.rb
netsuite-0.4.1 lib/netsuite/records/cash_refund.rb
netsuite-0.4.0 lib/netsuite/records/cash_refund.rb