Model
CanShip
Magento\Sales\Model\Order\Validation\CanShip
What it does
This validator class determines whether an order can have a shipment created for it.
Developers use this when implementing shipping functionality to ensure orders meet requirements like having a valid state (not canceled, on hold, or in payment review), containing non-virtual items, and having items with quantities available to ship.
Public Methods
- validate()