SourceDeductionRequestInterface.php 836 B

123456789101112131415161718192021222324252627282930313233343536373839
  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\InventorySourceDeductionApi\Model;
  8. use Magento\InventorySalesApi\Api\Data\SalesEventInterface;
  9. use Magento\InventorySalesApi\Api\Data\SalesChannelInterface;
  10. /**
  11. * Request products in a given Qty, sourceCode and StockId
  12. *
  13. * @api
  14. */
  15. interface SourceDeductionRequestInterface
  16. {
  17. /**
  18. * @return string
  19. */
  20. public function getSourceCode(): string;
  21. /**
  22. * @return ItemToDeductInterface[]
  23. */
  24. public function getItems(): array;
  25. /**
  26. * @return SalesChannelInterface
  27. */
  28. public function getSalesChannel(): SalesChannelInterface;
  29. /**
  30. * @return SalesEventInterface
  31. */
  32. public function getSalesEvent(): SalesEventInterface;
  33. }