Sha256: a9ab05b3e78ade46a34bed7ef03a8c5a5a1f14ddd139e448d2aff20bc1af59ad

Contents?: true

Size: 1.24 KB

Versions: 1

Compression:

Stored size: 1.24 KB

Contents

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

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

      fields :available_to_partners, :created_date, :description, :display_name, :include_children, :is_inactive, :is_pre_tax,
        :item_id, :last_modified_date, :non_posting, :rate, :upc_code, :vendor_name

      record_refs :account, :custom_form, :deferred_revenue_account, :department, :expense_account,
        :income_account, :issue_product, :klass, :location, :parent, :rev_rec_schedule, :sales_tax_code,
        :tax_schedule

      field :custom_field_list, CustomFieldList
      field :subsidiary_list, RecordRefList

      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

1 entries across 1 versions & 1 rubygems

Version Path
netsuite-0.8.12 lib/netsuite/records/discount_item.rb