OrderCollectionPoint.php 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <?php
  2. /**
  3. * Refer to LICENSE.txt distributed with the Temando Shipping module for notice of license
  4. */
  5. namespace Temando\Shipping\Model\CollectionPoint;
  6. use Magento\Framework\DataObject;
  7. use Temando\Shipping\Api\Data\CollectionPoint\OrderCollectionPointInterface;
  8. /**
  9. * Temando Order Collection Point Entity
  10. *
  11. * @deprecated since 1.4.0
  12. * @see \Temando\Shipping\Model\Delivery\OrderCollectionPoint
  13. *
  14. * This model contains a subset of data that is used in the shipping module.
  15. * It does not contain all data as available in its platform representation.
  16. *
  17. * @package Temando\Shipping\Model
  18. * @author Christoph Aßmann <christoph.assmann@netresearch.de>
  19. * @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
  20. * @link https://www.temando.com/
  21. */
  22. class OrderCollectionPoint extends DataObject implements OrderCollectionPointInterface
  23. {
  24. /**
  25. * @return int
  26. */
  27. public function getRecipientAddressId()
  28. {
  29. return $this->getData(OrderCollectionPointInterface::RECIPIENT_ADDRESS_ID);
  30. }
  31. /**
  32. * @return string
  33. */
  34. public function getCollectionPointId()
  35. {
  36. return $this->getData(OrderCollectionPointInterface::COLLECTION_POINT_ID);
  37. }
  38. /**
  39. * @return string
  40. */
  41. public function getName()
  42. {
  43. return $this->getData(OrderCollectionPointInterface::NAME);
  44. }
  45. /**
  46. * @return string
  47. */
  48. public function getCountry()
  49. {
  50. return $this->getData(OrderCollectionPointInterface::COUNTRY);
  51. }
  52. /**
  53. * @return string
  54. */
  55. public function getRegion()
  56. {
  57. return $this->getData(OrderCollectionPointInterface::REGION);
  58. }
  59. /**
  60. * @return string
  61. */
  62. public function getPostcode()
  63. {
  64. return $this->getData(OrderCollectionPointInterface::POSTCODE);
  65. }
  66. /**
  67. * @return string
  68. */
  69. public function getCity()
  70. {
  71. return $this->getData(OrderCollectionPointInterface::CITY);
  72. }
  73. /**
  74. * @return string[]
  75. */
  76. public function getStreet()
  77. {
  78. return $this->getData(OrderCollectionPointInterface::STREET);
  79. }
  80. }