Dolda2000 GitWeb
/
fulbank.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c45620
)
Added account balance.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Tue, 5 Jun 2018 03:47:37 +0000
(
05:47
+0200)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Tue, 5 Jun 2018 03:47:37 +0000
(
05:47
+0200)
fulbank/fsb.py
patch
|
blob
|
blame
|
history
diff --git
a/fulbank/fsb.py
b/fulbank/fsb.py
index
b529d46
..
d908f79
100644
(file)
--- 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):