Sha256: c07ce4a95b53289295332b273df52a8dbbaef1644ee5beb53b20247d1c3c92d1

Contents?: true

Size: 743 Bytes

Versions: 3

Compression:

Stored size: 743 Bytes

Contents

module QBFC
  class Account < List
    include Modifiable
    
    class << self
      
      # Adds a SpecialAccount, per SDK documentation:
      # "An account normally created automatically as needed within the 
      # QuickBooks UI, or in the SDK via the SpecialAccountAdd request."
      # 
      # +account_type+ should be a constent, for example:
      # 
      #   Account.add_special(sess, QBFC_CONST::SatAccountsPayable)
      #   
      # See SDK docs for SpecialAccountAdd for more details.
      def add_special(sess, account_type)
        rq = QBFC::Request.new(sess, "SpecialAccountAdd")
        rq.special_account_type = account_type
        
        new(sess, rq.response)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
jm81-qbfc-0.3.0 lib/qbfc/lists/account.rb
qbfc-0.3.0 lib/qbfc/lists/account.rb
qbfc-0.2.0-x86-mswin32-60 lib/qbfc/lists/account.rb