123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302 |
- <?php
- /**
- * Refer to LICENSE.txt distributed with the Temando Shipping module for notice of license
- */
- namespace Temando\Shipping\Rest\Response\Fields;
- use Temando\Shipping\Rest\Response\Fields\Generic\MonetaryValue;
- use Temando\Shipping\Rest\Response\Fields\Order\Customer;
- use Temando\Shipping\Rest\Response\Fields\Order\DeliverTo;
- use Temando\Shipping\Rest\Response\Fields\Order\Source;
- /**
- * Temando API Order Resource Object Attributes
- *
- * @package Temando\Shipping\Rest
- * @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 OrderAttributes
- {
- /**
- * @var \Temando\Shipping\Rest\Response\Fields\Order\Fee[]
- */
- private $fees = [];
- /**
- * @var string
- */
- private $lastModifiedAt;
- /**
- * @var \Temando\Shipping\Rest\Response\Fields\Generic\MonetaryValue
- */
- private $totalPaid;
- /**
- * @var \Temando\Shipping\Rest\Response\Fields\Order\Source
- */
- private $source;
- /**
- * @var \Temando\Shipping\Rest\Response\Fields\Generic\Package[]
- */
- private $packages;
- /**
- * @var \Temando\Shipping\Rest\Response\Fields\Order\DeliverTo
- */
- private $deliverTo;
- /**
- * @var string
- */
- private $orderedAt;
- /**
- * @var string
- */
- private $createdAt;
- /**
- * @var \Temando\Shipping\Rest\Response\Fields\Generic\MonetaryValue
- */
- private $total;
- /**
- * @var string
- */
- private $originId;
- /**
- * @var \Temando\Shipping\Rest\Response\Fields\Generic\Item[]
- */
- private $items = [];
- /**
- * @var string
- */
- private $status;
- /**
- * @var \Temando\Shipping\Rest\Response\Fields\Order\Customer
- */
- private $customer;
- /**
- * @return string
- */
- public function getCreatedAt()
- {
- return $this->createdAt;
- }
- /**
- * @param string $createdAt
- * @return void
- */
- public function setCreatedAt($createdAt)
- {
- $this->createdAt = $createdAt;
- }
- /**
- * @return string
- */
- public function getLastModifiedAt()
- {
- return $this->lastModifiedAt;
- }
- /**
- * @param string $lastModifiedAt
- * @return void
- */
- public function setLastModifiedAt($lastModifiedAt)
- {
- $this->lastModifiedAt = $lastModifiedAt;
- }
- /**
- * @return string
- */
- public function getOrderedAt()
- {
- return $this->orderedAt;
- }
- /**
- * @param string $orderedAt
- * @return void
- */
- public function setOrderedAt($orderedAt)
- {
- $this->orderedAt = $orderedAt;
- }
- /**
- * @return \Temando\Shipping\Rest\Response\Fields\Order\Source
- */
- public function getSource()
- {
- return $this->source;
- }
- /**
- * @param \Temando\Shipping\Rest\Response\Fields\Order\Source $source
- * @return void
- */
- public function setSource(Source $source)
- {
- $this->source = $source;
- }
- /**
- * @return \Temando\Shipping\Rest\Response\Fields\Order\Customer
- */
- public function getCustomer()
- {
- return $this->customer;
- }
- /**
- * @param \Temando\Shipping\Rest\Response\Fields\Order\Customer $customer
- * @return void
- */
- public function setCustomer(Customer $customer)
- {
- $this->customer = $customer;
- }
- /**
- * @return \Temando\Shipping\Rest\Response\Fields\Order\DeliverTo
- */
- public function getDeliverTo()
- {
- return $this->deliverTo;
- }
- /**
- * @param \Temando\Shipping\Rest\Response\Fields\Order\DeliverTo $deliverTo
- * @return void
- */
- public function setDeliverTo(DeliverTo $deliverTo)
- {
- $this->deliverTo = $deliverTo;
- }
- /**
- * @return \Temando\Shipping\Rest\Response\Fields\Generic\Item[]
- */
- public function getItems()
- {
- return $this->items;
- }
- /**
- * @param \Temando\Shipping\Rest\Response\Fields\Generic\Item[] $items
- * @return void
- */
- public function setItems(array $items)
- {
- $this->items = $items;
- }
- /**
- * @return \Temando\Shipping\Rest\Response\Fields\Generic\MonetaryValue
- */
- public function getTotal()
- {
- return $this->total;
- }
- /**
- * @param \Temando\Shipping\Rest\Response\Fields\Generic\MonetaryValue $total
- * @return void
- */
- public function setTotal(MonetaryValue $total)
- {
- $this->total = $total;
- }
- /**
- * @return \Temando\Shipping\Rest\Response\Fields\Order\Fee[]
- */
- public function getFees()
- {
- return $this->fees;
- }
- /**
- * @param \Temando\Shipping\Rest\Response\Fields\Order\Fee[] $fees
- */
- public function setFees(array $fees)
- {
- $this->fees = $fees;
- }
- /**
- * @return \Temando\Shipping\Rest\Response\Fields\Generic\MonetaryValue
- */
- public function getTotalPaid()
- {
- return $this->totalPaid;
- }
- /**
- * @param \Temando\Shipping\Rest\Response\Fields\Generic\MonetaryValue $totalPaid
- */
- public function setTotalPaid(MonetaryValue $totalPaid)
- {
- $this->totalPaid = $totalPaid;
- }
- /**
- * @return \Temando\Shipping\Rest\Response\Fields\Generic\Package[]
- */
- public function getPackages()
- {
- return $this->packages;
- }
- /**
- * @param \Temando\Shipping\Rest\Response\Fields\Generic\Package[] $packages
- */
- public function setPackages(array $packages)
- {
- $this->packages = $packages;
- }
- /**
- * @return string
- */
- public function getOriginId()
- {
- return $this->originId;
- }
- /**
- * @param string $originId
- */
- public function setOriginId($originId)
- {
- $this->originId = $originId;
- }
- /**
- * @return string
- */
- public function getStatus()
- {
- return $this->status;
- }
- /**
- * @param string $status
- */
- public function setStatus($status)
- {
- $this->status = $status;
- }
- }
|