Add investments support to ING
This commit is contained in:
parent
f4c5df891a
commit
cbbdad084d
3 changed files with 34 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue