From d691376414fd17aefe66fa260d074e4e198b01a8 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Thu, 27 Jun 2019 11:17:33 +0200 Subject: [PATCH] Allow to pass a custom product ID --- fints/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.47.2