<?php

namespace HiEvents\DomainObjects\Generated;

/**
 * THIS FILE IS AUTOGENERATED - DO NOT EDIT IT DIRECTLY.
 * @package HiEvents\DomainObjects\Generated
 */
abstract class WaitlistEntryDomainObjectAbstract extends \HiEvents\DomainObjects\AbstractDomainObject
{
    final public const SINGULAR_NAME = 'waitlist_entry';
    final public const PLURAL_NAME = 'waitlist_entries';
    final public const ID = 'id';
    final public const EVENT_ID = 'event_id';
    final public const PRODUCT_PRICE_ID = 'product_price_id';
    final public const ORDER_ID = 'order_id';
    final public const EMAIL = 'email';
    final public const FIRST_NAME = 'first_name';
    final public const LAST_NAME = 'last_name';
    final public const STATUS = 'status';
    final public const OFFER_TOKEN = 'offer_token';
    final public const CANCEL_TOKEN = 'cancel_token';
    final public const OFFERED_AT = 'offered_at';
    final public const OFFER_EXPIRES_AT = 'offer_expires_at';
    final public const PURCHASED_AT = 'purchased_at';
    final public const CANCELLED_AT = 'cancelled_at';
    final public const POSITION = 'position';
    final public const LOCALE = 'locale';
    final public const CREATED_AT = 'created_at';
    final public const UPDATED_AT = 'updated_at';
    final public const DELETED_AT = 'deleted_at';

    protected int $id;
    protected int $event_id;
    protected int $product_price_id;
    protected ?int $order_id = null;
    protected string $email;
    protected string $first_name;
    protected ?string $last_name = null;
    protected string $status;
    protected ?string $offer_token = null;
    protected ?string $cancel_token = null;
    protected ?string $offered_at = null;
    protected ?string $offer_expires_at = null;
    protected ?string $purchased_at = null;
    protected ?string $cancelled_at = null;
    protected int $position = 0;
    protected string $locale = 'en';
    protected ?string $created_at = null;
    protected ?string $updated_at = null;
    protected ?string $deleted_at = null;

    public function toArray(): array
    {
        return [
                    'id' => $this->id ?? null,
                    'event_id' => $this->event_id ?? null,
                    'product_price_id' => $this->product_price_id ?? null,
                    'order_id' => $this->order_id ?? null,
                    'email' => $this->email ?? null,
                    'first_name' => $this->first_name ?? null,
                    'last_name' => $this->last_name ?? null,
                    'status' => $this->status ?? null,
                    'offer_token' => $this->offer_token ?? null,
                    'cancel_token' => $this->cancel_token ?? null,
                    'offered_at' => $this->offered_at ?? null,
                    'offer_expires_at' => $this->offer_expires_at ?? null,
                    'purchased_at' => $this->purchased_at ?? null,
                    'cancelled_at' => $this->cancelled_at ?? null,
                    'position' => $this->position ?? null,
                    'locale' => $this->locale ?? null,
                    'created_at' => $this->created_at ?? null,
                    'updated_at' => $this->updated_at ?? null,
                    'deleted_at' => $this->deleted_at ?? null,
                ];
    }

    public function setId(int $id): self
    {
        $this->id = $id;
        return $this;
    }

    public function getId(): int
    {
        return $this->id;
    }

    public function setEventId(int $event_id): self
    {
        $this->event_id = $event_id;
        return $this;
    }

    public function getEventId(): int
    {
        return $this->event_id;
    }

    public function setProductPriceId(int $product_price_id): self
    {
        $this->product_price_id = $product_price_id;
        return $this;
    }

    public function getProductPriceId(): int
    {
        return $this->product_price_id;
    }

    public function setOrderId(?int $order_id): self
    {
        $this->order_id = $order_id;
        return $this;
    }

    public function getOrderId(): ?int
    {
        return $this->order_id;
    }

    public function setEmail(string $email): self
    {
        $this->email = $email;
        return $this;
    }

    public function getEmail(): string
    {
        return $this->email;
    }

    public function setFirstName(string $first_name): self
    {
        $this->first_name = $first_name;
        return $this;
    }

    public function getFirstName(): string
    {
        return $this->first_name;
    }

    public function setLastName(?string $last_name): self
    {
        $this->last_name = $last_name;
        return $this;
    }

    public function getLastName(): ?string
    {
        return $this->last_name;
    }

    public function setStatus(string $status): self
    {
        $this->status = $status;
        return $this;
    }

    public function getStatus(): string
    {
        return $this->status;
    }

    public function setOfferToken(?string $offer_token): self
    {
        $this->offer_token = $offer_token;
        return $this;
    }

    public function getOfferToken(): ?string
    {
        return $this->offer_token;
    }

    public function setCancelToken(?string $cancel_token): self
    {
        $this->cancel_token = $cancel_token;
        return $this;
    }

    public function getCancelToken(): ?string
    {
        return $this->cancel_token;
    }

    public function setOfferedAt(?string $offered_at): self
    {
        $this->offered_at = $offered_at;
        return $this;
    }

    public function getOfferedAt(): ?string
    {
        return $this->offered_at;
    }

    public function setOfferExpiresAt(?string $offer_expires_at): self
    {
        $this->offer_expires_at = $offer_expires_at;
        return $this;
    }

    public function getOfferExpiresAt(): ?string
    {
        return $this->offer_expires_at;
    }

    public function setPurchasedAt(?string $purchased_at): self
    {
        $this->purchased_at = $purchased_at;
        return $this;
    }

    public function getPurchasedAt(): ?string
    {
        return $this->purchased_at;
    }

    public function setCancelledAt(?string $cancelled_at): self
    {
        $this->cancelled_at = $cancelled_at;
        return $this;
    }

    public function getCancelledAt(): ?string
    {
        return $this->cancelled_at;
    }

    public function setPosition(int $position): self
    {
        $this->position = $position;
        return $this;
    }

    public function getPosition(): int
    {
        return $this->position;
    }

    public function setLocale(string $locale): self
    {
        $this->locale = $locale;
        return $this;
    }

    public function getLocale(): string
    {
        return $this->locale;
    }

    public function setCreatedAt(?string $created_at): self
    {
        $this->created_at = $created_at;
        return $this;
    }

    public function getCreatedAt(): ?string
    {
        return $this->created_at;
    }

    public function setUpdatedAt(?string $updated_at): self
    {
        $this->updated_at = $updated_at;
        return $this;
    }

    public function getUpdatedAt(): ?string
    {
        return $this->updated_at;
    }

    public function setDeletedAt(?string $deleted_at): self
    {
        $this->deleted_at = $deleted_at;
        return $this;
    }

    public function getDeletedAt(): ?string
    {
        return $this->deleted_at;
    }
}
