Snopp/Citycom Service Order Api

This commit is contained in:
Frank Schubert
2025-08-18 18:04:06 +02:00
parent 4af4622357
commit 2322226712
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -309,7 +309,7 @@ class Citycom_OanApiClient {
return true; return true;
} }
private function runApiRequest($url, $ctx_opts, $url_params = [], $page_num = 1) { private function runApiRequest($url, $ctx_opts, $url_params = [], $page_num = 1) : mixed {
$current_page = $page_num; $current_page = $page_num;
$return_data = []; $return_data = [];
+4 -4
View File
@@ -165,7 +165,7 @@ class Citycom_OanApiHelper {
//continue; //continue;
// register new Service with Citycom // register new Service with Citycom
/*$new_service = $this->api->createService($service_data); $new_service = $this->api->createService($service_data);
if(!$new_service) { if(!$new_service) {
$this->log->error(__METHOD__.": Error creating service"); $this->log->error(__METHOD__.": Error creating service");
@@ -182,9 +182,9 @@ class Citycom_OanApiHelper {
"serial" => $new_service->ont->serial, "serial" => $new_service->ont->serial,
"fsan" => $new_service->ont->fsan, "fsan" => $new_service->ont->fsan,
], ],
];*/ ];
$service_return[] = [ /*$service_return[] = [
"sublocation_id" => $sublocation_id, "sublocation_id" => $sublocation_id,
"service_number" => "30-fggreger-01", "service_number" => "30-fggreger-01",
"service_type" => $ctag_service_type, "service_type" => $ctag_service_type,
@@ -193,7 +193,7 @@ class Citycom_OanApiHelper {
"serial" => "ONT123456", "serial" => "ONT123456",
"fsan" => "FSAN7890", "fsan" => "FSAN7890",
], ],
]; ];*/
// save ctag // save ctag
$ctag_data = $preorder_ctag_data; $ctag_data = $preorder_ctag_data;