Skip to content

schema difference between pain.001.001.03 and pain.001.001.09 - AdrTp (Address Type) element #72

@cr-solutions

Description

@cr-solutions

pain.001.001.03: The AdrTp (Address Type) element directly contains the address type code:

ADDR

pain.001.001.09: The AdrTp element uses a choice structure with either Cd (Code) or Prtry (Proprietary) elements:

ADDR

Solution:
I modified the sepaxml/transfer.py file to handle this schema difference by:

Detecting the schema version: Checking if self.schema != "pain.001.001.03"

Creating the correct structure: For newer schemas, creating an AdrTp element with a nested Cd element containing the address type value

Maintaining backward compatibility: Keeping the old behavior for pain.001.001.03

transfer.py

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