mercadounico/mu-service

Mercado Ășnico service

This package's canonical repository appears to be gone and the package has been frozen as a result.

v2.0.14 2024-04-14 14:19 UTC

This package is auto-updated.

Last update: 2024-04-14 14:23:11 UTC


README

$muClient = new \MercadoUnico\MuClient\MuClient($username, $password, $sandBoxMode);
$muService = new \MercadoUnico\MuService\Services\MuService($muClient, $alquilerId, $compraVentaId);

Propiedades

$propiedad = $muService->findPropiedad($propiedadId);

$query = new \MercadoUnico\MuService\Util\Query($inmobiliariaId);
$query
    ->q('Santiago')
    ->limit(10);

$propiedades = $muService->search($query);

$query = new \MercadoUnico\MuService\Util\Query($inmobiliariaId);
$query
    ->min(1000)
    ->max(50000)
    ->operacion($alquilerId)
    ->ciudad($ciudadId)
    ->limit(10);

$propiedades = $muService->search($query);

Ciudades

$ciudad = $muService->findCiudad($ciudadId);

$ciudades = $muService->getCiudades();

Tipo de propiedades

$tipoPropiedad = $muService->findTipoPropiedad($departamentoId);

$tiposPropiedad = $muService->getTiposDePropiedad();

Operaciones

$operaciones = $muService->getOperaciones();