Module: WepayRails::Api::AccountMethods

Included in:
Payments::Gateway
Defined in:
lib/api/account_methods.rb

Instance Method Summary collapse

Instance Method Details

#create_account(params) ⇒ Object



4
5
6
# File 'lib/api/account_methods.rb', line 4

def (params)
  self.call_api("/account/create", params)
end

#delete_account(account_id) ⇒ Object



20
21
22
# File 'lib/api/account_methods.rb', line 20

def ()
  self.call_api("/account/delete", {:account_id => })
end

#find_account(params = {}) ⇒ Object



12
13
14
# File 'lib/api/account_methods.rb', line 12

def (params={})
  self.call_api("/account/find", params)
end

#get_account(account_id) ⇒ Object



8
9
10
# File 'lib/api/account_methods.rb', line 8

def ()
  self.call_api("/account", {:account_id => })
end

#get_account_balance(account_id) ⇒ Object



24
25
26
# File 'lib/api/account_methods.rb', line 24

def ()
  self.call_api("/account/balance", {:account_id => })
end

#modify_account(account_id, params = {}) ⇒ Object



16
17
18
# File 'lib/api/account_methods.rb', line 16

def (, params={})
  self.call_api("/account/modify", params.merge({:account_id => }))
end