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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user