Compare commits
2 Commits
46efbb57c1
...
37cff67a1c
Author | SHA1 | Date | |
---|---|---|---|
37cff67a1c | |||
bc3d739af9 |
@ -47,7 +47,7 @@ class Customer extends Ideal\Repository
|
||||
|
||||
/**
|
||||
* @param string $rut
|
||||
* @return \Incoviba\Model\Venta\MediosPago\Toku\Customer
|
||||
* @return Model\Venta\MediosPago\Toku\Customer
|
||||
* @throws Implement\Exception\EmptyResult
|
||||
*/
|
||||
public function fetchByRut(string $rut): Model\Venta\MediosPago\Toku\Customer
|
||||
@ -68,7 +68,7 @@ class Customer extends Ideal\Repository
|
||||
|
||||
/**
|
||||
* @param string $toku_id
|
||||
* @return \Incoviba\Model\Venta\MediosPago\Toku\Customer
|
||||
* @return Model\Venta\MediosPago\Toku\Customer
|
||||
* @throws Implement\Exception\EmptyResult
|
||||
*/
|
||||
public function fetchByTokuId(string $toku_id): Model\Venta\MediosPago\Toku\Customer
|
||||
|
@ -107,7 +107,7 @@ class Persona extends Ideal\Service
|
||||
/**
|
||||
* @param array $ruts
|
||||
* @param bool $load
|
||||
* @return array
|
||||
* @return array|null
|
||||
* @throws Create
|
||||
* @throws Read
|
||||
*/
|
||||
@ -120,7 +120,7 @@ class Persona extends Ideal\Service
|
||||
}
|
||||
$data = [];
|
||||
$datos = [];
|
||||
foreach ($propietarios as $i => $propietario) {
|
||||
foreach ($propietarios as $propietario) {
|
||||
$data []= [
|
||||
'rut' => $propietario->rut,
|
||||
'digito' => $propietario->dv,
|
||||
|
@ -55,6 +55,7 @@ class Customer extends AbstractEndPoint
|
||||
$this->logger->warning($exception);
|
||||
return [];
|
||||
}
|
||||
$this->logger->info('Resetando ' . count($customers) . ' clientes');
|
||||
foreach ($customers as $customer) {
|
||||
try {
|
||||
$this->delete($customer->toku_id);
|
||||
|
Reference in New Issue
Block a user