diff --git a/test/Unit/Camt052/EndToEndTest.php b/test/Unit/Camt052/EndToEndTest.php index fd81640..277a634 100644 --- a/test/Unit/Camt052/EndToEndTest.php +++ b/test/Unit/Camt052/EndToEndTest.php @@ -48,12 +48,21 @@ protected function getV4Message(): Message return (new MessageFormat\V04)->getDecoder()->decode($dom); } + protected function getV6Message(): Message + { + $dom = new DOMDocument('1.0', 'UTF-8'); + $dom->load(__DIR__.'/Stubs/camt052.v6.xml'); + + return (new MessageFormat\V06())->getDecoder()->decode($dom); + } + public function testGroupHeader(): void { $messages = [ $this->getV1Message(), $this->getV2Message(), $this->getV4Message(), + $this->getV6Message(), ]; /** @var Message $message */ diff --git a/test/Unit/Camt052/Stubs/camt052.v6.xml b/test/Unit/Camt052/Stubs/camt052.v6.xml new file mode 100644 index 0000000..fec4c9f --- /dev/null +++ b/test/Unit/Camt052/Stubs/camt052.v6.xml @@ -0,0 +1,192 @@ + + + + + AAAASESS-FP-ACCR001 + 2007-10-18T12:30:00+01:00 + + COMPANY BVBA + + 12 Oxford Street + UK + + + + DABAIE2D + + Some other Id + Some other Issuer + + + + NL + + + 1 + true + + Group header additional information + + + AAAASESS-FP-ACCR001 + + 2 + true + + 12312 + 12312 + 2007-10-18T12:30:00+01:00 + + 2007-10-18T08:00:00+01:00 + 2007-10-18T12:30:00+01:00 + + CODU + + + CH2801234000123456789 + + + UNIFITS GmbH + + + + UBSWCHZH80A + UBS SWITZERLAND AG + + + + + + + ITBD + + + 10022.15 + CRDT +
+ 2020-04-04T13:45:34.414+02:00 +
+
+ + 200000 + DBIT + PDNG + +
2007-10-18
+
+ +
2007-10-18
+
+ ACSR160614165200001 + + + PMNT + + RCDT + DMCT + + + + Z04 + + + + + + UXC06140000015PI00001II00001 + UXC06140000015PI00001EE00001 + + 4.1 + CRDT + + + 4.1 + + + 3.79 + + + 3.79 + + USD + CHF + 0.9253030601 + + + + + + PMNT + + RCDT + DMCT + + + + Z04 + + + + 0.31 + + 0.31 + DBIT + false + + + 31 + + + + + + + UNIFITS + + + Example Creditor 6 - V1 + + Example Creditor Street 6 - V1 + 41 + 4141 + Example Creditor Town 6 - V1 + CH + + + + + CH2401234004141414141 + + + + UNIFITS GmbH + + + + CH2801234000123456789 + + + + + + + BANKCHBE + + + + + BANKCHZHXXX + + + + + Example Remittance - 6 - V1 + + + + Credit +
+ Additional Information +
+
+