diff --git a/packages/cms-api/.openapi-generator/FILES b/packages/cms-api/.openapi-generator/FILES index 8e24bb6af7..40ab688a01 100644 --- a/packages/cms-api/.openapi-generator/FILES +++ b/packages/cms-api/.openapi-generator/FILES @@ -1,6 +1,6 @@ -Model/DplOpeningHoursGET200Response.php -Model/DplOpeningHoursGETRequest.php -Model/DplOpeningHoursGETRequestCategory.php +Model/DplOpeningHoursCreatePOSTRequest.php +Model/DplOpeningHoursListGET200ResponseInner.php +Model/DplOpeningHoursListGET200ResponseInnerCategory.php README.md Service/JmsSerializer.php Service/SerializerInterface.php diff --git a/packages/cms-api/Model/DplOpeningHoursCreatePOSTRequest.php b/packages/cms-api/Model/DplOpeningHoursCreatePOSTRequest.php new file mode 100644 index 0000000000..893c7fd1d3 --- /dev/null +++ b/packages/cms-api/Model/DplOpeningHoursCreatePOSTRequest.php @@ -0,0 +1,284 @@ +") + */ + protected ?\DateTime $date = null; + + /** + * When the opening hours start. In format HH:MM + * + * @var string|null + * @SerializedName("start_time") + * @Assert\NotNull() + * @Assert\Type("string") + * @Type("string") + */ + protected ?string $startTime = null; + + /** + * When the opening hours end. In format HH:MM + * + * @var string|null + * @SerializedName("end_time") + * @Assert\NotNull() + * @Assert\Type("string") + * @Type("string") + */ + protected ?string $endTime = null; + + /** + * The id for the branch the instance belongs to + * + * @var int|null + * @SerializedName("branch_id") + * @Assert\NotNull() + * @Assert\Type("int") + * @Type("int") + */ + protected ?int $branchId = null; + + /** + * Constructor + * @param array|null $data Associated array of property values initializing the model + */ + public function __construct(array $data = null) + { + if (is_array($data)) { + $this->id = array_key_exists('id', $data) ? $data['id'] : $this->id; + $this->category = array_key_exists('category', $data) ? $data['category'] : $this->category; + $this->date = array_key_exists('date', $data) ? $data['date'] : $this->date; + $this->startTime = array_key_exists('startTime', $data) ? $data['startTime'] : $this->startTime; + $this->endTime = array_key_exists('endTime', $data) ? $data['endTime'] : $this->endTime; + $this->branchId = array_key_exists('branchId', $data) ? $data['branchId'] : $this->branchId; + } + } + + /** + * Gets id. + * + * @return int|null + */ + public function getId(): ?int + { + return $this->id; + } + + + + /** + * Sets id. + * + * @param int|null $id An serial unique id of the opening hours instance. + * + * @return $this + */ + public function setId(?int $id = null): self + { + $this->id = $id; + + return $this; + } + + /** + * Gets category. + * + * @return DplOpeningHoursListGET200ResponseInnerCategory|null + */ + public function getCategory(): ?DplOpeningHoursListGET200ResponseInnerCategory + { + return $this->category; + } + + + + /** + * Sets category. + * + * @param DplOpeningHoursListGET200ResponseInnerCategory|null $category + * + * @return $this + */ + public function setCategory(?DplOpeningHoursListGET200ResponseInnerCategory $category): self + { + $this->category = $category; + + return $this; + } + + /** + * Gets date. + * + * @return \DateTime|null + */ + public function getDate(): ?\DateTime + { + return $this->date; + } + + + + /** + * Sets date. + * + * @param \DateTime|null $date The date which the opening hours applies to. In ISO 8601 format. + * + * @return $this + */ + public function setDate(?\DateTime $date): self + { + $this->date = $date; + + return $this; + } + + /** + * Gets startTime. + * + * @return string|null + */ + public function getStartTime(): ?string + { + return $this->startTime; + } + + + + /** + * Sets startTime. + * + * @param string|null $startTime When the opening hours start. In format HH:MM + * + * @return $this + */ + public function setStartTime(?string $startTime): self + { + $this->startTime = $startTime; + + return $this; + } + + /** + * Gets endTime. + * + * @return string|null + */ + public function getEndTime(): ?string + { + return $this->endTime; + } + + + + /** + * Sets endTime. + * + * @param string|null $endTime When the opening hours end. In format HH:MM + * + * @return $this + */ + public function setEndTime(?string $endTime): self + { + $this->endTime = $endTime; + + return $this; + } + + /** + * Gets branchId. + * + * @return int|null + */ + public function getBranchId(): ?int + { + return $this->branchId; + } + + + + /** + * Sets branchId. + * + * @param int|null $branchId The id for the branch the instance belongs to + * + * @return $this + */ + public function setBranchId(?int $branchId): self + { + $this->branchId = $branchId; + + return $this; + } +} + + diff --git a/packages/cms-api/Model/DplOpeningHoursListGET200ResponseInner.php b/packages/cms-api/Model/DplOpeningHoursListGET200ResponseInner.php new file mode 100644 index 0000000000..d3f7ee74da --- /dev/null +++ b/packages/cms-api/Model/DplOpeningHoursListGET200ResponseInner.php @@ -0,0 +1,285 @@ +") + */ + protected ?\DateTime $date = null; + + /** + * When the opening hours start. In format HH:MM + * + * @var string|null + * @SerializedName("start_time") + * @Assert\NotNull() + * @Assert\Type("string") + * @Type("string") + */ + protected ?string $startTime = null; + + /** + * When the opening hours end. In format HH:MM + * + * @var string|null + * @SerializedName("end_time") + * @Assert\NotNull() + * @Assert\Type("string") + * @Type("string") + */ + protected ?string $endTime = null; + + /** + * The id for the branch the instance belongs to + * + * @var int|null + * @SerializedName("branch_id") + * @Assert\NotNull() + * @Assert\Type("int") + * @Type("int") + */ + protected ?int $branchId = null; + + /** + * Constructor + * @param array|null $data Associated array of property values initializing the model + */ + public function __construct(array $data = null) + { + if (is_array($data)) { + $this->id = array_key_exists('id', $data) ? $data['id'] : $this->id; + $this->category = array_key_exists('category', $data) ? $data['category'] : $this->category; + $this->date = array_key_exists('date', $data) ? $data['date'] : $this->date; + $this->startTime = array_key_exists('startTime', $data) ? $data['startTime'] : $this->startTime; + $this->endTime = array_key_exists('endTime', $data) ? $data['endTime'] : $this->endTime; + $this->branchId = array_key_exists('branchId', $data) ? $data['branchId'] : $this->branchId; + } + } + + /** + * Gets id. + * + * @return int|null + */ + public function getId(): ?int + { + return $this->id; + } + + + + /** + * Sets id. + * + * @param int|null $id An serial unique id of the opening hours instance. + * + * @return $this + */ + public function setId(?int $id): self + { + $this->id = $id; + + return $this; + } + + /** + * Gets category. + * + * @return DplOpeningHoursListGET200ResponseInnerCategory|null + */ + public function getCategory(): ?DplOpeningHoursListGET200ResponseInnerCategory + { + return $this->category; + } + + + + /** + * Sets category. + * + * @param DplOpeningHoursListGET200ResponseInnerCategory|null $category + * + * @return $this + */ + public function setCategory(?DplOpeningHoursListGET200ResponseInnerCategory $category): self + { + $this->category = $category; + + return $this; + } + + /** + * Gets date. + * + * @return \DateTime|null + */ + public function getDate(): ?\DateTime + { + return $this->date; + } + + + + /** + * Sets date. + * + * @param \DateTime|null $date The date which the opening hours applies to. In ISO 8601 format. + * + * @return $this + */ + public function setDate(?\DateTime $date): self + { + $this->date = $date; + + return $this; + } + + /** + * Gets startTime. + * + * @return string|null + */ + public function getStartTime(): ?string + { + return $this->startTime; + } + + + + /** + * Sets startTime. + * + * @param string|null $startTime When the opening hours start. In format HH:MM + * + * @return $this + */ + public function setStartTime(?string $startTime): self + { + $this->startTime = $startTime; + + return $this; + } + + /** + * Gets endTime. + * + * @return string|null + */ + public function getEndTime(): ?string + { + return $this->endTime; + } + + + + /** + * Sets endTime. + * + * @param string|null $endTime When the opening hours end. In format HH:MM + * + * @return $this + */ + public function setEndTime(?string $endTime): self + { + $this->endTime = $endTime; + + return $this; + } + + /** + * Gets branchId. + * + * @return int|null + */ + public function getBranchId(): ?int + { + return $this->branchId; + } + + + + /** + * Sets branchId. + * + * @param int|null $branchId The id for the branch the instance belongs to + * + * @return $this + */ + public function setBranchId(?int $branchId): self + { + $this->branchId = $branchId; + + return $this; + } +} + + diff --git a/packages/cms-api/Model/DplOpeningHoursListGET200ResponseInnerCategory.php b/packages/cms-api/Model/DplOpeningHoursListGET200ResponseInnerCategory.php new file mode 100644 index 0000000000..3600a9dc4e --- /dev/null +++ b/packages/cms-api/Model/DplOpeningHoursListGET200ResponseInnerCategory.php @@ -0,0 +1,131 @@ +title = array_key_exists('title', $data) ? $data['title'] : $this->title; + $this->color = array_key_exists('color', $data) ? $data['color'] : $this->color; + } + } + + /** + * Gets title. + * + * @return string|null + */ + public function getTitle(): ?string + { + return $this->title; + } + + + + /** + * Sets title. + * + * @param string|null $title + * + * @return $this + */ + public function setTitle(?string $title): self + { + $this->title = $title; + + return $this; + } + + /** + * Gets color. + * + * @return string|null + */ + public function getColor(): ?string + { + return $this->color; + } + + + + /** + * Sets color. + * + * @param string|null $color A CSS compatible color code which can be used to represent the category + * + * @return $this + */ + public function setColor(?string $color): self + { + $this->color = $color; + + return $this; + } +} + + diff --git a/packages/cms-api/README.md b/packages/cms-api/README.md index 0e29be9cf2..ecb6e6b92b 100644 --- a/packages/cms-api/README.md +++ b/packages/cms-api/README.md @@ -102,11 +102,10 @@ All URIs are relative to *http://varnish:8080* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- *DefaultApiInterface* | [**campaignMatchPOST**](docs/Api/DefaultApiInterface.md#campaignmatchpost) | **POST** /dpl_campaign/match | Get campaign matching search result facets -*DefaultApiInterface* | [**dplOpeningHoursDELETE**](docs/Api/DefaultApiInterface.md#dplopeninghoursdelete) | **DELETE** /dpl_opening_hours/{id} | Manage individual opening hours -*DefaultApiInterface* | [**dplOpeningHoursGET**](docs/Api/DefaultApiInterface.md#dplopeninghoursget) | **GET** /dpl_opening_hours/{id} | Manage individual opening hours +*DefaultApiInterface* | [**dplOpeningHoursCreatePOST**](docs/Api/DefaultApiInterface.md#dplopeninghourscreatepost) | **POST** /dpl_opening_hours | Create individual opening hours +*DefaultApiInterface* | [**dplOpeningHoursDeleteDELETE**](docs/Api/DefaultApiInterface.md#dplopeninghoursdeletedelete) | **DELETE** /dpl_opening_hours/{id} | Delete individual opening hours *DefaultApiInterface* | [**dplOpeningHoursListGET**](docs/Api/DefaultApiInterface.md#dplopeninghourslistget) | **GET** /dpl_opening_hours | List all opening hours -*DefaultApiInterface* | [**dplOpeningHoursPATCH**](docs/Api/DefaultApiInterface.md#dplopeninghourspatch) | **PATCH** /dpl_opening_hours/{id} | Manage individual opening hours -*DefaultApiInterface* | [**dplOpeningHoursPOST**](docs/Api/DefaultApiInterface.md#dplopeninghourspost) | **POST** /dpl_opening_hours | Manage individual opening hours +*DefaultApiInterface* | [**dplOpeningHoursUpdatePATCH**](docs/Api/DefaultApiInterface.md#dplopeninghoursupdatepatch) | **PATCH** /dpl_opening_hours/{id} | Update individual opening hours *DefaultApiInterface* | [**eventPATCH**](docs/Api/DefaultApiInterface.md#eventpatch) | **PATCH** /dpl_event/{uuid} | Update single events *DefaultApiInterface* | [**eventsGET**](docs/Api/DefaultApiInterface.md#eventsget) | **GET** /dpl_event | Retrieve all events *DefaultApiInterface* | [**proxyUrlGET**](docs/Api/DefaultApiInterface.md#proxyurlget) | **GET** /dpl-url-proxy | Generate proxy url @@ -119,9 +118,9 @@ Class | Method | HTTP request | Description - [CampaignMatchPOST200ResponseDataImage](docs/Model/CampaignMatchPOST200ResponseDataImage.md) - [CampaignMatchPOSTRequestInner](docs/Model/CampaignMatchPOSTRequestInner.md) - [CampaignMatchPOSTRequestInnerValuesInner](docs/Model/CampaignMatchPOSTRequestInnerValuesInner.md) - - [DplOpeningHoursGET200Response](docs/Model/DplOpeningHoursGET200Response.md) - - [DplOpeningHoursGETRequest](docs/Model/DplOpeningHoursGETRequest.md) - - [DplOpeningHoursGETRequestCategory](docs/Model/DplOpeningHoursGETRequestCategory.md) + - [DplOpeningHoursCreatePOSTRequest](docs/Model/DplOpeningHoursCreatePOSTRequest.md) + - [DplOpeningHoursListGET200ResponseInner](docs/Model/DplOpeningHoursListGET200ResponseInner.md) + - [DplOpeningHoursListGET200ResponseInnerCategory](docs/Model/DplOpeningHoursListGET200ResponseInnerCategory.md) - [EventPATCHRequest](docs/Model/EventPATCHRequest.md) - [EventPATCHRequestExternalData](docs/Model/EventPATCHRequestExternalData.md) - [EventsGET200ResponseInner](docs/Model/EventsGET200ResponseInner.md)