FIX
This commit is contained in:
parent
ee7947ae29
commit
f05e1679a0
@ -294,7 +294,7 @@ public function vehicleInscription(VehicleStoreRequest $request)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private function checkIfStolen(string $niv): bool
|
private function checkIfStolen(string $niv)
|
||||||
{
|
{
|
||||||
return $this->repuveService->verificarRobo($niv);
|
return $this->repuveService->verificarRobo($niv);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -67,7 +67,7 @@ public function consultarPadron(string $niv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private function parseVehicleResponse(string $soapResponse, string $niv): array
|
private function parseVehicleResponse(string $soapResponse, string $niv)
|
||||||
{
|
{
|
||||||
preg_match('/<return>(.*?)<\/return>/s', $soapResponse, $matches);
|
preg_match('/<return>(.*?)<\/return>/s', $soapResponse, $matches);
|
||||||
|
|
||||||
@ -145,7 +145,7 @@ private function parseVehicleResponse(string $soapResponse, string $niv): array
|
|||||||
/**
|
/**
|
||||||
* Verifica si un vehículo está reportado como robado
|
* Verifica si un vehículo está reportado como robado
|
||||||
*/
|
*/
|
||||||
public function verificarRobo(string $niv): bool
|
public function verificarRobo(string $niv)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$resultado = $this->consultarPadron($niv);
|
$resultado = $this->consultarPadron($niv);
|
||||||
@ -164,7 +164,7 @@ public function verificarRobo(string $niv): bool
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public function inscribirVehiculo(array $datos): array
|
public function inscribirVehiculo(array $datos)
|
||||||
{
|
{
|
||||||
$url = $this->baseUrl . $this->inscripcionEndpoint;
|
$url = $this->baseUrl . $this->inscripcionEndpoint;
|
||||||
|
|
||||||
@ -243,7 +243,7 @@ public function inscribirVehiculo(array $datos): array
|
|||||||
/**
|
/**
|
||||||
* Parsea la respuesta
|
* Parsea la respuesta
|
||||||
*/
|
*/
|
||||||
private function parsearRespuestaInscripcion(string $soapResponse): array
|
private function parsearRespuestaInscripcion(string $soapResponse)
|
||||||
{
|
{
|
||||||
// Retornar la respuesta completa
|
// Retornar la respuesta completa
|
||||||
return [
|
return [
|
||||||
@ -256,7 +256,7 @@ private function parsearRespuestaInscripcion(string $soapResponse): array
|
|||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
private function extraerContenidoSOAP(string $soapResponse): ?string
|
private function extraerContenidoSOAP(string $soapResponse)
|
||||||
{
|
{
|
||||||
// Intentar extraer el contenido del tag <return>
|
// Intentar extraer el contenido del tag <return>
|
||||||
preg_match('/<return>(.*?)<\/return>/s', $soapResponse, $matches);
|
preg_match('/<return>(.*?)<\/return>/s', $soapResponse, $matches);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user