Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unterstützung für "Segmentversion 3" #432

Merged
merged 1 commit into from
Jun 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions lib/Fhp/Action/GetSEPAAccounts.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
use Fhp\Segment\SPA\HISPA;
use Fhp\Segment\SPA\HKSPAv1;
use Fhp\Segment\SPA\HKSPAv2;
use Fhp\Segment\SPA\HKSPAv3;
use Fhp\UnsupportedException;

/**
Expand Down Expand Up @@ -56,6 +57,8 @@ protected function createRequest(BPD $bpd, ?UPD $upd)
return HKSPAv1::createEmpty();
case 2:
return HKSPAv2::createEmpty();
case 3:
return HKSPAv3::createEmpty();
default:
throw new UnsupportedException('Unsupported HKSPA version: ' . $hispas->getVersion());
}
Expand Down
13 changes: 13 additions & 0 deletions lib/Fhp/Segment/SPA/HISPASv3.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

namespace Fhp\Segment\SPA;

/**
* Segment: SEPA-Kontoverbindung anfordern, Parameter (Version 3)
*
* @link https://www.hbci-zka.de/dokumente/spezifikation_deutsch/fintsv3/FinTS_3.0_Messages_Geschaeftsvorfaelle_2015-08-07_final_version.pdf
* Section C.10.1.5)
*/
class HISPASv3 extends HISPASv2
{
}
14 changes: 14 additions & 0 deletions lib/Fhp/Segment/SPA/HISPAv3.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

namespace Fhp\Segment\SPA;

/**
* Segment: SEPA-Kontoverbindung rückmelden (Version 3)
* Bezugssegment: HKSPA
*
* @link https://www.hbci-zka.de/dokumente/spezifikation_deutsch/fintsv3/FinTS_3.0_Messages_Geschaeftsvorfaelle_2015-08-07_final_version.pdf
* Section C.10.1.5)
*/
class HISPAv3 extends HISPAv2
{
}
14 changes: 14 additions & 0 deletions lib/Fhp/Segment/SPA/HKSPAv3.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php
/** @noinspection PhpUnused */

namespace Fhp\Segment\SPA;

/**
* Segment: SEPA-Kontoverbindung anfordern (Version 3)
*
* @link https://www.hbci-zka.de/dokumente/spezifikation_deutsch/fintsv3/FinTS_3.0_Messages_Geschaeftsvorfaelle_2015-08-07_final_version.pdf
* Section C.10.1.5)
*/
class HKSPAv3 extends HKSPAv2
{
}
25 changes: 25 additions & 0 deletions lib/Fhp/Segment/SPA/ParameterSepaKontoverbindungAnfordernV3.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php
/** @noinspection PhpUnused */

namespace Fhp\Segment\SPA;

use Fhp\Segment\BaseDeg;

/**
* Data Element Group: Parameter SEPA-Kontoverbindung anfordern (Version 3)
*
* @link https://www.hbci-zka.de/dokumente/spezifikation_deutsch/fintsv3/FinTS_3.0_Messages_Geschaeftsvorfaelle_2015-08-07_final_version.pdf
* Section: D (letter P)
*/
class ParameterSepaKontoverbindungAnfordernV3 extends BaseDeg implements ParameterSepaKontoverbindungAnfordern
{
use GetUnterstuetzteSepaDatenformateTrait;

public bool $einzelkontenabrufErlaubt;
public bool $nationaleKontoverbindungErlaubt;
public bool $strukturierterVerwendungszweckErlaubt;
public bool $eingabeAnzahlEintraegeErlaubt;
public int $anzahlReservierterVerwendungszweckstellen;
/** @var string[] @Max(99) Max length each: 256 */
public array $unterstuetzteSepaDatenformate;
}