123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205 |
- <?php
- /**
- * Refer to LICENSE.txt distributed with the Temando Shipping module for notice of license
- */
- namespace Temando\Shipping\Model;
- use Magento\Framework\DataObject;
- /**
- * Temando Order Entity
- *
- * This model contains a subset of data that is used in the shipping module.
- * It does not contain all data as available in its platform representation.
- *
- * @package Temando\Shipping\Model
- * @author Christoph Aßmann <christoph.assmann@netresearch.de>
- * @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
- * @link https://www.temando.com/
- */
- class Order extends DataObject implements OrderInterface
- {
- /**
- * @return string
- */
- public function getOrderId()
- {
- return $this->getData(OrderInterface::ORDER_ID);
- }
- /**
- * @return string
- */
- public function getCreatedAt()
- {
- return $this->getData(OrderInterface::CREATED_AT);
- }
- /**
- * @return string
- */
- public function getLastModifiedAt()
- {
- return $this->getData(OrderInterface::LAST_MODIFIED_AT);
- }
- /**
- * @return string
- */
- public function getOrderedAt()
- {
- return $this->getData(OrderInterface::ORDERED_AT);
- }
- /**
- * @return string
- */
- public function getStatus()
- {
- return $this->getData(OrderInterface::STATUS);
- }
- /**
- * @return \Temando\Shipping\Model\Order\OrderBillingInterface
- */
- public function getBilling()
- {
- return $this->getData(OrderInterface::BILLING);
- }
- /**
- * @return \Temando\Shipping\Model\Order\OrderRecipientInterface
- */
- public function getRecipient()
- {
- return $this->getData(OrderInterface::RECIPIENT);
- }
- /**
- * @return \Temando\Shipping\Model\Order\OrderItemInterface[]
- */
- public function getOrderItems()
- {
- return $this->getData(OrderInterface::ORDER_ITEMS);
- }
- /**
- * @return string
- */
- public function getCurrency()
- {
- return $this->getData(OrderInterface::CURRENCY);
- }
- /**
- * @return float
- */
- public function getAmount()
- {
- return $this->getData(OrderInterface::AMOUNT);
- }
- /**
- * @return int
- */
- public function getSourceReference()
- {
- return $this->getData(OrderInterface::SOURCE_REFERENCE);
- }
- /**
- * @return string
- */
- public function getSourceId()
- {
- return $this->getData(OrderInterface::SOURCE_ID);
- }
- /**
- * @return string
- */
- public function getSourceIncrementId()
- {
- return $this->getData(OrderInterface::SOURCE_INCREMENT_ID);
- }
- /**
- * @return \Temando\Shipping\Model\Checkout\Attribute\CheckoutFieldInterface[]
- */
- public function getCheckoutFields()
- {
- return $this->getData(OrderInterface::CHECKOUT_FIELDS);
- }
- /**
- * @return \Temando\Shipping\Api\Data\Delivery\CollectionPointSearchRequestInterface|null
- */
- public function getCollectionPointSearchRequest()
- {
- return $this->getData(OrderInterface::COLLECTION_POINT_SEARCH_REQUEST);
- }
- /**
- * @return \Temando\Shipping\Api\Data\Delivery\QuoteCollectionPointInterface|null
- */
- public function getCollectionPoint()
- {
- return $this->getData(OrderInterface::COLLECTION_POINT);
- }
- /**
- * @return \Temando\Shipping\Api\Data\Delivery\PickupLocationSearchRequestInterface|null
- */
- public function getPickupLocationSearchRequest()
- {
- return $this->getData(OrderInterface::PICKUP_LOCATION_SEARCH_REQUEST);
- }
- /**
- * @return \Temando\Shipping\Api\Data\Delivery\QuotePickupLocationInterface|null
- */
- public function getPickupLocation()
- {
- return $this->getData(OrderInterface::PICKUP_LOCATION);
- }
- /**
- * @return string
- */
- public function getExperienceCode()
- {
- return $this->getData(OrderInterface::SELECTED_EXPERIENCE_CODE);
- }
- /**
- * @return string
- */
- public function getExperienceCurrency()
- {
- return $this->getData(OrderInterface::SELECTED_EXPERIENCE_CURRENCY);
- }
- /**
- * @return float
- */
- public function getExperienceAmount()
- {
- return $this->getData(OrderInterface::SELECTED_EXPERIENCE_AMOUNT);
- }
- /**
- * @return string
- */
- public function getExperienceLanguage()
- {
- return $this->getData(OrderInterface::SELECTED_EXPERIENCE_LANGUAGE);
- }
- /**
- * @return string
- */
- public function getExperienceDescription()
- {
- return $this->getData(OrderInterface::SELECTED_EXPERIENCE_DESCRIPTION);
- }
- }
|