class Upwork::Api::Routers::Reports::Finance::Accounts
Constants
- ENTRY_POINT
Public Class Methods
new(client)
click to toggle source
Init
Arguments:
client: (Client)
# File lib/upwork/api/routers/reports/finance/accounts.rb, line 27 def initialize(client) @client = client @client.epoint = ENTRY_POINT end
Public Instance Methods
get_owned(freelancer_reference, params)
click to toggle source
Generate Financial Reports for an owned Account
Arguments:
freelancer_reference: (String) params: (Hash)
# File lib/upwork/api/routers/reports/finance/accounts.rb, line 37 def get_owned(freelancer_reference, params) $LOG.i "running " + __method__.to_s @client.get '/finreports/v2/financial_account_owner/' + freelancer_reference, params end
get_specific(entity_reference, params)
click to toggle source
Generate Financial Reports for a Specific Account
Arguments:
entity_reference: (String) params: (Hash)
# File lib/upwork/api/routers/reports/finance/accounts.rb, line 47 def get_specific(entity_reference, params) $LOG.i "running " + __method__.to_s @client.get '/finreports/v2/financial_accounts/' + entity_reference, params end