AddressAdapterInterface.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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 AddressAdapterInterface
  9. * @api
  10. * @since 100.0.2
  11. */
  12. interface AddressAdapterInterface
  13. {
  14. /**
  15. * Get region name
  16. *
  17. * @return string
  18. */
  19. public function getRegionCode();
  20. /**
  21. * Get country id
  22. *
  23. * @return string
  24. */
  25. public function getCountryId();
  26. /**
  27. * Get street line 1
  28. *
  29. * @return string
  30. */
  31. public function getStreetLine1();
  32. /**
  33. * Get street line 2
  34. *
  35. * @return string
  36. */
  37. public function getStreetLine2();
  38. /**
  39. * Get telephone number
  40. *
  41. * @return string
  42. */
  43. public function getTelephone();
  44. /**
  45. * Get postcode
  46. *
  47. * @return string
  48. */
  49. public function getPostcode();
  50. /**
  51. * Get city name
  52. *
  53. * @return string
  54. */
  55. public function getCity();
  56. /**
  57. * Get first name
  58. *
  59. * @return string
  60. */
  61. public function getFirstname();
  62. /**
  63. * Get last name
  64. *
  65. * @return string
  66. */
  67. public function getLastname();
  68. /**
  69. * Get middle name
  70. *
  71. * @return string|null
  72. */
  73. public function getMiddlename();
  74. /**
  75. * Get customer id
  76. *
  77. * @return int|null
  78. */
  79. public function getCustomerId();
  80. /**
  81. * Get billing/shipping email
  82. *
  83. * @return string
  84. */
  85. public function getEmail();
  86. /**
  87. * Returns name prefix
  88. *
  89. * @return string
  90. */
  91. public function getPrefix();
  92. /**
  93. * Returns name suffix
  94. *
  95. * @return string
  96. */
  97. public function getSuffix();
  98. /**
  99. * Get company
  100. *
  101. * @return string
  102. */
  103. public function getCompany();
  104. }