D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
tattooscyy
/
test
/
app
/
Libs
/
OnlinePayments
/
Sdk
/
Domain
/
Filename :
CreatePaymentRequest.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 CreatePaymentRequest extends DataObject { /** * @var CardPaymentMethodSpecificInput|null */ public ?CardPaymentMethodSpecificInput $cardPaymentMethodSpecificInput = null; /** * @var string|null */ public ?string $encryptedCustomerInput = null; /** * @var Feedbacks|null */ public ?Feedbacks $feedbacks = null; /** * @var FraudFields|null */ public ?FraudFields $fraudFields = null; /** * @var string|null */ public ?string $hostedFieldsSessionId = null; /** * @var string|null */ public ?string $hostedTokenizationId = null; /** * @var MobilePaymentMethodSpecificInput|null */ public ?MobilePaymentMethodSpecificInput $mobilePaymentMethodSpecificInput = null; /** * @var Order|null */ public ?Order $order = null; /** * @var RedirectPaymentMethodSpecificInput|null */ public ?RedirectPaymentMethodSpecificInput $redirectPaymentMethodSpecificInput = null; /** * @var SepaDirectDebitPaymentMethodSpecificInput|null */ public ?SepaDirectDebitPaymentMethodSpecificInput $sepaDirectDebitPaymentMethodSpecificInput = null; /** * @return CardPaymentMethodSpecificInput|null */ public function getCardPaymentMethodSpecificInput(): ?CardPaymentMethodSpecificInput { return $this->cardPaymentMethodSpecificInput; } /** * @param CardPaymentMethodSpecificInput|null $value */ public function setCardPaymentMethodSpecificInput(?CardPaymentMethodSpecificInput $value): void { $this->cardPaymentMethodSpecificInput = $value; } /** * @return string|null */ public function getEncryptedCustomerInput(): ?string { return $this->encryptedCustomerInput; } /** * @param string|null $value */ public function setEncryptedCustomerInput(?string $value): void { $this->encryptedCustomerInput = $value; } /** * @return Feedbacks|null */ public function getFeedbacks(): ?Feedbacks { return $this->feedbacks; } /** * @param Feedbacks|null $value */ public function setFeedbacks(?Feedbacks $value): void { $this->feedbacks = $value; } /** * @return FraudFields|null */ public function getFraudFields(): ?FraudFields { return $this->fraudFields; } /** * @param FraudFields|null $value */ public function setFraudFields(?FraudFields $value): void { $this->fraudFields = $value; } /** * @return string|null */ public function getHostedFieldsSessionId(): ?string { return $this->hostedFieldsSessionId; } /** * @param string|null $value */ public function setHostedFieldsSessionId(?string $value): void { $this->hostedFieldsSessionId = $value; } /** * @return string|null */ public function getHostedTokenizationId(): ?string { return $this->hostedTokenizationId; } /** * @param string|null $value */ public function setHostedTokenizationId(?string $value): void { $this->hostedTokenizationId = $value; } /** * @return MobilePaymentMethodSpecificInput|null */ public function getMobilePaymentMethodSpecificInput(): ?MobilePaymentMethodSpecificInput { return $this->mobilePaymentMethodSpecificInput; } /** * @param MobilePaymentMethodSpecificInput|null $value */ public function setMobilePaymentMethodSpecificInput(?MobilePaymentMethodSpecificInput $value): void { $this->mobilePaymentMethodSpecificInput = $value; } /** * @return Order|null */ public function getOrder(): ?Order { return $this->order; } /** * @param Order|null $value */ public function setOrder(?Order $value): void { $this->order = $value; } /** * @return RedirectPaymentMethodSpecificInput|null */ public function getRedirectPaymentMethodSpecificInput(): ?RedirectPaymentMethodSpecificInput { return $this->redirectPaymentMethodSpecificInput; } /** * @param RedirectPaymentMethodSpecificInput|null $value */ public function setRedirectPaymentMethodSpecificInput(?RedirectPaymentMethodSpecificInput $value): void { $this->redirectPaymentMethodSpecificInput = $value; } /** * @return SepaDirectDebitPaymentMethodSpecificInput|null */ public function getSepaDirectDebitPaymentMethodSpecificInput(): ?SepaDirectDebitPaymentMethodSpecificInput { return $this->sepaDirectDebitPaymentMethodSpecificInput; } /** * @param SepaDirectDebitPaymentMethodSpecificInput|null $value */ public function setSepaDirectDebitPaymentMethodSpecificInput(?SepaDirectDebitPaymentMethodSpecificInput $value): void { $this->sepaDirectDebitPaymentMethodSpecificInput = $value; } /** * @return object */ public function toObject(): object { $object = parent::toObject(); if (!is_null($this->cardPaymentMethodSpecificInput)) { $object->cardPaymentMethodSpecificInput = $this->cardPaymentMethodSpecificInput->toObject(); } if (!is_null($this->encryptedCustomerInput)) { $object->encryptedCustomerInput = $this->encryptedCustomerInput; } if (!is_null($this->feedbacks)) { $object->feedbacks = $this->feedbacks->toObject(); } if (!is_null($this->fraudFields)) { $object->fraudFields = $this->fraudFields->toObject(); } if (!is_null($this->hostedFieldsSessionId)) { $object->hostedFieldsSessionId = $this->hostedFieldsSessionId; } if (!is_null($this->hostedTokenizationId)) { $object->hostedTokenizationId = $this->hostedTokenizationId; } if (!is_null($this->mobilePaymentMethodSpecificInput)) { $object->mobilePaymentMethodSpecificInput = $this->mobilePaymentMethodSpecificInput->toObject(); } if (!is_null($this->order)) { $object->order = $this->order->toObject(); } if (!is_null($this->redirectPaymentMethodSpecificInput)) { $object->redirectPaymentMethodSpecificInput = $this->redirectPaymentMethodSpecificInput->toObject(); } if (!is_null($this->sepaDirectDebitPaymentMethodSpecificInput)) { $object->sepaDirectDebitPaymentMethodSpecificInput = $this->sepaDirectDebitPaymentMethodSpecificInput->toObject(); } return $object; } /** * @param object $object * @return $this * @throws UnexpectedValueException */ public function fromObject(object $object): CreatePaymentRequest { parent::fromObject($object); if (property_exists($object, 'cardPaymentMethodSpecificInput')) { if (!is_object($object->cardPaymentMethodSpecificInput)) { throw new UnexpectedValueException('value \'' . print_r($object->cardPaymentMethodSpecificInput, true) . '\' is not an object'); } $value = new CardPaymentMethodSpecificInput(); $this->cardPaymentMethodSpecificInput = $value->fromObject($object->cardPaymentMethodSpecificInput); } if (property_exists($object, 'encryptedCustomerInput')) { $this->encryptedCustomerInput = $object->encryptedCustomerInput; } if (property_exists($object, 'feedbacks')) { if (!is_object($object->feedbacks)) { throw new UnexpectedValueException('value \'' . print_r($object->feedbacks, true) . '\' is not an object'); } $value = new Feedbacks(); $this->feedbacks = $value->fromObject($object->feedbacks); } if (property_exists($object, 'fraudFields')) { if (!is_object($object->fraudFields)) { throw new UnexpectedValueException('value \'' . print_r($object->fraudFields, true) . '\' is not an object'); } $value = new FraudFields(); $this->fraudFields = $value->fromObject($object->fraudFields); } if (property_exists($object, 'hostedFieldsSessionId')) { $this->hostedFieldsSessionId = $object->hostedFieldsSessionId; } if (property_exists($object, 'hostedTokenizationId')) { $this->hostedTokenizationId = $object->hostedTokenizationId; } if (property_exists($object, 'mobilePaymentMethodSpecificInput')) { if (!is_object($object->mobilePaymentMethodSpecificInput)) { throw new UnexpectedValueException('value \'' . print_r($object->mobilePaymentMethodSpecificInput, true) . '\' is not an object'); } $value = new MobilePaymentMethodSpecificInput(); $this->mobilePaymentMethodSpecificInput = $value->fromObject($object->mobilePaymentMethodSpecificInput); } if (property_exists($object, 'order')) { if (!is_object($object->order)) { throw new UnexpectedValueException('value \'' . print_r($object->order, true) . '\' is not an object'); } $value = new Order(); $this->order = $value->fromObject($object->order); } if (property_exists($object, 'redirectPaymentMethodSpecificInput')) { if (!is_object($object->redirectPaymentMethodSpecificInput)) { throw new UnexpectedValueException('value \'' . print_r($object->redirectPaymentMethodSpecificInput, true) . '\' is not an object'); } $value = new RedirectPaymentMethodSpecificInput(); $this->redirectPaymentMethodSpecificInput = $value->fromObject($object->redirectPaymentMethodSpecificInput); } if (property_exists($object, 'sepaDirectDebitPaymentMethodSpecificInput')) { if (!is_object($object->sepaDirectDebitPaymentMethodSpecificInput)) { throw new UnexpectedValueException('value \'' . print_r($object->sepaDirectDebitPaymentMethodSpecificInput, true) . '\' is not an object'); } $value = new SepaDirectDebitPaymentMethodSpecificInput(); $this->sepaDirectDebitPaymentMethodSpecificInput = $value->fromObject($object->sepaDirectDebitPaymentMethodSpecificInput); } return $this; } }