Add investments support to ING

This commit is contained in:
Florent Fourcot 2013-07-08 22:38:54 +02:00
commit cbbdad084d
3 changed files with 34 additions and 1 deletions

View file

@ -100,6 +100,13 @@ class INGBackend(BaseBackend, ICapBank, ICapBill):
recipient = recipient.split('-')[1]
return self.browser.transfer(account, recipient, amount, reason)
def iter_investment(self, account):
with self.browser:
if not isinstance(account, Account):
account = self.get_account(account)
for investment in self.browser.get_investments(account):
yield investment
def iter_subscription(self):
for subscription in self.browser.get_subscriptions():
yield subscription