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:
a094b3b
)
fsb: Fix changes made to credit-card-account API.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Sat, 5 Jun 2021 13:33:47 +0000
(15:33 +0200)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Sat, 5 Jun 2021 13:33:47 +0000
(15:33 +0200)
fulbank/fsb.py
patch
|
blob
|
blame
|
history
diff --git
a/fulbank/fsb.py
b/fulbank/fsb.py
index
9e059c1
..
166b5f5
100644
(file)
--- a/
fulbank/fsb.py
+++ b/
fulbank/fsb.py
@@
-312,11
+312,12
@@
class session(object):
@property
def accounts(self):
if self._accounts is None:
@property
def accounts(self):
if self._accounts is None:
- data = self._jreq("v5/engagement/overview")
+ txndata = self._jreq("v5/engagement/overview")
+ crddata = self._jreq("v5/card/creditcard")
accounts = []
accounts = []
- for acct in resolve(data, ("transactionAccounts",)):
+ for acct in resolve(
txn
data, ("transactionAccounts",)):
accounts.append(txnaccount(self, resolve(acct, ("id",)), acct))
accounts.append(txnaccount(self, resolve(acct, ("id",)), acct))
- for acct in resolve(data, ("cardAccounts",)):
+ for acct in resolve(
crd
data, ("cardAccounts",)):
accounts.append(cardaccount(self, resolve(acct, ("id",)), acct))
self._accounts = accounts
return self._accounts
accounts.append(cardaccount(self, resolve(acct, ("id",)), acct))
self._accounts = accounts
return self._accounts