diff --git a/plugins/fio_cz/fio_cz.zip b/plugins/fio_cz/fio_cz.zip index 03b83172..7c561104 100644 Binary files a/plugins/fio_cz/fio_cz.zip and b/plugins/fio_cz/fio_cz.zip differ diff --git a/plugins/fio_cz/src/manifest.json b/plugins/fio_cz/src/manifest.json index 86327e61..a7c340d1 100644 --- a/plugins/fio_cz/src/manifest.json +++ b/plugins/fio_cz/src/manifest.json @@ -5,7 +5,7 @@ "displayName": "Fio bank payment import", "description": "This plugin enables you to import payments from Fio bank to UCRM. See https://www.fio.cz/bankovni-sluzby/api-bankovnictvi", "url": "https://github.com/Ubiquiti-App/UCRM-plugins/tree/master/plugins/fio_cz", - "version": "1.2.9", + "version": "1.2.10", "unmsVersionCompliancy": { "min": "2.1.0", "max": null diff --git a/plugins/fio_cz/src/src/Data/PluginData.php b/plugins/fio_cz/src/src/Data/PluginData.php index 1921e011..365dead5 100644 --- a/plugins/fio_cz/src/src/Data/PluginData.php +++ b/plugins/fio_cz/src/src/Data/PluginData.php @@ -6,17 +6,17 @@ class PluginData extends UcrmData { - public string $lastProcessedPayment; + public ?string $lastProcessedPayment = null; - public string $paymentMatchAttribute; + public ?string $paymentMatchAttribute = null; - public string $startDate; + public ?string $startDate = null; - public string $token; + public ?string $token = null; - public string $lastProcessedTimestamp; + public ?string $lastProcessedTimestamp = null; - public string $importUnattached; + public ?string $importUnattached = null; - public string $lastProcessedPaymentDateTime; + public ?string $lastProcessedPaymentDateTime = null; } diff --git a/plugins/fio_cz/src/src/Importer.php b/plugins/fio_cz/src/src/Importer.php index db9ce6a0..e3e2bcb6 100644 --- a/plugins/fio_cz/src/src/Importer.php +++ b/plugins/fio_cz/src/src/Importer.php @@ -120,12 +120,12 @@ public function import(): void } catch (Exception\CurlException $exception) { switch ($exception->getCode()) { case 409: - $optionsData->lastProcessedTimestamp = time(); + $optionsData->lastProcessedTimestamp = (string) time(); $this->optionsManager->updateOptions(); $this->logger->warning('HTTP Error 409 returned - usage limit exhausted, wait for 30s'); break; case 500: - $optionsData->lastProcessedTimestamp = time(); + $optionsData->lastProcessedTimestamp = (string) time(); $this->optionsManager->updateOptions(); $this->logger->error('HTTP Error 500 returned - is token valid and not expired?'); break; diff --git a/plugins_2.1.x.json b/plugins_2.1.x.json index adad652a..ab27afec 100644 --- a/plugins_2.1.x.json +++ b/plugins_2.1.x.json @@ -31,7 +31,7 @@ "displayName": "Fio bank payment import", "description": "This plugin enables you to import payments from Fio bank to UCRM. See https:\/\/www.fio.cz\/bankovni-sluzby\/api-bankovnictvi", "url": "https:\/\/github.com\/Ubiquiti-App\/UCRM-plugins\/tree\/master\/plugins\/fio_cz", - "version": "1.2.9", + "version": "1.2.10", "unmsVersionCompliancy": { "min": "2.1.0", "max": null diff --git a/plugins_2.2.x.json b/plugins_2.2.x.json index adad652a..ab27afec 100644 --- a/plugins_2.2.x.json +++ b/plugins_2.2.x.json @@ -31,7 +31,7 @@ "displayName": "Fio bank payment import", "description": "This plugin enables you to import payments from Fio bank to UCRM. See https:\/\/www.fio.cz\/bankovni-sluzby\/api-bankovnictvi", "url": "https:\/\/github.com\/Ubiquiti-App\/UCRM-plugins\/tree\/master\/plugins\/fio_cz", - "version": "1.2.9", + "version": "1.2.10", "unmsVersionCompliancy": { "min": "2.1.0", "max": null diff --git a/plugins_2.3.x.json b/plugins_2.3.x.json index c5d31de7..b86eb95f 100644 --- a/plugins_2.3.x.json +++ b/plugins_2.3.x.json @@ -31,7 +31,7 @@ "displayName": "Fio bank payment import", "description": "This plugin enables you to import payments from Fio bank to UCRM. See https:\/\/www.fio.cz\/bankovni-sluzby\/api-bankovnictvi", "url": "https:\/\/github.com\/Ubiquiti-App\/UCRM-plugins\/tree\/master\/plugins\/fio_cz", - "version": "1.2.9", + "version": "1.2.10", "unmsVersionCompliancy": { "min": "2.1.0", "max": null diff --git a/plugins_2.4.x.json b/plugins_2.4.x.json index c5d31de7..b86eb95f 100644 --- a/plugins_2.4.x.json +++ b/plugins_2.4.x.json @@ -31,7 +31,7 @@ "displayName": "Fio bank payment import", "description": "This plugin enables you to import payments from Fio bank to UCRM. See https:\/\/www.fio.cz\/bankovni-sluzby\/api-bankovnictvi", "url": "https:\/\/github.com\/Ubiquiti-App\/UCRM-plugins\/tree\/master\/plugins\/fio_cz", - "version": "1.2.9", + "version": "1.2.10", "unmsVersionCompliancy": { "min": "2.1.0", "max": null diff --git a/plugins_2.5.x.json b/plugins_2.5.x.json index c5d31de7..b86eb95f 100644 --- a/plugins_2.5.x.json +++ b/plugins_2.5.x.json @@ -31,7 +31,7 @@ "displayName": "Fio bank payment import", "description": "This plugin enables you to import payments from Fio bank to UCRM. See https:\/\/www.fio.cz\/bankovni-sluzby\/api-bankovnictvi", "url": "https:\/\/github.com\/Ubiquiti-App\/UCRM-plugins\/tree\/master\/plugins\/fio_cz", - "version": "1.2.9", + "version": "1.2.10", "unmsVersionCompliancy": { "min": "2.1.0", "max": null