D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
tattooscyy
/
test
/
app
/
Libs
/
OnlinePayments
/
Sdk
/
Domain
/
Filename :
NetworkTokenData.php
back
Copy
<?php /* * This file was automatically generated. */ namespace App\Libs\OnlinePayments\Sdk\Domain; use App\Libs\Sdk\Domain\DataObject; use UnexpectedValueException; /** * @package OnlinePayments\Sdk\Domain */ class NetworkTokenData extends DataObject { /** * @var string|null */ public ?string $cardholderName = null; /** * @var string|null */ public ?string $cryptogram = null; /** * @var int|null */ public ?int $eci = null; /** * @var string|null */ public ?string $networkToken = null; /** * @var string|null */ public ?string $schemeTokenRequestorId = null; /** * @var string|null */ public ?string $tokenExpiryDate = null; /** * @return string|null */ public function getCardholderName(): ?string { return $this->cardholderName; } /** * @param string|null $value */ public function setCardholderName(?string $value): void { $this->cardholderName = $value; } /** * @return string|null */ public function getCryptogram(): ?string { return $this->cryptogram; } /** * @param string|null $value */ public function setCryptogram(?string $value): void { $this->cryptogram = $value; } /** * @return int|null */ public function getEci(): ?int { return $this->eci; } /** * @param int|null $value */ public function setEci(?int $value): void { $this->eci = $value; } /** * @return string|null */ public function getNetworkToken(): ?string { return $this->networkToken; } /** * @param string|null $value */ public function setNetworkToken(?string $value): void { $this->networkToken = $value; } /** * @return string|null */ public function getSchemeTokenRequestorId(): ?string { return $this->schemeTokenRequestorId; } /** * @param string|null $value */ public function setSchemeTokenRequestorId(?string $value): void { $this->schemeTokenRequestorId = $value; } /** * @return string|null */ public function getTokenExpiryDate(): ?string { return $this->tokenExpiryDate; } /** * @param string|null $value */ public function setTokenExpiryDate(?string $value): void { $this->tokenExpiryDate = $value; } /** * @return object */ public function toObject(): object { $object = parent::toObject(); if (!is_null($this->cardholderName)) { $object->cardholderName = $this->cardholderName; } if (!is_null($this->cryptogram)) { $object->cryptogram = $this->cryptogram; } if (!is_null($this->eci)) { $object->eci = $this->eci; } if (!is_null($this->networkToken)) { $object->networkToken = $this->networkToken; } if (!is_null($this->schemeTokenRequestorId)) { $object->schemeTokenRequestorId = $this->schemeTokenRequestorId; } if (!is_null($this->tokenExpiryDate)) { $object->tokenExpiryDate = $this->tokenExpiryDate; } return $object; } /** * @param object $object * @return $this * @throws UnexpectedValueException */ public function fromObject(object $object): NetworkTokenData { parent::fromObject($object); if (property_exists($object, 'cardholderName')) { $this->cardholderName = $object->cardholderName; } if (property_exists($object, 'cryptogram')) { $this->cryptogram = $object->cryptogram; } if (property_exists($object, 'eci')) { $this->eci = $object->eci; } if (property_exists($object, 'networkToken')) { $this->networkToken = $object->networkToken; } if (property_exists($object, 'schemeTokenRequestorId')) { $this->schemeTokenRequestorId = $object->schemeTokenRequestorId; } if (property_exists($object, 'tokenExpiryDate')) { $this->tokenExpiryDate = $object->tokenExpiryDate; } return $this; } }