Log in
Model

AbstractCarrierOnline

Magento\Shipping\Model\Carrier\AbstractCarrierOnline

What it does

AbstractCarrierOnline serves as the base class for online shipping carriers (like UPS, FedEx, USPS) that connect to external APIs for real-time shipping rates and label generation.

Developers extend this class when creating integrations with shipping carrier web services, as it provides common functionality for rate calculations, shipment requests, tracking, label printing, and validation of shipping requirements like weight limits and zip codes.

Public Methods

  • setActiveFlag()
  • getCarrierCode()
  • getTrackingInfo()
  • isTrackingAvailable()
  • isCityRequired()
  • isZipCodeRequired()
  • isShippingLabelsAvailable()
  • getAllItems()
  • proccessAdditionalValidation()
  • processAdditionalValidation()
  • requestToShipment()
  • returnOfShipment()
  • rollBack()
  • isGirthAllowed()
  • setRawRequest()
  • getMethodPrice()
  • parseXml()
  • canCollectRates()