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 ⭐️
PHP attendize-alternativedoor-managementevent-check-inevent-managementevent-registrationevent-ticketingeventbrite-alternativeeventslaravelopen-sourcephpreactself-hostedsell-ticketssell-tickets-onlineticket-sellingticketing-systemtickettailor-alternativetito-alternative
<?php
namespace HiEvents\Services\Application\Handlers\PromoCode\DTO;
use HiEvents\DomainObjects\Enums\PromoCodeDiscountAppliesToEnum;
use HiEvents\DomainObjects\Enums\PromoCodeDiscountTypeEnum;
class UpsertPromoCodeDTO
{
public function __construct(
public readonly string $code,
public readonly int $event_id,
public readonly array $applicable_product_ids,
public readonly PromoCodeDiscountTypeEnum $discount_type,
public readonly ?float $discount,
public readonly ?string $expiry_date,
public readonly ?int $max_allowed_usages,
public readonly ?PromoCodeDiscountAppliesToEnum $discount_applies_to,
) {}
}