QuoteDetailsItemInterface
Magento\Tax\Api\Data\QuoteDetailsItemInterface
What it does
This interface defines the contract for representing individual line items in a quote when calculating taxes in Magento 2.
Developers use this when working with tax calculations to pass item details like price, quantity, tax class, discounts, and whether tax is included.
It's essential for custom tax calculation implementations or when integrating with external tax services that need detailed item information.
Public Methods
- getCode()
- setCode()
- getType()
- setType()
- getTaxClassKey()
- setTaxClassKey()
- getUnitPrice()
- setUnitPrice()
- getQuantity()
- setQuantity()
- getIsTaxIncluded()
- setIsTaxIncluded()
- getShortDescription()
- setShortDescription()
- getDiscountAmount()
- setDiscountAmount()
- getParentCode()
- setParentCode()
- getAssociatedItemCode()
- setAssociatedItemCode()
- getTaxClassId()
- setTaxClassId()
- getExtensionAttributes()
- setExtensionAttributes()