From fe93f52ac03f97039c7da7066c084cc15aabbf06 Mon Sep 17 00:00:00 2001 From: Martin Lavoie Date: Fri, 18 Jun 2021 14:41:26 +0200 Subject: [PATCH] [ing] Set owner_type to private ING France does not provide services to professionals. --- modules/ing/api/accounts_page.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/ing/api/accounts_page.py b/modules/ing/api/accounts_page.py index cf48e819c4..017d90454d 100644 --- a/modules/ing/api/accounts_page.py +++ b/modules/ing/api/accounts_page.py @@ -30,7 +30,10 @@ CleanText, CleanDecimal, Date, Eval, Lower, Format, Field, Map, Upper, MapIn, ) -from woob.capabilities.bank import Account, AccountOwnership, Investment +from woob.capabilities.bank import ( + Account, AccountOwnership, Investment, + AccountOwnerType, +) from woob.tools.capabilities.bank.investments import IsinCode, IsinType from woob.tools.capabilities.bank.transactions import FrenchTransaction from woob.capabilities.base import NotAvailable @@ -95,6 +98,7 @@ class item(ItemElement): obj_label = Dict('type/label') obj_type = MapIn(Dict('type/label'), ACCOUNT_TYPES, Account.TYPE_UNKNOWN) obj_number = CleanText(Dict('label'), replace=[(' ', '')]) + obj_owner_type = AccountOwnerType.PRIVATE def obj_balance(self): # ledgerBalance=-X and hasPositiveBalance=false -> negative balance (checking account) -- GitLab