ShipOrder
Magento\Sales\Model\Order\Validation\ShipOrder
What it does
This class validates whether an order can be shipped in Magento 2.
Developers use this validator before creating shipments to ensure the order status allows shipping, verify shipment quantities are valid, check tracking information is correct, and validate that requested items can be shipped.
It aggregates multiple validation rules and returns a combined validation result that indicates whether the shipment operation should proceed.
Public Methods
- validate()