PackageItemInterface.php 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  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. /**
  7. * Temando Package Item Interface.
  8. *
  9. * The package data object represents one part of the shipment packages list.
  10. *
  11. * @package Temando\Shipping\Model
  12. * @author Rhodri Davies <rhodri.davies@temando.com>
  13. * @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
  14. * @link https://www.temando.com
  15. */
  16. interface PackageItemInterface
  17. {
  18. const PRODUCT_ID = 'product_id';
  19. const QTY = 'qty';
  20. const SKU = 'sku';
  21. const NAME = 'name';
  22. const DESCRIPTION = 'description';
  23. const CATEGORY_NAME = 'category_name';
  24. const DIMENSIONS_UOM = 'dimensions_uom';
  25. const LENGTH = 'length';
  26. const WIDTH = 'width';
  27. const HEIGHT = 'height';
  28. const WEIGHT_UOM = 'weight_uom';
  29. const WEIGHT = 'weight';
  30. const CURRENCY = 'currency';
  31. const AMOUNT = 'amount';
  32. const IS_FRAGILE = 'is_fragile';
  33. const IS_VIRTUAL = 'is_virtual';
  34. const IS_PREPACKAGED = 'is_prepackaged';
  35. const CAN_ROTATE_VERTICAL = 'can_rotate_vertical';
  36. const COUNTRY_OF_ORIGIN = 'country_of_origin';
  37. const COUNTRY_OF_MANUFACTURE = 'country_of_manufacture';
  38. const ECCN = 'eccn';
  39. const SCHEDULE_B_INFO = 'schedule_b_info';
  40. const HS_CODE = 'hs_code';
  41. const MANUFACTURE = 'manufacture';
  42. const UNIT = 'unit';
  43. const ORIGIN = 'origin';
  44. const MONETARY_VALUE = 'monetary_value';
  45. const CLASSIFICATION_CODES = 'classification_codes';
  46. /**
  47. * @return int
  48. */
  49. public function getProductId();
  50. /**
  51. * @return int
  52. */
  53. public function getQty();
  54. /**
  55. * @return string
  56. */
  57. public function getSku();
  58. /**
  59. * @return string
  60. */
  61. public function getName();
  62. /**
  63. * @return string
  64. */
  65. public function getDescription();
  66. /**
  67. * @return string
  68. */
  69. public function getCategoryName();
  70. /**
  71. * @return string
  72. */
  73. public function getDimensionsUom();
  74. /**
  75. * @return float
  76. */
  77. public function getLength();
  78. /**
  79. * @return float
  80. */
  81. public function getWidth();
  82. /**
  83. * @return float
  84. */
  85. public function getHeight();
  86. /**
  87. * @return string
  88. */
  89. public function getWeightUom();
  90. /**
  91. * @return float
  92. */
  93. public function getWeight();
  94. /**
  95. * @return string
  96. */
  97. public function getCurrency();
  98. /**
  99. * @return float
  100. */
  101. public function getAmount();
  102. /**
  103. * @return bool
  104. */
  105. public function isFragile();
  106. /**
  107. * @return bool
  108. */
  109. public function isVirtual();
  110. /**
  111. * @return bool
  112. */
  113. public function isPrePackaged();
  114. /**
  115. * @return bool
  116. */
  117. public function canRotateVertically();
  118. /**
  119. * @return string
  120. */
  121. public function getCountryOfOrigin();
  122. /**
  123. * @return string
  124. */
  125. public function getCountryOfManufacture();
  126. /**
  127. * @return string
  128. */
  129. public function getEccn();
  130. /**
  131. * @return string
  132. */
  133. public function getScheduleBinfo();
  134. /**
  135. * @return string
  136. */
  137. public function getHsCode();
  138. /**
  139. * @return string
  140. */
  141. public function getMonetaryValue();
  142. }