OrderRecipient.php 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. <?php
  2. /**
  3. * Refer to LICENSE.txt distributed with the Temando Shipping module for notice of license
  4. */
  5. namespace Temando\Shipping\Model\Order;
  6. use Magento\Framework\DataObject;
  7. /**
  8. * Temando Order Recipient Interface
  9. *
  10. * An order recipient as associated with an order entity at the Temando platform.
  11. *
  12. * @package Temando\Shipping\Model
  13. * @author Christoph Aßmann <christoph.assmann@netresearch.de>
  14. * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
  15. * @link http://www.temando.com/
  16. */
  17. class OrderRecipient extends DataObject implements OrderRecipientInterface
  18. {
  19. /**
  20. * @return string
  21. */
  22. public function getCompany()
  23. {
  24. return $this->getData(OrderRecipientInterface::COMPANY);
  25. }
  26. /**
  27. * @return string
  28. */
  29. public function getLastname()
  30. {
  31. return $this->getData(OrderRecipientInterface::LASTNAME);
  32. }
  33. /**
  34. * @return string
  35. */
  36. public function getFirstname()
  37. {
  38. return $this->getData(OrderRecipientInterface::FIRSTNAME);
  39. }
  40. /**
  41. * @return string
  42. */
  43. public function getEmail()
  44. {
  45. return $this->getData(OrderRecipientInterface::EMAIL);
  46. }
  47. /**
  48. * @return string
  49. */
  50. public function getPhone()
  51. {
  52. return $this->getData(OrderRecipientInterface::PHONE);
  53. }
  54. /**
  55. * @return string
  56. */
  57. public function getFax()
  58. {
  59. return $this->getData(OrderRecipientInterface::FAX);
  60. }
  61. /**
  62. * @return string
  63. */
  64. public function getNationalId()
  65. {
  66. return $this->getData(OrderRecipientInterface::NATIONAL_ID);
  67. }
  68. /**
  69. * @return string
  70. */
  71. public function getTaxId()
  72. {
  73. return $this->getData(OrderRecipientInterface::TAX_ID);
  74. }
  75. /**
  76. * @return string
  77. */
  78. public function getStreet()
  79. {
  80. return $this->getData(OrderRecipientInterface::STREET);
  81. }
  82. /**
  83. * @return string
  84. */
  85. public function getCountryCode()
  86. {
  87. return $this->getData(OrderRecipientInterface::COUNTRY_CODE);
  88. }
  89. /**
  90. * @return string
  91. */
  92. public function getRegion()
  93. {
  94. return $this->getData(OrderRecipientInterface::REGION);
  95. }
  96. /**
  97. * @return string
  98. */
  99. public function getPostalCode()
  100. {
  101. return $this->getData(OrderRecipientInterface::POSTAL_CODE);
  102. }
  103. /**
  104. * @return string
  105. */
  106. public function getCity()
  107. {
  108. return $this->getData(OrderRecipientInterface::CITY);
  109. }
  110. /**
  111. * @return string
  112. */
  113. public function getSuburb()
  114. {
  115. return $this->getData(OrderRecipientInterface::SUBURB);
  116. }
  117. /**
  118. * @return float
  119. */
  120. public function getLongitude()
  121. {
  122. return $this->getData(OrderRecipientInterface::LONGITUDE);
  123. }
  124. /**
  125. * @return float
  126. */
  127. public function getLatitude()
  128. {
  129. return $this->getData(OrderRecipientInterface::LATITUDE);
  130. }
  131. }