DeferredShippingMethodChooserInterface.php 743 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\InstantPurchase\Model\ShippingMethodChoose;
  7. use Magento\Quote\Model\Quote\Address;
  8. /**
  9. * Provides mechanism to defer shipping method choose to the moment when quote is defined.
  10. *
  11. * @api
  12. * @since 100.2.0
  13. */
  14. interface DeferredShippingMethodChooserInterface
  15. {
  16. /**
  17. * Carrier code to set for deferred shipping method.
  18. */
  19. const CARRIER = 'instant-purchase';
  20. /**
  21. * Choose shipping method for a quote address.
  22. *
  23. * @param Address $address
  24. * @return string|null Quote shipping method code if available
  25. * @since 100.2.0
  26. */
  27. public function choose(Address $address);
  28. }