CaseManagementInterface.php 935 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Signifyd\Api;
  7. /**
  8. * Signifyd management interface
  9. * Allows to performs operations with Signifyd cases.
  10. *
  11. * @api
  12. * @since 100.2.0
  13. */
  14. interface CaseManagementInterface
  15. {
  16. /**
  17. * Creates new Case entity linked to order id.
  18. *
  19. * @param int $orderId
  20. * @return \Magento\Signifyd\Api\Data\CaseInterface
  21. * @throws \Magento\Framework\Exception\NotFoundException If order does not exists
  22. * @throws \Magento\Framework\Exception\AlreadyExistsException If case for $orderId already exists
  23. * @since 100.2.0
  24. */
  25. public function create($orderId);
  26. /**
  27. * Gets Case entity associated with order id.
  28. *
  29. * @param int $orderId
  30. * @return \Magento\Signifyd\Api\Data\CaseInterface|null
  31. * @since 100.2.0
  32. */
  33. public function getByOrderId($orderId);
  34. }