python-sepaxml icon indicating copy to clipboard operation
python-sepaxml copied to clipboard

Support for RuleBook 6 of pain.001.001.03 schema

Open haimat opened this issue 3 years ago • 0 comments

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?

haimat avatar Dec 21 '22 11:12 haimat