Interface
ShippingAssignmentInterface
Magento\Quote\Api\Data\ShippingAssignmentInterface
What it does
This interface defines the structure for shipping assignments in Magento 2 quotes.
It links shipping information with specific cart items, allowing different groups of items in a single order to have different shipping methods or addresses.
Developers use this when implementing multi-shipping functionality or customizing how shipping is assigned to quote items.
Public Methods
- getShipping()
- setShipping()
- getItems()
- setItems()
- getExtensionAttributes()
- setExtensionAttributes()