Skip to content

Commit 4e7a674

Browse files
Merge pull request #268 from commercetools/gen-sdk-updates
Update generated SDKs
2 parents da08ceb + 5233e4d commit 4e7a674

File tree

6 files changed

+53
-0
lines changed

6 files changed

+53
-0
lines changed

changes.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,11 @@
77
- :warning: changed property `column` of type `GraphQLErrorLocation` from type `integer` to `number`
88
</details>
99

10+
11+
<details>
12+
<summary>Added QueryParameter(s)</summary>
13+
14+
- added query parameter `where` to method `get /{projectKey}/product-selections/key={key}/products`
15+
- added query parameter `where` to method `get /{projectKey}/product-selections/{ID}/products`
16+
</details>
17+

lib/commercetools-api-tests/test/unit/Client/Resource/ResourceByProjectKeyProductSelectionsByIDProductsTest.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,19 @@ public function testExecuteServerException(callable $builderFunction)
9090
public function getRequests()
9191
{
9292
return [
93+
'ByProjectKeyProductSelectionsByIDProductsGet_withWhere' => [
94+
function (ApiRequestBuilder $builder): RequestInterface {
95+
return $builder
96+
->withProjectKey('test_projectKey')
97+
->productSelections()
98+
->withId('test_ID')
99+
->products()
100+
->get()
101+
->withWhere('where');
102+
},
103+
'get',
104+
'test_projectKey/product-selections/test_ID/products?where=where',
105+
],
93106
'ByProjectKeyProductSelectionsByIDProductsGet_withExpand' => [
94107
function (ApiRequestBuilder $builder): RequestInterface {
95108
return $builder

lib/commercetools-api-tests/test/unit/Client/Resource/ResourceByProjectKeyProductSelectionsKeyByKeyProductsTest.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,19 @@ public function testExecuteServerException(callable $builderFunction)
9090
public function getRequests()
9191
{
9292
return [
93+
'ByProjectKeyProductSelectionsKeyByKeyProductsGet_withWhere' => [
94+
function (ApiRequestBuilder $builder): RequestInterface {
95+
return $builder
96+
->withProjectKey('test_projectKey')
97+
->productSelections()
98+
->withKey('test_key')
99+
->products()
100+
->get()
101+
->withWhere('where');
102+
},
103+
'get',
104+
'test_projectKey/product-selections/key=test_key/products?where=where',
105+
],
93106
'ByProjectKeyProductSelectionsKeyByKeyProductsGet_withExpand' => [
94107
function (ApiRequestBuilder $builder): RequestInterface {
95108
return $builder

lib/commercetools-api/src/Client/Resource/ByProjectKeyProductSelectionsByIDProductsGet.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,15 @@ function (RequestException $e) use ($resultType) {
146146
);
147147
}
148148

149+
/**
150+
*
151+
* @psalm-param scalar|scalar[] $where
152+
*/
153+
public function withWhere($where): ByProjectKeyProductSelectionsByIDProductsGet
154+
{
155+
return $this->withQueryParam('where', $where);
156+
}
157+
149158
/**
150159
*
151160
* @psalm-param scalar|scalar[] $expand

lib/commercetools-api/src/Client/Resource/ByProjectKeyProductSelectionsKeyByKeyProductsGet.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,15 @@ function (RequestException $e) use ($resultType) {
146146
);
147147
}
148148

149+
/**
150+
*
151+
* @psalm-param scalar|scalar[] $where
152+
*/
153+
public function withWhere($where): ByProjectKeyProductSelectionsKeyByKeyProductsGet
154+
{
155+
return $this->withQueryParam('where', $where);
156+
}
157+
149158
/**
150159
*
151160
* @psalm-param scalar|scalar[] $expand

references.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,3 +324,4 @@ ccf4522140c12b0093aefe0e2a27d62bcc4834a6
324324
8e09aa861a0ba58755289bc185dcb268ac4f1c13
325325
0be69283d6aba9d3a2f895140378673f2f80f7b0
326326
f254d17f05343dcc4299fc53ff9b335b5ef63d69
327+
6892be230f1ad73f1150dd544c9fa7fee0e6b123

0 commit comments

Comments
 (0)