Skip to content

Support for RuleBook 6 of pain.001.001.03 schema #51

Description

@haimat

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions