Sha256: a86f6963f03d0a58248797904703b2873c84fad4af705913d908d5a6ea5d084b

Contents?: true

Size: 1.17 KB

Versions: 4

Compression:

Stored size: 1.17 KB

Contents

module NetSuite
  module Records
    class PaymentItem
      include Support::Fields
      include Support::RecordRefs
      include Support::Records
      include Support::Actions
      include Namespaces::ListAcct

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

      fields :available_to_partners, :created_date, :description, :display_name, :include_children, :is_inactive, :item_id, :last_modified_date, :undep_funds

      record_refs :account, :custom_form, :department, :issue_product, :klass, :location, :payment_method

      field :custom_field_list, CustomFieldList
      field :subsidiary_list, RecordRefList

      # TODO custom records need to be implemented
      field :translations_list, TranslationList

      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
        "Item"
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
netsuite-0.9.3 lib/netsuite/records/payment_item.rb
netsuite-0.9.2 lib/netsuite/records/payment_item.rb
netsuite-0.9.1 lib/netsuite/records/payment_item.rb
netsuite-0.9.0 lib/netsuite/records/payment_item.rb