Skip to content

Commit ea4951f

Browse files
Merge pull request #474 from commercetools/gen-sdk-updates
Update generated SDKs
2 parents 2d13985 + bade6ce commit ea4951f

File tree

40 files changed

+1603
-392
lines changed

40 files changed

+1603
-392
lines changed

changes.md

Lines changed: 360 additions & 351 deletions
Large diffs are not rendered by default.

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,19 @@ function (ApiRequestBuilder $builder): RequestInterface {
195195
'get',
196196
'test_projectKey/in-store/key=test_storeKey/product-projections/test_ID?localeProjection=localeProjection',
197197
],
198+
'ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet_withFilterAttributes' => [
199+
function (ApiRequestBuilder $builder): RequestInterface {
200+
return $builder
201+
->withProjectKey('test_projectKey')
202+
->inStoreKeyWithStoreKeyValue('test_storeKey')
203+
->productProjections()
204+
->withId('test_ID')
205+
->get()
206+
->withFilterAttributes('filter[attributes]');
207+
},
208+
'get',
209+
'test_projectKey/in-store/key=test_storeKey/product-projections/test_ID?filter%5Battributes%5D=filter%5Battributes%5D',
210+
],
198211
'ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet_withExpand' => [
199212
function (ApiRequestBuilder $builder): RequestInterface {
200213
return $builder

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,19 @@ function (ApiRequestBuilder $builder): RequestInterface {
195195
'get',
196196
'test_projectKey/in-store/key=test_storeKey/product-projections/key=test_key?localeProjection=localeProjection',
197197
],
198+
'ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet_withFilterAttributes' => [
199+
function (ApiRequestBuilder $builder): RequestInterface {
200+
return $builder
201+
->withProjectKey('test_projectKey')
202+
->inStoreKeyWithStoreKeyValue('test_storeKey')
203+
->productProjections()
204+
->withKey('test_key')
205+
->get()
206+
->withFilterAttributes('filter[attributes]');
207+
},
208+
'get',
209+
'test_projectKey/in-store/key=test_storeKey/product-projections/key=test_key?filter%5Battributes%5D=filter%5Battributes%5D',
210+
],
198211
'ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet_withExpand' => [
199212
function (ApiRequestBuilder $builder): RequestInterface {
200213
return $builder

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,18 @@ function (ApiRequestBuilder $builder): RequestInterface {
199199
'get',
200200
'test_projectKey/product-projections/test_ID?storeProjection=storeProjection',
201201
],
202+
'ByProjectKeyProductProjectionsByIDGet_withFilterAttributes' => [
203+
function (ApiRequestBuilder $builder): RequestInterface {
204+
return $builder
205+
->withProjectKey('test_projectKey')
206+
->productProjections()
207+
->withId('test_ID')
208+
->get()
209+
->withFilterAttributes('filter[attributes]');
210+
},
211+
'get',
212+
'test_projectKey/product-projections/test_ID?filter%5Battributes%5D=filter%5Battributes%5D',
213+
],
202214
'ByProjectKeyProductProjectionsByIDGet_withExpand' => [
203215
function (ApiRequestBuilder $builder): RequestInterface {
204216
return $builder

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,18 @@ function (ApiRequestBuilder $builder): RequestInterface {
199199
'get',
200200
'test_projectKey/product-projections/key=test_key?storeProjection=storeProjection',
201201
],
202+
'ByProjectKeyProductProjectionsKeyByKeyGet_withFilterAttributes' => [
203+
function (ApiRequestBuilder $builder): RequestInterface {
204+
return $builder
205+
->withProjectKey('test_projectKey')
206+
->productProjections()
207+
->withKey('test_key')
208+
->get()
209+
->withFilterAttributes('filter[attributes]');
210+
},
211+
'get',
212+
'test_projectKey/product-projections/key=test_key?filter%5Battributes%5D=filter%5Battributes%5D',
213+
],
202214
'ByProjectKeyProductProjectionsKeyByKeyGet_withExpand' => [
203215
function (ApiRequestBuilder $builder): RequestInterface {
204216
return $builder

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,17 @@ function (ApiRequestBuilder $builder): RequestInterface {
203203
'get',
204204
'test_projectKey/product-projections?storeProjection=storeProjection',
205205
],
206+
'ByProjectKeyProductProjectionsGet_withFilterAttributes' => [
207+
function (ApiRequestBuilder $builder): RequestInterface {
208+
return $builder
209+
->withProjectKey('test_projectKey')
210+
->productProjections()
211+
->get()
212+
->withFilterAttributes('filter[attributes]');
213+
},
214+
'get',
215+
'test_projectKey/product-projections?filter%5Battributes%5D=filter%5Battributes%5D',
216+
],
206217
'ByProjectKeyProductProjectionsGet_withExpand' => [
207218
function (ApiRequestBuilder $builder): RequestInterface {
208219
return $builder

lib/commercetools-api/docs/RequestBuilder.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2014,6 +2014,7 @@ $request = $builder
20142014

20152015
Creating a Cart Discount produces the [CartDiscountCreated](ctp:api:type:CartDiscountCreatedMessage) Message.
20162016

2017+
20172018
### Example
20182019
```php
20192020
use Commercetools\Api\Client\ApiRequestBuilder;
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
/**
5+
* This file has been auto generated
6+
* Do not change it.
7+
*/
8+
9+
namespace Commercetools\Api\Client\Resource;
10+
11+
use Commercetools\Client\ApiRequestInterface;
12+
13+
/**
14+
* @template T of ApiRequestInterface
15+
* @template-extends ApiRequestInterface<T>
16+
*/
17+
interface AttributeFiltering extends ApiRequestInterface
18+
{
19+
/**
20+
* @return ApiRequestInterface
21+
* @psalm-return T
22+
*/
23+
public function withFilterAttributes(string $filterAttributes);
24+
}

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

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,12 @@
3333
* @template-implements ProjectionSelectingTailoring<ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet>
3434
* @template-implements PriceSelecting<ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet>
3535
* @template-implements LocaleProjecting<ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet>
36+
* @template-implements AttributeFiltering<ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet>
3637
* @template-implements Expandable<ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet>
3738
* @template-implements Errorable<ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet>
3839
* @template-implements Deprecatable200<ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet>
3940
*/
40-
class ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet extends ApiRequest implements ProjectionSelectingTailoring, PriceSelecting, LocaleProjecting, Expandable, Errorable, Deprecatable200
41+
class ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet extends ApiRequest implements ProjectionSelectingTailoring, PriceSelecting, LocaleProjecting, AttributeFiltering, Expandable, Errorable, Deprecatable200
4142
{
4243
/**
4344
* @param ?object|array|string $body
@@ -219,6 +220,15 @@ public function withLocaleProjection($localeProjection): ByProjectKeyInStoreKeyB
219220
return $this->withQueryParam('localeProjection', $localeProjection);
220221
}
221222

223+
/**
224+
*
225+
* @psalm-param scalar|scalar[] $filterAttributes
226+
*/
227+
public function withFilterAttributes($filterAttributes): ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet
228+
{
229+
return $this->withQueryParam('filter[attributes]', $filterAttributes);
230+
}
231+
222232
/**
223233
*
224234
* @psalm-param scalar|scalar[] $expand

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

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,12 @@
3333
* @template-implements ProjectionSelectingTailoring<ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet>
3434
* @template-implements PriceSelecting<ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet>
3535
* @template-implements LocaleProjecting<ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet>
36+
* @template-implements AttributeFiltering<ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet>
3637
* @template-implements Expandable<ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet>
3738
* @template-implements Errorable<ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet>
3839
* @template-implements Deprecatable200<ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet>
3940
*/
40-
class ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet extends ApiRequest implements ProjectionSelectingTailoring, PriceSelecting, LocaleProjecting, Expandable, Errorable, Deprecatable200
41+
class ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet extends ApiRequest implements ProjectionSelectingTailoring, PriceSelecting, LocaleProjecting, AttributeFiltering, Expandable, Errorable, Deprecatable200
4142
{
4243
/**
4344
* @param ?object|array|string $body
@@ -219,6 +220,15 @@ public function withLocaleProjection($localeProjection): ByProjectKeyInStoreKeyB
219220
return $this->withQueryParam('localeProjection', $localeProjection);
220221
}
221222

223+
/**
224+
*
225+
* @psalm-param scalar|scalar[] $filterAttributes
226+
*/
227+
public function withFilterAttributes($filterAttributes): ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet
228+
{
229+
return $this->withQueryParam('filter[attributes]', $filterAttributes);
230+
}
231+
222232
/**
223233
*
224234
* @psalm-param scalar|scalar[] $expand

0 commit comments

Comments
 (0)