From f8624b86d11b07b3b91f981146786fc94163e902 Mon Sep 17 00:00:00 2001 From: drlikm <4454449+drlikm@users.noreply.github.com> Date: Tue, 12 May 2026 13:58:10 +0200 Subject: [PATCH] [create-pull-request] automated change --- init.php | 6 - src/Endpoint/EndpointMap.php | 1 - .../GetListOfProductsReviewsDeprecated.php | 43 ---- ...istOfProductsReviewsDeprecatedResponse.php | 48 ----- .../Data.php | 35 ---- .../Data/Reviews.php | 31 --- .../Data/Reviews/Item.php | 193 ------------------ .../Data/Reviews/Item/Reaction.php | 58 ------ src/Sdk.php | 28 --- 9 files changed, 443 deletions(-) delete mode 100644 src/Endpoint/Reviews/GetListOfProductsReviewsDeprecated.php delete mode 100644 src/Endpoint/Reviews/GetListOfProductsReviewsDeprecatedResponse/GetListOfProductsReviewsDeprecatedResponse.php delete mode 100644 src/Endpoint/Reviews/GetListOfProductsReviewsDeprecatedResponse/GetListOfProductsReviewsDeprecatedResponse/Data.php delete mode 100644 src/Endpoint/Reviews/GetListOfProductsReviewsDeprecatedResponse/GetListOfProductsReviewsDeprecatedResponse/Data/Reviews.php delete mode 100644 src/Endpoint/Reviews/GetListOfProductsReviewsDeprecatedResponse/GetListOfProductsReviewsDeprecatedResponse/Data/Reviews/Item.php delete mode 100644 src/Endpoint/Reviews/GetListOfProductsReviewsDeprecatedResponse/GetListOfProductsReviewsDeprecatedResponse/Data/Reviews/Item/Reaction.php diff --git a/init.php b/init.php index 12a23558..53f19e90 100644 --- a/init.php +++ b/init.php @@ -1645,12 +1645,6 @@ require_once __DIR__ . '/src/Endpoint/Reviews/CreateProjectReviewResponse/CreateProjectReviewResponse.php'; require_once __DIR__ . '/src/Endpoint/Reviews/CreateProjectReviewResponse/CreateProjectReviewResponse/Data.php'; require_once __DIR__ . '/src/Endpoint/Reviews/GetListOfProductsReviews.php'; -require_once __DIR__ . '/src/Endpoint/Reviews/GetListOfProductsReviewsDeprecated.php'; -require_once __DIR__ . '/src/Endpoint/Reviews/GetListOfProductsReviewsDeprecatedResponse/GetListOfProductsReviewsDeprecatedResponse.php'; -require_once __DIR__ . '/src/Endpoint/Reviews/GetListOfProductsReviewsDeprecatedResponse/GetListOfProductsReviewsDeprecatedResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Reviews/GetListOfProductsReviewsDeprecatedResponse/GetListOfProductsReviewsDeprecatedResponse/Data/Reviews.php'; -require_once __DIR__ . '/src/Endpoint/Reviews/GetListOfProductsReviewsDeprecatedResponse/GetListOfProductsReviewsDeprecatedResponse/Data/Reviews/Item.php'; -require_once __DIR__ . '/src/Endpoint/Reviews/GetListOfProductsReviewsDeprecatedResponse/GetListOfProductsReviewsDeprecatedResponse/Data/Reviews/Item/Reaction.php'; require_once __DIR__ . '/src/Endpoint/Reviews/GetListOfProductsReviewsResponse/GetListOfProductsReviewsResponse.php'; require_once __DIR__ . '/src/Endpoint/Reviews/GetListOfProductsReviewsResponse/GetListOfProductsReviewsResponse/Data.php'; require_once __DIR__ . '/src/Endpoint/Reviews/GetListOfProductsReviewsResponse/GetListOfProductsReviewsResponse/Data/Reviews.php'; diff --git a/src/Endpoint/EndpointMap.php b/src/Endpoint/EndpointMap.php index ef085ba9..b8cf1429 100644 --- a/src/Endpoint/EndpointMap.php +++ b/src/Endpoint/EndpointMap.php @@ -87,7 +87,6 @@ class EndpointMap '/api/products/{guid}/relatedProducts' => 'Shoptet\Api\Sdk\Php\Endpoint\RelatedProducts\GetListOfProductRelatedProducts', '/api/products/units' => 'Shoptet\Api\Sdk\Php\Endpoint\Units\GetListOfProductUnits', '/api/products/{guid}/gifts' => 'Shoptet\Api\Sdk\Php\Endpoint\ProductGifts\GetListOfProductGifts', - '/api/products/reviews' => 'Shoptet\Api\Sdk\Php\Endpoint\Reviews\GetListOfProductsReviewsDeprecated', '/api/pricelists' => 'Shoptet\Api\Sdk\Php\Endpoint\PriceLists\GetListOfPriceLists', '/api/pricelists/{id}' => 'Shoptet\Api\Sdk\Php\Endpoint\PriceLists\GetPricelistDetail', '/api/pricelists/{id}/snapshot' => 'Shoptet\Api\Sdk\Php\Endpoint\PriceLists\GetListOfAllPricelistDetails', diff --git a/src/Endpoint/Reviews/GetListOfProductsReviewsDeprecated.php b/src/Endpoint/Reviews/GetListOfProductsReviewsDeprecated.php deleted file mode 100644 index 5fb4b1a5..00000000 --- a/src/Endpoint/Reviews/GetListOfProductsReviewsDeprecated.php +++ /dev/null @@ -1,43 +0,0 @@ - false, - 'page' => false, - 'itemsPerPage' => false, - 'dateFrom' => false, - 'dateTo' => false, - 'changeTimeFrom' => false, - 'productGuid' => false, - 'orderCode' => false, - ]; - - public function getRequestEntityClass(): null - { - return null; - } - - public function getResponseEntityClass(): string - { - return GetListOfProductsReviewsDeprecatedResponse::class; - } - - public function getEndpoint(): string - { - return '/api/products/reviews'; - } -} diff --git a/src/Endpoint/Reviews/GetListOfProductsReviewsDeprecatedResponse/GetListOfProductsReviewsDeprecatedResponse.php b/src/Endpoint/Reviews/GetListOfProductsReviewsDeprecatedResponse/GetListOfProductsReviewsDeprecatedResponse.php deleted file mode 100644 index 3c13fcb4..00000000 --- a/src/Endpoint/Reviews/GetListOfProductsReviewsDeprecatedResponse/GetListOfProductsReviewsDeprecatedResponse.php +++ /dev/null @@ -1,48 +0,0 @@ -data; - } - - public function setData(?Data $data): static - { - $this->data = $data; - return $this; - } - - public function getErrors(): ?Errors - { - return $this->errors; - } - - public function setErrors(?Errors $errors): static - { - $this->errors = $errors; - return $this; - } - - public function getMetadata(): ?Metadata - { - return $this->metadata; - } - - public function setMetadata(?Metadata $metadata): static - { - $this->metadata = $metadata; - return $this; - } -} diff --git a/src/Endpoint/Reviews/GetListOfProductsReviewsDeprecatedResponse/GetListOfProductsReviewsDeprecatedResponse/Data.php b/src/Endpoint/Reviews/GetListOfProductsReviewsDeprecatedResponse/GetListOfProductsReviewsDeprecatedResponse/Data.php deleted file mode 100644 index 8cc2bab8..00000000 --- a/src/Endpoint/Reviews/GetListOfProductsReviewsDeprecatedResponse/GetListOfProductsReviewsDeprecatedResponse/Data.php +++ /dev/null @@ -1,35 +0,0 @@ -reviews; - } - - public function setReviews(Reviews $reviews): static - { - $this->reviews = $reviews; - return $this; - } - - public function getPaginator(): Paginator - { - return $this->paginator; - } - - public function setPaginator(Paginator $paginator): static - { - $this->paginator = $paginator; - return $this; - } -} diff --git a/src/Endpoint/Reviews/GetListOfProductsReviewsDeprecatedResponse/GetListOfProductsReviewsDeprecatedResponse/Data/Reviews.php b/src/Endpoint/Reviews/GetListOfProductsReviewsDeprecatedResponse/GetListOfProductsReviewsDeprecatedResponse/Data/Reviews.php deleted file mode 100644 index 6dd7d958..00000000 --- a/src/Endpoint/Reviews/GetListOfProductsReviewsDeprecatedResponse/GetListOfProductsReviewsDeprecatedResponse/Data/Reviews.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @property Item[] $data - * @method Item[] toArray() - * @method void set(int $key, Item $item) - * @method null|Item get(int $key) - * @method void add(Item $item) - * @method null|Item remove(int $key) - * @method bool removeItem(Item $item, bool $strict = true) - * @method bool contains(Item $item, bool $strict = true) - * @method null|Item offsetGet(int $offset) - * @method void offsetSet(int $offset, Item $value) - */ -class Reviews extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Endpoint\Reviews\GetListOfProductsReviewsDeprecatedResponse\GetListOfProductsReviewsDeprecatedResponse\Data\Reviews\Item'; - } -} diff --git a/src/Endpoint/Reviews/GetListOfProductsReviewsDeprecatedResponse/GetListOfProductsReviewsDeprecatedResponse/Data/Reviews/Item.php b/src/Endpoint/Reviews/GetListOfProductsReviewsDeprecatedResponse/GetListOfProductsReviewsDeprecatedResponse/Data/Reviews/Item.php deleted file mode 100644 index 00432200..00000000 --- a/src/Endpoint/Reviews/GetListOfProductsReviewsDeprecatedResponse/GetListOfProductsReviewsDeprecatedResponse/Data/Reviews/Item.php +++ /dev/null @@ -1,193 +0,0 @@ -id; - } - - public function setId(int $id): static - { - $this->id = $id; - return $this; - } - - public function getGuid(): TypeGuid - { - return $this->guid; - } - - public function setGuid(TypeGuid $guid): static - { - $this->guid = $guid; - return $this; - } - - public function getDate(): TypeDateTimeNullable - { - return $this->date; - } - - public function setDate(TypeDateTimeNullable $date): static - { - $this->date = $date; - return $this; - } - - public function getOrderCode(): ?string - { - return $this->orderCode; - } - - public function setOrderCode(?string $orderCode): static - { - $this->orderCode = $orderCode; - return $this; - } - - public function getRating(): int - { - return $this->rating; - } - - public function setRating(int $rating): static - { - $this->rating = $rating; - return $this; - } - - public function getProductName(): string - { - return $this->productName; - } - - public function setProductName(string $productName): static - { - $this->productName = $productName; - return $this; - } - - public function getProductGuid(): ?TypeGuidUnlimited - { - return $this->productGuid; - } - - public function setProductGuid(?TypeGuidUnlimited $productGuid): static - { - $this->productGuid = $productGuid; - return $this; - } - - public function getDescription(): ?string - { - return $this->description; - } - - public function setDescription(?string $description): static - { - $this->description = $description; - return $this; - } - - public function getFullName(): ?string - { - return $this->fullName; - } - - public function setFullName(?string $fullName): static - { - $this->fullName = $fullName; - return $this; - } - - public function getEmail(): ?string - { - return $this->email; - } - - public function setEmail(?string $email): static - { - $this->email = $email; - return $this; - } - - public function getCustomerGuid(): ?string - { - return $this->customerGuid; - } - - public function setCustomerGuid(?string $customerGuid): static - { - $this->customerGuid = $customerGuid; - return $this; - } - - public function isAuthorized(): bool - { - return $this->authorized; - } - - public function setAuthorized(bool $authorized): static - { - $this->authorized = $authorized; - return $this; - } - - public function isVisible(): bool - { - return $this->visible; - } - - public function setVisible(bool $visible): static - { - $this->visible = $visible; - return $this; - } - - public function getReaction(): Reaction - { - return $this->reaction; - } - - public function setReaction(Reaction $reaction): static - { - $this->reaction = $reaction; - return $this; - } - - public function getUpdated(): TypeDateTimeNullable - { - return $this->updated; - } - - public function setUpdated(TypeDateTimeNullable $updated): static - { - $this->updated = $updated; - return $this; - } -} diff --git a/src/Endpoint/Reviews/GetListOfProductsReviewsDeprecatedResponse/GetListOfProductsReviewsDeprecatedResponse/Data/Reviews/Item/Reaction.php b/src/Endpoint/Reviews/GetListOfProductsReviewsDeprecatedResponse/GetListOfProductsReviewsDeprecatedResponse/Data/Reviews/Item/Reaction.php deleted file mode 100644 index 4a16b755..00000000 --- a/src/Endpoint/Reviews/GetListOfProductsReviewsDeprecatedResponse/GetListOfProductsReviewsDeprecatedResponse/Data/Reviews/Item/Reaction.php +++ /dev/null @@ -1,58 +0,0 @@ -reactionCreated; - } - - public function setReactionCreated(TypeDateTimeNullable $reactionCreated): static - { - $this->reactionCreated = $reactionCreated; - return $this; - } - - public function getReactionFullName(): ?string - { - return $this->reactionFullName; - } - - public function setReactionFullName(?string $reactionFullName): static - { - $this->reactionFullName = $reactionFullName; - return $this; - } - - public function getReactionEmail(): ?string - { - return $this->reactionEmail; - } - - public function setReactionEmail(?string $reactionEmail): static - { - $this->reactionEmail = $reactionEmail; - return $this; - } - - public function getReactionText(): ?string - { - return $this->reactionText; - } - - public function setReactionText(?string $reactionText): static - { - $this->reactionText = $reactionText; - return $this; - } -} diff --git a/src/Sdk.php b/src/Sdk.php index 1b0aca8e..7b82e978 100644 --- a/src/Sdk.php +++ b/src/Sdk.php @@ -374,7 +374,6 @@ use Shoptet\Api\Sdk\Php\Endpoint\Reviews\CreateProjectReview; use Shoptet\Api\Sdk\Php\Endpoint\Reviews\CreateProjectReviewRequest\CreateProjectReviewRequest; use Shoptet\Api\Sdk\Php\Endpoint\Reviews\GetListOfProductsReviews; -use Shoptet\Api\Sdk\Php\Endpoint\Reviews\GetListOfProductsReviewsDeprecated; use Shoptet\Api\Sdk\Php\Endpoint\Reviews\GetListOfProjectReviews; use Shoptet\Api\Sdk\Php\Endpoint\Reviews\UpdateProductReview; use Shoptet\Api\Sdk\Php\Endpoint\Reviews\UpdateProductReviewRequest\UpdateProductReviewRequest; @@ -2963,33 +2962,6 @@ public static function steGiftsToProduct( ->execute(); } - /** - * @param array{ - * language?: string, - * page?: int, - * itemsPerPage?: int, - * dateFrom?: string, - * dateTo?: string, - * changeTimeFrom?: string, - * productGuid?: string, - * orderCode?: string, - * } $queryParams - * - * @return ResponseInterface - * - * @throws LogicException - * @throws RuntimeException - * - * @see https://api.docs.shoptet.com/shoptet-api/openapi/Reviews/getlistofproductsreviewsdeprecated - */ - public static function getListOfProductsReviewsDeprecated(array $queryParams = []): ResponseInterface - { - return self::getEndpointFactory() - ->createEndpoint(GetListOfProductsReviewsDeprecated::class) - ->setQueryParams($queryParams) - ->execute(); - } - /** * @param array{ * language?: string,