Log in
Model

ShippingBuilder

Magento\Sales\Model\Order\ShippingBuilder

What it does

The ShippingBuilder class is responsible for creating a ShippingInterface object that contains all shipping-related information for a specific order.

Developers use this class when they need to extract and organize shipping data (address, method, totals, taxes, discounts) from an order into a structured shipping object, commonly used in order processing, invoicing, or API responses.

Public Methods

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