_init('Magento\Tax\Model\ResourceModel\Sales\Order\Tax'); } /** * {@inheritdoc} */ public function getCode() { return $this->getData(self::KEY_CODE); } /** * {@inheritdoc} */ public function getTitle() { return $this->getData(self::KEY_TITLE); } /** * {@inheritdoc} */ public function getPercent() { return $this->getData(self::KEY_PERCENT); } /** * {@inheritdoc} */ public function getAmount() { return $this->getData(self::KEY_AMOUNT); } /** * {@inheritdoc} */ public function getBaseAmount() { return $this->getData(self::KEY_BASE_AMOUNT); } /** * Set code * * @param string $code * @return $this */ public function setCode($code) { return $this->setData(self::KEY_CODE, $code); } /** * Set Title * * @param string $title * @return $this */ public function setTitle($title) { return $this->setData(self::KEY_TITLE, $title); } /** * Set Tax Percent * * @param float $percent * @return $this */ public function setPercent($percent) { return $this->setData(self::KEY_PERCENT, $percent); } /** * Set tax amount * * @param float $amount * @return $this */ public function setAmount($amount) { return $this->setData(self::KEY_AMOUNT, $amount); } /** * Set tax amount in base currency * * @param float $baseAmount * @return $this */ public function setBaseAmount($baseAmount) { return $this->setData(self::KEY_BASE_AMOUNT, $baseAmount); } /** * * @return \Magento\Tax\Api\Data\AppliedTaxRateInterface[] */ public function getRates() { return $this->getData(self::KEY_RATES); } /** * * @param \Magento\Tax\Api\Data\AppliedTaxRateInterface[] $rates * @return $this */ public function setRates($rates) { return $this->setData(self::KEY_RATES, $rates); } /** * {@inheritdoc} * * @return \Magento\Tax\Api\Data\OrderTaxDetailsAppliedTaxExtensionInterface|null */ public function getExtensionAttributes() { return $this->_getExtensionAttributes(); } /** * {@inheritdoc} * * @param \Magento\Tax\Api\Data\OrderTaxDetailsAppliedTaxExtensionInterface $extensionAttributes * @return $this */ public function setExtensionAttributes( \Magento\Tax\Api\Data\OrderTaxDetailsAppliedTaxExtensionInterface $extensionAttributes ) { return $this->_setExtensionAttributes($extensionAttributes); } }