123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\Sales\Model\Order\Creditmemo;
- use Magento\Sales\Api\Data\CreditmemoCreationArgumentsInterface;
- /**
- * Class CreationArguments
- */
- class CreationArguments implements CreditmemoCreationArgumentsInterface
- {
- /**
- * @var float|null
- */
- private $shippingAmount;
- /**
- * @var float|null
- */
- private $adjustmentPositive;
- /**
- * @var float|null
- */
- private $adjustmentNegative;
- /**
- * @var \Magento\Sales\Api\Data\CreditmemoCreationArgumentsExtensionInterface
- */
- private $extensionAttributes;
- /**
- * @inheritdoc
- */
- public function getShippingAmount()
- {
- return $this->shippingAmount;
- }
- /**
- * @inheritdoc
- */
- public function getAdjustmentPositive()
- {
- return $this->adjustmentPositive;
- }
- /**
- * @inheritdoc
- */
- public function getAdjustmentNegative()
- {
- return $this->adjustmentNegative;
- }
- /**
- * @inheritdoc
- */
- public function setShippingAmount($amount)
- {
- $this->shippingAmount = $amount;
- return $this;
- }
- /**
- * @inheritdoc
- */
- public function setAdjustmentPositive($amount)
- {
- $this->adjustmentPositive = $amount;
- return $this;
- }
- /**
- * @inheritdoc
- */
- public function setAdjustmentNegative($amount)
- {
- $this->adjustmentNegative = $amount;
- return $this;
- }
- /**
- * {@inheritdoc}
- */
- public function getExtensionAttributes()
- {
- return $this->extensionAttributes;
- }
- /**
- * {@inheritdoc}
- */
- public function setExtensionAttributes(
- \Magento\Sales\Api\Data\CreditmemoCreationArgumentsExtensionInterface $extensionAttributes
- ) {
- $this->extensionAttributes = $extensionAttributes;
- return $this;
- }
- }
|