Model
Shipping
Magento\Sales\Model\Order\Shipping
What it does
This class represents the shipping information for an order in Magento 2.
Developers use it to manage shipping-related data including the shipping address, shipping method code, and shipping totals.
It's commonly used when retrieving or setting order shipping details through the Sales API or when working with order data in custom modules.
Public Methods
- getAddress()
- getMethod()
- getTotal()
- setAddress()
- setMethod()
- setTotal()
- getExtensionAttributes()
- setExtensionAttributes()