]> git.ipfire.org Git - thirdparty/python-fints.git/commitdiff
Add set_product()
authorHenryk Plötz <henryk@ploetzli.ch>
Fri, 24 Aug 2018 11:38:37 +0000 (13:38 +0200)
committerRaphael Michel <mail@raphaelmichel.de>
Mon, 3 Dec 2018 18:34:29 +0000 (19:34 +0100)
fints/client.py

index 4eedd0b05718df7420a251b1f311e9f0b5e9e0b3..adee7f767e00ef007a653d525e22d614f400389d 100644 (file)
@@ -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)