OrderAdapterInterface.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Payment\Gateway\Data;
  7. /**
  8. * Interface OrderAdapterInterface
  9. * @api
  10. * @since 100.0.2
  11. */
  12. interface OrderAdapterInterface
  13. {
  14. /**
  15. * Returns currency code
  16. *
  17. * @return string
  18. */
  19. public function getCurrencyCode();
  20. /**
  21. * Returns order increment id
  22. *
  23. * @return string
  24. */
  25. public function getOrderIncrementId();
  26. /**
  27. * Returns customer ID
  28. *
  29. * @return int|null
  30. */
  31. public function getCustomerId();
  32. /**
  33. * Returns billing address
  34. *
  35. * @return AddressAdapterInterface|null
  36. */
  37. public function getBillingAddress();
  38. /**
  39. * Returns shipping address
  40. *
  41. * @return AddressAdapterInterface|null
  42. */
  43. public function getShippingAddress();
  44. /**
  45. * Returns order store id
  46. *
  47. * @return int
  48. */
  49. public function getStoreId();
  50. /**
  51. * Returns order id
  52. *
  53. * @return int
  54. */
  55. public function getId();
  56. /**
  57. * Returns order grand total amount
  58. *
  59. * @return float
  60. */
  61. public function getGrandTotalAmount();
  62. /**
  63. * Returns list of line items in the cart
  64. *
  65. * @return array
  66. */
  67. public function getItems();
  68. /**
  69. * Gets the remote IP address for the order.
  70. *
  71. * @return string|null Remote IP address.
  72. */
  73. public function getRemoteIp();
  74. }