Log in
Interface

ShipmentPackageInterface

Magento\Sales\Api\Data\ShipmentPackageInterface

What it does

This interface defines the contract for shipment package data objects in Magento 2.

Developers use it when working with shipment packages to ensure consistent handling of package information and extension attributes.

It's primarily used in custom shipping modules, order fulfillment systems, or when extending shipment functionality through plugins and observers.

Public Methods

  • getExtensionAttributes()
  • setExtensionAttributes()