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

4.1 KB
Raw Blame
<?php

namespace HiEvents\DomainObjects\Generated;

/**
 * THIS FILE IS AUTOGENERATED - DO NOT EDIT IT DIRECTLY.
 * @package HiEvents\DomainObjects\Generated
 */
abstract class AccountSubscriptionDomainObjectAbstract extends \HiEvents\DomainObjects\AbstractDomainObject
{
    final public const SINGULAR_NAME = 'account_subscription';
    final public const PLURAL_NAME = 'account_subscriptions';
    final public const ID = 'id';
    final public const ACCOUNT_ID = 'account_id';
    final public const STRIPE_CUSTOMER_ID = 'stripe_customer_id';
    final public const STRIPE_SUBSCRIPTION_ID = 'stripe_subscription_id';
    final public const STATUS = 'status';
    final public const CURRENT_PERIOD_END = 'current_period_end';
    final public const CANCEL_AT_PERIOD_END = 'cancel_at_period_end';
    final public const CREATED_AT = 'created_at';
    final public const UPDATED_AT = 'updated_at';

    protected int $id;
    protected int $account_id;
    protected string $stripe_customer_id;
    protected ?string $stripe_subscription_id = null;
    protected ?string $status = null;
    protected ?string $current_period_end = null;
    protected bool $cancel_at_period_end = false;
    protected ?string $created_at = null;
    protected ?string $updated_at = null;

    public function toArray(): array
    {
        return [
                    'id' => $this->id ?? null,
                    'account_id' => $this->account_id ?? null,
                    'stripe_customer_id' => $this->stripe_customer_id ?? null,
                    'stripe_subscription_id' => $this->stripe_subscription_id ?? null,
                    'status' => $this->status ?? null,
                    'current_period_end' => $this->current_period_end ?? null,
                    'cancel_at_period_end' => $this->cancel_at_period_end ?? null,
                    'created_at' => $this->created_at ?? null,
                    'updated_at' => $this->updated_at ?? null,
                ];
    }

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

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

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

    public function getAccountId(): int
    {
        return $this->account_id;
    }

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

    public function getStripeCustomerId(): string
    {
        return $this->stripe_customer_id;
    }

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

    public function getStripeSubscriptionId(): ?string
    {
        return $this->stripe_subscription_id;
    }

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

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

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

    public function getCurrentPeriodEnd(): ?string
    {
        return $this->current_period_end;
    }

    public function setCancelAtPeriodEnd(bool $cancel_at_period_end): self
    {
        $this->cancel_at_period_end = $cancel_at_period_end;
        return $this;
    }

    public function getCancelAtPeriodEnd(): bool
    {
        return $this->cancel_at_period_end;
    }

    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;
    }
}