Varios cambios Co-authored-by: Juan Pablo Vial <jpvialb@incoviba.cl> Reviewed-on: #25
25 lines
504 B
PHP
25 lines
504 B
PHP
<?php
|
|
namespace Incoviba\Model\Venta\MediosPago\Toku;
|
|
|
|
use Incoviba\Common\Ideal;
|
|
use Incoviba\Model\Persona;
|
|
|
|
class Customer extends Ideal\Model
|
|
{
|
|
public Persona $persona;
|
|
public string $toku_id;
|
|
|
|
public function rut(): string
|
|
{
|
|
return implode('', [$this->persona->rut, strtoupper($this->persona->digito)]);
|
|
}
|
|
|
|
protected function jsonComplement(): array
|
|
{
|
|
return [
|
|
'rut' => $this->rut(),
|
|
'toku_id' => $this->toku_id
|
|
];
|
|
}
|
|
}
|