123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204 |
- <?php
- /**
- * Refer to LICENSE.txt distributed with the Temando Shipping module for notice of license
- */
- namespace Temando\Shipping\Model\Order;
- use Magento\Framework\DataObject;
- /**
- * Temando Order Item
- *
- * An order item as associated with an order entity at the Temando platform.
- *
- * @package Temando\Shipping\Model
- * @author Christoph Aßmann <christoph.assmann@netresearch.de>
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
- * @link http://www.temando.com/
- */
- class OrderItem extends DataObject implements OrderItemInterface
- {
- /**
- * @return int
- */
- public function getProductId()
- {
- return $this->getData(OrderItemInterface::PRODUCT_ID);
- }
- /**
- * @return int
- */
- public function getQty()
- {
- return $this->getData(OrderItemInterface::QTY);
- }
- /**
- * @return string
- */
- public function getSku()
- {
- return $this->getData(OrderItemInterface::SKU);
- }
- /**
- * @return string
- */
- public function getName()
- {
- return $this->getData(OrderItemInterface::NAME);
- }
- /**
- * @return string
- */
- public function getDescription()
- {
- return $this->getData(OrderItemInterface::DESCRIPTION);
- }
- /**
- * @return string[]
- */
- public function getCategories()
- {
- return $this->getData(OrderItemInterface::CATEGORIES);
- }
- /**
- * @return string
- */
- public function getDimensionsUom()
- {
- return $this->getData(OrderItemInterface::DIMENSIONS_UOM);
- }
- /**
- * @return float
- */
- public function getLength()
- {
- return $this->getData(OrderItemInterface::LENGTH);
- }
- /**
- * @return float
- */
- public function getWidth()
- {
- return $this->getData(OrderItemInterface::WIDTH);
- }
- /**
- * @return float
- */
- public function getHeight()
- {
- return $this->getData(OrderItemInterface::HEIGHT);
- }
- /**
- * @return string
- */
- public function getWeightUom()
- {
- return $this->getData(OrderItemInterface::WEIGHT_UOM);
- }
- /**
- * @return float
- */
- public function getWeight()
- {
- return $this->getData(OrderItemInterface::WEIGHT);
- }
- /**
- * @return string
- */
- public function getCurrency()
- {
- return $this->getData(OrderItemInterface::CURRENCY);
- }
- /**
- * @return float
- */
- public function getAmount()
- {
- return $this->getData(OrderItemInterface::AMOUNT);
- }
- /**
- * @return bool
- */
- public function isFragile()
- {
- return $this->getData(OrderItemInterface::IS_FRAGILE);
- }
- /**
- * @return bool
- */
- public function isVirtual()
- {
- return $this->getData(OrderItemInterface::IS_VIRTUAL);
- }
- /**
- * @return bool
- */
- public function isPrePackaged()
- {
- return $this->getData(OrderItemInterface::IS_PREPACKAGED);
- }
- /**
- * @return bool
- */
- public function canRotateVertically()
- {
- return $this->getData(OrderItemInterface::CAN_ROTATE_VERTICAL);
- }
- /**
- * @return string
- */
- public function getCountryOfOrigin()
- {
- return $this->getData(OrderItemInterface::COUNTRY_OF_ORIGIN);
- }
- /**
- * @return string
- */
- public function getCountryOfManufacture()
- {
- return $this->getData(OrderItemInterface::COUNTRY_OF_MANUFACTURE);
- }
- /**
- * @return string
- */
- public function getEccn()
- {
- return $this->getData(OrderItemInterface::ECCN);
- }
- /**
- * @return string
- */
- public function getScheduleBinfo()
- {
- return $this->getData(OrderItemInterface::SCHEDULE_B_INFO);
- }
- /**
- * @return string
- */
- public function getHsCode()
- {
- return $this->getData(OrderItemInterface::HS_CODE);
- }
- }
|