Class: Multisafepay::AccountsResource

Inherits:
Resource
  • Object
show all
Defined in:
lib/multisafepay/resources/accounts.rb

Instance Attribute Summary

Attributes inherited from Resource

#client

Instance Method Summary collapse

Methods inherited from Resource

#initialize

Constructor Details

This class inherits a constructor from Multisafepay::Resource

Instance Method Details

#balances(affiliated_id) ⇒ Object



3
4
5
# File 'lib/multisafepay/resources/accounts.rb', line 3

def balances(affiliated_id)
  Account.new get_request("accounts/#{affiliated_id}/balances")
end

#charges(affiliated_id, payload = {}) ⇒ Object



7
8
9
# File 'lib/multisafepay/resources/accounts.rb', line 7

def charges(affiliated_id, payload = {})
  Account.new post_request("accounts/#{affiliated_id}/charges", body: payload)
end

#payouts(affiliated_id, payload = {}) ⇒ Object



11
12
13
# File 'lib/multisafepay/resources/accounts.rb', line 11

def payouts(affiliated_id, payload = {})
  Account.new post_request("accounts/#{affiliated_id}/payouts", body: payload)
end