Sha256: bc0e85b4f361e9fac9481544664d59ea61251c365351066c81e049c6ea991dc1

Contents?: true

Size: 1.79 KB

Versions: 3

Compression:

Stored size: 1.79 KB

Contents

module NetSuite
  module Records

    # https://system.netsuite.com/help/helpcenter/en_US/srbrowser/Browser2014_1/schema/record/customerdeposit.html

    class CustomerDeposit
      include Support::Actions
      include Support::RecordRefs
      include Support::Fields
      include Support::Records
      include Namespaces::TranCust

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

      fields :created_date, :last_modified_date, :status, :payment, :tran_date, :exchange_rate, :undep_funds, :memo,
             :check_num, :klass, :currency_name, :is_recurring_payment, :tran_id, :auth_code,
             :cc_approved, :cc_avs_street_match, :cc_avs_zip_match, :cc_expire_date, :cc_is_purchase_card_bin, :cc_name, :cc_number,
             :cc_process_as_purchase_card, :cc_security_code, :cc_security_code_match, :cc_street, :cc_zip_code, :charge_it

      field :custom_field_list, CustomFieldList
      field :apply_list,        CustomerDepositApplyList
      # accountingBookDetailList

      record_refs :customer, :sales_order, :account, :department, :payment_method,
                  :custom_form, :currency, :posting_period, :subsidiary, :location,

                  # only available in an advanced search result
                  :deposit_transaction

      attr_reader :internal_id
      attr_accessor :external_id
      attr_accessor :search_joins

      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

3 entries across 3 versions & 1 rubygems

Version Path
netsuite-0.8.6 lib/netsuite/records/customer_deposit.rb
netsuite-0.8.5 lib/netsuite/records/customer_deposit.rb
netsuite-0.8.4 lib/netsuite/records/customer_deposit.rb