Log in
Model

PackageCreation

Magento\Sales\Model\Order\Shipment\PackageCreation

What it does

This class represents a data model for creating shipment packages in Magento 2.

Developers use this class when programmatically creating shipping packages for orders, particularly when integrating with shipping carriers or custom shipping functionality.

It serves as a container for package creation data and supports extension attributes for custom data fields.

Public Methods

  • getExtensionAttributes()
  • setExtensionAttributes()