ShippingAssignmentBuilder
Magento\Sales\Model\Order\ShippingAssignmentBuilder
What it does
This builder class creates ShippingAssignment objects for Magento 2 orders, which bundle together shipping information, order items, and stock allocation.
Developers use this when they need to structure shipping data for order processing, particularly when working with order extensions or customizing the order fulfillment workflow.
It handles the relationship between an order and its shipping details in a standardized way.
Public Methods
- setOrderId()
- setOrder()
- create()