From 82cdde9de0bd250908520fd04214791a7639f4e1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Henryk=20Pl=C3=B6tz?= Date: Fri, 24 Aug 2018 13:38:37 +0200 Subject: [PATCH] Add set_product() --- fints/client.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/fints/client.py b/fints/client.py index 4eedd0b..adee7f7 100644 --- a/fints/client.py +++ b/fints/client.py @@ -666,6 +666,16 @@ class FinTS3Client: # FIXME document self.response_callbacks.remove(cb) + def set_product(self, product_name, product_version): + """Set the product name and version that is transmitted as part of our identification + + According to 'FinTS Financial Transaction Services, Schnittstellenspezifikation, Formals', + version 3.0, section C.3.1.3, you should fill this with useful information about the + end-user product, *NOT* the FinTS library.""" + + self.product_name = product_name + self.product_version = product_version + def _call_callbacks(self, *cb_data): for cb in self.response_callbacks: cb(*cb_data) -- 2.47.2