Class: Dwolla::Accounts
- Inherits:
-
Object
- Object
- Dwolla::Accounts
- Defined in:
- lib/dwolla/accounts.rb
Class Method Summary collapse
- .get_auto_withdrawal_status(token = true) ⇒ Object
- .toggle_auto_withdrawl(enabled = true, funding_id = nil, token = nil) ⇒ Object
Class Method Details
.get_auto_withdrawal_status(token = true) ⇒ Object
3 4 5 6 7 |
# File 'lib/dwolla/accounts.rb', line 3 def self.get_auto_withdrawal_status(token=true) url = accounts_url + 'features/auto_withdrawl' Dwolla.request(:get, url, {}, {}, token) end |
.toggle_auto_withdrawl(enabled = true, funding_id = nil, token = nil) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/dwolla/accounts.rb', line 9 def self.toggle_auto_withdrawl(enabled=true, funding_id=nil, token=nil) raise MissingParameterError.new('No Funding ID Provided.') if funding_id.nil? url = accounts_url + 'features/auto_withdrawl' params = { :enabled => enabled, :fundingId => funding_id } Dwolla.request(:post, url, params, {}, token) end |