123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629 |
- <?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\Shipment\ExportDeclaration;
- use Temando\Shipping\Rest\Response\Fields\Shipment\Order;
- use Temando\Shipping\Rest\Response\Fields\Shipment\SelectedServices;
- /**
- * Temando API Shipment 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 ShipmentAttributes
- {
- /**
- * @var string
- */
- private $pickupAt;
- /**
- * @var string
- */
- private $expectedAt;
- /**
- * @var bool
- */
- private $isDutiable;
- /**
- * @var bool
- */
- private $isPaperless;
- /**
- * @var \Temando\Shipping\Rest\Response\Fields\LocationAttributes
- */
- private $origin;
- /**
- * @var \Temando\Shipping\Rest\Response\Fields\LocationAttributes
- */
- private $destination;
- /**
- * @var \Temando\Shipping\Rest\Response\Fields\LocationAttributes
- */
- private $finalRecipient;
- /**
- * @var \Temando\Shipping\Rest\Response\Fields\Generic\Package[]
- */
- private $packages = [];
- /**
- * @var \Temando\Shipping\Rest\Response\Fields\Generic\Documentation[]
- */
- private $documentation = [];
- /**
- * @var string
- */
- private $instructionsToDeliveryAgent;
- /**
- * Anonymous list of capabilities.
- *
- * $format = [
- * 'capabilityCodeX' => [
- * 'propertyOne' => 'valueOne',
- * 'propertyTwo' => 'valueTwo',
- * ],
- * 'capabilityCodeY' => [
- * 'propertyOne' => 'valueOne',
- * ],
- * ]
- *
- * @var mixed[][]
- */
- private $capabilities = [];
- /**
- * @var \Temando\Shipping\Rest\Response\Fields\Shipment\ExportDeclaration
- */
- private $exportDeclaration;
- /**
- * @var \Temando\Shipping\Rest\Response\Fields\Shipment\Order
- */
- private $order;
- /**
- * @var string
- */
- private $orderId;
- /**
- * @var string
- */
- private $originId;
- /**
- * @var string
- */
- private $destinationId;
- /**
- * Shipment Status OR Shipment Allocation Error Status
- * @var string
- */
- private $status;
- /**
- * @var string
- */
- private $completionId;
- /**
- * @var \Temando\Shipping\Rest\Response\Fields\Shipment\Fulfill
- */
- private $fulfill;
- /**
- * @var \Temando\Shipping\Rest\Response\Fields\Shipment\SelectedServices
- */
- private $selectedServices;
- /**
- * @var string
- */
- private $createdAt;
- /**
- * @var string
- */
- private $modifiedAt;
- /**
- * @var \Temando\Shipping\Rest\Response\Fields\Generic\Item[]
- */
- private $items = [];
- /**
- * Shipment Allocation Error Title
- * @var string
- */
- private $title;
- /**
- * Shipment Allocation Error Code
- * @var string
- */
- private $code;
- /**
- * Shipment Allocation Error Detail
- * @var string
- */
- private $detail;
- /**
- * @var string[]
- */
- private $customAttributes;
- /**
- * @return string
- */
- public function getPickupAt()
- {
- return $this->pickupAt;
- }
- /**
- * @param string $pickupAt
- * @return void
- */
- public function setPickupAt($pickupAt)
- {
- $this->pickupAt = $pickupAt;
- }
- /**
- * @return string
- */
- public function getExpectedAt()
- {
- return $this->expectedAt;
- }
- /**
- * @param string $expectedAt
- * @return void
- */
- public function setExpectedAt($expectedAt)
- {
- $this->expectedAt = $expectedAt;
- }
- /**
- * @return boolean
- */
- public function getIsDutiable()
- {
- return $this->isDutiable;
- }
- /**
- * @param boolean $isDutiable
- * @return void
- */
- public function setIsDutiable($isDutiable)
- {
- $this->isDutiable = $isDutiable;
- }
- /**
- * @return boolean
- */
- public function getIsPaperless()
- {
- return $this->isPaperless;
- }
- /**
- * @param boolean $isPaperless
- * @return void
- */
- public function setIsPaperless($isPaperless)
- {
- $this->isPaperless = $isPaperless;
- }
- /**
- * @return \Temando\Shipping\Rest\Response\Fields\LocationAttributes
- */
- public function getOrigin()
- {
- return $this->origin;
- }
- /**
- * @param \Temando\Shipping\Rest\Response\Fields\LocationAttributes $origin
- * @return void
- */
- public function setOrigin(LocationAttributes $origin)
- {
- $this->origin = $origin;
- }
- /**
- * @return \Temando\Shipping\Rest\Response\Fields\LocationAttributes
- */
- public function getDestination()
- {
- return $this->destination;
- }
- /**
- * @param \Temando\Shipping\Rest\Response\Fields\LocationAttributes $destination
- * @return void
- */
- public function setDestination(LocationAttributes $destination)
- {
- $this->destination = $destination;
- }
- /**
- * @return \Temando\Shipping\Rest\Response\Fields\LocationAttributes
- */
- public function getFinalRecipient()
- {
- return $this->finalRecipient;
- }
- /**
- * @param \Temando\Shipping\Rest\Response\Fields\LocationAttributes $finalRecipient
- * @return void
- */
- public function setFinalRecipient(LocationAttributes $finalRecipient)
- {
- $this->finalRecipient = $finalRecipient;
- }
- /**
- * @return \Temando\Shipping\Rest\Response\Fields\Generic\Package[]
- */
- public function getPackages()
- {
- return $this->packages;
- }
- /**
- * @param \Temando\Shipping\Rest\Response\Fields\Generic\Package[] $packages
- * @return void
- */
- public function setPackages($packages)
- {
- $this->packages = $packages;
- }
- /**
- * @return \Temando\Shipping\Rest\Response\Fields\Generic\Documentation[]
- */
- public function getDocumentation()
- {
- return $this->documentation;
- }
- /**
- * @param \Temando\Shipping\Rest\Response\Fields\Generic\Documentation[] $documentation
- * @return void
- */
- public function setDocumentation(array $documentation)
- {
- $this->documentation = $documentation;
- }
- /**
- * @return string
- */
- public function getInstructionsToDeliveryAgent()
- {
- return $this->instructionsToDeliveryAgent;
- }
- /**
- * @param string $instructionsToDeliveryAgent
- * @return void
- */
- public function setInstructionsToDeliveryAgent($instructionsToDeliveryAgent)
- {
- $this->instructionsToDeliveryAgent = $instructionsToDeliveryAgent;
- }
- /**
- * @return mixed[][]
- */
- public function getCapabilities()
- {
- return $this->capabilities;
- }
- /**
- * @param mixed[][] $capabilities
- * @return void
- */
- public function setCapabilities(array $capabilities)
- {
- $this->capabilities = $capabilities;
- }
- /**
- * @return \Temando\Shipping\Rest\Response\Fields\Shipment\ExportDeclaration
- */
- public function getExportDeclaration()
- {
- return $this->exportDeclaration;
- }
- /**
- * @param \Temando\Shipping\Rest\Response\Fields\Shipment\ExportDeclaration $exportDeclaration
- * @return void
- */
- public function setExportDeclaration(ExportDeclaration $exportDeclaration)
- {
- $this->exportDeclaration = $exportDeclaration;
- }
- /**
- * @return \Temando\Shipping\Rest\Response\Fields\Shipment\Order
- */
- public function getOrder()
- {
- return $this->order;
- }
- /**
- * @param \Temando\Shipping\Rest\Response\Fields\Shipment\Order $order
- * @return void
- */
- public function setOrder(Order $order)
- {
- $this->order = $order;
- }
- /**
- * @return string
- */
- public function getOrderId()
- {
- return $this->orderId;
- }
- /**
- * @param string $orderId
- * @return void
- */
- public function setOrderId($orderId)
- {
- $this->orderId = $orderId;
- }
- /**
- * @return string
- */
- public function getOriginId()
- {
- return $this->originId;
- }
- /**
- * @param string $originId
- * @return void
- */
- public function setOriginId($originId)
- {
- $this->originId = $originId;
- }
- /**
- * @return string
- */
- public function getDestinationId()
- {
- return $this->destinationId;
- }
- /**
- * @param string $destinationId
- * @return void
- */
- public function setDestinationId($destinationId)
- {
- $this->destinationId = $destinationId;
- }
- /**
- * @return string
- */
- public function getStatus()
- {
- return $this->status;
- }
- /**
- * @param string $status
- * @return void
- */
- public function setStatus($status)
- {
- $this->status = $status;
- }
- /**
- * @return string
- */
- public function getCompletionId()
- {
- return $this->completionId;
- }
- /**
- * @param string $completionId
- * @return void
- */
- public function setCompletionId($completionId)
- {
- $this->completionId = $completionId;
- }
- /**
- * @return \Temando\Shipping\Rest\Response\Fields\Shipment\Fulfill
- */
- public function getFulfill()
- {
- return $this->fulfill;
- }
- /**
- * @param \Temando\Shipping\Rest\Response\Fields\Shipment\Fulfill $fulfill
- * @return void
- */
- public function setFulfill($fulfill)
- {
- $this->fulfill = $fulfill;
- }
- /**
- * @return \Temando\Shipping\Rest\Response\Fields\Shipment\SelectedServices
- */
- public function getSelectedServices()
- {
- return $this->selectedServices;
- }
- /**
- * @param \Temando\Shipping\Rest\Response\Fields\Shipment\SelectedServices $selectedServices
- * @return void
- */
- public function setSelectedServices(SelectedServices $selectedServices)
- {
- $this->selectedServices = $selectedServices;
- }
- /**
- * @return string
- */
- public function getCreatedAt()
- {
- return $this->createdAt;
- }
- /**
- * @param string $createdAt
- * @return void
- */
- public function setCreatedAt($createdAt)
- {
- $this->createdAt = $createdAt;
- }
- /**
- * @return string
- */
- public function getModifiedAt()
- {
- return $this->modifiedAt;
- }
- /**
- * @param string $modifiedAt
- * @return void
- */
- public function setModifiedAt($modifiedAt)
- {
- $this->modifiedAt = $modifiedAt;
- }
- /**
- * @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 string[]
- */
- public function getCustomAttributes()
- {
- return $this->customAttributes;
- }
- /**
- * @param string[] $customAttributes
- * @return void
- */
- public function setCustomAttributes(array $customAttributes)
- {
- $this->customAttributes = $customAttributes;
- }
- /**
- * @return string
- */
- public function getTitle()
- {
- return $this->title;
- }
- /**
- * @param string $title
- * @return void
- */
- public function setTitle($title)
- {
- $this->title = $title;
- }
- /**
- * @return string
- */
- public function getCode()
- {
- return $this->code;
- }
- /**
- * @param string $code
- * @return void
- */
- public function setCode($code)
- {
- $this->code = $code;
- }
- /**
- * @return string
- */
- public function getDetail()
- {
- return $this->detail;
- }
- /**
- * @param string $detail
- * @return void
- */
- public function setDetail($detail)
- {
- $this->detail = $detail;
- }
- }
|