Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for RuleBook 6 of pain.001.001.03 schema #51

Open
haimat opened this issue Dec 21, 2022 · 0 comments
Open

Support for RuleBook 6 of pain.001.001.03 schema #51

haimat opened this issue Dec 21, 2022 · 0 comments

Comments

@haimat
Copy link

haimat commented Dec 21, 2022

I need to create the SEPA XML for an Austrian bank. Unfortunately here in Austria the latest version of the pain.001.001.03 schema is not supported yet, we use the RuleBook 6 version of that schema:

https://zv.psa.at/de/download/xml/archiv/rb-60/12-isopain00100103austrian003/file.html

When I copy over that .xsd file into the sepaxml/schemas folder and run my script, I get the following exception:

sepa = SepaTransfer(config, clean=True, schema="ISO.pain.001.001.03.austrian.003")
...  # adding payments
sepa_xml = sepa.export(validate=True, pretty_print=False)
---------------------------
Exception has occurred: XMLSchemaParseError
unknown type 'AT_ExternalCategoryPurpose1Code':

Schema:

  <xs:element xmlns:xs="http://www.w3.org/2001/XMLSchema" name="Cd" type="AT_ExternalCategoryPurpose1Code" />

Path: /xs:schema/xs:complexType[75]/xs:complexContent/xs:restriction/xs:sequence/xs:choice/xs:element[1]

Schema URL: file:///home/mfb/.local/lib/python3.10/site-packages/sepaxml/schemas/ISO.pain.001.001.03.austrian.003.xsd

Any ideas how I could fix this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant