dolibarr.bankimport/vendor/nemiah/php-fints/lib/Fhp/Options/FinTsOptions.php
data 1fc10d3781 Version 1.1: PDF-Kontoauszüge, Dashboard, Menü-Integration
- Mehrfach-Upload von PDF-Kontoauszügen mit automatischer Metadaten-Erkennung
- Dashboard mit Übersichts-Widgets (letzte Buchungen und Kontoauszüge)
- Menü-Integration unter "Banken und Kasse" statt eigenem Top-Menü
- Erinnerungsfunktion bei veralteten Kontoauszügen (konfigurierbar)
- Verknüpfung von Buchungen mit PDF-Kontoauszügen
- Auszugsnummer wird automatisch aus dem Zeitraum abgeleitet (Monat/Jahr)
- Jahrfilter zeigt nur Jahre mit vorhandenen Kontoauszügen
- Modul-Icon auf fa-money-check-alt gesetzt
- README und ChangeLog aktualisiert
- .gitignore für Kontoauszüge und Build-Artefakte hinzugefügt

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-14 19:11:46 +01:00

70 lines
2.4 KiB
PHP
Executable file

<?php
namespace Fhp\Options;
/**
* Holds options for FinTS connections and operations. These options are independent of the user and depend only on the
* bank system and the client system that uses this library. This class mostly serves to pass the data around internally
* within the library.
*/
class FinTsOptions
{
/**
* Identifies the product (i.e. the application in which the phpFinTS library is being used). This is used to show
* users which products/applications have access to their bank account. Note that this shouldn't just be an
* arbitrary string, but rather the registration number obtained from the registration with the DK-Verband.
* @link https://www.hbci-zka.de/register/prod_register.htm
* @var string
*/
public $productName;
/**
* The product version, which can be an arbitrary string, though if your the application displays a version number
* somewhere on its own user interface, it should match that.
* @var string
*/
public $productVersion;
/**
* The bank code (Bankleitzahl) of the bank. Note that this library uses a fixed country code of 280, i.e. it only
* works with German banks.
* @var string
*/
public $bankCode;
/**
* The URL where the bank server can be reached. Should be HTTPS, otherwise the traffic is not encrypted. May
* include a port number.
* Example: "https://my-bank.de/fints".
* @var string
*/
public $url;
/** @var int */
public $timeoutConnect = 15;
/** @var int */
public $timeoutResponse = 30;
/**
* @throws \InvalidArgumentException If the options are invalid.
*/
public function validate()
{
$this->productName = trim($this->productName);
$this->productVersion = trim($this->productVersion);
$this->bankCode = trim($this->bankCode);
$this->url = trim($this->url);
if (strlen($this->productName) === 0) {
throw new \InvalidArgumentException('Product name required!');
}
if (strlen($this->productVersion) === 0) {
throw new \InvalidArgumentException('Product version required!');
}
if (strlen($this->bankCode) === 0) {
throw new \InvalidArgumentException('Bank code required!');
}
if (strlen($this->url) === 0) {
throw new \InvalidArgumentException('Server URL required!');
}
}
}