Class: Bloomerang::Fund
Overview
Bloomerang::Fund Id integer($int64) GeneralLedgerClass string, The class label for this fund in the general ledger (quickbooks) DefaultQuickbooksAccountId integer($int64), The ID of the general ledger (quickbooks) account to which this fund will default QuickbooksAccountIds array, The IDs of all general ledger (quickbooks) accounts associated with this fund SortIndex integer($int32) Name string IsDefault boolean IsActive boolean
Class Method Summary collapse
Methods inherited from Base
Class Method Details
.create(body) ⇒ Object
Create fund bloomerang.co/product/integrations-data-management/api/rest-api/#/Funds/post_fund
Params: body JSON object, see API for fields
41 42 43 |
# File 'lib/bloomerang/fund.rb', line 41 def self.create(body) post("fund", {}, body) end |
.fetch(params = {}) ⇒ Object
Fetch all funds bloomerang.co/product/integrations-data-management/api/rest-api/#/Funds/get_funds
Params: skip integer, default: 0, simple paging system take integer, default: 50, simple paging system id array, separated by pipes: “1|2|3” isActive boolean search string, Filters to funds with names that match any part of the search string
23 24 25 |
# File 'lib/bloomerang/fund.rb', line 23 def self.fetch(params = {}) get("funds", params) end |
.show(id) ⇒ Object
Fetch fund by ID bloomerang.co/product/integrations-data-management/api/rest-api/#/Funds/get_fund_id
Params: id integer
32 33 34 |
# File 'lib/bloomerang/fund.rb', line 32 def self.show(id) get("fund/#{id}") end |
.update(id, body) ⇒ Object
Update a fund bloomerang.co/product/integrations-data-management/api/rest-api/#/Funds/put_fund_id
Params: id integer body JSON object, see API for fields
51 52 53 |
# File 'lib/bloomerang/fund.rb', line 51 def self.update(id, body) put("fund/#{id}", {}, body) end |