AbstractCarrierOnline
Magento\Shipping\Model\Carrier\AbstractCarrierOnline
What it does
This abstract class serves as the foundation for all online shipping carrier integrations in Magento 2 (UPS, FedEx, USPS, etc.).
Developers extend this class when creating custom shipping carrier modules that need to communicate with external shipping APIs for rate calculations, tracking information, and shipping label generation.
It provides common functionality like request validation, package handling, XML parsing, and caching of carrier quotes.
Public Methods
- setActiveFlag()
- getCarrierCode()
- getTrackingInfo()
- isTrackingAvailable()
- isCityRequired()
- isZipCodeRequired()
- isShippingLabelsAvailable()
- getAllItems()
- proccessAdditionalValidation()
- processAdditionalValidation()
- requestToShipment()
- returnOfShipment()
- rollBack()
- isGirthAllowed()
- setRawRequest()
- getMethodPrice()
- parseXml()
- canCollectRates()