Class: MasspayRubySdk::AccountService
- Inherits:
-
Object
- Object
- MasspayRubySdk::AccountService
- Defined in:
- lib/masspay_ruby_sdk/api/account_service.rb
Instance Method Summary collapse
-
#get_account_balance ⇒ Object
Get current available balance GET /payout/account/balance.
-
#get_account_statement(query_params = {}) ⇒ Object
Get certified account statement GET /payout/account/statement.
-
#initialize(client) ⇒ AccountService
constructor
A new instance of AccountService.
Constructor Details
#initialize(client) ⇒ AccountService
Returns a new instance of AccountService.
15 16 17 |
# File 'lib/masspay_ruby_sdk/api/account_service.rb', line 15 def initialize(client) @client = client ||= Client.new end |
Instance Method Details
#get_account_balance ⇒ Object
Get current available balance GET /payout/account/balance
21 22 23 |
# File 'lib/masspay_ruby_sdk/api/account_service.rb', line 21 def get_account_balance @client.get("payout/account/balance") end |
#get_account_statement(query_params = {}) ⇒ Object
Get certified account statement GET /payout/account/statement
28 29 30 31 32 |
# File 'lib/masspay_ruby_sdk/api/account_service.rb', line 28 def get_account_statement query_params={} @client.get("payout/account/statement") do |req| req.params = query_params end end |