InvoiceOrderInterface.php 970 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Sales\Api;
  7. /**
  8. * Class InvoiceOrderInterface
  9. *
  10. * @api
  11. * @since 100.1.2
  12. */
  13. interface InvoiceOrderInterface
  14. {
  15. /**
  16. * @param int $orderId
  17. * @param bool|false $capture
  18. * @param \Magento\Sales\Api\Data\InvoiceItemCreationInterface[] $items
  19. * @param bool|false $notify
  20. * @param bool|false $appendComment
  21. * @param Data\InvoiceCommentCreationInterface|null $comment
  22. * @param Data\InvoiceCreationArgumentsInterface|null $arguments
  23. * @return int
  24. * @since 100.1.2
  25. */
  26. public function execute(
  27. $orderId,
  28. $capture = false,
  29. array $items = [],
  30. $notify = false,
  31. $appendComment = false,
  32. \Magento\Sales\Api\Data\InvoiceCommentCreationInterface $comment = null,
  33. \Magento\Sales\Api\Data\InvoiceCreationArgumentsInterface $arguments = null
  34. );
  35. }