mirror of
https://github.com/Karaka-Management/oms-BankAccounting.git
synced 2026-02-15 07:18:41 +00:00
auto fixes + some impl.
This commit is contained in:
parent
2c3181e3b3
commit
00bcd59205
0
Models/Parser/ReadPain001.001.11.php
Normal file
0
Models/Parser/ReadPain001.001.11.php
Normal file
0
Models/Parser/ReadPain008.001.10.php
Normal file
0
Models/Parser/ReadPain008.001.10.php
Normal file
0
Models/Parser/WritePain001.001.11.php
Normal file
0
Models/Parser/WritePain001.001.11.php
Normal file
84
Models/Parser/WritePain008.001.10.php
Normal file
84
Models/Parser/WritePain008.001.10.php
Normal file
|
|
@ -0,0 +1,84 @@
|
||||||
|
<?php
|
||||||
|
declare(strict_types=1);
|
||||||
|
$xml = <<<PAIN_START
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<Document xmlns="urn:iso:std:iso:20022:tech:xsd:pain.001.001.11" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||||
|
<CstmrCdtTrfInitn>
|
||||||
|
<GrpHdr>
|
||||||
|
<MsgId>ABC123</MsgId>
|
||||||
|
<CreDtTm>2023-06-07T10:30:00</CreDtTm>
|
||||||
|
<NbOfTxs>1</NbOfTxs>
|
||||||
|
<CtrlSum>123.45</CtrlSum>
|
||||||
|
<InitgPty>
|
||||||
|
<Nm>Mein Unternehmen</Nm>
|
||||||
|
</InitgPty>
|
||||||
|
</GrpHdr>
|
||||||
|
<PmtInf>
|
||||||
|
<PmtInfId>DEF456</PmtInfId>
|
||||||
|
<PmtMtd>TRF</PmtMtd>
|
||||||
|
<PmtTpInf><SvcLvl><Cd>SEPA</Cd></SvcLvl></PmtTpInf>
|
||||||
|
<NbOfTxs>1</NbOfTxs>
|
||||||
|
<ChrgBr>SLEV</ChrgBr>
|
||||||
|
<CtrlSum>123.45</CtrlSum>
|
||||||
|
<ReqdExctnDt><Dt>2023-06-08</Dt></ReqdExctnDt>
|
||||||
|
<Dbtr>
|
||||||
|
<Nm>Mein Unternehmen</Nm>
|
||||||
|
<PstlAdr>
|
||||||
|
<StrtNm>Alt Karlo</StrtNm>
|
||||||
|
<BldgNb>31a</BldgNb>
|
||||||
|
<PstCd>3 OG</PstCd>
|
||||||
|
<TwnNm>Bayern</TwnNm>
|
||||||
|
<Ctry>DE</Ctry>
|
||||||
|
</PstlAdr>
|
||||||
|
</Dbtr>
|
||||||
|
<DbtrAcct>
|
||||||
|
<Id>
|
||||||
|
<IBAN>DE89370400440532013000</IBAN>
|
||||||
|
</Id>
|
||||||
|
<Ccy>EUR</Ccy>
|
||||||
|
</DbtrAcct>
|
||||||
|
<DbtrAgt>
|
||||||
|
<FinInstnId>
|
||||||
|
<BICFI>COBADEFF370</BICFI>
|
||||||
|
</FinInstnId>
|
||||||
|
</DbtrAgt>
|
||||||
|
PAIN_START;
|
||||||
|
|
||||||
|
foreach ($payments as $payment) {
|
||||||
|
$xml .= <<<PAIN_MAIN
|
||||||
|
<CdtTrfTxInf>
|
||||||
|
<PmtId>
|
||||||
|
<EndToEndId>ENDTOEND/1234567890</EndToEndId>
|
||||||
|
</PmtId>
|
||||||
|
<Amt>
|
||||||
|
<InstdAmt Ccy="EUR">123.45</InstdAmt>
|
||||||
|
</Amt>
|
||||||
|
<CdtrAgt>
|
||||||
|
<FinInstnId>
|
||||||
|
<BICFI>MARKDEFF370</BICFI>
|
||||||
|
</FinInstnId>
|
||||||
|
</CdtrAgt>
|
||||||
|
<Cdtr>
|
||||||
|
<Nm>Empfänger</Nm>
|
||||||
|
</Cdtr>
|
||||||
|
<CdtrAcct>
|
||||||
|
<Id>
|
||||||
|
<IBAN>DE93100000000123456789</IBAN>
|
||||||
|
</Id>
|
||||||
|
</CdtrAcct>
|
||||||
|
<RmtInf>
|
||||||
|
<Ustrd>Rechnung #123</Ustrd>
|
||||||
|
</RmtInf>
|
||||||
|
</CdtTrfTxInf>
|
||||||
|
PAIN_MAIN;
|
||||||
|
|
||||||
|
// consider to use <Strd> instead of <Ustrd> where possible
|
||||||
|
// consider to use <Invcr>
|
||||||
|
// how to mix international pay?
|
||||||
|
}
|
||||||
|
|
||||||
|
$xml .= <<<PAIN_END
|
||||||
|
</PmtInf>
|
||||||
|
</CstmrCdtTrfInitn>
|
||||||
|
</Document>
|
||||||
|
PAIN_END;
|
||||||
1244
Models/schema/pain.001.001.11.xsd
Normal file
1244
Models/schema/pain.001.001.11.xsd
Normal file
File diff suppressed because it is too large
Load Diff
1128
Models/schema/pain.008.001.10.xsd
Normal file
1128
Models/schema/pain.008.001.10.xsd
Normal file
File diff suppressed because it is too large
Load Diff
|
|
@ -1,4 +1,15 @@
|
||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* Jingga
|
||||||
|
*
|
||||||
|
* PHP Version 8.1
|
||||||
|
*
|
||||||
|
* @package Modules\BankAccounting\tests
|
||||||
|
* @copyright Dennis Eichhorn
|
||||||
|
* @license OMS License 2.0
|
||||||
|
* @version 1.0.0
|
||||||
|
* @link https://jingga.app
|
||||||
|
*/
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
\ini_set('memory_limit', '2048M');
|
\ini_set('memory_limit', '2048M');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user