Skip to content
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
10 changes: 10 additions & 0 deletions lib/Fhp/FinTs.php
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,16 @@ private function processServerResponse(BaseAction $action, Message $response): v
if ($action instanceof PaginateableAction && $action->hasMorePages()) {
$this->execute($action);
}

// Check whether the server requested a Kundensystem-ID refresh.
if ($response->findRueckmeldung(Rueckmeldungscode::NEUE_KUNDENSYSTEM_ID_HOLEN) !== null) {
// TODO Properly implement the refresh here, see https://github.com/nemiah/phpFinTS/issues/458.
$this->logger->warning(
'The server asked us to refresh the Kundensystem-ID in response to a ' . gettype($action) .
' action, but that is not implemented yet. This could result in authentication errors or extraneous ' .
' re-authentication prompts from the bank.'
);
}
}

/**
Expand Down
8 changes: 8 additions & 0 deletions lib/Fhp/Segment/HIRMS/Rueckmeldungscode.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

namespace Fhp\Segment\HIRMS;

use Fhp\Protocol\DialogInitialization;

/**
* Enum for the response codes that the server can send.
*
Expand Down Expand Up @@ -128,6 +130,12 @@ public static function isError(int $code): bool
*/
public const TEILWEISE_FEHLERHAFT = 9050;

/**
* Neue Kundensystem-ID anfordern.
* Als Antwort auf eine Dialoginitialisierungsnachricht ({@link DialogInitialization}).
*/
public const NEUE_KUNDENSYSTEM_ID_HOLEN = 9391;

/**
* Kreditinstitutsseitige Beendigung des Dialoges
*/
Expand Down