diff --git a/app/Http/Controllers/Repuve/InscriptionController.php b/app/Http/Controllers/Repuve/InscriptionController.php index d858349..c1ba526 100644 --- a/app/Http/Controllers/Repuve/InscriptionController.php +++ b/app/Http/Controllers/Repuve/InscriptionController.php @@ -450,4 +450,16 @@ private function getOwner(string $niv): array $datos = $this->padronEstatalService->getVehiculoByNiv($niv); return $this->padronEstatalService->extraerDatosPropietario($datos); } + + private function getVehicleByPlaca(string $placa): array + { + $datos = $this->padronEstatalService->getVehiculoByPlaca($placa); + return $this->padronEstatalService->extraerDatosVehiculo($datos); + } + + private function getOwnerByPlaca(string $placa): array + { + $datos = $this->padronEstatalService->getVehiculoByPlaca($placa); + return $this->padronEstatalService->extraerDatosPropietario($datos); + } } diff --git a/app/Services/PadronEstatalService.php b/app/Services/PadronEstatalService.php index 3a4b5c8..6f5eb4f 100644 --- a/app/Services/PadronEstatalService.php +++ b/app/Services/PadronEstatalService.php @@ -33,8 +33,6 @@ public function getVehiculoByFolio(string $folio): array */ private function consultarPadron(string $tipo, string $valor): array { - $tipo = 'niv'; - // Construir el Data en formato JSON $data = json_encode([ 'tipo' => $tipo,