Skip to content

Commit

Permalink
Add more camt and a parse camt test
Browse files Browse the repository at this point in the history
  • Loading branch information
phoughton committed Jun 2, 2024
1 parent fe4b0e7 commit 2db58ed
Show file tree
Hide file tree
Showing 46 changed files with 64,473 additions and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="pyiso20022",
version="0.2.0",
version="0.3.1",
author="Peter Houghton",
author_email="[email protected]",
description="pyiso20022 is a library for generating ISO20022 messages in Python.",
Expand Down
18 changes: 18 additions & 0 deletions tests/parse_camt_msgs_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import pytest
from xsdata.formats.dataclass.parsers import XmlParser
from pyiso20022.camt.camt_052_001_02 import *


@pytest.mark.parametrize("expected_acc_id", [
("106068381")
])
def test_parse_camt052_001_02(expected_acc_id):

parser = XmlParser()

with open("example_files/gs_camt/camt052_001_02.xml", "rb") as xml_file:
doc: Document = parser.parse(xml_file, Document, )

acc_id = doc.bk_to_cstmr_acct_rpt.rpt[0].acct.id.othr.id

assert acc_id == expected_acc_id
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1,183 changes: 1,183 additions & 0 deletions xsd/cash_management/camt.052/camt.052.001.01.xsd

Large diffs are not rendered by default.

1,298 changes: 1,298 additions & 0 deletions xsd/cash_management/camt.052/camt.052.001.02.xsd

Large diffs are not rendered by default.

1,811 changes: 1,811 additions & 0 deletions xsd/cash_management/camt.052/camt.052.001.03.xsd

Large diffs are not rendered by default.

1,765 changes: 1,765 additions & 0 deletions xsd/cash_management/camt.052/camt.052.001.04.xsd

Large diffs are not rendered by default.

1,905 changes: 1,905 additions & 0 deletions xsd/cash_management/camt.052/camt.052.001.05.xsd

Large diffs are not rendered by default.

1,946 changes: 1,946 additions & 0 deletions xsd/cash_management/camt.052/camt.052.001.06.xsd

Large diffs are not rendered by default.

1,997 changes: 1,997 additions & 0 deletions xsd/cash_management/camt.052/camt.052.001.07.xsd

Large diffs are not rendered by default.

2,070 changes: 2,070 additions & 0 deletions xsd/cash_management/camt.052/camt.052.001.08.xsd

Large diffs are not rendered by default.

2,073 changes: 2,073 additions & 0 deletions xsd/cash_management/camt.052/camt.052.001.09.xsd

Large diffs are not rendered by default.

2,131 changes: 2,131 additions & 0 deletions xsd/cash_management/camt.052/camt.052.001.10.xsd

Large diffs are not rendered by default.

2,139 changes: 2,139 additions & 0 deletions xsd/cash_management/camt.052/camt.052.001.11.xsd

Large diffs are not rendered by default.

2,103 changes: 2,103 additions & 0 deletions xsd/cash_management/camt.052/camt.052.001.12.xsd

Large diffs are not rendered by default.

1,177 changes: 1,177 additions & 0 deletions xsd/cash_management/camt.053/camt.053.001.01.xsd

Large diffs are not rendered by default.

1,298 changes: 1,298 additions & 0 deletions xsd/cash_management/camt.053/camt.053.001.02.xsd

Large diffs are not rendered by default.

1,810 changes: 1,810 additions & 0 deletions xsd/cash_management/camt.053/camt.053.001.03.xsd

Large diffs are not rendered by default.

1,764 changes: 1,764 additions & 0 deletions xsd/cash_management/camt.053/camt.053.001.04.xsd

Large diffs are not rendered by default.

1,905 changes: 1,905 additions & 0 deletions xsd/cash_management/camt.053/camt.053.001.05.xsd

Large diffs are not rendered by default.

1,946 changes: 1,946 additions & 0 deletions xsd/cash_management/camt.053/camt.053.001.06.xsd

Large diffs are not rendered by default.

1,997 changes: 1,997 additions & 0 deletions xsd/cash_management/camt.053/camt.053.001.07.xsd

Large diffs are not rendered by default.

2,070 changes: 2,070 additions & 0 deletions xsd/cash_management/camt.053/camt.053.001.08.xsd

Large diffs are not rendered by default.

2,073 changes: 2,073 additions & 0 deletions xsd/cash_management/camt.053/camt.053.001.09.xsd

Large diffs are not rendered by default.

2,131 changes: 2,131 additions & 0 deletions xsd/cash_management/camt.053/camt.053.001.10.xsd

Large diffs are not rendered by default.

2,139 changes: 2,139 additions & 0 deletions xsd/cash_management/camt.053/camt.053.001.11.xsd

Large diffs are not rendered by default.

1,111 changes: 1,111 additions & 0 deletions xsd/cash_management/camt.054/camt.054.001.01.xsd

Large diffs are not rendered by default.

1,239 changes: 1,239 additions & 0 deletions xsd/cash_management/camt.054/camt.054.001.02.xsd

Large diffs are not rendered by default.

1,751 changes: 1,751 additions & 0 deletions xsd/cash_management/camt.054/camt.054.001.03.xsd

Large diffs are not rendered by default.

1,709 changes: 1,709 additions & 0 deletions xsd/cash_management/camt.054/camt.054.001.04.xsd

Large diffs are not rendered by default.

1,850 changes: 1,850 additions & 0 deletions xsd/cash_management/camt.054/camt.054.001.05.xsd

Large diffs are not rendered by default.

1,891 changes: 1,891 additions & 0 deletions xsd/cash_management/camt.054/camt.054.001.06.xsd

Large diffs are not rendered by default.

1,936 changes: 1,936 additions & 0 deletions xsd/cash_management/camt.054/camt.054.001.07.xsd

Large diffs are not rendered by default.

2,009 changes: 2,009 additions & 0 deletions xsd/cash_management/camt.054/camt.054.001.08.xsd

Large diffs are not rendered by default.

2,012 changes: 2,012 additions & 0 deletions xsd/cash_management/camt.054/camt.054.001.09.xsd

Large diffs are not rendered by default.

2,070 changes: 2,070 additions & 0 deletions xsd/cash_management/camt.054/camt.054.001.10.xsd

Large diffs are not rendered by default.

2,078 changes: 2,078 additions & 0 deletions xsd/cash_management/camt.054/camt.054.001.11.xsd

Large diffs are not rendered by default.

File renamed without changes.
File renamed without changes.
465 changes: 465 additions & 0 deletions xsd/cash_management/camt.060/camt.060.001.03.xsd

Large diffs are not rendered by default.

478 changes: 478 additions & 0 deletions xsd/cash_management/camt.060/camt.060.001.04.xsd

Large diffs are not rendered by default.

562 changes: 562 additions & 0 deletions xsd/cash_management/camt.060/camt.060.001.05.xsd

Large diffs are not rendered by default.

562 changes: 562 additions & 0 deletions xsd/cash_management/camt.060/camt.060.001.06.xsd

Large diffs are not rendered by default.

0 comments on commit 2db58ed

Please sign in to comment.