- Add multi-invoice payment support (link one bank transaction to multiple invoices) - Add payment unlinking feature to correct wrong matches - Show linked payments, invoices and bank entries in transaction detail view - Allow linking already paid invoices to bank transactions - Update README with new features - Add CHANGELOG.md Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
130 lines
3 KiB
PHP
Executable file
130 lines
3 KiB
PHP
Executable file
<?php
|
|
|
|
namespace Fhp\Model;
|
|
|
|
use Fhp\Segment\TAN\HKTAN;
|
|
|
|
/**
|
|
* This is a placeholder used instead of a real {@link TanMode} in order to signal that the bank's HBCI interface
|
|
* supports no strong authentication whatsoever and thus also no TAN modes. While it should still support the
|
|
* PIN/TAN authentication scheme (that's the only one that this library implements), not supporting the TAN part of
|
|
* means, in times of PSD2 regulations, that the HBCI interface is limited to read-only operations (like reading
|
|
* accounts and statements) and a separate login (through an app or web UI) is required regularly for the HBCI
|
|
* access to keep working.
|
|
*/
|
|
final class NoPsd2TanMode implements TanMode
|
|
{
|
|
public const ID = -1;
|
|
|
|
/** {@inheritdoc} */
|
|
public function getId(): int
|
|
{
|
|
return self::ID;
|
|
}
|
|
|
|
/** {@inheritdoc} */
|
|
public function getName(): string
|
|
{
|
|
return 'No PSD2/TANs supported';
|
|
}
|
|
|
|
public function isProzessvariante2(): bool
|
|
{
|
|
return false;
|
|
}
|
|
|
|
/** {@inheritdoc} */
|
|
public function isDecoupled(): bool
|
|
{
|
|
return false;
|
|
}
|
|
|
|
/** {@inheritdoc} */
|
|
public function getChallengeLabel(): string
|
|
{
|
|
return '';
|
|
}
|
|
|
|
/** {@inheritdoc} */
|
|
public function getMaxChallengeLength(): int
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
/** {@inheritdoc} */
|
|
public function getMaxTanLength(): int
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
/** {@inheritdoc} */
|
|
public function getTanFormat(): int
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
/** {@inheritdoc} */
|
|
public function needsTanMedium(): bool
|
|
{
|
|
return false;
|
|
}
|
|
|
|
/** {@inheritdoc} */
|
|
public function getSmsAbbuchungskontoErforderlich(): bool
|
|
{
|
|
return false;
|
|
}
|
|
|
|
/** {@inheritdoc} */
|
|
public function getAuftraggeberkontoErforderlich(): bool
|
|
{
|
|
return false;
|
|
}
|
|
|
|
/** {@inheritdoc} */
|
|
public function getChallengeKlasseErforderlich(): bool
|
|
{
|
|
return false;
|
|
}
|
|
|
|
/** {@inheritdoc} */
|
|
public function getAntwortHhdUcErforderlich(): bool
|
|
{
|
|
return false;
|
|
}
|
|
|
|
/** {@inheritdoc} */
|
|
public function getMaxDecoupledChecks(): int
|
|
{
|
|
throw new \RuntimeException('Only allowed for decoupled TAN modes');
|
|
}
|
|
|
|
/** {@inheritdoc} */
|
|
public function getFirstDecoupledCheckDelaySeconds(): int
|
|
{
|
|
throw new \RuntimeException('Only allowed for decoupled TAN modes');
|
|
}
|
|
|
|
/** {@inheritdoc} */
|
|
public function getPeriodicDecoupledCheckDelaySeconds(): int
|
|
{
|
|
throw new \RuntimeException('Only allowed for decoupled TAN modes');
|
|
}
|
|
|
|
/** {@inheritdoc} */
|
|
public function allowsManualConfirmation(): bool
|
|
{
|
|
throw new \RuntimeException('Only allowed for decoupled TAN modes');
|
|
}
|
|
|
|
/** {@inheritdoc} */
|
|
public function allowsAutomatedPolling(): bool
|
|
{
|
|
throw new \RuntimeException('Only allowed for decoupled TAN modes');
|
|
}
|
|
|
|
public function createHKTAN(): HKTAN
|
|
{
|
|
throw new \AssertionError('HKTAN should not be needed when the bank does not support PSD2');
|
|
}
|
|
}
|