From: Raphael Michel Date: Thu, 27 Jun 2019 09:17:33 +0000 (+0200) Subject: Allow to pass a custom product ID X-Git-Tag: v2.2.0~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d691376414fd17aefe66fa260d074e4e198b01a8;p=thirdparty%2Fpython-fints.git Allow to pass a custom product ID --- diff --git a/fints/client.py b/fints/client.py index f399d36..400bd52 100644 --- a/fints/client.py +++ b/fints/client.py @@ -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