Skip to content

Commit

Permalink
Add HISPAS3 for Baader Bank support (#153)
Browse files Browse the repository at this point in the history
Co-authored-by: Sascha Biedermann <[email protected]>
  • Loading branch information
sb604 and Sascha Biedermann authored Mar 28, 2024
1 parent 4940f12 commit d73abae
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
10 changes: 10 additions & 0 deletions fints/formals.py
Original file line number Diff line number Diff line change
Expand Up @@ -990,6 +990,16 @@ class GetSEPAAccountParameter1(DataElementGroup):
structured_purpose_allowed = DataElementField(type='jn', _d="Strukturierter Verwendungszweck erlaubt")
supported_sepa_formats = DataElementField(type='an', max_length=256, max_count=99, required=False, _d="Unterstützte SEPA-Datenformate")

class GetSEPAAccountParameter3(DataElementGroup):
"""Parameter SEPA-Kontoverbindung anfordern, version 3
Source: FinTS Financial Transaction Services, Schnittstellenspezifikation, Messages -- Multibankfähige Geschäftsvorfälle """
single_account_query_allowed = DataElementField(type='jn', _d="Einzelkontenabruf erlaubt")
national_account_allowed = DataElementField(type='jn', _d="Nationale Kontoverbindung erlaubt")
structured_purpose_allowed = DataElementField(type='jn', _d="Strukturierter Verwendungszweck erlaubt")
max_number_responses_allowed = DataElementField(type='jn', _d="Eingabe Anzahl Einträge erlaubt")
cutoff_days = DataElementField(type='num', max_length=2, _d="Anzahl reservierter Verwendungszweckstellen")
supported_sepa_formats = DataElementField(type='an', max_length=256, max_count=99, required=False, _d="Unterstützte SEPA-Datenformate")

class SupportedMessageTypes(DataElementGroup):
"""Unterstützte camt-Messages
Expand Down
8 changes: 7 additions & 1 deletion fints/segments/accounts.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from ..fields import DataElementGroupField
from ..formals import KTZ1, Account3, GetSEPAAccountParameter1
from ..formals import KTZ1, Account3, GetSEPAAccountParameter1, GetSEPAAccountParameter3
from .base import FinTS3Segment, ParameterSegment


Expand All @@ -24,3 +24,9 @@ class HISPAS1(ParameterSegment):
Source: FinTS Financial Transaction Services, Schnittstellenspezifikation, Messages -- Multibankfähige Geschäftsvorfälle"""
parameter = DataElementGroupField(type=GetSEPAAccountParameter1, _d="Parameter SEPA-Kontoverbindung anfordern")

class HISPAS3(ParameterSegment):
"""SEPA-Kontoverbindung anfordern, Parameter, version 3
Source: FinTS Financial Transaction Services, Schnittstellenspezifikation, Messages -- Multibankfähige Geschäftsvorfälle"""
parameter = DataElementGroupField(type=GetSEPAAccountParameter3, _d="Parameter SEPA-Kontoverbindung anfordern")

0 comments on commit d73abae

Please sign in to comment.