123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\Tax\Api\Data;
- /**
- * Tax details items interface.
- * @api
- * @since 100.0.2
- */
- 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);
- }
|