Module: WepayRails::Api::AccountMethods
- Included in:
- Payments::Gateway
- Defined in:
- lib/api/account_methods.rb
Instance Method Summary collapse
- #create_account(params) ⇒ Object
- #delete_account(account_id) ⇒ Object
- #find_account(params = {}) ⇒ Object
- #get_account(account_id) ⇒ Object
- #get_account_balance(account_id) ⇒ Object
- #modify_account(account_id, params = {}) ⇒ Object
Instance Method Details
#create_account(params) ⇒ Object
4 5 6 |
# File 'lib/api/account_methods.rb', line 4 def create_account(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 delete_account(account_id) self.call_api("/account/delete", {:account_id => account_id}) end |
#find_account(params = {}) ⇒ Object
12 13 14 |
# File 'lib/api/account_methods.rb', line 12 def find_account(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 get_account(account_id) self.call_api("/account", {:account_id => account_id}) end |
#get_account_balance(account_id) ⇒ Object
24 25 26 |
# File 'lib/api/account_methods.rb', line 24 def get_account_balance(account_id) self.call_api("/account/balance", {:account_id => account_id}) end |
#modify_account(account_id, params = {}) ⇒ Object
16 17 18 |
# File 'lib/api/account_methods.rb', line 16 def modify_account(account_id, params={}) self.call_api("/account/modify", params.merge({:account_id => account_id})) end |