<?php

namespace NoahVet\Reef\Jane\Model;

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

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

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

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

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

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

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

    protected $documentType;

    /**
     * @var SchemasVeterinaryEstablishmentCreditNoteResponseModeration
     */
    protected $moderation;

    /**
     * @var int
     */
    protected $unitPriceWithVat;

    /**
     * @var SchemasVeterinaryEstablishmentCreditNoteResponseVeterinaryEstablishment
     */
    protected $veterinaryEstablishment;

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

    public function getAccountingStatus(): string
    {
        return $this->accountingStatus;
    }

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

        return $this;
    }

    public function getDocumentCode(): string
    {
        return $this->documentCode;
    }

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

        return $this;
    }

    public function getDocumentDate(): \DateTime
    {
        return $this->documentDate;
    }

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

        return $this;
    }

    public function getDocumentType()
    {
        return $this->documentType;
    }

    public function setDocumentType($documentType): self
    {
        $this->initialized['documentType'] = true;
        $this->documentType = $documentType;

        return $this;
    }

    public function getModeration(): SchemasVeterinaryEstablishmentCreditNoteResponseModeration
    {
        return $this->moderation;
    }

    public function setModeration(SchemasVeterinaryEstablishmentCreditNoteResponseModeration $moderation): self
    {
        $this->initialized['moderation'] = true;
        $this->moderation = $moderation;

        return $this;
    }

    public function getUnitPriceWithVat(): int
    {
        return $this->unitPriceWithVat;
    }

    public function setUnitPriceWithVat(int $unitPriceWithVat): self
    {
        $this->initialized['unitPriceWithVat'] = true;
        $this->unitPriceWithVat = $unitPriceWithVat;

        return $this;
    }

    public function getVeterinaryEstablishment(): SchemasVeterinaryEstablishmentCreditNoteResponseVeterinaryEstablishment
    {
        return $this->veterinaryEstablishment;
    }

    public function setVeterinaryEstablishment(SchemasVeterinaryEstablishmentCreditNoteResponseVeterinaryEstablishment $veterinaryEstablishment): self
    {
        $this->initialized['veterinaryEstablishment'] = true;
        $this->veterinaryEstablishment = $veterinaryEstablishment;

        return $this;
    }
}
