From: Fredrik Tolf Date: Tue, 5 Jun 2018 03:47:37 +0000 (+0200) Subject: Added account balance. X-Git-Url: http://dolda2000.com/gitweb/?p=fulbank.git;a=commitdiff_plain;h=0ba154d0708ed7df541070fc58d4bcb7da37661c Added account balance. --- diff --git a/fulbank/fsb.py b/fulbank/fsb.py index b529d46..d908f79 100644 --- a/fulbank/fsb.py +++ b/fulbank/fsb.py @@ -96,6 +96,8 @@ class account(object): @property def fullnumber(self): return resolve(self.data, ("fullyFormattedNumber",)) @property + def balance(self): return currency.currency.get(resolve(self.data, ("balance", "currencyCode"))).parse(resolve(self.data, ("balance", "amount"))) + @property def name(self): return resolve(self._idata, ("name",)) def transactions(self):