Skip to content

Commit bbc5f8e

Browse files
Merge pull request #338 from commercetools/gen-sdk-updates
Update generated SDKs
2 parents b93726c + f98e4a5 commit bbc5f8e

26 files changed

+143
-154
lines changed

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

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -103,57 +103,57 @@ function (ApiRequestBuilder $builder): RequestInterface {
103103
'get',
104104
'test_projectKey/product-selections/test_ID/products?where=where',
105105
],
106-
'ByProjectKeyProductSelectionsByIDProductsGet_withExpand' => [
106+
'ByProjectKeyProductSelectionsByIDProductsGet_withWithTotal' => [
107107
function (ApiRequestBuilder $builder): RequestInterface {
108108
return $builder
109109
->withProjectKey('test_projectKey')
110110
->productSelections()
111111
->withId('test_ID')
112112
->products()
113113
->get()
114-
->withExpand('expand');
114+
->withWithTotal('withTotal');
115115
},
116116
'get',
117-
'test_projectKey/product-selections/test_ID/products?expand=expand',
117+
'test_projectKey/product-selections/test_ID/products?withTotal=withTotal',
118118
],
119-
'ByProjectKeyProductSelectionsByIDProductsGet_withLimit' => [
119+
'ByProjectKeyProductSelectionsByIDProductsGet_withExpand' => [
120120
function (ApiRequestBuilder $builder): RequestInterface {
121121
return $builder
122122
->withProjectKey('test_projectKey')
123123
->productSelections()
124124
->withId('test_ID')
125125
->products()
126126
->get()
127-
->withLimit('limit');
127+
->withExpand('expand');
128128
},
129129
'get',
130-
'test_projectKey/product-selections/test_ID/products?limit=limit',
130+
'test_projectKey/product-selections/test_ID/products?expand=expand',
131131
],
132-
'ByProjectKeyProductSelectionsByIDProductsGet_withOffset' => [
132+
'ByProjectKeyProductSelectionsByIDProductsGet_withLimit' => [
133133
function (ApiRequestBuilder $builder): RequestInterface {
134134
return $builder
135135
->withProjectKey('test_projectKey')
136136
->productSelections()
137137
->withId('test_ID')
138138
->products()
139139
->get()
140-
->withOffset('offset');
140+
->withLimit('limit');
141141
},
142142
'get',
143-
'test_projectKey/product-selections/test_ID/products?offset=offset',
143+
'test_projectKey/product-selections/test_ID/products?limit=limit',
144144
],
145-
'ByProjectKeyProductSelectionsByIDProductsGet_withWithTotal' => [
145+
'ByProjectKeyProductSelectionsByIDProductsGet_withOffset' => [
146146
function (ApiRequestBuilder $builder): RequestInterface {
147147
return $builder
148148
->withProjectKey('test_projectKey')
149149
->productSelections()
150150
->withId('test_ID')
151151
->products()
152152
->get()
153-
->withWithTotal('withTotal');
153+
->withOffset('offset');
154154
},
155155
'get',
156-
'test_projectKey/product-selections/test_ID/products?withTotal=withTotal',
156+
'test_projectKey/product-selections/test_ID/products?offset=offset',
157157
],
158158
'ByProjectKeyProductSelectionsByIDProductsGet_withSort' => [
159159
function (ApiRequestBuilder $builder): RequestInterface {

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

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -103,57 +103,57 @@ function (ApiRequestBuilder $builder): RequestInterface {
103103
'get',
104104
'test_projectKey/product-selections/key=test_key/products?where=where',
105105
],
106-
'ByProjectKeyProductSelectionsKeyByKeyProductsGet_withExpand' => [
106+
'ByProjectKeyProductSelectionsKeyByKeyProductsGet_withWithTotal' => [
107107
function (ApiRequestBuilder $builder): RequestInterface {
108108
return $builder
109109
->withProjectKey('test_projectKey')
110110
->productSelections()
111111
->withKey('test_key')
112112
->products()
113113
->get()
114-
->withExpand('expand');
114+
->withWithTotal('withTotal');
115115
},
116116
'get',
117-
'test_projectKey/product-selections/key=test_key/products?expand=expand',
117+
'test_projectKey/product-selections/key=test_key/products?withTotal=withTotal',
118118
],
119-
'ByProjectKeyProductSelectionsKeyByKeyProductsGet_withLimit' => [
119+
'ByProjectKeyProductSelectionsKeyByKeyProductsGet_withExpand' => [
120120
function (ApiRequestBuilder $builder): RequestInterface {
121121
return $builder
122122
->withProjectKey('test_projectKey')
123123
->productSelections()
124124
->withKey('test_key')
125125
->products()
126126
->get()
127-
->withLimit('limit');
127+
->withExpand('expand');
128128
},
129129
'get',
130-
'test_projectKey/product-selections/key=test_key/products?limit=limit',
130+
'test_projectKey/product-selections/key=test_key/products?expand=expand',
131131
],
132-
'ByProjectKeyProductSelectionsKeyByKeyProductsGet_withOffset' => [
132+
'ByProjectKeyProductSelectionsKeyByKeyProductsGet_withLimit' => [
133133
function (ApiRequestBuilder $builder): RequestInterface {
134134
return $builder
135135
->withProjectKey('test_projectKey')
136136
->productSelections()
137137
->withKey('test_key')
138138
->products()
139139
->get()
140-
->withOffset('offset');
140+
->withLimit('limit');
141141
},
142142
'get',
143-
'test_projectKey/product-selections/key=test_key/products?offset=offset',
143+
'test_projectKey/product-selections/key=test_key/products?limit=limit',
144144
],
145-
'ByProjectKeyProductSelectionsKeyByKeyProductsGet_withWithTotal' => [
145+
'ByProjectKeyProductSelectionsKeyByKeyProductsGet_withOffset' => [
146146
function (ApiRequestBuilder $builder): RequestInterface {
147147
return $builder
148148
->withProjectKey('test_projectKey')
149149
->productSelections()
150150
->withKey('test_key')
151151
->products()
152152
->get()
153-
->withWithTotal('withTotal');
153+
->withOffset('offset');
154154
},
155155
'get',
156-
'test_projectKey/product-selections/key=test_key/products?withTotal=withTotal',
156+
'test_projectKey/product-selections/key=test_key/products?offset=offset',
157157
],
158158
'ByProjectKeyProductSelectionsKeyByKeyProductsGet_withSort' => [
159159
function (ApiRequestBuilder $builder): RequestInterface {

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

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,17 @@ public function testExecuteServerException(callable $builderFunction)
103103
public function getRequests()
104104
{
105105
return [
106+
'ByProjectKeyProductTailoringGet_withWithTotal' => [
107+
function (ApiRequestBuilder $builder): RequestInterface {
108+
return $builder
109+
->withProjectKey('test_projectKey')
110+
->productTailoring()
111+
->get()
112+
->withWithTotal('withTotal');
113+
},
114+
'get',
115+
'test_projectKey/product-tailoring?withTotal=withTotal',
116+
],
106117
'ByProjectKeyProductTailoringGet_withExpand' => [
107118
function (ApiRequestBuilder $builder): RequestInterface {
108119
return $builder
@@ -147,17 +158,6 @@ function (ApiRequestBuilder $builder): RequestInterface {
147158
'get',
148159
'test_projectKey/product-tailoring?offset=offset',
149160
],
150-
'ByProjectKeyProductTailoringGet_withWithTotal' => [
151-
function (ApiRequestBuilder $builder): RequestInterface {
152-
return $builder
153-
->withProjectKey('test_projectKey')
154-
->productTailoring()
155-
->get()
156-
->withWithTotal('withTotal');
157-
},
158-
'get',
159-
'test_projectKey/product-tailoring?withTotal=withTotal',
160-
],
161161
'ByProjectKeyProductTailoringGet_withWhere' => [
162162
function (ApiRequestBuilder $builder): RequestInterface {
163163
return $builder

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

Lines changed: 13 additions & 13 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+
'ByProjectKeyProductsByIDProductSelectionsGet_withWithTotal' => [
94+
function (ApiRequestBuilder $builder): RequestInterface {
95+
return $builder
96+
->withProjectKey('test_projectKey')
97+
->products()
98+
->withId('test_ID')
99+
->productSelections()
100+
->get()
101+
->withWithTotal('withTotal');
102+
},
103+
'get',
104+
'test_projectKey/products/test_ID/product-selections?withTotal=withTotal',
105+
],
93106
'ByProjectKeyProductsByIDProductSelectionsGet_withExpand' => [
94107
function (ApiRequestBuilder $builder): RequestInterface {
95108
return $builder
@@ -142,19 +155,6 @@ function (ApiRequestBuilder $builder): RequestInterface {
142155
'get',
143156
'test_projectKey/products/test_ID/product-selections?offset=offset',
144157
],
145-
'ByProjectKeyProductsByIDProductSelectionsGet_withWithTotal' => [
146-
function (ApiRequestBuilder $builder): RequestInterface {
147-
return $builder
148-
->withProjectKey('test_projectKey')
149-
->products()
150-
->withId('test_ID')
151-
->productSelections()
152-
->get()
153-
->withWithTotal('withTotal');
154-
},
155-
'get',
156-
'test_projectKey/products/test_ID/product-selections?withTotal=withTotal',
157-
],
158158
'ByProjectKeyProductsByIDProductSelectionsGet_withWhere' => [
159159
function (ApiRequestBuilder $builder): RequestInterface {
160160
return $builder

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

Lines changed: 13 additions & 13 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+
'ByProjectKeyProductsKeyByKeyProductSelectionsGet_withWithTotal' => [
94+
function (ApiRequestBuilder $builder): RequestInterface {
95+
return $builder
96+
->withProjectKey('test_projectKey')
97+
->products()
98+
->withKey('test_key')
99+
->productSelections()
100+
->get()
101+
->withWithTotal('withTotal');
102+
},
103+
'get',
104+
'test_projectKey/products/key=test_key/product-selections?withTotal=withTotal',
105+
],
93106
'ByProjectKeyProductsKeyByKeyProductSelectionsGet_withExpand' => [
94107
function (ApiRequestBuilder $builder): RequestInterface {
95108
return $builder
@@ -142,19 +155,6 @@ function (ApiRequestBuilder $builder): RequestInterface {
142155
'get',
143156
'test_projectKey/products/key=test_key/product-selections?offset=offset',
144157
],
145-
'ByProjectKeyProductsKeyByKeyProductSelectionsGet_withWithTotal' => [
146-
function (ApiRequestBuilder $builder): RequestInterface {
147-
return $builder
148-
->withProjectKey('test_projectKey')
149-
->products()
150-
->withKey('test_key')
151-
->productSelections()
152-
->get()
153-
->withWithTotal('withTotal');
154-
},
155-
'get',
156-
'test_projectKey/products/key=test_key/product-selections?withTotal=withTotal',
157-
],
158158
'ByProjectKeyProductsKeyByKeyProductSelectionsGet_withWhere' => [
159159
function (ApiRequestBuilder $builder): RequestInterface {
160160
return $builder

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,15 @@ public function withWhere($where): ByProjectKeyProductSelectionsByIDProductsGet
155155
return $this->withQueryParam('where', $where);
156156
}
157157

158+
/**
159+
*
160+
* @psalm-param scalar|scalar[] $withTotal
161+
*/
162+
public function withWithTotal($withTotal): ByProjectKeyProductSelectionsByIDProductsGet
163+
{
164+
return $this->withQueryParam('withTotal', $withTotal);
165+
}
166+
158167
/**
159168
*
160169
* @psalm-param scalar|scalar[] $expand
@@ -182,15 +191,6 @@ public function withOffset($offset): ByProjectKeyProductSelectionsByIDProductsGe
182191
return $this->withQueryParam('offset', $offset);
183192
}
184193

185-
/**
186-
*
187-
* @psalm-param scalar|scalar[] $withTotal
188-
*/
189-
public function withWithTotal($withTotal): ByProjectKeyProductSelectionsByIDProductsGet
190-
{
191-
return $this->withQueryParam('withTotal', $withTotal);
192-
}
193-
194194
/**
195195
*
196196
* @psalm-param scalar|scalar[] $sort

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,15 @@ public function withWhere($where): ByProjectKeyProductSelectionsKeyByKeyProducts
155155
return $this->withQueryParam('where', $where);
156156
}
157157

158+
/**
159+
*
160+
* @psalm-param scalar|scalar[] $withTotal
161+
*/
162+
public function withWithTotal($withTotal): ByProjectKeyProductSelectionsKeyByKeyProductsGet
163+
{
164+
return $this->withQueryParam('withTotal', $withTotal);
165+
}
166+
158167
/**
159168
*
160169
* @psalm-param scalar|scalar[] $expand
@@ -182,15 +191,6 @@ public function withOffset($offset): ByProjectKeyProductSelectionsKeyByKeyProduc
182191
return $this->withQueryParam('offset', $offset);
183192
}
184193

185-
/**
186-
*
187-
* @psalm-param scalar|scalar[] $withTotal
188-
*/
189-
public function withWithTotal($withTotal): ByProjectKeyProductSelectionsKeyByKeyProductsGet
190-
{
191-
return $this->withQueryParam('withTotal', $withTotal);
192-
}
193-
194194
/**
195195
*
196196
* @psalm-param scalar|scalar[] $sort

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

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

150+
/**
151+
*
152+
* @psalm-param scalar|scalar[] $withTotal
153+
*/
154+
public function withWithTotal($withTotal): ByProjectKeyProductTailoringGet
155+
{
156+
return $this->withQueryParam('withTotal', $withTotal);
157+
}
158+
150159
/**
151160
*
152161
* @psalm-param scalar|scalar[] $expand
@@ -183,15 +192,6 @@ public function withOffset($offset): ByProjectKeyProductTailoringGet
183192
return $this->withQueryParam('offset', $offset);
184193
}
185194

186-
/**
187-
*
188-
* @psalm-param scalar|scalar[] $withTotal
189-
*/
190-
public function withWithTotal($withTotal): ByProjectKeyProductTailoringGet
191-
{
192-
return $this->withQueryParam('withTotal', $withTotal);
193-
}
194-
195195
/**
196196
*
197197
* @psalm-param scalar|scalar[] $where

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

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

150+
/**
151+
*
152+
* @psalm-param scalar|scalar[] $withTotal
153+
*/
154+
public function withWithTotal($withTotal): ByProjectKeyProductsByIDProductSelectionsGet
155+
{
156+
return $this->withQueryParam('withTotal', $withTotal);
157+
}
158+
150159
/**
151160
*
152161
* @psalm-param scalar|scalar[] $expand
@@ -183,15 +192,6 @@ public function withOffset($offset): ByProjectKeyProductsByIDProductSelectionsGe
183192
return $this->withQueryParam('offset', $offset);
184193
}
185194

186-
/**
187-
*
188-
* @psalm-param scalar|scalar[] $withTotal
189-
*/
190-
public function withWithTotal($withTotal): ByProjectKeyProductsByIDProductSelectionsGet
191-
{
192-
return $this->withQueryParam('withTotal', $withTotal);
193-
}
194-
195195
/**
196196
*
197197
* @psalm-param scalar|scalar[] $where

0 commit comments

Comments
 (0)