<?php

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

use UnexpectedValueException;
/**
 * @package OnlinePayments\Sdk\Domain
 */
class ThreeDSecureData extends DataObject
{
    /**
     * @var string|null
     */
    public ?string $acsTransactionId = null;
    /**
     * @var string|null
     */
    public ?string $method = null;
    /**
     * @var string|null
     */
    public ?string $utcTimestamp = null;
    /**
     * @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 getMethod() : ?string
    {
        return $this->method;
    }
    /**
     * @param string|null $value
     */
    public function setMethod(?string $value) : void
    {
        $this->method = $value;
    }
    /**
     * @return string|null
     */
    public function getUtcTimestamp() : ?string
    {
        return $this->utcTimestamp;
    }
    /**
     * @param string|null $value
     */
    public function setUtcTimestamp(?string $value) : void
    {
        $this->utcTimestamp = $value;
    }
    /**
     * @return object
     */
    public function toObject() : object
    {
        $object = parent::toObject();
        if (!\is_null($this->acsTransactionId)) {
            $object->acsTransactionId = $this->acsTransactionId;
        }
        if (!\is_null($this->method)) {
            $object->method = $this->method;
        }
        if (!\is_null($this->utcTimestamp)) {
            $object->utcTimestamp = $this->utcTimestamp;
        }
        return $object;
    }
    /**
     * @param object $object
     * @return $this
     * @throws UnexpectedValueException
     */
    public function fromObject(object $object) : ThreeDSecureData
    {
        parent::fromObject($object);
        if (\property_exists($object, 'acsTransactionId')) {
            $this->acsTransactionId = $object->acsTransactionId;
        }
        if (\property_exists($object, 'method')) {
            $this->method = $object->method;
        }
        if (\property_exists($object, 'utcTimestamp')) {
            $this->utcTimestamp = $object->utcTimestamp;
        }
        return $this;
    }
}
