Model
ItemCreation
Magento\Sales\Model\Order\Shipment\ItemCreation
What it does
This class is a data transfer object (DTO) used when creating shipment items in Magento 2.
Developers use this class to specify which order items to ship and their quantities when programmatically creating shipments through the API.
It encapsulates the order item ID, quantity to ship, and any extension attributes needed for the shipment creation process.
Public Methods
- getOrderItemId()
- setOrderItemId()
- getQty()
- setQty()
- getExtensionAttributes()
- setExtensionAttributes()