<?php

namespace NoahVet\Reef\Jane\Model;

class V1CustomerProfilesPostResponse201 extends \ArrayObject
{
    /**
     * @var array
     */
    protected $initialized = [];

    /**
     * @var string
     */
    protected $id;

    /**
     * @var \DateTime
     */
    protected $createdDate;

    /**
     * @var \DateTime
     */
    protected $updatedDate;

    /**
     * Nullable Id - Response Model.
     *
     * @var V1CustomerProfilesPostResponse201BillingContact|null
     */
    protected $billingContact;

    /**
     * @var \DateTime|null
     */
    protected $birthDate;

    /**
     * @var string|null
     */
    protected $birthName;

    /**
     * @var string|null
     */
    protected $companyDescription;

    /**
     * Id - Response Model.
     *
     * @var V1CustomerProfilesPostResponse201Customer
     */
    protected $customer;

    /**
     * Nullable Id - Response Model.
     *
     * @var V1CustomerProfilesPostResponse201DeliveryContact|null
     */
    protected $deliveryContact;

    /**
     * @var string|null
     */
    protected $firstname;

    /**
     * @var string|null
     */
    protected $gender;

    /**
     * @var string|null
     */
    protected $lastname;

    /**
     * Nullable Id - Response Model.
     *
     * @var V1CustomerProfilesPostResponse201MainContact|null
     */
    protected $mainContact;

    /**
     * @var string
     */
    protected $source;

    public function isInitialized($property): bool
    {
        return \array_key_exists($property, $this->initialized);
    }

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

    public function setId(string $id): self
    {
        $this->initialized['id'] = true;
        $this->id = $id;

        return $this;
    }

    public function getCreatedDate(): \DateTime
    {
        return $this->createdDate;
    }

    public function setCreatedDate(\DateTime $createdDate): self
    {
        $this->initialized['createdDate'] = true;
        $this->createdDate = $createdDate;

        return $this;
    }

    public function getUpdatedDate(): \DateTime
    {
        return $this->updatedDate;
    }

    public function setUpdatedDate(\DateTime $updatedDate): self
    {
        $this->initialized['updatedDate'] = true;
        $this->updatedDate = $updatedDate;

        return $this;
    }

    /**
     * Nullable Id - Response Model.
     */
    public function getBillingContact(): ?V1CustomerProfilesPostResponse201BillingContact
    {
        return $this->billingContact;
    }

    /**
     * Nullable Id - Response Model.
     */
    public function setBillingContact(?V1CustomerProfilesPostResponse201BillingContact $billingContact): self
    {
        $this->initialized['billingContact'] = true;
        $this->billingContact = $billingContact;

        return $this;
    }

    public function getBirthDate(): ?\DateTime
    {
        return $this->birthDate;
    }

    public function setBirthDate(?\DateTime $birthDate): self
    {
        $this->initialized['birthDate'] = true;
        $this->birthDate = $birthDate;

        return $this;
    }

    public function getBirthName(): ?string
    {
        return $this->birthName;
    }

    public function setBirthName(?string $birthName): self
    {
        $this->initialized['birthName'] = true;
        $this->birthName = $birthName;

        return $this;
    }

    public function getCompanyDescription(): ?string
    {
        return $this->companyDescription;
    }

    public function setCompanyDescription(?string $companyDescription): self
    {
        $this->initialized['companyDescription'] = true;
        $this->companyDescription = $companyDescription;

        return $this;
    }

    /**
     * Id - Response Model.
     */
    public function getCustomer(): V1CustomerProfilesPostResponse201Customer
    {
        return $this->customer;
    }

    /**
     * Id - Response Model.
     */
    public function setCustomer(V1CustomerProfilesPostResponse201Customer $customer): self
    {
        $this->initialized['customer'] = true;
        $this->customer = $customer;

        return $this;
    }

    /**
     * Nullable Id - Response Model.
     */
    public function getDeliveryContact(): ?V1CustomerProfilesPostResponse201DeliveryContact
    {
        return $this->deliveryContact;
    }

    /**
     * Nullable Id - Response Model.
     */
    public function setDeliveryContact(?V1CustomerProfilesPostResponse201DeliveryContact $deliveryContact): self
    {
        $this->initialized['deliveryContact'] = true;
        $this->deliveryContact = $deliveryContact;

        return $this;
    }

    public function getFirstname(): ?string
    {
        return $this->firstname;
    }

    public function setFirstname(?string $firstname): self
    {
        $this->initialized['firstname'] = true;
        $this->firstname = $firstname;

        return $this;
    }

    public function getGender(): ?string
    {
        return $this->gender;
    }

    public function setGender(?string $gender): self
    {
        $this->initialized['gender'] = true;
        $this->gender = $gender;

        return $this;
    }

    public function getLastname(): ?string
    {
        return $this->lastname;
    }

    public function setLastname(?string $lastname): self
    {
        $this->initialized['lastname'] = true;
        $this->lastname = $lastname;

        return $this;
    }

    /**
     * Nullable Id - Response Model.
     */
    public function getMainContact(): ?V1CustomerProfilesPostResponse201MainContact
    {
        return $this->mainContact;
    }

    /**
     * Nullable Id - Response Model.
     */
    public function setMainContact(?V1CustomerProfilesPostResponse201MainContact $mainContact): self
    {
        $this->initialized['mainContact'] = true;
        $this->mainContact = $mainContact;

        return $this;
    }

    public function getSource(): string
    {
        return $this->source;
    }

    public function setSource(string $source): self
    {
        $this->initialized['source'] = true;
        $this->source = $source;

        return $this;
    }
}
