Sha256: 28ad4531c95d6fd2cab268fcfb91b81f649f9baa6480b06050cc0fd5aa71dacd

Contents?: true

Size: 822 Bytes

Versions: 4

Compression:

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

      fields :tran_date, :to_be_emailed

      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

4 entries across 4 versions & 1 rubygems

Version Path
netsuite-0.3.3 lib/netsuite/records/cash_refund.rb
netsuite-0.3.2 lib/netsuite/records/cash_refund.rb
netsuite-0.3.1 lib/netsuite/records/cash_refund.rb
netsuite-0.3.0 lib/netsuite/records/cash_refund.rb