Skip to content

Commit eeec106

Browse files
[2026-03-31] - Sync content (23790316438) (#32)
> [!NOTE] > This PR copies content from the source repo. > Source repo commit [69c2301](shoptet/cms4@69c2301) **List of changes:** - Fixed non required query parameters for product reviews Co-authored-by: suchman <4362174+suchman@users.noreply.github.com>
1 parent f09eef8 commit eeec106

3 files changed

Lines changed: 20 additions & 20 deletions

File tree

src/Endpoint/Reviews/GetListOfProductsReviews.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ class GetListOfProductsReviews extends PageableGet
1919
'language' => false,
2020
'page' => false,
2121
'itemsPerPage' => false,
22-
'dateFrom' => true,
23-
'dateTo' => true,
24-
'changeTimeFrom' => true,
25-
'productGuid' => true,
22+
'dateFrom' => false,
23+
'dateTo' => false,
24+
'changeTimeFrom' => false,
25+
'productGuid' => false,
2626
'orderCode' => true,
2727
];
2828

src/Endpoint/Reviews/GetListOfProductsReviewsDeprecated.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ class GetListOfProductsReviewsDeprecated extends PageableGet
1919
'language' => false,
2020
'page' => false,
2121
'itemsPerPage' => false,
22-
'dateFrom' => true,
23-
'dateTo' => true,
24-
'changeTimeFrom' => true,
25-
'productGuid' => true,
26-
'orderCode' => true,
22+
'dateFrom' => false,
23+
'dateTo' => false,
24+
'changeTimeFrom' => false,
25+
'productGuid' => false,
26+
'orderCode' => false,
2727
];
2828

2929
public function getRequestEntityClass(): null

src/Sdk.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2953,11 +2953,11 @@ public static function steGiftsToProduct(
29532953
* language?: string,
29542954
* page?: int,
29552955
* itemsPerPage?: int,
2956-
* dateFrom: string,
2957-
* dateTo: string,
2958-
* changeTimeFrom: string,
2959-
* productGuid: string,
2960-
* orderCode: string,
2956+
* dateFrom?: string,
2957+
* dateTo?: string,
2958+
* changeTimeFrom?: string,
2959+
* productGuid?: string,
2960+
* orderCode?: string,
29612961
* } $queryParams
29622962
*
29632963
* @return ResponseInterface
@@ -2967,7 +2967,7 @@ public static function steGiftsToProduct(
29672967
*
29682968
* @see https://api.docs.shoptet.com/shoptet-api/openapi/Reviews/getlistofproductsreviewsdeprecated
29692969
*/
2970-
public static function getListOfProductsReviewsDeprecated(array $queryParams): ResponseInterface
2970+
public static function getListOfProductsReviewsDeprecated(array $queryParams = []): ResponseInterface
29712971
{
29722972
return self::getEndpointFactory()
29732973
->createEndpoint(GetListOfProductsReviewsDeprecated::class)
@@ -6436,7 +6436,7 @@ public static function createCustomerGroup(
64366436
}
64376437

64386438
/**
6439-
* @param string $id [1]
6439+
* @param string $id [999]
64406440
* @param array{
64416441
* language?: string,
64426442
* } $queryParams
@@ -8370,10 +8370,10 @@ public static function getListOfAvailableEndpoints(array $queryParams = []): Res
83708370
* language?: string,
83718371
* page?: int,
83728372
* itemsPerPage?: int,
8373-
* dateFrom: string,
8374-
* dateTo: string,
8375-
* changeTimeFrom: string,
8376-
* productGuid: string,
8373+
* dateFrom?: string,
8374+
* dateTo?: string,
8375+
* changeTimeFrom?: string,
8376+
* productGuid?: string,
83778377
* orderCode: string,
83788378
* } $queryParams
83798379
*

0 commit comments

Comments
 (0)