Model
CanShip
Magento\Sales\Model\Order\Validation\CanShip
What it does
This validator class determines whether a shipment can be created for a given order in Magento 2.
Developers use this class to validate order state and ensure items are available for shipping before creating a shipment.
It checks if the order is in an appropriate state (not on hold, canceled, or virtual) and verifies that at least one item has a quantity ready to ship.
Public Methods
- validate()