Parametros correctos
This commit is contained in:
@ -127,7 +127,7 @@ class Invoice extends AbstractEndPoint
|
||||
$params[$key] = $data['cuota']->id;
|
||||
continue;
|
||||
}
|
||||
if (array_key_exists($ref, $data)) {
|
||||
if (array_key_exists($ref, $data) and $data[$ref] !== '' and $data[$ref] !== null) {
|
||||
$params[$key] = $data[$ref];
|
||||
}
|
||||
}
|
||||
@ -149,11 +149,11 @@ class Invoice extends AbstractEndPoint
|
||||
return $mappedData;
|
||||
}
|
||||
|
||||
protected function datosCuota(Model\Venta\Cuota $cuota): string
|
||||
protected function datosCuota(Model\Venta\Cuota $cuota): array
|
||||
{
|
||||
return json_encode([
|
||||
return [
|
||||
'numero' => $cuota->numero,
|
||||
'monto_clp' => $cuota->pago->valor
|
||||
]);
|
||||
];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user