CaseCreationServiceInterface.php 816 B

1234567891011121314151617181920212223242526272829
  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 case creation interface
  9. *
  10. * Interface of service for new Signifyd case creation and registering it on Magento side.
  11. * Implementation should send request to Signifyd API and create new entity in Magento.
  12. *
  13. * @api
  14. * @since 100.2.0
  15. */
  16. interface CaseCreationServiceInterface
  17. {
  18. /**
  19. * Create new case for order with specified id.
  20. *
  21. * @param int $orderId
  22. * @return bool
  23. * @throws \Magento\Framework\Exception\NotFoundException If order does not exists
  24. * @throws \Magento\Framework\Exception\AlreadyExistsException If case for $orderId already exists
  25. * @since 100.2.0
  26. */
  27. public function createForOrder($orderId);
  28. }