OrderInterface.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <?php
  2. /**
  3. * This file is part of the Klarna Core 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\Core\Api;
  11. interface OrderInterface
  12. {
  13. /**
  14. * Get Entity ID
  15. *
  16. * @return int
  17. */
  18. public function getId();
  19. /**
  20. * Set Entity ID
  21. *
  22. * @param int $id
  23. * @return $this
  24. */
  25. public function setId($id);
  26. /**
  27. * Get Magento Order ID
  28. *
  29. * @return int
  30. */
  31. public function getOrderId();
  32. /**
  33. * Set the Magento Order ID
  34. *
  35. * @param int $orderId
  36. * @return $this
  37. */
  38. public function setOrderId($orderId);
  39. /**
  40. * Get Reservation ID
  41. *
  42. * @return string
  43. */
  44. public function getReservationId();
  45. /**
  46. * Set Reservation ID
  47. *
  48. * @param string $reservationId
  49. * @return $this
  50. */
  51. public function setReservationId($reservationId);
  52. /**
  53. * Get Session ID
  54. *
  55. * @return string
  56. */
  57. public function getSessionId();
  58. /**
  59. * Set Session ID
  60. *
  61. * @param string $sessionId
  62. * @return $this
  63. */
  64. public function setSessionId($sessionId);
  65. /**
  66. * Set Klarna Order ID
  67. *
  68. * @param string $orderId
  69. * @return $this
  70. */
  71. public function setKlarnaOrderId($orderId);
  72. /**
  73. * Get Klarna Order ID
  74. *
  75. * @return string
  76. */
  77. public function getKlarnaOrderId();
  78. /**
  79. * Set status of acknowledging the order with Klarna
  80. *
  81. * @param int $acknowledged
  82. * @return $this
  83. */
  84. public function setIsAcknowledged($acknowledged);
  85. /**
  86. * Get status of acknowledging the order with Klarna
  87. *
  88. * @return int
  89. */
  90. public function getIsAcknowledged();
  91. }