Skip to content

Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️

714 B
Raw Blame
<?php

declare(strict_types=1);

namespace HiEvents\Enterprise\Licensing\DTO;

use Carbon\CarbonImmutable;
use HiEvents\DataTransferObjects\BaseDataObject;
use HiEvents\Enterprise\Licensing\LicensedFeature;
use HiEvents\Enterprise\Licensing\Plan;

class LicencePayloadDTO extends BaseDataObject
{
    /**
     * @param  LicensedFeature[]  $features
     */
    public function __construct(
        public readonly string $lid,
        public readonly string $customer,
        public readonly Plan $plan,
        public readonly array $features,
        public readonly CarbonImmutable $issued_at,
        public readonly CarbonImmutable $expires_at,
        public readonly ?int $covered_sales = null,
    ) {}
}