Class: MasspayRubySdk::TaxService

Inherits:
Object
  • Object
show all
Defined in:
lib/masspay_ruby_sdk/api/tax_service.rb

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ TaxService

Returns a new instance of TaxService.



15
16
17
# File 'lib/masspay_ruby_sdk/api/tax_service.rb', line 15

def initialize(client)
  @client = client ||= Client.new
end

Instance Method Details

Get link for tax interview GET /payout/user_token/tax

Parameters:

  • query_params (defaults to: {})

    The query parameters



31
32
33
34
35
# File 'lib/masspay_ruby_sdk/api/tax_service.rb', line 31

def get_tax_interview_link user_token, query_params={}
  @client.get("payout/#{user_token}/tax") do |req|
    req.params = query_params
  end
end

#get_tax_users(query_params = {}) ⇒ Object

Get list of users’ annual balance GET /payout/tax

Parameters:

  • query_params (defaults to: {})

    The query parameters



22
23
24
25
26
# File 'lib/masspay_ruby_sdk/api/tax_service.rb', line 22

def get_tax_users query_params={}
  @client.get("payout/tax") do |req|
    req.params = query_params
  end
end