Model
ShippingAssignment
Magento\Sales\Model\Order\ShippingAssignment
What it does
ShippingAssignment is a data model that groups together shipping information, order items, and inventory stock ID for an order.
Developers use this class when processing orders that need to be shipped from different warehouses or when managing multi-shipment orders, as it associates specific items with their shipping details and source inventory location.
Public Methods
- getShipping()
- getItems()
- getStockId()
- setShipping()
- setItems()
- setStockId()
- getExtensionAttributes()
- setExtensionAttributes()