ResponseInterface.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <?php
  2. /**
  3. * This file is part of the Klarna KP module
  4. *
  5. * (c) Klarna Bank AB (publ)
  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\Data;
  11. /**
  12. * Interface ResponseInterface
  13. *
  14. * @package Klarna\Kp\Api\Data
  15. */
  16. interface ResponseInterface
  17. {
  18. /**
  19. * PENDING (0)
  20. */
  21. const FRAUD_PENDING = 0;
  22. /**
  23. * REJECTED (1)
  24. */
  25. const FRAUD_REJECTED = 1;
  26. /**
  27. * ACCEPTED (2)
  28. */
  29. const FRAUD_ACCEPTED = 2;
  30. /**
  31. * @return string
  32. */
  33. public function getSessionId();
  34. /**
  35. * @return string
  36. */
  37. public function getClientToken();
  38. /**
  39. * @return int
  40. */
  41. public function getResponseCode();
  42. /**
  43. * @return array
  44. */
  45. public function getPaymentMethodCategories();
  46. /**
  47. * @return string
  48. */
  49. public function getMessage();
  50. /**
  51. * @return string
  52. */
  53. public function getOrderId();
  54. /**
  55. * @return string
  56. */
  57. public function getRedirectUrl();
  58. /**
  59. * @return int
  60. */
  61. public function getFraudStatus();
  62. /**
  63. * @return bool
  64. */
  65. public function isSuccessfull();
  66. /**
  67. * @return array
  68. */
  69. public function toArray();
  70. }