From: Henryk Plötz Date: Fri, 24 Aug 2018 11:38:37 +0000 (+0200) Subject: Add set_product() X-Git-Tag: v2.0.0~1^2~84 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=82cdde9de0bd250908520fd04214791a7639f4e1;p=thirdparty%2Fpython-fints.git Add set_product() --- 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)