Model
TrackCreation
Magento\Sales\Model\Order\Shipment\TrackCreation
What it does
This class is a data transfer object (DTO) used when creating shipment tracking information via API or programmatic operations.
Developers use this class to pass tracking details (tracking number, carrier code, and title) when adding tracking information to a shipment, particularly in service contracts and web API integrations.
Public Methods
- getTrackNumber()
- setTrackNumber()
- getTitle()
- setTitle()
- getCarrierCode()
- setCarrierCode()
- getExtensionAttributes()
- setExtensionAttributes()