InvoiceOrderInterface.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Sales\Model\Order\Validation;
  7. use Magento\Sales\Api\Data\InvoiceCommentCreationInterface;
  8. use Magento\Sales\Api\Data\InvoiceCreationArgumentsInterface;
  9. use Magento\Sales\Api\Data\InvoiceInterface;
  10. use Magento\Sales\Api\Data\OrderInterface;
  11. use Magento\Sales\Model\ValidatorResultInterface;
  12. /**
  13. * Interface InvoiceOrderInterface
  14. *
  15. * @api
  16. * @since 100.1.3
  17. */
  18. interface InvoiceOrderInterface
  19. {
  20. /**
  21. * @param OrderInterface $order
  22. * @param InvoiceInterface $invoice
  23. * @param bool $capture
  24. * @param array $items
  25. * @param bool $notify
  26. * @param bool $appendComment
  27. * @param InvoiceCommentCreationInterface|null $comment
  28. * @param InvoiceCreationArgumentsInterface|null $arguments
  29. * @return ValidatorResultInterface
  30. * @since 100.1.3
  31. */
  32. public function validate(
  33. OrderInterface $order,
  34. InvoiceInterface $invoice,
  35. $capture = false,
  36. array $items = [],
  37. $notify = false,
  38. $appendComment = false,
  39. InvoiceCommentCreationInterface $comment = null,
  40. InvoiceCreationArgumentsInterface $arguments = null
  41. );
  42. }