<?php

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

use UnexpectedValueException;
/**
 * @package OnlinePayments\Sdk\Domain
 */
class MobileThreeDSecureChallengeParameters extends DataObject
{
    /**
     * @var string|null
     */
    public ?string $acsReferenceNumber = null;
    /**
     * @var string|null
     */
    public ?string $acsSignedContent = null;
    /**
     * @var string|null
     */
    public ?string $acsTransactionId = null;
    /**
     * @var string|null
     */
    public ?string $threeDServerTransactionId = null;
    /**
     * @return string|null
     */
    public function getAcsReferenceNumber() : ?string
    {
        return $this->acsReferenceNumber;
    }
    /**
     * @param string|null $value
     */
    public function setAcsReferenceNumber(?string $value) : void
    {
        $this->acsReferenceNumber = $value;
    }
    /**
     * @return string|null
     */
    public function getAcsSignedContent() : ?string
    {
        return $this->acsSignedContent;
    }
    /**
     * @param string|null $value
     */
    public function setAcsSignedContent(?string $value) : void
    {
        $this->acsSignedContent = $value;
    }
    /**
     * @return string|null
     */
    public function getAcsTransactionId() : ?string
    {
        return $this->acsTransactionId;
    }
    /**
     * @param string|null $value
     */
    public function setAcsTransactionId(?string $value) : void
    {
        $this->acsTransactionId = $value;
    }
    /**
     * @return string|null
     */
    public function getThreeDServerTransactionId() : ?string
    {
        return $this->threeDServerTransactionId;
    }
    /**
     * @param string|null $value
     */
    public function setThreeDServerTransactionId(?string $value) : void
    {
        $this->threeDServerTransactionId = $value;
    }
    /**
     * @return object
     */
    public function toObject() : object
    {
        $object = parent::toObject();
        if (!\is_null($this->acsReferenceNumber)) {
            $object->acsReferenceNumber = $this->acsReferenceNumber;
        }
        if (!\is_null($this->acsSignedContent)) {
            $object->acsSignedContent = $this->acsSignedContent;
        }
        if (!\is_null($this->acsTransactionId)) {
            $object->acsTransactionId = $this->acsTransactionId;
        }
        if (!\is_null($this->threeDServerTransactionId)) {
            $object->threeDServerTransactionId = $this->threeDServerTransactionId;
        }
        return $object;
    }
    /**
     * @param object $object
     * @return $this
     * @throws UnexpectedValueException
     */
    public function fromObject(object $object) : MobileThreeDSecureChallengeParameters
    {
        parent::fromObject($object);
        if (\property_exists($object, 'acsReferenceNumber')) {
            $this->acsReferenceNumber = $object->acsReferenceNumber;
        }
        if (\property_exists($object, 'acsSignedContent')) {
            $this->acsSignedContent = $object->acsSignedContent;
        }
        if (\property_exists($object, 'acsTransactionId')) {
            $this->acsTransactionId = $object->acsTransactionId;
        }
        if (\property_exists($object, 'threeDServerTransactionId')) {
            $this->threeDServerTransactionId = $object->threeDServerTransactionId;
        }
        return $this;
    }
}
