/app/code/Magento/Tax/Api/Data/TaxDetailsItemInterface.php
PHP | 224 lines | 33 code | 29 blank | 162 comment | 0 complexity | 3ab908ca194d1e6295bf88bfe3a68cc6 MD5 | raw file
- <?php
- /**
- * Copyright © 2016 Magento. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\Tax\Api\Data;
- /**
- * Tax details items interface.
- * @api
- */
- interface TaxDetailsItemInterface extends \Magento\Framework\Api\ExtensibleDataInterface
- {
- /**
- * Get code (sku or shipping code)
- *
- * @return string|null
- */
- public function getCode();
- /**
- * Set code (sku or shipping code)
- *
- * @param string $code
- * @return $this
- */
- public function setCode($code);
- /**
- * Get type (shipping, product, weee, gift wrapping, etc
- *
- * @return string|null
- */
- public function getType();
- /**
- * Set type (shipping, product, weee, gift wrapping, etc
- *
- * @param string $type
- * @return $this
- */
- public function setType($type);
- /**
- * Get tax_percent
- *
- * @return float
- */
- public function getTaxPercent();
- /**
- * Set tax_percent
- *
- * @param float $taxPercent
- * @return $this
- */
- public function setTaxPercent($taxPercent);
- /**
- * Get price
- *
- * @return float
- */
- public function getPrice();
- /**
- * Set price
- *
- * @param float $price
- * @return $this
- */
- public function setPrice($price);
- /**
- * Get price including tax
- *
- * @return float
- */
- public function getPriceInclTax();
- /**
- * Set price including tax
- *
- * @param float $priceInclTax
- * @return $this
- */
- public function setPriceInclTax($priceInclTax);
- /**
- * Get row total
- *
- * @return float
- */
- public function getRowTotal();
- /**
- * Set row total
- *
- * @param float $rowTotal
- * @return $this
- */
- public function setRowTotal($rowTotal);
- /**
- * Get row total including tax
- *
- * @return float
- */
- public function getRowTotalInclTax();
- /**
- * Set row total including tax
- *
- * @param float $rowTotalInclTax
- * @return $this
- */
- public function setRowTotalInclTax($rowTotalInclTax);
- /**
- * Get row tax amount
- *
- * @return float
- */
- public function getRowTax();
- /**
- * Set row tax amount
- *
- * @param float $rowTax
- * @return $this
- */
- public function setRowTax($rowTax);
- /**
- * Get taxable amount
- *
- * @return float
- */
- public function getTaxableAmount();
- /**
- * Set taxable amount
- *
- * @param float $taxableAmount
- * @return $this
- */
- public function setTaxableAmount($taxableAmount);
- /**
- * Get discount amount
- *
- * @return float
- */
- public function getDiscountAmount();
- /**
- * Set discount amount
- *
- * @param float $discountAmount
- * @return $this
- */
- public function setDiscountAmount($discountAmount);
- /**
- * Get discount tax compensation amount
- *
- * @return float
- */
- public function getDiscountTaxCompensationAmount();
- /**
- * Set discount tax compensation amount
- *
- * @param float $discountTaxCompensationAmount
- * @return $this
- */
- public function setDiscountTaxCompensationAmount($discountTaxCompensationAmount);
- /**
- * Get applied taxes
- *
- * @return \Magento\Tax\Api\Data\AppliedTaxInterface[] | null
- */
- public function getAppliedTaxes();
- /**
- * Set applied taxes
- *
- * @param \Magento\Tax\Api\Data\AppliedTaxInterface[] $appliedTaxes
- * @return $this
- */
- public function setAppliedTaxes(array $appliedTaxes = null);
- /**
- * Return associated item code if this item is associated with another item, null otherwise
- *
- * @return int|null
- */
- public function getAssociatedItemCode();
- /**
- * Set associated item code
- *
- * @param int $associatedItemCode
- * @return $this
- */
- public function setAssociatedItemCode($associatedItemCode);
- /**
- * Retrieve existing extension attributes object or create a new one.
- *
- * @return \Magento\Tax\Api\Data\TaxDetailsItemExtensionInterface|null
- */
- public function getExtensionAttributes();
- /**
- * Set an extension attributes object.
- *
- * @param \Magento\Tax\Api\Data\TaxDetailsItemExtensionInterface $extensionAttributes
- * @return $this
- */
- public function setExtensionAttributes(\Magento\Tax\Api\Data\TaxDetailsItemExtensionInterface $extensionAttributes);
- }