ExportDeclaration.php 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <?php
  2. /**
  3. * Refer to LICENSE.txt distributed with the Temando Shipping module for notice of license
  4. */
  5. namespace Temando\Shipping\Model\Shipment;
  6. use \Magento\Framework\DataObject;
  7. /**
  8. * Temando Shipment Export Declaration Entity
  9. *
  10. * This model contains the data used in the shipping module, not necessarily all
  11. * data available in its webservice representation.
  12. *
  13. * @package Temando\Shipping\Model
  14. * @author Sebastian Ertner <sebastian.ertner@netresearch.de>
  15. * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
  16. * @link http://www.temando.com/
  17. */
  18. class ExportDeclaration extends DataObject implements ExportDeclarationInterface
  19. {
  20. /**
  21. * @return string
  22. */
  23. public function getSignatoryPersonTitle()
  24. {
  25. return $this->getData(ExportDeclarationInterface::SIGNATORY_PERSON_TITLE);
  26. }
  27. /**
  28. * @return string
  29. */
  30. public function getSignatoryPersonFirstName()
  31. {
  32. return $this->getData(ExportDeclarationInterface::SIGNATORY_PERSON_FIRST_NAME);
  33. }
  34. /**
  35. * @return string
  36. */
  37. public function getSignatoryPersonLastName()
  38. {
  39. return $this->getData(ExportDeclarationInterface::SIGNATORY_PERSON_LAST_NAME);
  40. }
  41. /**
  42. * @return string
  43. */
  44. public function getIncoterm()
  45. {
  46. return $this->getData(ExportDeclarationInterface::INCOTERM);
  47. }
  48. /**
  49. * @return string
  50. */
  51. public function getDeclaredValue()
  52. {
  53. return $this->getData(ExportDeclarationInterface::DECLARED_VALUE);
  54. }
  55. /**
  56. * @return string
  57. */
  58. public function getExportReason()
  59. {
  60. return $this->getData(ExportDeclarationInterface::EXPORT_REASON);
  61. }
  62. /**
  63. * @return string
  64. */
  65. public function getExportCategory()
  66. {
  67. return $this->getData(ExportDeclarationInterface::EXPORT_CATEGORY);
  68. }
  69. /**
  70. * @return string
  71. */
  72. public function getEdn()
  73. {
  74. return $this->getData(ExportDeclarationInterface::EDN);
  75. }
  76. /**
  77. * @return string
  78. */
  79. public function getEel()
  80. {
  81. return $this->getData(ExportDeclarationInterface::EEL);
  82. }
  83. /**
  84. * @return string
  85. */
  86. public function getEei()
  87. {
  88. return $this->getData(ExportDeclarationInterface::EEI);
  89. }
  90. /**
  91. * @return string
  92. */
  93. public function getItn()
  94. {
  95. return $this->getData(ExportDeclarationInterface::ITN);
  96. }
  97. /**
  98. * @return bool
  99. */
  100. public function isDutiable()
  101. {
  102. return $this->getData(ExportDeclarationInterface::IS_DUTIABLE);
  103. }
  104. }