Model
CarrierResult
Magento\Shipping\Model\Rate\CarrierResult
What it does
This class aggregates and manages shipping rate results from multiple carrier requests in Magento 2.
It extends the base Result class to handle deferred processing of carrier responses, allowing rates to be collected asynchronously and then sorted by price when accessed.
Developers use this when implementing custom shipping methods or working with the shipping rate collection process.
Public Methods
- appendResult()
- getAllRates()
- getError()
- getRateById()
- getCheapestRate()
- getRatesByCarrier()
- asArray()
- sortRatesByPrice()
- updateRatePrice()