Class: MasspayRubySdk::AccountService

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

Instance Method Summary collapse

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_balanceObject

Get current available balance GET /payout/account/balance



21
22
23
# File 'lib/masspay_ruby_sdk/api/account_service.rb', line 21

def  
  @client.get("payout/account/balance") 
end

#get_account_statement(query_params = {}) ⇒ Object

Get certified account statement GET /payout/account/statement

Parameters:

  • query_params (defaults to: {})

    The query parameters



28
29
30
31
32
# File 'lib/masspay_ruby_sdk/api/account_service.rb', line 28

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