diff --git a/lib/commercetools-api-tests/test/unit/Client/Resource/ResourceByProjectKeyProductSelectionsByIDProductsTest.php b/lib/commercetools-api-tests/test/unit/Client/Resource/ResourceByProjectKeyProductSelectionsByIDProductsTest.php index 2ad9f30be1c..32e1c17c9f3 100644 --- a/lib/commercetools-api-tests/test/unit/Client/Resource/ResourceByProjectKeyProductSelectionsByIDProductsTest.php +++ b/lib/commercetools-api-tests/test/unit/Client/Resource/ResourceByProjectKeyProductSelectionsByIDProductsTest.php @@ -103,7 +103,7 @@ function (ApiRequestBuilder $builder): RequestInterface { 'get', 'test_projectKey/product-selections/test_ID/products?where=where', ], - 'ByProjectKeyProductSelectionsByIDProductsGet_withExpand' => [ + 'ByProjectKeyProductSelectionsByIDProductsGet_withWithTotal' => [ function (ApiRequestBuilder $builder): RequestInterface { return $builder ->withProjectKey('test_projectKey') @@ -111,12 +111,12 @@ function (ApiRequestBuilder $builder): RequestInterface { ->withId('test_ID') ->products() ->get() - ->withExpand('expand'); + ->withWithTotal('withTotal'); }, 'get', - 'test_projectKey/product-selections/test_ID/products?expand=expand', + 'test_projectKey/product-selections/test_ID/products?withTotal=withTotal', ], - 'ByProjectKeyProductSelectionsByIDProductsGet_withLimit' => [ + 'ByProjectKeyProductSelectionsByIDProductsGet_withExpand' => [ function (ApiRequestBuilder $builder): RequestInterface { return $builder ->withProjectKey('test_projectKey') @@ -124,12 +124,12 @@ function (ApiRequestBuilder $builder): RequestInterface { ->withId('test_ID') ->products() ->get() - ->withLimit('limit'); + ->withExpand('expand'); }, 'get', - 'test_projectKey/product-selections/test_ID/products?limit=limit', + 'test_projectKey/product-selections/test_ID/products?expand=expand', ], - 'ByProjectKeyProductSelectionsByIDProductsGet_withOffset' => [ + 'ByProjectKeyProductSelectionsByIDProductsGet_withLimit' => [ function (ApiRequestBuilder $builder): RequestInterface { return $builder ->withProjectKey('test_projectKey') @@ -137,12 +137,12 @@ function (ApiRequestBuilder $builder): RequestInterface { ->withId('test_ID') ->products() ->get() - ->withOffset('offset'); + ->withLimit('limit'); }, 'get', - 'test_projectKey/product-selections/test_ID/products?offset=offset', + 'test_projectKey/product-selections/test_ID/products?limit=limit', ], - 'ByProjectKeyProductSelectionsByIDProductsGet_withWithTotal' => [ + 'ByProjectKeyProductSelectionsByIDProductsGet_withOffset' => [ function (ApiRequestBuilder $builder): RequestInterface { return $builder ->withProjectKey('test_projectKey') @@ -150,10 +150,10 @@ function (ApiRequestBuilder $builder): RequestInterface { ->withId('test_ID') ->products() ->get() - ->withWithTotal('withTotal'); + ->withOffset('offset'); }, 'get', - 'test_projectKey/product-selections/test_ID/products?withTotal=withTotal', + 'test_projectKey/product-selections/test_ID/products?offset=offset', ], 'ByProjectKeyProductSelectionsByIDProductsGet_withSort' => [ function (ApiRequestBuilder $builder): RequestInterface { diff --git a/lib/commercetools-api-tests/test/unit/Client/Resource/ResourceByProjectKeyProductSelectionsKeyByKeyProductsTest.php b/lib/commercetools-api-tests/test/unit/Client/Resource/ResourceByProjectKeyProductSelectionsKeyByKeyProductsTest.php index fb60b0bbfca..cb0e1bbbe45 100644 --- a/lib/commercetools-api-tests/test/unit/Client/Resource/ResourceByProjectKeyProductSelectionsKeyByKeyProductsTest.php +++ b/lib/commercetools-api-tests/test/unit/Client/Resource/ResourceByProjectKeyProductSelectionsKeyByKeyProductsTest.php @@ -103,7 +103,7 @@ function (ApiRequestBuilder $builder): RequestInterface { 'get', 'test_projectKey/product-selections/key=test_key/products?where=where', ], - 'ByProjectKeyProductSelectionsKeyByKeyProductsGet_withExpand' => [ + 'ByProjectKeyProductSelectionsKeyByKeyProductsGet_withWithTotal' => [ function (ApiRequestBuilder $builder): RequestInterface { return $builder ->withProjectKey('test_projectKey') @@ -111,12 +111,12 @@ function (ApiRequestBuilder $builder): RequestInterface { ->withKey('test_key') ->products() ->get() - ->withExpand('expand'); + ->withWithTotal('withTotal'); }, 'get', - 'test_projectKey/product-selections/key=test_key/products?expand=expand', + 'test_projectKey/product-selections/key=test_key/products?withTotal=withTotal', ], - 'ByProjectKeyProductSelectionsKeyByKeyProductsGet_withLimit' => [ + 'ByProjectKeyProductSelectionsKeyByKeyProductsGet_withExpand' => [ function (ApiRequestBuilder $builder): RequestInterface { return $builder ->withProjectKey('test_projectKey') @@ -124,12 +124,12 @@ function (ApiRequestBuilder $builder): RequestInterface { ->withKey('test_key') ->products() ->get() - ->withLimit('limit'); + ->withExpand('expand'); }, 'get', - 'test_projectKey/product-selections/key=test_key/products?limit=limit', + 'test_projectKey/product-selections/key=test_key/products?expand=expand', ], - 'ByProjectKeyProductSelectionsKeyByKeyProductsGet_withOffset' => [ + 'ByProjectKeyProductSelectionsKeyByKeyProductsGet_withLimit' => [ function (ApiRequestBuilder $builder): RequestInterface { return $builder ->withProjectKey('test_projectKey') @@ -137,12 +137,12 @@ function (ApiRequestBuilder $builder): RequestInterface { ->withKey('test_key') ->products() ->get() - ->withOffset('offset'); + ->withLimit('limit'); }, 'get', - 'test_projectKey/product-selections/key=test_key/products?offset=offset', + 'test_projectKey/product-selections/key=test_key/products?limit=limit', ], - 'ByProjectKeyProductSelectionsKeyByKeyProductsGet_withWithTotal' => [ + 'ByProjectKeyProductSelectionsKeyByKeyProductsGet_withOffset' => [ function (ApiRequestBuilder $builder): RequestInterface { return $builder ->withProjectKey('test_projectKey') @@ -150,10 +150,10 @@ function (ApiRequestBuilder $builder): RequestInterface { ->withKey('test_key') ->products() ->get() - ->withWithTotal('withTotal'); + ->withOffset('offset'); }, 'get', - 'test_projectKey/product-selections/key=test_key/products?withTotal=withTotal', + 'test_projectKey/product-selections/key=test_key/products?offset=offset', ], 'ByProjectKeyProductSelectionsKeyByKeyProductsGet_withSort' => [ function (ApiRequestBuilder $builder): RequestInterface { diff --git a/lib/commercetools-api-tests/test/unit/Client/Resource/ResourceByProjectKeyProductTailoringTest.php b/lib/commercetools-api-tests/test/unit/Client/Resource/ResourceByProjectKeyProductTailoringTest.php index cde8df07ae9..8f50e62c3d0 100644 --- a/lib/commercetools-api-tests/test/unit/Client/Resource/ResourceByProjectKeyProductTailoringTest.php +++ b/lib/commercetools-api-tests/test/unit/Client/Resource/ResourceByProjectKeyProductTailoringTest.php @@ -103,6 +103,17 @@ public function testExecuteServerException(callable $builderFunction) public function getRequests() { return [ + 'ByProjectKeyProductTailoringGet_withWithTotal' => [ + function (ApiRequestBuilder $builder): RequestInterface { + return $builder + ->withProjectKey('test_projectKey') + ->productTailoring() + ->get() + ->withWithTotal('withTotal'); + }, + 'get', + 'test_projectKey/product-tailoring?withTotal=withTotal', + ], 'ByProjectKeyProductTailoringGet_withExpand' => [ function (ApiRequestBuilder $builder): RequestInterface { return $builder @@ -147,17 +158,6 @@ function (ApiRequestBuilder $builder): RequestInterface { 'get', 'test_projectKey/product-tailoring?offset=offset', ], - 'ByProjectKeyProductTailoringGet_withWithTotal' => [ - function (ApiRequestBuilder $builder): RequestInterface { - return $builder - ->withProjectKey('test_projectKey') - ->productTailoring() - ->get() - ->withWithTotal('withTotal'); - }, - 'get', - 'test_projectKey/product-tailoring?withTotal=withTotal', - ], 'ByProjectKeyProductTailoringGet_withWhere' => [ function (ApiRequestBuilder $builder): RequestInterface { return $builder diff --git a/lib/commercetools-api-tests/test/unit/Client/Resource/ResourceByProjectKeyProductsByIDProductSelectionsTest.php b/lib/commercetools-api-tests/test/unit/Client/Resource/ResourceByProjectKeyProductsByIDProductSelectionsTest.php index ab1b0fea4dc..00073358c49 100644 --- a/lib/commercetools-api-tests/test/unit/Client/Resource/ResourceByProjectKeyProductsByIDProductSelectionsTest.php +++ b/lib/commercetools-api-tests/test/unit/Client/Resource/ResourceByProjectKeyProductsByIDProductSelectionsTest.php @@ -90,6 +90,19 @@ public function testExecuteServerException(callable $builderFunction) public function getRequests() { return [ + 'ByProjectKeyProductsByIDProductSelectionsGet_withWithTotal' => [ + function (ApiRequestBuilder $builder): RequestInterface { + return $builder + ->withProjectKey('test_projectKey') + ->products() + ->withId('test_ID') + ->productSelections() + ->get() + ->withWithTotal('withTotal'); + }, + 'get', + 'test_projectKey/products/test_ID/product-selections?withTotal=withTotal', + ], 'ByProjectKeyProductsByIDProductSelectionsGet_withExpand' => [ function (ApiRequestBuilder $builder): RequestInterface { return $builder @@ -142,19 +155,6 @@ function (ApiRequestBuilder $builder): RequestInterface { 'get', 'test_projectKey/products/test_ID/product-selections?offset=offset', ], - 'ByProjectKeyProductsByIDProductSelectionsGet_withWithTotal' => [ - function (ApiRequestBuilder $builder): RequestInterface { - return $builder - ->withProjectKey('test_projectKey') - ->products() - ->withId('test_ID') - ->productSelections() - ->get() - ->withWithTotal('withTotal'); - }, - 'get', - 'test_projectKey/products/test_ID/product-selections?withTotal=withTotal', - ], 'ByProjectKeyProductsByIDProductSelectionsGet_withWhere' => [ function (ApiRequestBuilder $builder): RequestInterface { return $builder diff --git a/lib/commercetools-api-tests/test/unit/Client/Resource/ResourceByProjectKeyProductsKeyByKeyProductSelectionsTest.php b/lib/commercetools-api-tests/test/unit/Client/Resource/ResourceByProjectKeyProductsKeyByKeyProductSelectionsTest.php index 237428b540f..bb65630161c 100644 --- a/lib/commercetools-api-tests/test/unit/Client/Resource/ResourceByProjectKeyProductsKeyByKeyProductSelectionsTest.php +++ b/lib/commercetools-api-tests/test/unit/Client/Resource/ResourceByProjectKeyProductsKeyByKeyProductSelectionsTest.php @@ -90,6 +90,19 @@ public function testExecuteServerException(callable $builderFunction) public function getRequests() { return [ + 'ByProjectKeyProductsKeyByKeyProductSelectionsGet_withWithTotal' => [ + function (ApiRequestBuilder $builder): RequestInterface { + return $builder + ->withProjectKey('test_projectKey') + ->products() + ->withKey('test_key') + ->productSelections() + ->get() + ->withWithTotal('withTotal'); + }, + 'get', + 'test_projectKey/products/key=test_key/product-selections?withTotal=withTotal', + ], 'ByProjectKeyProductsKeyByKeyProductSelectionsGet_withExpand' => [ function (ApiRequestBuilder $builder): RequestInterface { return $builder @@ -142,19 +155,6 @@ function (ApiRequestBuilder $builder): RequestInterface { 'get', 'test_projectKey/products/key=test_key/product-selections?offset=offset', ], - 'ByProjectKeyProductsKeyByKeyProductSelectionsGet_withWithTotal' => [ - function (ApiRequestBuilder $builder): RequestInterface { - return $builder - ->withProjectKey('test_projectKey') - ->products() - ->withKey('test_key') - ->productSelections() - ->get() - ->withWithTotal('withTotal'); - }, - 'get', - 'test_projectKey/products/key=test_key/product-selections?withTotal=withTotal', - ], 'ByProjectKeyProductsKeyByKeyProductSelectionsGet_withWhere' => [ function (ApiRequestBuilder $builder): RequestInterface { return $builder diff --git a/lib/commercetools-api/src/Client/Resource/ByProjectKeyProductSelectionsByIDProductsGet.php b/lib/commercetools-api/src/Client/Resource/ByProjectKeyProductSelectionsByIDProductsGet.php index bbad698025b..ff2206bf70a 100644 --- a/lib/commercetools-api/src/Client/Resource/ByProjectKeyProductSelectionsByIDProductsGet.php +++ b/lib/commercetools-api/src/Client/Resource/ByProjectKeyProductSelectionsByIDProductsGet.php @@ -155,6 +155,15 @@ public function withWhere($where): ByProjectKeyProductSelectionsByIDProductsGet return $this->withQueryParam('where', $where); } + /** + * + * @psalm-param scalar|scalar[] $withTotal + */ + public function withWithTotal($withTotal): ByProjectKeyProductSelectionsByIDProductsGet + { + return $this->withQueryParam('withTotal', $withTotal); + } + /** * * @psalm-param scalar|scalar[] $expand @@ -182,15 +191,6 @@ public function withOffset($offset): ByProjectKeyProductSelectionsByIDProductsGe return $this->withQueryParam('offset', $offset); } - /** - * - * @psalm-param scalar|scalar[] $withTotal - */ - public function withWithTotal($withTotal): ByProjectKeyProductSelectionsByIDProductsGet - { - return $this->withQueryParam('withTotal', $withTotal); - } - /** * * @psalm-param scalar|scalar[] $sort diff --git a/lib/commercetools-api/src/Client/Resource/ByProjectKeyProductSelectionsKeyByKeyProductsGet.php b/lib/commercetools-api/src/Client/Resource/ByProjectKeyProductSelectionsKeyByKeyProductsGet.php index 1ba9dd62728..8d36a0ab1c7 100644 --- a/lib/commercetools-api/src/Client/Resource/ByProjectKeyProductSelectionsKeyByKeyProductsGet.php +++ b/lib/commercetools-api/src/Client/Resource/ByProjectKeyProductSelectionsKeyByKeyProductsGet.php @@ -155,6 +155,15 @@ public function withWhere($where): ByProjectKeyProductSelectionsKeyByKeyProducts return $this->withQueryParam('where', $where); } + /** + * + * @psalm-param scalar|scalar[] $withTotal + */ + public function withWithTotal($withTotal): ByProjectKeyProductSelectionsKeyByKeyProductsGet + { + return $this->withQueryParam('withTotal', $withTotal); + } + /** * * @psalm-param scalar|scalar[] $expand @@ -182,15 +191,6 @@ public function withOffset($offset): ByProjectKeyProductSelectionsKeyByKeyProduc return $this->withQueryParam('offset', $offset); } - /** - * - * @psalm-param scalar|scalar[] $withTotal - */ - public function withWithTotal($withTotal): ByProjectKeyProductSelectionsKeyByKeyProductsGet - { - return $this->withQueryParam('withTotal', $withTotal); - } - /** * * @psalm-param scalar|scalar[] $sort diff --git a/lib/commercetools-api/src/Client/Resource/ByProjectKeyProductTailoringGet.php b/lib/commercetools-api/src/Client/Resource/ByProjectKeyProductTailoringGet.php index 03260faac68..02dd8bc1bac 100644 --- a/lib/commercetools-api/src/Client/Resource/ByProjectKeyProductTailoringGet.php +++ b/lib/commercetools-api/src/Client/Resource/ByProjectKeyProductTailoringGet.php @@ -147,6 +147,15 @@ function (RequestException $e) use ($resultType) { ); } + /** + * + * @psalm-param scalar|scalar[] $withTotal + */ + public function withWithTotal($withTotal): ByProjectKeyProductTailoringGet + { + return $this->withQueryParam('withTotal', $withTotal); + } + /** * * @psalm-param scalar|scalar[] $expand @@ -183,15 +192,6 @@ public function withOffset($offset): ByProjectKeyProductTailoringGet return $this->withQueryParam('offset', $offset); } - /** - * - * @psalm-param scalar|scalar[] $withTotal - */ - public function withWithTotal($withTotal): ByProjectKeyProductTailoringGet - { - return $this->withQueryParam('withTotal', $withTotal); - } - /** * * @psalm-param scalar|scalar[] $where diff --git a/lib/commercetools-api/src/Client/Resource/ByProjectKeyProductsByIDProductSelectionsGet.php b/lib/commercetools-api/src/Client/Resource/ByProjectKeyProductsByIDProductSelectionsGet.php index e67cce03fc8..3f395211b4c 100644 --- a/lib/commercetools-api/src/Client/Resource/ByProjectKeyProductsByIDProductSelectionsGet.php +++ b/lib/commercetools-api/src/Client/Resource/ByProjectKeyProductsByIDProductSelectionsGet.php @@ -147,6 +147,15 @@ function (RequestException $e) use ($resultType) { ); } + /** + * + * @psalm-param scalar|scalar[] $withTotal + */ + public function withWithTotal($withTotal): ByProjectKeyProductsByIDProductSelectionsGet + { + return $this->withQueryParam('withTotal', $withTotal); + } + /** * * @psalm-param scalar|scalar[] $expand @@ -183,15 +192,6 @@ public function withOffset($offset): ByProjectKeyProductsByIDProductSelectionsGe return $this->withQueryParam('offset', $offset); } - /** - * - * @psalm-param scalar|scalar[] $withTotal - */ - public function withWithTotal($withTotal): ByProjectKeyProductsByIDProductSelectionsGet - { - return $this->withQueryParam('withTotal', $withTotal); - } - /** * * @psalm-param scalar|scalar[] $where diff --git a/lib/commercetools-api/src/Client/Resource/ByProjectKeyProductsKeyByKeyProductSelectionsGet.php b/lib/commercetools-api/src/Client/Resource/ByProjectKeyProductsKeyByKeyProductSelectionsGet.php index 1acb9a9818d..bb281b14081 100644 --- a/lib/commercetools-api/src/Client/Resource/ByProjectKeyProductsKeyByKeyProductSelectionsGet.php +++ b/lib/commercetools-api/src/Client/Resource/ByProjectKeyProductsKeyByKeyProductSelectionsGet.php @@ -147,6 +147,15 @@ function (RequestException $e) use ($resultType) { ); } + /** + * + * @psalm-param scalar|scalar[] $withTotal + */ + public function withWithTotal($withTotal): ByProjectKeyProductsKeyByKeyProductSelectionsGet + { + return $this->withQueryParam('withTotal', $withTotal); + } + /** * * @psalm-param scalar|scalar[] $expand @@ -183,15 +192,6 @@ public function withOffset($offset): ByProjectKeyProductsKeyByKeyProductSelectio return $this->withQueryParam('offset', $offset); } - /** - * - * @psalm-param scalar|scalar[] $withTotal - */ - public function withWithTotal($withTotal): ByProjectKeyProductsKeyByKeyProductSelectionsGet - { - return $this->withQueryParam('withTotal', $withTotal); - } - /** * * @psalm-param scalar|scalar[] $where diff --git a/lib/commercetools-api/src/Models/ProductSelection/AssignedProductSelectionPagedQueryResponse.php b/lib/commercetools-api/src/Models/ProductSelection/AssignedProductSelectionPagedQueryResponse.php index 3fe91a533e1..cd03edf3fc0 100644 --- a/lib/commercetools-api/src/Models/ProductSelection/AssignedProductSelectionPagedQueryResponse.php +++ b/lib/commercetools-api/src/Models/ProductSelection/AssignedProductSelectionPagedQueryResponse.php @@ -45,10 +45,9 @@ public function getCount(); /** *

Total number of results matching the query. - * This number is an estimation that is not strongly consistent. - * Unlike other endpoints, the Product Selection endpoint does not return this field by default. - * To get total, pass the query parameter withTotal set to true. - * When the results are filtered with a Query Predicate, total is subject to a limit.

+ * Present only when the withTotal query parameter is set to true. + * This number is an estimation that is not strongly consistent. + * When the results are filtered with a Query Predicate, total is subject to a limit.

* * @return null|int diff --git a/lib/commercetools-api/src/Models/ProductSelection/AssignedProductSelectionPagedQueryResponseBuilder.php b/lib/commercetools-api/src/Models/ProductSelection/AssignedProductSelectionPagedQueryResponseBuilder.php index ef1eb339e5c..30d31ce0641 100644 --- a/lib/commercetools-api/src/Models/ProductSelection/AssignedProductSelectionPagedQueryResponseBuilder.php +++ b/lib/commercetools-api/src/Models/ProductSelection/AssignedProductSelectionPagedQueryResponseBuilder.php @@ -85,10 +85,9 @@ public function getCount() /** *

Total number of results matching the query. - * This number is an estimation that is not strongly consistent. - * Unlike other endpoints, the Product Selection endpoint does not return this field by default. - * To get total, pass the query parameter withTotal set to true. - * When the results are filtered with a Query Predicate, total is subject to a limit.

+ * Present only when the withTotal query parameter is set to true. + * This number is an estimation that is not strongly consistent. + * When the results are filtered with a Query Predicate, total is subject to a limit.

* * @return null|int diff --git a/lib/commercetools-api/src/Models/ProductSelection/AssignedProductSelectionPagedQueryResponseModel.php b/lib/commercetools-api/src/Models/ProductSelection/AssignedProductSelectionPagedQueryResponseModel.php index 820c953cad2..7a6ec77fa9f 100644 --- a/lib/commercetools-api/src/Models/ProductSelection/AssignedProductSelectionPagedQueryResponseModel.php +++ b/lib/commercetools-api/src/Models/ProductSelection/AssignedProductSelectionPagedQueryResponseModel.php @@ -129,10 +129,9 @@ public function getCount() /** *

Total number of results matching the query. - * This number is an estimation that is not strongly consistent. - * Unlike other endpoints, the Product Selection endpoint does not return this field by default. - * To get total, pass the query parameter withTotal set to true. - * When the results are filtered with a Query Predicate, total is subject to a limit.

+ * Present only when the withTotal query parameter is set to true. + * This number is an estimation that is not strongly consistent. + * When the results are filtered with a Query Predicate, total is subject to a limit.

* * * @return null|int diff --git a/lib/commercetools-api/src/Models/ProductSelection/ProductSelectionPagedQueryResponse.php b/lib/commercetools-api/src/Models/ProductSelection/ProductSelectionPagedQueryResponse.php index ed348d48bef..73a56bf5897 100644 --- a/lib/commercetools-api/src/Models/ProductSelection/ProductSelectionPagedQueryResponse.php +++ b/lib/commercetools-api/src/Models/ProductSelection/ProductSelectionPagedQueryResponse.php @@ -46,8 +46,8 @@ public function getCount(); /** *

Total number of results matching the query. * This number is an estimation that is not strongly consistent. - * Unlike other endpoints, the Product Selection endpoint does not return this field by default. - * To get total, pass the query parameter withTotal set to true. + * This field is returned by default. + * For improved performance, calculating this field can be deactivated by using the query parameter withTotal=false. * When the results are filtered with a Query Predicate, total is subject to a limit.

* diff --git a/lib/commercetools-api/src/Models/ProductSelection/ProductSelectionPagedQueryResponseBuilder.php b/lib/commercetools-api/src/Models/ProductSelection/ProductSelectionPagedQueryResponseBuilder.php index c5bfe846194..6edc9ec1846 100644 --- a/lib/commercetools-api/src/Models/ProductSelection/ProductSelectionPagedQueryResponseBuilder.php +++ b/lib/commercetools-api/src/Models/ProductSelection/ProductSelectionPagedQueryResponseBuilder.php @@ -86,8 +86,8 @@ public function getCount() /** *

Total number of results matching the query. * This number is an estimation that is not strongly consistent. - * Unlike other endpoints, the Product Selection endpoint does not return this field by default. - * To get total, pass the query parameter withTotal set to true. + * This field is returned by default. + * For improved performance, calculating this field can be deactivated by using the query parameter withTotal=false. * When the results are filtered with a Query Predicate, total is subject to a limit.

* diff --git a/lib/commercetools-api/src/Models/ProductSelection/ProductSelectionPagedQueryResponseModel.php b/lib/commercetools-api/src/Models/ProductSelection/ProductSelectionPagedQueryResponseModel.php index 92ec71cbe0f..157e923def7 100644 --- a/lib/commercetools-api/src/Models/ProductSelection/ProductSelectionPagedQueryResponseModel.php +++ b/lib/commercetools-api/src/Models/ProductSelection/ProductSelectionPagedQueryResponseModel.php @@ -130,8 +130,8 @@ public function getCount() /** *

Total number of results matching the query. * This number is an estimation that is not strongly consistent. - * Unlike other endpoints, the Product Selection endpoint does not return this field by default. - * To get total, pass the query parameter withTotal set to true. + * This field is returned by default. + * For improved performance, calculating this field can be deactivated by using the query parameter withTotal=false. * When the results are filtered with a Query Predicate, total is subject to a limit.

* * diff --git a/lib/commercetools-api/src/Models/ProductSelection/ProductSelectionProductPagedQueryResponse.php b/lib/commercetools-api/src/Models/ProductSelection/ProductSelectionProductPagedQueryResponse.php index 8572cb2a47a..52f5a058098 100644 --- a/lib/commercetools-api/src/Models/ProductSelection/ProductSelectionProductPagedQueryResponse.php +++ b/lib/commercetools-api/src/Models/ProductSelection/ProductSelectionProductPagedQueryResponse.php @@ -45,10 +45,9 @@ public function getCount(); /** *

Total number of results matching the query. - * This number is an estimation that is not strongly consistent. - * Unlike other endpoints, the Product Selection endpoint does not return this field by default. - * To get total, pass the query parameter withTotal set to true. - * When the results are filtered with a Query Predicate, total is subject to a limit.

+ * Present only when the withTotal query parameter is set to true. + * This number is an estimation that is not strongly consistent. + * When the results are filtered with a Query Predicate, total is subject to a limit.

* * @return null|int diff --git a/lib/commercetools-api/src/Models/ProductSelection/ProductSelectionProductPagedQueryResponseBuilder.php b/lib/commercetools-api/src/Models/ProductSelection/ProductSelectionProductPagedQueryResponseBuilder.php index a01ed590a8a..a666b52f47e 100644 --- a/lib/commercetools-api/src/Models/ProductSelection/ProductSelectionProductPagedQueryResponseBuilder.php +++ b/lib/commercetools-api/src/Models/ProductSelection/ProductSelectionProductPagedQueryResponseBuilder.php @@ -85,10 +85,9 @@ public function getCount() /** *

Total number of results matching the query. - * This number is an estimation that is not strongly consistent. - * Unlike other endpoints, the Product Selection endpoint does not return this field by default. - * To get total, pass the query parameter withTotal set to true. - * When the results are filtered with a Query Predicate, total is subject to a limit.

+ * Present only when the withTotal query parameter is set to true. + * This number is an estimation that is not strongly consistent. + * When the results are filtered with a Query Predicate, total is subject to a limit.

* * @return null|int diff --git a/lib/commercetools-api/src/Models/ProductSelection/ProductSelectionProductPagedQueryResponseModel.php b/lib/commercetools-api/src/Models/ProductSelection/ProductSelectionProductPagedQueryResponseModel.php index 6b479b32f56..f3c5c25ecee 100644 --- a/lib/commercetools-api/src/Models/ProductSelection/ProductSelectionProductPagedQueryResponseModel.php +++ b/lib/commercetools-api/src/Models/ProductSelection/ProductSelectionProductPagedQueryResponseModel.php @@ -129,10 +129,9 @@ public function getCount() /** *

Total number of results matching the query. - * This number is an estimation that is not strongly consistent. - * Unlike other endpoints, the Product Selection endpoint does not return this field by default. - * To get total, pass the query parameter withTotal set to true. - * When the results are filtered with a Query Predicate, total is subject to a limit.

+ * Present only when the withTotal query parameter is set to true. + * This number is an estimation that is not strongly consistent. + * When the results are filtered with a Query Predicate, total is subject to a limit.

* * * @return null|int diff --git a/lib/commercetools-api/src/Models/ProductSelection/ProductsInStorePagedQueryResponse.php b/lib/commercetools-api/src/Models/ProductSelection/ProductsInStorePagedQueryResponse.php index 29acab3816f..7c04c4dc357 100644 --- a/lib/commercetools-api/src/Models/ProductSelection/ProductsInStorePagedQueryResponse.php +++ b/lib/commercetools-api/src/Models/ProductSelection/ProductsInStorePagedQueryResponse.php @@ -45,10 +45,9 @@ public function getCount(); /** *

Total number of results matching the query. - * This number is an estimation that is not strongly consistent. - * Unlike other endpoints, the Product Selection endpoint does not return this field by default. - * To get total, pass the query parameter withTotal set to true. - * When the results are filtered with a Query Predicate, total is subject to a limit.

+ * Present only when the withTotal query parameter is set to true. + * This number is an estimation that is not strongly consistent. + * When the results are filtered with a Query Predicate, total is subject to a limit.

* * @return null|int diff --git a/lib/commercetools-api/src/Models/ProductSelection/ProductsInStorePagedQueryResponseBuilder.php b/lib/commercetools-api/src/Models/ProductSelection/ProductsInStorePagedQueryResponseBuilder.php index 785c51e2ea8..f32c30fa949 100644 --- a/lib/commercetools-api/src/Models/ProductSelection/ProductsInStorePagedQueryResponseBuilder.php +++ b/lib/commercetools-api/src/Models/ProductSelection/ProductsInStorePagedQueryResponseBuilder.php @@ -85,10 +85,9 @@ public function getCount() /** *

Total number of results matching the query. - * This number is an estimation that is not strongly consistent. - * Unlike other endpoints, the Product Selection endpoint does not return this field by default. - * To get total, pass the query parameter withTotal set to true. - * When the results are filtered with a Query Predicate, total is subject to a limit.

+ * Present only when the withTotal query parameter is set to true. + * This number is an estimation that is not strongly consistent. + * When the results are filtered with a Query Predicate, total is subject to a limit.

* * @return null|int diff --git a/lib/commercetools-api/src/Models/ProductSelection/ProductsInStorePagedQueryResponseModel.php b/lib/commercetools-api/src/Models/ProductSelection/ProductsInStorePagedQueryResponseModel.php index 1e4115865e6..adc4604b06e 100644 --- a/lib/commercetools-api/src/Models/ProductSelection/ProductsInStorePagedQueryResponseModel.php +++ b/lib/commercetools-api/src/Models/ProductSelection/ProductsInStorePagedQueryResponseModel.php @@ -129,10 +129,9 @@ public function getCount() /** *

Total number of results matching the query. - * This number is an estimation that is not strongly consistent. - * Unlike other endpoints, the Product Selection endpoint does not return this field by default. - * To get total, pass the query parameter withTotal set to true. - * When the results are filtered with a Query Predicate, total is subject to a limit.

+ * Present only when the withTotal query parameter is set to true. + * This number is an estimation that is not strongly consistent. + * When the results are filtered with a Query Predicate, total is subject to a limit.

* * * @return null|int diff --git a/lib/commercetools-api/src/Models/ProductTailoring/ProductTailoringPagedQueryResponse.php b/lib/commercetools-api/src/Models/ProductTailoring/ProductTailoringPagedQueryResponse.php index 76be2c179ef..d7a853f61d9 100644 --- a/lib/commercetools-api/src/Models/ProductTailoring/ProductTailoringPagedQueryResponse.php +++ b/lib/commercetools-api/src/Models/ProductTailoring/ProductTailoringPagedQueryResponse.php @@ -45,9 +45,8 @@ public function getCount(); /** *

Total number of results matching the query. + * Present only when the withTotal query parameter is set to true. * This number is an estimation that is not strongly consistent. - * This field is returned by default. - * For improved performance, calculating this field can be deactivated by using the query parameter withTotal=false. * When the results are filtered with a Query Predicate, total is subject to a limit.

* diff --git a/lib/commercetools-api/src/Models/ProductTailoring/ProductTailoringPagedQueryResponseBuilder.php b/lib/commercetools-api/src/Models/ProductTailoring/ProductTailoringPagedQueryResponseBuilder.php index 05b98ece607..d33a9d6e0ff 100644 --- a/lib/commercetools-api/src/Models/ProductTailoring/ProductTailoringPagedQueryResponseBuilder.php +++ b/lib/commercetools-api/src/Models/ProductTailoring/ProductTailoringPagedQueryResponseBuilder.php @@ -85,9 +85,8 @@ public function getCount() /** *

Total number of results matching the query. + * Present only when the withTotal query parameter is set to true. * This number is an estimation that is not strongly consistent. - * This field is returned by default. - * For improved performance, calculating this field can be deactivated by using the query parameter withTotal=false. * When the results are filtered with a Query Predicate, total is subject to a limit.

* diff --git a/lib/commercetools-api/src/Models/ProductTailoring/ProductTailoringPagedQueryResponseModel.php b/lib/commercetools-api/src/Models/ProductTailoring/ProductTailoringPagedQueryResponseModel.php index b4d3c8d5655..9aba15dff16 100644 --- a/lib/commercetools-api/src/Models/ProductTailoring/ProductTailoringPagedQueryResponseModel.php +++ b/lib/commercetools-api/src/Models/ProductTailoring/ProductTailoringPagedQueryResponseModel.php @@ -129,9 +129,8 @@ public function getCount() /** *

Total number of results matching the query. + * Present only when the withTotal query parameter is set to true. * This number is an estimation that is not strongly consistent. - * This field is returned by default. - * For improved performance, calculating this field can be deactivated by using the query parameter withTotal=false. * When the results are filtered with a Query Predicate, total is subject to a limit.

* * diff --git a/references.txt b/references.txt index 31707d1c614..0e67fa61359 100644 --- a/references.txt +++ b/references.txt @@ -380,3 +380,4 @@ a4fe92e28e967d91ddaad6750b6434a65949b840 ffa8644c871728467258443ffb54707031865c44 a7aa20c17dc375042673f3de785e65cda595960c 9e27b6b4195fb7839b6c87f31a988d1612f327d6 +7e0d07d02382161fc6d401b83e03ad2754afbc9b