Class: Upwork::Api::Routers::Reports::Finance::Accounts

Inherits:
Object
  • Object
show all
Defined in:
lib/upwork/api/routers/reports/finance/accounts.rb

Overview

Generate Financial Reports for Accounts

Constant Summary collapse

ENTRY_POINT =
'gds'

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Accounts

Init

Arguments:

client: (Client)


27
28
29
30
# File 'lib/upwork/api/routers/reports/finance/accounts.rb', line 27

def initialize(client)
  @client = client
  @client.epoint = ENTRY_POINT 
end

Instance Method Details

#get_owned(freelancer_reference, params) ⇒ Object

Generate Financial Reports for an owned Account

Arguments:

freelancer_reference: (String)
params: (Hash)


37
38
39
40
# File 'lib/upwork/api/routers/reports/finance/accounts.rb', line 37

def get_owned(freelancer_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

#get_specific(entity_reference, params) ⇒ Object

Generate Financial Reports for a Specific Account

Arguments:

entity_reference: (String)
params: (Hash)


47
48
49
50
# File 'lib/upwork/api/routers/reports/finance/accounts.rb', line 47

def get_specific(entity_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