<?php

/*
 * This file was automatically generated.
 */
namespace Syde\Vendor\Worldline\OnlinePayments\Sdk\Domain;

use UnexpectedValueException;
/**
 * @package OnlinePayments\Sdk\Domain
 */
class RedirectPaymentProduct3302SpecificInput extends DataObject
{
    /**
     * @var string|null
     */
    public ?string $organizationEntityType = null;
    /**
     * @var string|null
     */
    public ?string $organizationRegistrationId = null;
    /**
     * @var string|null
     */
    public ?string $vatId = null;
    /**
     * @return string|null
     */
    public function getOrganizationEntityType() : ?string
    {
        return $this->organizationEntityType;
    }
    /**
     * @param string|null $value
     */
    public function setOrganizationEntityType(?string $value) : void
    {
        $this->organizationEntityType = $value;
    }
    /**
     * @return string|null
     */
    public function getOrganizationRegistrationId() : ?string
    {
        return $this->organizationRegistrationId;
    }
    /**
     * @param string|null $value
     */
    public function setOrganizationRegistrationId(?string $value) : void
    {
        $this->organizationRegistrationId = $value;
    }
    /**
     * @return string|null
     */
    public function getVatId() : ?string
    {
        return $this->vatId;
    }
    /**
     * @param string|null $value
     */
    public function setVatId(?string $value) : void
    {
        $this->vatId = $value;
    }
    /**
     * @return object
     */
    public function toObject() : object
    {
        $object = parent::toObject();
        if (!\is_null($this->organizationEntityType)) {
            $object->organizationEntityType = $this->organizationEntityType;
        }
        if (!\is_null($this->organizationRegistrationId)) {
            $object->organizationRegistrationId = $this->organizationRegistrationId;
        }
        if (!\is_null($this->vatId)) {
            $object->vatId = $this->vatId;
        }
        return $object;
    }
    /**
     * @param object $object
     * @return $this
     * @throws UnexpectedValueException
     */
    public function fromObject(object $object) : RedirectPaymentProduct3302SpecificInput
    {
        parent::fromObject($object);
        if (\property_exists($object, 'organizationEntityType')) {
            $this->organizationEntityType = $object->organizationEntityType;
        }
        if (\property_exists($object, 'organizationRegistrationId')) {
            $this->organizationRegistrationId = $object->organizationRegistrationId;
        }
        if (\property_exists($object, 'vatId')) {
            $this->vatId = $object->vatId;
        }
        return $this;
    }
}
