Class: Dwolla::Accounts
- Inherits:
-
Object
- Object
- Dwolla::Accounts
- Defined in:
- lib/dwolla/accounts.rb
Class Method Summary collapse
Class Method Details
.auto_withdrawl(enabled = true, funding_id = nil, token = nil) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/dwolla/accounts.rb', line 3 def self.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 |