Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,11 @@
- :warning: changed property `column` of type `GraphQLErrorLocation` from type `integer` to `number`
</details>


<details>
<summary>Added QueryParameter(s)</summary>

- added query parameter `where` to method `get /{projectKey}/product-selections/key={key}/products`
- added query parameter `where` to method `get /{projectKey}/product-selections/{ID}/products`
</details>

Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,19 @@ public function testExecuteServerException(callable $builderFunction)
public function getRequests()
{
return [
'ByProjectKeyProductSelectionsByIDProductsGet_withWhere' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
->withProjectKey('test_projectKey')
->productSelections()
->withId('test_ID')
->products()
->get()
->withWhere('where');
},
'get',
'test_projectKey/product-selections/test_ID/products?where=where',
],
'ByProjectKeyProductSelectionsByIDProductsGet_withExpand' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,19 @@ public function testExecuteServerException(callable $builderFunction)
public function getRequests()
{
return [
'ByProjectKeyProductSelectionsKeyByKeyProductsGet_withWhere' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
->withProjectKey('test_projectKey')
->productSelections()
->withKey('test_key')
->products()
->get()
->withWhere('where');
},
'get',
'test_projectKey/product-selections/key=test_key/products?where=where',
],
'ByProjectKeyProductSelectionsKeyByKeyProductsGet_withExpand' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,15 @@ function (RequestException $e) use ($resultType) {
);
}

/**
*
* @psalm-param scalar|scalar[] $where
*/
public function withWhere($where): ByProjectKeyProductSelectionsByIDProductsGet
{
return $this->withQueryParam('where', $where);
}

/**
*
* @psalm-param scalar|scalar[] $expand
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,15 @@ function (RequestException $e) use ($resultType) {
);
}

/**
*
* @psalm-param scalar|scalar[] $where
*/
public function withWhere($where): ByProjectKeyProductSelectionsKeyByKeyProductsGet
{
return $this->withQueryParam('where', $where);
}

/**
*
* @psalm-param scalar|scalar[] $expand
Expand Down
1 change: 1 addition & 0 deletions references.txt
Original file line number Diff line number Diff line change
Expand Up @@ -324,3 +324,4 @@ ccf4522140c12b0093aefe0e2a27d62bcc4834a6
8e09aa861a0ba58755289bc185dcb268ac4f1c13
0be69283d6aba9d3a2f895140378673f2f80f7b0
f254d17f05343dcc4299fc53ff9b335b5ef63d69
6892be230f1ad73f1150dd544c9fa7fee0e6b123