-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TASK] Add support for
052.001.08
and 053.001.08
* added xsd files to assets folder: - assets/camt.052.001.08.xsd - assets/camt.053.001.08.xsd * added support for 052.001.08: - added message-format and decoder for 052.001.08 - added camt052.v8.xml test file - added message v8 to EndToEnd tests - added 052.08 message to default config and adjusted default config test - added json file for regression test * added support for 053.001.08: - added message-format for 053.001.08 - added camt053.v8.xml test file - added 053.08 message to default config and adjusted default config test - added json file for regression test * documented as supported in README.md >> Same read capabilities are ensured like the versions before. Some new entities and attributes are missing and can be implemented in a dedicated change. Resolves: #142 Related: #124 Related: #126
- Loading branch information
Showing
15 changed files
with
5,028 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Genkgo\Camt\Camt052\Decoder\V08; | ||
|
||
use Genkgo\Camt\Camt052\Decoder\Message as BaseMessageDecoder; | ||
use SimpleXMLElement; | ||
|
||
class Message extends BaseMessageDecoder | ||
{ | ||
/** | ||
* @inheritDoc | ||
*/ | ||
public function getRootElement(SimpleXMLElement $document): SimpleXMLElement | ||
{ | ||
return $document->BkToCstmrAcctRpt; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Genkgo\Camt\Camt052\MessageFormat; | ||
|
||
use Genkgo\Camt\Camt052; | ||
use Genkgo\Camt\Decoder; | ||
use Genkgo\Camt\DecoderInterface; | ||
use Genkgo\Camt\MessageFormatInterface; | ||
|
||
final class V08 implements MessageFormatInterface | ||
{ | ||
public function getXmlNs(): string | ||
{ | ||
return 'urn:iso:std:iso:20022:tech:xsd:camt.052.001.08'; | ||
} | ||
|
||
public function getMsgId(): string | ||
{ | ||
return 'camt.052.001.08'; | ||
} | ||
|
||
public function getName(): string | ||
{ | ||
return 'BankToCustomerAccountReportV08'; | ||
} | ||
|
||
public function getDecoder(): DecoderInterface | ||
{ | ||
$entryTransactionDetailDecoder = new Camt052\Decoder\EntryTransactionDetail(new Decoder\Date()); | ||
$entryDecoder = new Decoder\Entry($entryTransactionDetailDecoder); | ||
$recordDecoder = new Decoder\Record($entryDecoder, new Decoder\Date()); | ||
$messageDecoder = new Camt052\Decoder\V08\Message($recordDecoder, new Decoder\Date()); | ||
|
||
return new Decoder($messageDecoder, sprintf('/assets/%s.xsd', $this->getMsgId())); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Genkgo\Camt\Camt053\MessageFormat; | ||
|
||
use Genkgo\Camt\Camt053; | ||
use Genkgo\Camt\Decoder; | ||
use Genkgo\Camt\DecoderInterface; | ||
use Genkgo\Camt\MessageFormatInterface; | ||
|
||
final class V08 implements MessageFormatInterface | ||
{ | ||
public function getXmlNs(): string | ||
{ | ||
return 'urn:iso:std:iso:20022:tech:xsd:camt.053.001.08'; | ||
} | ||
|
||
public function getMsgId(): string | ||
{ | ||
return 'camt.053.001.08'; | ||
} | ||
|
||
public function getName(): string | ||
{ | ||
return 'BankToCustomerStatementV08'; | ||
} | ||
|
||
public function getDecoder(): DecoderInterface | ||
{ | ||
$entryTransactionDetailDecoder = new Camt053\Decoder\EntryTransactionDetail(new Decoder\Date()); | ||
$entryDecoder = new Decoder\Entry($entryTransactionDetailDecoder); | ||
$recordDecoder = new Decoder\Record($entryDecoder, new Decoder\Date()); | ||
$messageDecoder = new Camt053\Decoder\Message($recordDecoder, new Decoder\Date()); | ||
|
||
return new Decoder($messageDecoder, sprintf('/assets/%s.xsd', $this->getMsgId())); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.