Added account balance.
authorFredrik Tolf <fredrik@dolda2000.com>
Tue, 5 Jun 2018 03:47:37 +0000 (05:47 +0200)
committerFredrik Tolf <fredrik@dolda2000.com>
Tue, 5 Jun 2018 03:47:37 +0000 (05:47 +0200)
fulbank/fsb.py

index b529d46..d908f79 100644 (file)
@@ -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):