`pain.001.001.03` raises `sepaxml.validation.ValidationError` with example data
sweh opened this issue · comments
With the example data from the README, I get an
xmlschema.validators.exceptions.XMLSchemaChildrenValidationError: failed validating <Element '{urn:iso:std:iso:20022:tech:xsd:pain.001.001.03}Document' at 0x101f3d188> with XsdGroup(model='sequence', occurs=[1, 1]):
Reason: Unexpected child with tag '{urn:iso:std:iso:20022:tech:xsd:pain.001.001.03}CstmrDrctDbtInitn' at position 1. Tag 'CstmrCdtTrfInitn' expected.
Schema:
<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema" name="Document">
<xs:sequence>
<xs:element name="CstmrCdtTrfInitn" type="CustomerCreditTransferInitiationV03" />
</xs:sequence>
</xs:complexType>
Can you guess what's going wrong?
This looks like you are using the classes for direct debit even though pain.001.* is the format for transfers