Sha256: 49ccd4b97c733b507e92513d044b9d1f3a6169e4fd3c4094b3dcd62ffeb9468f

Contents?: true

Size: 1.2 KB

Versions: 13

Compression:

Stored size: 1.2 KB

Contents

module NetSuite
  module Records
    class Deposit
      include Support::Fields
      include Support::RecordRefs
      include Support::Records
      include Support::Actions
      include Namespaces::TranBank

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

      fields :created_date, :last_modified_date, :currency_name, :exchange_rate, :tran_id, :total, :tran_date, :memo, :to_be_printed

      record_refs :custom_form, :account, :posting_period, :subsidiary, :department, :klass, :location

      field :payment_list,      DepositPaymentList
      field :other_list,        DepositOtherList
      field :cash_back_list,    DepositCashBackList
      field :custom_field_list, CustomFieldList

      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

      def self.search_class_name
        "Transaction"
      end

      def self.search_class_namespace
        'tranSales'
      end

    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
netsuite-0.9.3 lib/netsuite/records/deposit.rb
netsuite-0.9.2 lib/netsuite/records/deposit.rb
netsuite-0.9.1 lib/netsuite/records/deposit.rb
netsuite-0.9.0 lib/netsuite/records/deposit.rb
netsuite-0.8.12 lib/netsuite/records/deposit.rb
netsuite-0.8.11 lib/netsuite/records/deposit.rb
netsuite-0.7.7 lib/netsuite/records/deposit.rb
netsuite-0.7.6 lib/netsuite/records/deposit.rb
netsuite-0.7.5 lib/netsuite/records/deposit.rb
netsuite-0.7.4 lib/netsuite/records/deposit.rb
netsuite-0.7.3 lib/netsuite/records/deposit.rb
netsuite-0.7.2 lib/netsuite/records/deposit.rb
netsuite-0.7.1 lib/netsuite/records/deposit.rb