]> git.ipfire.org Git - thirdparty/python-fints.git/commitdiff
Allow to pass a custom product ID
authorRaphael Michel <mail@raphaelmichel.de>
Thu, 27 Jun 2019 09:17:33 +0000 (11:17 +0200)
committerRaphael Michel <mail@raphaelmichel.de>
Thu, 27 Jun 2019 09:17:33 +0000 (11:17 +0200)
fints/client.py

index f399d36d668f0958c113669347ce27e47e923dd7..400bd522ddae49f17dec6158baa08c910cee3a9c 100644 (file)
@@ -152,7 +152,7 @@ class TransactionResponse:
 
 
 class FinTS3Client:
-    def __init__(self, bank_identifier, user_id, customer_id=None, from_data: bytes=None):
+    def __init__(self, bank_identifier, user_id, customer_id=None, from_data: bytes=None, product_id=None):
         self.accounts = []
         if isinstance(bank_identifier, BankIdentifier):
             self.bank_identifier = bank_identifier
@@ -169,7 +169,7 @@ class FinTS3Client:
         self.upd_version = 0
         self.upa = None
         self.upd = SegmentSequence()
-        self.product_name = 'python-fints'
+        self.product_name = product_id or 'python-fints'
         self.product_version = version[:5]
         self.response_callbacks = []
         self._standing_dialog = None