Sha256: f2808ef97ea0194aa561bd4d7918765b7bd62a750b2ee589c0c704a23c172058

Contents?: true

Size: 743 Bytes

Versions: 1

Compression:

Stored size: 743 Bytes

Contents

module QBFC
  class Item < List
    is_base_class
    
    class << self
      
      # Adds a SpecialItem.
      # 
      # +item_type+ should be a constent, for example:
      # 
      #   Account.add_special(sess, QBFC_CONST::SitFinanceCharge)
      #   
      # See SDK docs for SpecialItemAdd for more details.
      def add_special(sess, item_type)
        rq = QBFC::Request.new(sess, "SpecialItemAdd")
        rq.special_item_type = item_type
        
        # Insofar as I never actually plan to use this method, just return
        # response.
        return rq.response
      end
    end
  end
end

# Require subclass files
Dir[File.dirname(__FILE__) + '/items/*.rb'].each do |file|
  require file
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
qbfc-0.2.0-x86-mswin32-60 lib/qbfc/item.rb