<?php
namespace Incoviba\Model\Venta\Abono;

use Incoviba\Common\Ideal;
use Incoviba\Model;

class Cuota extends Ideal\Model
{
    public Model\Venta $venta;
    public Model\Venta\Pago $pago;
    public int $numero;

    public function jsonSerialize(): mixed
    {
        return array_merge(parent::jsonSerialize(), [
           'venta_id' => $this->venta->id,
           'pago' => $this->pago
        ]);
    }
}
