Model
TotalSegment
Magento\Quote\Model\Cart\TotalSegment
What it does
This class represents a single line item in the shopping cart totals breakdown (like subtotal, shipping, tax, discount).
Developers use it to structure and pass cart total segment data through Magento's API layer, especially when displaying itemized totals to customers during checkout or in cart summaries.
Public Methods
- getCode()
- setCode()
- getValue()
- setValue()
- getTitle()
- setTitle()
- getArea()
- setArea()
- getExtensionAttributes()
- setExtensionAttributes()