Sha256: 79872830767c6a217b605b816d01a79b2b4b5e2fa7324d65d366178a1e7ce5cc

Contents?: true

Size: 1.76 KB

Versions: 6

Compression:

Stored size: 1.76 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, :payment_option, :custom_form, :currency,
        :posting_period, :subsidiary, :location,
        # only available in an advanced search result
        :deposit_transaction

      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

6 entries across 6 versions & 1 rubygems

Version Path
netsuite-0.9.3 lib/netsuite/records/customer_deposit.rb
netsuite-0.9.2 lib/netsuite/records/customer_deposit.rb
netsuite-0.9.1 lib/netsuite/records/customer_deposit.rb
netsuite-0.9.0 lib/netsuite/records/customer_deposit.rb
netsuite-0.8.12 lib/netsuite/records/customer_deposit.rb
netsuite-0.8.11 lib/netsuite/records/customer_deposit.rb