class Upwork::Api::Routers::Payments

Custom Payments

Constants

ENTRY_POINT

Public Class Methods

new(client) click to toggle source

Init

Arguments:

client: (Client)
# File lib/upwork/api/routers/payments.rb, line 25
def initialize(client)
  @client = client
  @client.epoint = ENTRY_POINT 
end

Public Instance Methods

submit_bonus(team_reference, params) click to toggle source

Submit bonus

Arguments:

team_reference: (String)
params: (Hash)
# File lib/upwork/api/routers/payments.rb, line 35
def submit_bonus(team_reference, params)
  $LOG.i "running " + __method__.to_s
  @client.post '/hr/v2/teams/' + team_reference + '/adjustments', params
end