Log in
Model

PackageCreation

Magento\Sales\Model\Order\Shipment\PackageCreation

What it does

This class represents a data model for package creation during the shipment process in Magento 2.

Developers use it when creating packages for orders that need to be shipped, typically through API or programmatic shipment creation.

It serves as a container for extension attributes that can be added by third-party modules to extend package information without modifying core code.

Public Methods

  • getExtensionAttributes()
  • setExtensionAttributes()