Log in
Interface

ShipmentItemInterface

Magento\Sales\Api\Data\ShipmentItemInterface

What it does

This interface defines the contract for individual items within a shipment in Magento 2.

Developers use it when working with shipment data to access or modify product details like SKU, name, price, weight, and quantity for each item being shipped.

It's commonly used in shipment creation, order fulfillment workflows, and when displaying shipment information in the admin panel or customer account.

Public Methods

  • getAdditionalData()
  • getDescription()
  • getEntityId()
  • setEntityId()
  • getName()
  • getParentId()
  • getPrice()
  • getProductId()
  • getRowTotal()
  • getSku()
  • getWeight()
  • setParentId()
  • setRowTotal()
  • setPrice()
  • setWeight()
  • setProductId()
  • setAdditionalData()
  • setDescription()
  • setName()
  • setSku()
  • getExtensionAttributes()
  • setExtensionAttributes()