Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Interface for the Source Selection Algorithms #8

Closed
vrann opened this issue May 18, 2017 · 0 comments
Closed

Create Interface for the Source Selection Algorithms #8

vrann opened this issue May 18, 2017 · 0 comments

Comments

@vrann
Copy link
Contributor

vrann commented May 18, 2017

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants