123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305 |
- <?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\Location\Address;
- use Temando\Shipping\Rest\Response\Fields\Location\Contact;
- use Temando\Shipping\Rest\Response\Fields\Location\Geodata;
- /**
- * Temando API Location 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 LocationAttributes
- {
- /**
- * @var string
- */
- private $type;
- /**
- * @var string
- */
- private $name;
- /**
- * @var \Temando\Shipping\Rest\Response\Fields\Location\Address
- */
- private $address;
- /**
- * @var \Temando\Shipping\Rest\Response\Fields\Location\Contact
- */
- private $contact;
- /**
- * @var \Temando\Shipping\Rest\Response\Fields\Location\OpeningHours
- */
- private $openingHours;
- /**
- * @var bool
- */
- private $isDefault;
- /**
- * @var bool
- */
- private $isClickAndCollect;
- /**
- * @var string
- */
- private $createdAt;
- /**
- * @var string
- */
- private $modifiedAt;
- /**
- * @var bool
- */
- private $enabled;
- /**
- * @var string
- */
- private $uniqueId;
- /**
- * @var \Temando\Shipping\Rest\Response\Fields\Location\Geodata
- */
- private $geodata;
- /**
- * @var string[]
- */
- private $customAttributes;
- /**
- * @return string
- */
- public function getType()
- {
- return $this->type;
- }
- /**
- * @param string $type
- * @return void
- */
- public function setType($type)
- {
- $this->type = $type;
- }
- /**
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
- /**
- * @param string $name
- * @return void
- */
- public function setName($name)
- {
- $this->name = $name;
- }
- /**
- * @return \Temando\Shipping\Rest\Response\Fields\Location\Address
- */
- public function getAddress()
- {
- return $this->address;
- }
- /**
- * @param \Temando\Shipping\Rest\Response\Fields\Location\Address $address
- * @return void
- */
- public function setAddress(Address $address)
- {
- $this->address = $address;
- }
- /**
- * @return \Temando\Shipping\Rest\Response\Fields\Location\Contact
- */
- public function getContact()
- {
- return $this->contact;
- }
- /**
- * @param \Temando\Shipping\Rest\Response\Fields\Location\Contact $contact
- * @return void
- */
- public function setContact(Contact $contact)
- {
- $this->contact = $contact;
- }
- /**
- * @return \Temando\Shipping\Rest\Response\Fields\Location\OpeningHours
- */
- public function getOpeningHours()
- {
- return $this->openingHours;
- }
- /**
- * @param \Temando\Shipping\Rest\Response\Fields\Location\OpeningHours $openingHours
- * @return void
- */
- public function setOpeningHours($openingHours)
- {
- $this->openingHours = $openingHours;
- }
- /**
- * @return bool
- */
- public function getIsDefault()
- {
- return $this->isDefault;
- }
- /**
- * @param bool $isDefault
- * @return void
- */
- public function setIsDefault($isDefault)
- {
- $this->isDefault = (bool)$isDefault;
- }
- /**
- * @return bool
- */
- public function getIsClickAndCollect()
- {
- return $this->isClickAndCollect;
- }
- /**
- * @param bool $isClickAndCollect
- */
- public function setIsClickAndCollect($isClickAndCollect)
- {
- $this->isClickAndCollect = (bool)$isClickAndCollect;
- }
- /**
- * @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 string
- */
- public function getUniqueId()
- {
- return $this->uniqueId;
- }
- /**
- * @param string $uniqueId
- * @return void
- */
- public function setUniqueId($uniqueId)
- {
- $this->uniqueId = $uniqueId;
- }
- /**
- * @return bool
- */
- public function getEnabled()
- {
- return $this->enabled;
- }
- /**
- * @param bool $enabled
- * @return void
- */
- public function setEnabled($enabled)
- {
- $this->enabled = $enabled;
- }
- /**
- * @return \Temando\Shipping\Rest\Response\Fields\Location\Geodata
- */
- public function getGeodata()
- {
- return $this->geodata;
- }
- /**
- * @param \Temando\Shipping\Rest\Response\Fields\Location\Geodata $geodata
- * @return void
- */
- public function setGeodata(Geodata $geodata)
- {
- $this->geodata = $geodata;
- }
- /**
- * @return string[]
- */
- public function getCustomAttributes()
- {
- return $this->customAttributes;
- }
- /**
- * @param string[] $customAttributes
- * @return void
- */
- public function setCustomAttributes(array $customAttributes)
- {
- $this->customAttributes = $customAttributes;
- }
- }
|