Commit 6dd02dae authored by Maxime Pommier's avatar Maxime Pommier Committed by Romain Bignon

[weboob] Added field owner_type on Account

Added field owner_type on Account class to save and enum with [PRIVATE|ORGANIZATION]
parent 934b29e2
......@@ -248,6 +248,16 @@ class AccountType(Enum):
"Revolving credit"
class AccountOwnerType(object):
"""
Specifies the usage of the account
"""
PRIVATE = u'PRIV'
"""private personal account"""
ORGANIZATION = u'ORGA'
"""professional account"""
class Account(BaseAccount):
"""
Bank account.
......@@ -274,6 +284,7 @@ class Account(BaseAccount):
TYPE_REVOLVING_CREDIT = AccountType.REVOLVING_CREDIT
type = EnumField('Type of account', AccountType, default=TYPE_UNKNOWN)
owner_type = StringField('Usage of account') # cf AccountOwnerType class
balance = DecimalField('Balance on this bank account')
coming = DecimalField('Sum of coming movements')
iban = StringField('International Bank Account Number', mandatory=False)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment