Log in
Model

Shipping

Magento\Sales\Model\Order\Shipping

What it does

This class represents shipping information for a sales order in Magento 2.

Developers use it to access and manage order shipping details including the shipping address, shipping method, and shipping totals.

It's commonly used when processing orders, generating invoices, or displaying shipping information in admin panels and customer accounts.

Public Methods

  • getAddress()
  • getMethod()
  • getTotal()
  • setAddress()
  • setMethod()
  • setTotal()
  • getExtensionAttributes()
  • setExtensionAttributes()