Class: Upwork::Api::Routers::Payments
- Inherits:
-
Object
- Object
- Upwork::Api::Routers::Payments
- Defined in:
- lib/upwork/api/routers/payments.rb
Overview
Custom Payments
Constant Summary collapse
- ENTRY_POINT =
'api'
Instance Method Summary collapse
-
#initialize(client) ⇒ Payments
constructor
Init.
-
#submit_bonus(team_reference, params) ⇒ Object
Submit bonus.
Constructor Details
#initialize(client) ⇒ Payments
Init
Arguments:
client: (Client)
25 26 27 28 |
# File 'lib/upwork/api/routers/payments.rb', line 25 def initialize(client) @client = client @client.epoint = ENTRY_POINT end |
Instance Method Details
#submit_bonus(team_reference, params) ⇒ Object
Submit bonus
Arguments:
team_reference: (String)
params: (Hash)
35 36 37 38 |
# File 'lib/upwork/api/routers/payments.rb', line 35 def submit_bonus(team_reference, params) $LOG.i "running " + __method__.to_s raise StandardError.new "The legacy API was deprecated. Please, use GraphQL call - see example in this library." end |