QuoteInterface.php 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  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;
  11. /**
  12. * Interface QuoteInterface
  13. *
  14. * @method getId():int
  15. */
  16. interface QuoteInterface
  17. {
  18. /**
  19. * Get the Klarna session_id
  20. *
  21. * @return string
  22. */
  23. public function getSessionId();
  24. /**
  25. * Get the Klarna client token
  26. *
  27. * @return string
  28. */
  29. public function getClientToken();
  30. /**
  31. * Get the Klarna Authorization token
  32. *
  33. * @return string
  34. */
  35. public function getAuthorizationToken();
  36. /**
  37. * Get whether the quote is active/inactive
  38. *
  39. * @return int
  40. * @deprecated 5.3.0
  41. * @see isActive
  42. */
  43. public function getIsActive();
  44. /**
  45. * Get whether the quote is active/inactive
  46. *
  47. * @return bool
  48. */
  49. public function isActive();
  50. /**
  51. * Set quote active/inactive
  52. *
  53. * @param int $active
  54. * @return $this
  55. */
  56. public function setIsActive($active);
  57. /**
  58. * Set client_token_id
  59. *
  60. * @param string $token
  61. * @return $this
  62. */
  63. public function setClientToken($token);
  64. /**
  65. * Set authorization token
  66. *
  67. * @param string $token
  68. * @return $this
  69. */
  70. public function setAuthorizationToken($token);
  71. /**
  72. * Set Klarna session_id
  73. *
  74. * @param string $sessionId
  75. * @return $this
  76. */
  77. public function setSessionId($sessionId);
  78. /**
  79. * Get Magento Quote ID
  80. *
  81. * @return int
  82. */
  83. public function getQuoteId();
  84. /**
  85. * Set Magento Quote ID
  86. *
  87. * @param int $quoteId
  88. * @return $this
  89. */
  90. public function setQuoteId($quoteId);
  91. /**
  92. * Get Klarna Payment Methods
  93. *
  94. * @return string[]
  95. */
  96. public function getPaymentMethods();
  97. /**
  98. * Set Klarna Payment Methods
  99. *
  100. * @param string[]|string $methods
  101. * @return $this
  102. */
  103. public function setPaymentMethods($methods);
  104. /**
  105. * Set Klarna Payment Method Info
  106. *
  107. * @param string[] $methodinfo
  108. * @return $this
  109. */
  110. public function setPaymentMethodInfo($methodinfo);
  111. /**
  112. * Get Klarna Payment Method Info
  113. *
  114. * @return object[]
  115. */
  116. public function getPaymentMethodInfo();
  117. }