Module: Accounts

Included in:
TessituraRest
Defined in:
lib/tessitura_rest/crm/accounts.rb

Instance Method Summary collapse

Instance Method Details

#get_all_accounts(constituent_id, inactive = false, include_affiliate = false, options = {}) ⇒ Object



3
4
5
6
7
# File 'lib/tessitura_rest/crm/accounts.rb', line 3

def get_all_accounts(constituent_id, inactive=false, include_affiliate=false, options={})
  options.merge!(basic_auth: @auth, headers: @headers)
  response = self.class.get(base_api_endpoint("CRM/Accounts?constituentId=#{constituent_id}&includeInactive=#{inactive}&includeAffiliates=#{include_affiliate}"), options)
  JSON.parse(response.body)
end