TotalsItemInterface
Magento\Quote\Api\Data\TotalsItemInterface
What it does
This interface defines the contract for quote totals item data in Magento 2's shopping cart.
Developers use this to retrieve and manipulate individual line item totals including prices, quantities, taxes, discounts, and WEEE taxes in both base and quote currencies.
It's primarily used when building checkout, cart display, or custom pricing logic that needs to access or modify item-level calculations.
Public Methods
- setItemId()
- getItemId()
- getPrice()
- setPrice()
- getBasePrice()
- setBasePrice()
- getQty()
- setQty()
- getRowTotal()
- setRowTotal()
- getBaseRowTotal()
- setBaseRowTotal()
- getRowTotalWithDiscount()
- setRowTotalWithDiscount()
- getTaxAmount()
- setTaxAmount()
- getBaseTaxAmount()
- setBaseTaxAmount()
- getTaxPercent()
- setTaxPercent()
- getDiscountAmount()
- setDiscountAmount()
- getBaseDiscountAmount()
- setBaseDiscountAmount()
- getDiscountPercent()
- setDiscountPercent()
- getPriceInclTax()
- setPriceInclTax()
- getBasePriceInclTax()
- setBasePriceInclTax()
- getRowTotalInclTax()
- setRowTotalInclTax()
- getBaseRowTotalInclTax()
- setBaseRowTotalInclTax()
- getOptions()
- setOptions()
- getWeeeTaxAppliedAmount()
- setWeeeTaxAppliedAmount()
- getWeeeTaxApplied()
- setWeeeTaxApplied()
- getExtensionAttributes()
- getName()
- setName()
- setExtensionAttributes()