TotalSegmentInterface
Magento\Quote\Api\Data\TotalSegmentInterface
What it does
This interface defines the structure for individual total segments in a Magento 2 shopping cart or quote.
Developers use it when working with cart totals (subtotal, shipping, tax, discounts) to access or display specific total components, each with a code, title, value, and display area.
It's commonly used in checkout, cart totals display, and when customizing how price breakdowns appear to customers.
Public Methods
- getCode()
- setCode()
- getTitle()
- setTitle()
- getValue()
- setValue()
- getArea()
- setArea()
- getExtensionAttributes()
- setExtensionAttributes()