Class: Upwork::Api::Routers::Reports::Finance::Billings
- Inherits:
-
Object
- Object
- Upwork::Api::Routers::Reports::Finance::Billings
- Defined in:
- lib/upwork/api/routers/reports/finance/billings.rb
Overview
Generate Billing Reports
Constant Summary collapse
- ENTRY_POINT =
'gds'
Instance Method Summary collapse
-
#get_by_buyers_company(buyer_company_reference, params) ⇒ Object
Generate Billing Reports for a Specific Buyer’s Company.
-
#get_by_buyers_team(buyer_team_reference, params) ⇒ Object
Generate Billing Reports for a Specific Buyer’s Team.
-
#get_by_freelancer(freelancer_reference, params) ⇒ Object
Generate Billing Reports for a Specific Freelancer.
-
#get_by_freelancers_company(freelancer_company_reference, params) ⇒ Object
Generate Billing Reports for a Specific Freelancer’s Company.
-
#get_by_freelancers_team(freelancer_team_reference, params) ⇒ Object
Generate Billing Reports for a Specific Freelancer’s Team.
-
#initialize(client) ⇒ Billings
constructor
Init.
Constructor Details
#initialize(client) ⇒ Billings
Init
Arguments:
client: (Client)
27 28 29 30 |
# File 'lib/upwork/api/routers/reports/finance/billings.rb', line 27 def initialize(client) @client = client @client.epoint = ENTRY_POINT end |
Instance Method Details
#get_by_buyers_company(buyer_company_reference, params) ⇒ Object
Generate Billing Reports for a Specific Buyer’s Company
Arguments:
buyer_company_reference: (String)
params: (Hash)
77 78 79 80 |
# File 'lib/upwork/api/routers/reports/finance/billings.rb', line 77 def get_by_buyers_company(buyer_company_reference, params) $LOG.i "running " + __method__.to_s @client.get '/finreports/v2/buyer_companies/' + buyer_company_reference + '/billings', params end |
#get_by_buyers_team(buyer_team_reference, params) ⇒ Object
Generate Billing Reports for a Specific Buyer’s Team
Arguments:
buyer_team_reference: (String)
params: (Hash)
67 68 69 70 |
# File 'lib/upwork/api/routers/reports/finance/billings.rb', line 67 def get_by_buyers_team(buyer_team_reference, params) $LOG.i "running " + __method__.to_s @client.get '/finreports/v2/buyer_teams/' + buyer_team_reference + '/billings', params end |
#get_by_freelancer(freelancer_reference, params) ⇒ Object
Generate Billing Reports for a Specific Freelancer
Arguments:
freelancer_reference: (String)
params: (Hash)
37 38 39 40 |
# File 'lib/upwork/api/routers/reports/finance/billings.rb', line 37 def get_by_freelancer(freelancer_reference, params) $LOG.i "running " + __method__.to_s @client.get '/finreports/v2/providers/' + freelancer_reference + '/billings', params end |
#get_by_freelancers_company(freelancer_company_reference, params) ⇒ Object
Generate Billing Reports for a Specific Freelancer’s Company
Arguments:
freelancer_company_reference: (String)
params: (Hash)
57 58 59 60 |
# File 'lib/upwork/api/routers/reports/finance/billings.rb', line 57 def get_by_freelancers_company(freelancer_company_reference, params) $LOG.i "running " + __method__.to_s @client.get '/finreports/v2/provider_companies/' + freelancer_company_reference + '/billings', params end |
#get_by_freelancers_team(freelancer_team_reference, params) ⇒ Object
Generate Billing Reports for a Specific Freelancer’s Team
Arguments:
freelancer_team_reference: (String)
params: (Hash)
47 48 49 50 |
# File 'lib/upwork/api/routers/reports/finance/billings.rb', line 47 def get_by_freelancers_team(freelancer_team_reference, params) $LOG.i "running " + __method__.to_s @client.get '/finreports/v2/provider_teams/' + freelancer_team_reference + '/billings', params end |