Item
Magento\Sales\Model\Order\Shipment\Item
What it does
This class represents an individual item within a shipment in Magento 2.
Developers use it when creating or managing shipments to track which products and quantities are being shipped, maintain references to the original order items, and update inventory quantities.
It handles the relationship between shipped items and their corresponding order items, including product details like SKU, price, weight, and quantity.
Public Methods
- setShipment()
- getShipment()
- setOrderItem()
- getOrderItem()
- setQty()
- register()
- getAdditionalData()
- getDescription()
- getName()
- getOrderItemId()
- getParentId()
- getPrice()
- getProductId()
- getQty()
- getRowTotal()
- getSku()
- getWeight()
- setParentId()
- setRowTotal()
- setPrice()
- setWeight()
- setProductId()
- setOrderItemId()
- setAdditionalData()
- setDescription()
- setName()
- setSku()
- getExtensionAttributes()
- setExtensionAttributes()