Log in
Model

ShippingBuilder

Magento\Sales\Model\Order\ShippingBuilder

What it does

This builder class constructs ShippingInterface objects from order data, encapsulating all shipping-related information including address, method, and totals.

Developers use it to retrieve complete shipping information for an order in a structured format, particularly useful when working with Magento's REST/SOAP APIs or when needing to pass shipping data between different parts of the application.

Public Methods

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