feature/cierres #25

Open
aldarien wants to merge 446 commits from feature/cierres into develop
280 changed files with 665 additions and 10975 deletions
Showing only changes of commit 5d5f9866bb - Show all commits

View File

@ -0,0 +1,19 @@
<?php
namespace Incoviba\Model\MediosPago\Toku;
use Incoviba\Common\Ideal;
use Incoviba\Model\Persona;
class Customer extends Ideal\Model
{
public Persona $persona;
public string $toku_id;
protected function jsonComplement(): array
{
return [
'rut' => implode('', [$this->persona->rut, $this->persona->digito]),
'toku_id' => $this->toku_id
];
}
}

View File

@ -0,0 +1,19 @@
<?php
namespace Incoviba\Model\MediosPago\Toku;
use Incoviba\Common\Ideal;
use Incoviba\Model\Venta\Cuota;
class Invoice extends Ideal\Model
{
public Cuota $cuota;
public string $toku_id;
protected function jsonComplement(): array
{
return [
'cuota_id' => $this->cuota->id,
'toku_id' => $this->toku_id
];
}
}

View File

@ -0,0 +1,19 @@
<?php
namespace Incoviba\Model\MediosPago\Toku;
use Incoviba\Common\Ideal;
use Incoviba\Model\Venta;
class Subscription extends Ideal\Model
{
public Venta $venta;
public string $toku_id;
protected function jsonComplement(): array
{
return [
'venta_id' => $this->venta->id,
'toku_id' => $this->toku_id
];
}
}