Skip to content

Commit

Permalink
Merge pull request #316 from Ubiquiti-App/feature/fio-plugin-settings…
Browse files Browse the repository at this point in the history
…-form-validation-fix

FIO plugin - settings form validation fix
  • Loading branch information
janprochazkacz authored Jan 5, 2024
2 parents 52b7548 + cc22bd9 commit 035c541
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 44 deletions.
Binary file modified plugins/fio_cz/fio_cz.zip
Binary file not shown.
16 changes: 11 additions & 5 deletions 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.8",
"version": "1.2.9",
"unmsVersionCompliancy": {
"min": "2.1.0",
"max": null
Expand Down Expand Up @@ -37,20 +37,26 @@
{
"key": "importUnattached",
"label": "Import all payments.",
"description": "Import all payments. Payments without match will be imported as \"Unattached payments\". Fill 1 to enable or 0 to disable this feature (when disabled, the unmatched payment will only be logged and skipped).",
"required": 1,
"description": "Import all payments. Payments without match will be imported as \"Unattached payments\". When disabled, the unmatched payment will only be logged and skipped.",
"required": 0,
"type": "checkbox"
},
{
"key": "lastProcessedPayment",
"label": "Last processed payment",
"label": "Last processed payment ID (readonly)",
"description": "Internal payment tracking to avoid duplicate processing of the same payment",
"required": 0,
"type": "text"
},
{
"key": "lastProcessedPaymentDateTime",
"label": "Last processed payment date and time (readonly)",
"required": 0,
"type": "datetime"
},
{
"key": "lastProcessedTimestamp",
"label": "Last time the payment list was requested",
"label": "Last time the payment list was requested (readonly)",
"description": "Internal timestamp tracking to politely avoid API request rate limits",
"required": 0,
"type": "text"
Expand Down
47 changes: 13 additions & 34 deletions plugins/fio_cz/src/src/Data/PluginData.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,38 +6,17 @@

class PluginData extends UcrmData
{
/**
* @var string
*/
public $lastProcessedPayment;

/**
* @var string
*/
public $paymentMatchAttribute;

/**
* @var string
*/
public $startDate;

/**
* @var string
*/
public $token;

/**
* @var string
*/
public $lastProcessedTimestamp;

/**
* @var string
*/
public $importUnattached;

/**
* @var string
*/
public $lastProcessedPaymentDateTime;
public string $lastProcessedPayment;

public string $paymentMatchAttribute;

public string $startDate;

public string $token;

public string $lastProcessedTimestamp;

public string $importUnattached;

public string $lastProcessedPaymentDateTime;
}
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.8",
"version": "1.2.9",
"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.8",
"version": "1.2.9",
"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.8",
"version": "1.2.9",
"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.8",
"version": "1.2.9",
"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.8",
"version": "1.2.9",
"unmsVersionCompliancy": {
"min": "2.1.0",
"max": null
Expand Down

0 comments on commit 035c541

Please sign in to comment.