SessionInitiatorInterface.php 558 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. * This file is part of the Klarna Kp module
  4. *
  5. * (c) Klarna AB
  6. *
  7. * For the full copyright and license information, please view the NOTICE
  8. * and LICENSE files that were distributed with this source code.
  9. */
  10. namespace Klarna\Kp\Api;
  11. use Magento\Quote\Api\Data\CartInterface;
  12. /**
  13. * Interface SessionInitiatorInterface
  14. *
  15. * @package Klarna\Kp\Api
  16. */
  17. interface SessionInitiatorInterface
  18. {
  19. /**
  20. * @param CartInterface $quote
  21. * @param string $code
  22. * @return bool
  23. */
  24. public function checkAvailable($quote, $code);
  25. }