ShippingMethodManagementInterface.php 1012 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * Refer to LICENSE.txt distributed with the Temando Shipping module for notice of license
  4. */
  5. namespace Temando\Shipping\Api\Quote;
  6. use Magento\Quote\Api\Data\AddressExtensionInterface;
  7. /**
  8. * @deprecated since 1.2.0
  9. * Interface ShippingMethodManagementInterface
  10. *
  11. * Allow additional data (extension attributes) to be passed into the shipping
  12. * estimation process.
  13. * @api
  14. */
  15. interface ShippingMethodManagementInterface
  16. {
  17. /**
  18. * Estimate shipping with extension attributes
  19. *
  20. * @see \Magento\Quote\Api\ShippingMethodManagementInterface::estimateByAddressId
  21. *
  22. * @param int $cartId The shopping cart ID.
  23. * @param int $addressId The estimate address id
  24. * @param \Magento\Quote\Api\Data\AddressExtensionInterface|null $extensionAttributes
  25. * @return \Magento\Quote\Api\Data\ShippingMethodInterface[] An array of shipping methods.
  26. */
  27. public function estimateByAddressId($cartId, $addressId, AddressExtensionInterface $extensionAttributes = null);
  28. }