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 ⭐️

635 B
Raw Blame
<?php

namespace HiEvents\Services\Application\Handlers\Account\Subscription\DTO;

use HiEvents\DataTransferObjects\BaseDataObject;
use HiEvents\Services\Domain\Subscription\DTO\SubscriptionPriceDTO;

class AccountSubscriptionSummaryDTO extends BaseDataObject
{
    public function __construct(
        public readonly bool $available,
        public readonly bool $active,
        public readonly ?string $status = null,
        public readonly ?string $currentPeriodEnd = null,
        public readonly bool $cancelAtPeriodEnd = false,
        /** @var SubscriptionPriceDTO[] */
        public readonly array $prices = [],
    ) {}
}