D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
tattooscyy
/
test
/
app
/
Libs
/
OnlinePayments
/
Sdk
/
Domain
/
Filename :
CaptureOutput.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 CaptureOutput extends DataObject { /** * @var AmountOfMoney|null */ public ?AmountOfMoney $acquiredAmount = null; /** * @var AmountOfMoney|null */ public ?AmountOfMoney $amountOfMoney = null; /** * @var int|null * @deprecated Amount that has been paid. This is deprecated. Use acquiredAmount instead. */ public ?int $amountPaid = null; /** * @var CardPaymentMethodSpecificOutput|null */ public ?CardPaymentMethodSpecificOutput $cardPaymentMethodSpecificOutput = null; /** * @var string|null */ public ?string $merchantParameters = null; /** * @var MobilePaymentMethodSpecificOutput|null */ public ?MobilePaymentMethodSpecificOutput $mobilePaymentMethodSpecificOutput = null; /** * @var OperationPaymentReferences|null */ public ?OperationPaymentReferences $operationReferences = null; /** * @var string|null */ public ?string $paymentMethod = null; /** * @var RedirectPaymentMethodSpecificOutput|null */ public ?RedirectPaymentMethodSpecificOutput $redirectPaymentMethodSpecificOutput = null; /** * @var PaymentReferences|null */ public ?PaymentReferences $references = null; /** * @var SepaDirectDebitPaymentMethodSpecificOutput|null */ public ?SepaDirectDebitPaymentMethodSpecificOutput $sepaDirectDebitPaymentMethodSpecificOutput = null; /** * @var SurchargeSpecificOutput|null */ public ?SurchargeSpecificOutput $surchargeSpecificOutput = null; /** * @return AmountOfMoney|null */ public function getAcquiredAmount(): ?AmountOfMoney { return $this->acquiredAmount; } /** * @param AmountOfMoney|null $value */ public function setAcquiredAmount(?AmountOfMoney $value): void { $this->acquiredAmount = $value; } /** * @return AmountOfMoney|null */ public function getAmountOfMoney(): ?AmountOfMoney { return $this->amountOfMoney; } /** * @param AmountOfMoney|null $value */ public function setAmountOfMoney(?AmountOfMoney $value): void { $this->amountOfMoney = $value; } /** * @return int|null * @deprecated Amount that has been paid. This is deprecated. Use acquiredAmount instead. */ public function getAmountPaid(): ?int { return $this->amountPaid; } /** * @param int|null $value * @deprecated Amount that has been paid. This is deprecated. Use acquiredAmount instead. */ public function setAmountPaid(?int $value): void { $this->amountPaid = $value; } /** * @return CardPaymentMethodSpecificOutput|null */ public function getCardPaymentMethodSpecificOutput(): ?CardPaymentMethodSpecificOutput { return $this->cardPaymentMethodSpecificOutput; } /** * @param CardPaymentMethodSpecificOutput|null $value */ public function setCardPaymentMethodSpecificOutput(?CardPaymentMethodSpecificOutput $value): void { $this->cardPaymentMethodSpecificOutput = $value; } /** * @return string|null */ public function getMerchantParameters(): ?string { return $this->merchantParameters; } /** * @param string|null $value */ public function setMerchantParameters(?string $value): void { $this->merchantParameters = $value; } /** * @return MobilePaymentMethodSpecificOutput|null */ public function getMobilePaymentMethodSpecificOutput(): ?MobilePaymentMethodSpecificOutput { return $this->mobilePaymentMethodSpecificOutput; } /** * @param MobilePaymentMethodSpecificOutput|null $value */ public function setMobilePaymentMethodSpecificOutput(?MobilePaymentMethodSpecificOutput $value): void { $this->mobilePaymentMethodSpecificOutput = $value; } /** * @return OperationPaymentReferences|null */ public function getOperationReferences(): ?OperationPaymentReferences { return $this->operationReferences; } /** * @param OperationPaymentReferences|null $value */ public function setOperationReferences(?OperationPaymentReferences $value): void { $this->operationReferences = $value; } /** * @return string|null */ public function getPaymentMethod(): ?string { return $this->paymentMethod; } /** * @param string|null $value */ public function setPaymentMethod(?string $value): void { $this->paymentMethod = $value; } /** * @return RedirectPaymentMethodSpecificOutput|null */ public function getRedirectPaymentMethodSpecificOutput(): ?RedirectPaymentMethodSpecificOutput { return $this->redirectPaymentMethodSpecificOutput; } /** * @param RedirectPaymentMethodSpecificOutput|null $value */ public function setRedirectPaymentMethodSpecificOutput(?RedirectPaymentMethodSpecificOutput $value): void { $this->redirectPaymentMethodSpecificOutput = $value; } /** * @return PaymentReferences|null */ public function getReferences(): ?PaymentReferences { return $this->references; } /** * @param PaymentReferences|null $value */ public function setReferences(?PaymentReferences $value): void { $this->references = $value; } /** * @return SepaDirectDebitPaymentMethodSpecificOutput|null */ public function getSepaDirectDebitPaymentMethodSpecificOutput(): ?SepaDirectDebitPaymentMethodSpecificOutput { return $this->sepaDirectDebitPaymentMethodSpecificOutput; } /** * @param SepaDirectDebitPaymentMethodSpecificOutput|null $value */ public function setSepaDirectDebitPaymentMethodSpecificOutput(?SepaDirectDebitPaymentMethodSpecificOutput $value): void { $this->sepaDirectDebitPaymentMethodSpecificOutput = $value; } /** * @return SurchargeSpecificOutput|null */ public function getSurchargeSpecificOutput(): ?SurchargeSpecificOutput { return $this->surchargeSpecificOutput; } /** * @param SurchargeSpecificOutput|null $value */ public function setSurchargeSpecificOutput(?SurchargeSpecificOutput $value): void { $this->surchargeSpecificOutput = $value; } /** * @return object */ public function toObject(): object { $object = parent::toObject(); if (!is_null($this->acquiredAmount)) { $object->acquiredAmount = $this->acquiredAmount->toObject(); } if (!is_null($this->amountOfMoney)) { $object->amountOfMoney = $this->amountOfMoney->toObject(); } if (!is_null($this->amountPaid)) { $object->amountPaid = $this->amountPaid; } if (!is_null($this->cardPaymentMethodSpecificOutput)) { $object->cardPaymentMethodSpecificOutput = $this->cardPaymentMethodSpecificOutput->toObject(); } if (!is_null($this->merchantParameters)) { $object->merchantParameters = $this->merchantParameters; } if (!is_null($this->mobilePaymentMethodSpecificOutput)) { $object->mobilePaymentMethodSpecificOutput = $this->mobilePaymentMethodSpecificOutput->toObject(); } if (!is_null($this->operationReferences)) { $object->operationReferences = $this->operationReferences->toObject(); } if (!is_null($this->paymentMethod)) { $object->paymentMethod = $this->paymentMethod; } if (!is_null($this->redirectPaymentMethodSpecificOutput)) { $object->redirectPaymentMethodSpecificOutput = $this->redirectPaymentMethodSpecificOutput->toObject(); } if (!is_null($this->references)) { $object->references = $this->references->toObject(); } if (!is_null($this->sepaDirectDebitPaymentMethodSpecificOutput)) { $object->sepaDirectDebitPaymentMethodSpecificOutput = $this->sepaDirectDebitPaymentMethodSpecificOutput->toObject(); } if (!is_null($this->surchargeSpecificOutput)) { $object->surchargeSpecificOutput = $this->surchargeSpecificOutput->toObject(); } return $object; } /** * @param object $object * @return $this * @throws UnexpectedValueException */ public function fromObject(object $object): CaptureOutput { parent::fromObject($object); if (property_exists($object, 'acquiredAmount')) { if (!is_object($object->acquiredAmount)) { throw new UnexpectedValueException('value \'' . print_r($object->acquiredAmount, true) . '\' is not an object'); } $value = new AmountOfMoney(); $this->acquiredAmount = $value->fromObject($object->acquiredAmount); } if (property_exists($object, 'amountOfMoney')) { if (!is_object($object->amountOfMoney)) { throw new UnexpectedValueException('value \'' . print_r($object->amountOfMoney, true) . '\' is not an object'); } $value = new AmountOfMoney(); $this->amountOfMoney = $value->fromObject($object->amountOfMoney); } if (property_exists($object, 'amountPaid')) { $this->amountPaid = $object->amountPaid; } if (property_exists($object, 'cardPaymentMethodSpecificOutput')) { if (!is_object($object->cardPaymentMethodSpecificOutput)) { throw new UnexpectedValueException('value \'' . print_r($object->cardPaymentMethodSpecificOutput, true) . '\' is not an object'); } $value = new CardPaymentMethodSpecificOutput(); $this->cardPaymentMethodSpecificOutput = $value->fromObject($object->cardPaymentMethodSpecificOutput); } if (property_exists($object, 'merchantParameters')) { $this->merchantParameters = $object->merchantParameters; } if (property_exists($object, 'mobilePaymentMethodSpecificOutput')) { if (!is_object($object->mobilePaymentMethodSpecificOutput)) { throw new UnexpectedValueException('value \'' . print_r($object->mobilePaymentMethodSpecificOutput, true) . '\' is not an object'); } $value = new MobilePaymentMethodSpecificOutput(); $this->mobilePaymentMethodSpecificOutput = $value->fromObject($object->mobilePaymentMethodSpecificOutput); } if (property_exists($object, 'operationReferences')) { if (!is_object($object->operationReferences)) { throw new UnexpectedValueException('value \'' . print_r($object->operationReferences, true) . '\' is not an object'); } $value = new OperationPaymentReferences(); $this->operationReferences = $value->fromObject($object->operationReferences); } if (property_exists($object, 'paymentMethod')) { $this->paymentMethod = $object->paymentMethod; } if (property_exists($object, 'redirectPaymentMethodSpecificOutput')) { if (!is_object($object->redirectPaymentMethodSpecificOutput)) { throw new UnexpectedValueException('value \'' . print_r($object->redirectPaymentMethodSpecificOutput, true) . '\' is not an object'); } $value = new RedirectPaymentMethodSpecificOutput(); $this->redirectPaymentMethodSpecificOutput = $value->fromObject($object->redirectPaymentMethodSpecificOutput); } if (property_exists($object, 'references')) { if (!is_object($object->references)) { throw new UnexpectedValueException('value \'' . print_r($object->references, true) . '\' is not an object'); } $value = new PaymentReferences(); $this->references = $value->fromObject($object->references); } if (property_exists($object, 'sepaDirectDebitPaymentMethodSpecificOutput')) { if (!is_object($object->sepaDirectDebitPaymentMethodSpecificOutput)) { throw new UnexpectedValueException('value \'' . print_r($object->sepaDirectDebitPaymentMethodSpecificOutput, true) . '\' is not an object'); } $value = new SepaDirectDebitPaymentMethodSpecificOutput(); $this->sepaDirectDebitPaymentMethodSpecificOutput = $value->fromObject($object->sepaDirectDebitPaymentMethodSpecificOutput); } if (property_exists($object, 'surchargeSpecificOutput')) { if (!is_object($object->surchargeSpecificOutput)) { throw new UnexpectedValueException('value \'' . print_r($object->surchargeSpecificOutput, true) . '\' is not an object'); } $value = new SurchargeSpecificOutput(); $this->surchargeSpecificOutput = $value->fromObject($object->surchargeSpecificOutput); } return $this; } }