Opcion de enviar update a los servicios externos
This commit is contained in:
@ -214,7 +214,9 @@ class Toku extends Ideal\Service
|
||||
'telefono' => $propietario->datos?->telefono ?? ''
|
||||
];
|
||||
$this->customer->edit($customer['toku_id'], $editData);
|
||||
} catch (EmptyResponse) {}
|
||||
} catch (EmptyResponse $exception) {
|
||||
$this->logger->warning($exception);
|
||||
}
|
||||
foreach ($cuotas as $cuota) {
|
||||
try {
|
||||
$invoice = $this->invoice->getById($cuota->id);
|
||||
@ -222,7 +224,8 @@ class Toku extends Ideal\Service
|
||||
'customer' => $customer['toku_id'],
|
||||
'product_id' => $subscription->venta->id,
|
||||
'subscription' => $subscription->toku_id,
|
||||
'cuota' => $cuota
|
||||
'cuota' => $cuota,
|
||||
'venta' => $subscription->venta
|
||||
];
|
||||
try {
|
||||
$this->invoice->edit($invoice['toku_id'], $editData);
|
||||
@ -232,7 +235,8 @@ class Toku extends Ideal\Service
|
||||
'customer' => $customer['toku_id'],
|
||||
'product_id' => $subscription->venta->id,
|
||||
'subscription' => $subscription->toku_id,
|
||||
'cuota' => $cuota
|
||||
'cuota' => $cuota,
|
||||
'venta' => $subscription->venta
|
||||
];
|
||||
try {
|
||||
$this->invoice->add($invoiceData);
|
||||
|
Reference in New Issue
Block a user