From 0ba154d0708ed7df541070fc58d4bcb7da37661c Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Tue, 5 Jun 2018 05:47:37 +0200 Subject: [PATCH] Added account balance. --- fulbank/fsb.py | 2 ++ 1 file changed, 2 insertions(+) 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): -- 2.11.0