Add customer listing and import functionality for Economic

Implemented endpoints to list and import customers from the Economic API, including query filtering, pagination, and validation. Added supporting trait methods, database functions, and error handling. Expanded the user object for Economic integration and introduced utilities for type checking and parameter extraction.
This commit is contained in:
Jepp9350
2025-02-13 12:50:35 +01:00
parent 7525a89154
commit 2151cf2b7b
10 changed files with 336 additions and 1 deletions
+1 -1
View File
@@ -128,7 +128,7 @@ class response implements response_i
$this->data[$key] = $value;
}
public function getRequestParameter(string $key): string|null
public function getRequestParameter(string $key): mixed
{
// Get the request data if the method is POST, PUT or PATCH
if ($_SERVER['REQUEST_METHOD'] === 'POST' || $_SERVER['REQUEST_METHOD'] === 'PUT' || $_SERVER['REQUEST_METHOD'] === 'PATCH') {