OrderItemInterface.php 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  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. /**
  7. * Temando Order Item Interface
  8. *
  9. * An order item as associated with an order entity at the Temando platform.
  10. *
  11. * @package Temando\Shipping\Model
  12. * @author Christoph Aßmann <christoph.assmann@netresearch.de>
  13. * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
  14. * @link http://www.temando.com/
  15. */
  16. interface OrderItemInterface
  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 CATEGORIES = 'categories';
  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. /**
  42. * @return int
  43. */
  44. public function getProductId();
  45. /**
  46. * @return int
  47. */
  48. public function getQty();
  49. /**
  50. * @return string
  51. */
  52. public function getSku();
  53. /**
  54. * @return string
  55. */
  56. public function getName();
  57. /**
  58. * @return string
  59. */
  60. public function getDescription();
  61. /**
  62. * @return string[]
  63. */
  64. public function getCategories();
  65. /**
  66. * @return string
  67. */
  68. public function getDimensionsUom();
  69. /**
  70. * @return float
  71. */
  72. public function getLength();
  73. /**
  74. * @return float
  75. */
  76. public function getWidth();
  77. /**
  78. * @return float
  79. */
  80. public function getHeight();
  81. /**
  82. * @return string
  83. */
  84. public function getWeightUom();
  85. /**
  86. * @return float
  87. */
  88. public function getWeight();
  89. /**
  90. * @return string
  91. */
  92. public function getCurrency();
  93. /**
  94. * @return float
  95. */
  96. public function getAmount();
  97. /**
  98. * @return bool
  99. */
  100. public function isFragile();
  101. /**
  102. * @return bool
  103. */
  104. public function isVirtual();
  105. /**
  106. * @return bool
  107. */
  108. public function isPrePackaged();
  109. /**
  110. * @return bool
  111. */
  112. public function canRotateVertically();
  113. /**
  114. * @return string
  115. */
  116. public function getCountryOfOrigin();
  117. /**
  118. * @return string
  119. */
  120. public function getCountryOfManufacture();
  121. /**
  122. * @return string
  123. */
  124. public function getEccn();
  125. /**
  126. * @return string
  127. */
  128. public function getScheduleBinfo();
  129. /**
  130. * @return string
  131. */
  132. public function getHsCode();
  133. }