GetSourceItemConfigurationInterface.php 966 B

1234567891011121314151617181920212223242526272829303132
  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\InventoryLowQuantityNotificationApi\Api;
  8. /**
  9. * Get the source item configuration
  10. * Firstly try to load Source Item configuration if configuration isn't exist then load global configuration value
  11. *
  12. * Used fully qualified namespaces in annotations for proper work of WebApi request parser
  13. *
  14. * @api
  15. */
  16. interface GetSourceItemConfigurationInterface
  17. {
  18. /**
  19. * Get the source item configuration
  20. *
  21. * @param string $sourceCode
  22. * @param string $sku
  23. * @return \Magento\InventoryLowQuantityNotificationApi\Api\Data\SourceItemConfigurationInterface
  24. * @throws \Magento\Framework\Exception\LocalizedException
  25. */
  26. public function execute(
  27. string $sourceCode,
  28. string $sku
  29. ): \Magento\InventoryLowQuantityNotificationApi\Api\Data\SourceItemConfigurationInterface;
  30. }