Skip to content

Commit

Permalink
FIO plugin - settings form validation fix 2
Browse files Browse the repository at this point in the history
  • Loading branch information
janprochazkacz committed Jan 10, 2024
1 parent 035c541 commit 05e6730
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 15 deletions.
Binary file modified plugins/fio_cz/fio_cz.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion plugins/fio_cz/src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 7 additions & 7 deletions plugins/fio_cz/src/src/Data/PluginData.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
4 changes: 2 additions & 2 deletions plugins/fio_cz/src/src/Importer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion plugins_2.1.x.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion plugins_2.2.x.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion plugins_2.3.x.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion plugins_2.4.x.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion plugins_2.5.x.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 05e6730

Please sign in to comment.