Log in
Model

ShippingAssignmentBuilder

Magento\Sales\Model\Order\ShippingAssignmentBuilder

What it does

This builder class creates shipping assignment objects for sales orders, which group order items with their shipping information.

Developers use this when they need to construct complete shipping assignment data structures, typically during order processing, invoice creation, or when preparing order data for shipment.

It handles loading the order and associating items with their shipping details.

Public Methods

  • setOrderId()
  • setOrder()
  • create()