GetReservationsQuantityInterface.php 551 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. declare(strict_types=1);
  7. namespace Magento\InventoryReservationsApi\Model;
  8. /**
  9. * Responsible for retrieving Reservation Quantity (without stock data)
  10. *
  11. * @api
  12. */
  13. interface GetReservationsQuantityInterface
  14. {
  15. /**
  16. * Given a product sku and a stock id, return reservation quantity
  17. *
  18. * @param string $sku
  19. * @param int $stockId
  20. * @return float
  21. */
  22. public function execute(string $sku, int $stockId): float;
  23. }