Class: MasspayRubySdk::TaxService
- Inherits:
-
Object
- Object
- MasspayRubySdk::TaxService
- Defined in:
- lib/masspay_ruby_sdk/api/tax_service.rb
Instance Method Summary collapse
-
#get_tax_interview_link(user_token, query_params = {}) ⇒ Object
Get link for tax interview GET /payout/user_token/tax.
-
#get_tax_users(query_params = {}) ⇒ Object
Get list of users’ annual balance GET /payout/tax.
-
#initialize(client) ⇒ TaxService
constructor
A new instance of TaxService.
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_tax_interview_link(user_token, query_params = {}) ⇒ Object
Get link for tax interview GET /payout/user_token/tax
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
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 |