module Accounts 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 end