Skip to content

Commit 6068ada

Browse files
committed
Allow to pass system ID
1 parent 65a74b2 commit 6068ada

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fints/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ class FinTSClientMode(Enum):
159159
class FinTS3Client:
160160
def __init__(self,
161161
bank_identifier, user_id, customer_id=None,
162-
from_data: bytes=None,
162+
from_data: bytes=None, system_id=None,
163163
product_id=None, product_version=version[:5],
164164
mode=FinTSClientMode.INTERACTIVE):
165165
self.accounts = []
@@ -169,7 +169,7 @@ def __init__(self,
169169
self.bank_identifier = BankIdentifier(BankIdentifier.COUNTRY_ALPHA_TO_NUMERIC['DE'], bank_identifier)
170170
else:
171171
raise TypeError("bank_identifier must be BankIdentifier or str (BLZ)")
172-
self.system_id = SYSTEM_ID_UNASSIGNED
172+
self.system_id = system_id or SYSTEM_ID_UNASSIGNED
173173
if not product_id:
174174
raise TypeError("The product_id keyword argument is mandatory starting with python-fints version 4. See "
175175
"https://python-fints.readthedocs.io/en/latest/upgrading_3_4.html for more information.")

0 commit comments

Comments
 (0)