Class: GeniusReferrals::ReportsResource
- Defined in:
- lib/genius_referrals/resources/reports.rb
Instance Method Summary collapse
-
#bonuses_daily_given(account_slug:, start_date:, end_date:, advocate_token: nil) ⇒ Object
Run the daily bonuses given report.
-
#bonuses_summary_per_origin(account_slug:, start_date:, end_date:, advocate_token: nil) ⇒ Object
Run the bonuses summary per origin report.
-
#click_daily_participation(account_slug:, start_date:, end_date:, advocate_token: nil) ⇒ Object
Run the click daily participation report.
-
#referral_daily_participation(account_slug:, start_date:, end_date:, advocate_token: nil) ⇒ Object
Run the referral daily participation report.
-
#referrals_summary_per_origin(account_slug:, start_date:, end_date:, advocate_token: nil) ⇒ Object
Run the referrals summary per origin report.
-
#revenue(account_slug: nil, client_account_slug: nil, start_date: nil, end_date: nil) ⇒ Object
Run the revenue report with accepted live-doc and SDK parameter names.
-
#share_daily_participation(account_slug:, start_date:, end_date:, advocate_token: nil) ⇒ Object
Run the share daily participation report.
-
#tax_1099(client_slug: nil, account_slug: nil, year: nil) ⇒ Object
Run the 1099 tax report.
-
#top_advocates(account_slug:, start_date:, end_date:, advocate_token: nil, limit: nil) ⇒ Object
Run the top advocates report.
Methods inherited from Resource
Constructor Details
This class inherits a constructor from GeniusReferrals::Resource
Instance Method Details
#bonuses_daily_given(account_slug:, start_date:, end_date:, advocate_token: nil) ⇒ Object
Run the daily bonuses given report.
21 22 23 |
# File 'lib/genius_referrals/resources/reports.rb', line 21 def bonuses_daily_given(account_slug:, start_date:, end_date:, advocate_token: nil) dated('/reports/bonuses-daily-given', account_slug, start_date, end_date, advocate_token) end |
#bonuses_summary_per_origin(account_slug:, start_date:, end_date:, advocate_token: nil) ⇒ Object
Run the bonuses summary per origin report.
26 27 28 |
# File 'lib/genius_referrals/resources/reports.rb', line 26 def bonuses_summary_per_origin(account_slug:, start_date:, end_date:, advocate_token: nil) dated('/reports/bonuses-summary-per-origin', account_slug, start_date, end_date, advocate_token) end |
#click_daily_participation(account_slug:, start_date:, end_date:, advocate_token: nil) ⇒ Object
Run the click daily participation report.
31 32 33 |
# File 'lib/genius_referrals/resources/reports.rb', line 31 def click_daily_participation(account_slug:, start_date:, end_date:, advocate_token: nil) dated('/reports/click-daily-participation', account_slug, start_date, end_date, advocate_token) end |
#referral_daily_participation(account_slug:, start_date:, end_date:, advocate_token: nil) ⇒ Object
Run the referral daily participation report.
36 37 38 |
# File 'lib/genius_referrals/resources/reports.rb', line 36 def referral_daily_participation(account_slug:, start_date:, end_date:, advocate_token: nil) dated('/reports/referral-daily-participation', account_slug, start_date, end_date, advocate_token) end |
#referrals_summary_per_origin(account_slug:, start_date:, end_date:, advocate_token: nil) ⇒ Object
Run the referrals summary per origin report.
41 42 43 |
# File 'lib/genius_referrals/resources/reports.rb', line 41 def referrals_summary_per_origin(account_slug:, start_date:, end_date:, advocate_token: nil) dated('/reports/referrals-summary-per-origin', account_slug, start_date, end_date, advocate_token) end |
#revenue(account_slug: nil, client_account_slug: nil, start_date: nil, end_date: nil) ⇒ Object
Run the revenue report with accepted live-doc and SDK parameter names.
11 12 13 14 15 16 17 18 |
# File 'lib/genius_referrals/resources/reports.rb', line 11 def revenue(account_slug: nil, client_account_slug: nil, start_date: nil, end_date: nil) request('GET', '/reports/revenue', params: compact(account_slug: account_slug, client_account_slug: client_account_slug, start_date: start_date, end_date: end_date)) end |
#share_daily_participation(account_slug:, start_date:, end_date:, advocate_token: nil) ⇒ Object
Run the share daily participation report.
46 47 48 |
# File 'lib/genius_referrals/resources/reports.rb', line 46 def share_daily_participation(account_slug:, start_date:, end_date:, advocate_token: nil) dated('/reports/share-daily-participation', account_slug, start_date, end_date, advocate_token) end |
#tax_1099(client_slug: nil, account_slug: nil, year: nil) ⇒ Object
Run the 1099 tax report.
4 5 6 7 8 |
# File 'lib/genius_referrals/resources/reports.rb', line 4 def tax_1099(client_slug: nil, account_slug: nil, year: nil) request('GET', '/reports/1099-tax-report', params: compact(client_slug: client_slug, account_slug: account_slug, year: year)) end |
#top_advocates(account_slug:, start_date:, end_date:, advocate_token: nil, limit: nil) ⇒ Object
Run the top advocates report.
51 52 53 54 55 56 57 58 59 |
# File 'lib/genius_referrals/resources/reports.rb', line 51 def top_advocates(account_slug:, start_date:, end_date:, advocate_token: nil, limit: nil) request('GET', '/reports/top-advocates', params: compact(account_slug: account_slug, start_date: start_date, end_date: end_date, advocate_token: advocate_token, limit: limit)) end |