Add minute-based billing and lane management extensions to self-serve module

- Introduced `selfserve_lane_command_arguments` class for managing lane command parameters (e.g., customer number, license plate).
- Added traits for handling lane timer, invoice generation, license plate, and customer number management.
- Implemented minute-based billing logic with `selfserve_minute_product_c` configuration.
- Enhanced `selfserve_lane` with new behaviors: command arguments, invoicing, and time handling.
- Added `/modules/self-serve/lane/command` route for executing lane commands (START, STOP, RESET).
- Updated `/modules/self-serve/lane/status` route to include additional lane details (wash start, elapsed time, license plate, etc.).
- Improved Shelly device relay control for port management.
This commit is contained in:
Jeppe Bundgaard
2025-12-08 23:05:35 +01:00
parent cc6639e61b
commit 1b914b546e
18 changed files with 533 additions and 17 deletions
+10
View File
@@ -249,6 +249,16 @@ trait route_t
return self::hasPermission('department_access_' . $department . ($permission ? '_' . $permission : ''));
}
/**
* Get parameters as an array from the request
* @return array
*/
public function getParametersAsArray(): array
{
global $response;
return $response->getAllRequestParameters();
}
/**
* Require permission
* @param string $permission