Per Source Selection Algorithms HLD
Following interface will be called by the Magento framework at the point of shipment calculation. Changing the implementation of the interface allows affecting the algorithm of the Warehouse resolution.
use Magento\Quote\Model\Quote\Address\RateRequest;
/**
* SourceShippingResolverInterface
*/
interface SourceResolverInterface
{
/**
* Resolve source shipping data
*
* @param RateRequest $request
* @param ShippingRateCalculator $shippingRateCalculator
* @return array
*/
public function resolve(RateRequest $request, ShippingRateCalculator $shippingRateCalculator);
}
Acceptance Criteria
- There is an interface of the Warehouse Selection which can be implemented by the extension to provide the logic of the warehouse selection
Per Source Selection Algorithms HLD
Following interface will be called by the Magento framework at the point of shipment calculation. Changing the implementation of the interface allows affecting the algorithm of the Warehouse resolution.
Acceptance Criteria