class Upwork::Api::Routers::Reports::Finance::Billings

Generate Billing Reports

Constants

ENTRY_POINT

Public Class Methods

new(client) click to toggle source

Init

Arguments:

client: (Client)
# File lib/upwork/api/routers/reports/finance/billings.rb, line 27
def initialize(client)
  @client = client
  @client.epoint = ENTRY_POINT 
end

Public Instance Methods

get_by_buyers_company(buyer_company_reference, params) click to toggle source

Generate Billing Reports for a Specific Buyer's Company

Arguments:

buyer_company_reference: (String)
params: (Hash)
# 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) click to toggle source

Generate Billing Reports for a Specific Buyer's Team

Arguments:

buyer_team_reference: (String)
params: (Hash)
# 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) click to toggle source

Generate Billing Reports for a Specific Freelancer

Arguments:

freelancer_reference: (String)
params: (Hash)
# 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) click to toggle source

Generate Billing Reports for a Specific Freelancer's Company

Arguments:

freelancer_company_reference: (String)
params: (Hash)
# 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) click to toggle source

Generate Billing Reports for a Specific Freelancer's Team

Arguments:

freelancer_team_reference: (String)
params: (Hash)
# 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