Skip to content

Commit e9a416d

Browse files
authored
Merge pull request #98 from commercetools/gen-sdk-updates
2 parents 25c8626 + b450176 commit e9a416d

File tree

879 files changed

+11266
-2628
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

879 files changed

+11266
-2628
lines changed

changes.md

Lines changed: 58 additions & 35 deletions
Large diffs are not rendered by default.

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ function (ApiRequestBuilder $builder): RequestInterface {
146146
'post',
147147
'test_projectKey/in-store/key=test_storeKey/me/shopping-lists/test_ID',
148148
],
149-
'ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsByIDDelete_withDataErasure' => [
149+
'ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsByIDDelete_withExpand' => [
150150
function (ApiRequestBuilder $builder): RequestInterface {
151151
return $builder
152152
->withProjectKey('test_projectKey')
@@ -155,12 +155,12 @@ function (ApiRequestBuilder $builder): RequestInterface {
155155
->shoppingLists()
156156
->withId('test_ID')
157157
->delete()
158-
->withDataErasure('dataErasure');
158+
->withExpand('expand');
159159
},
160160
'delete',
161-
'test_projectKey/in-store/key=test_storeKey/me/shopping-lists/test_ID?dataErasure=dataErasure',
161+
'test_projectKey/in-store/key=test_storeKey/me/shopping-lists/test_ID?expand=expand',
162162
],
163-
'ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsByIDDelete_withVersion' => [
163+
'ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsByIDDelete_withDataErasure' => [
164164
function (ApiRequestBuilder $builder): RequestInterface {
165165
return $builder
166166
->withProjectKey('test_projectKey')
@@ -169,12 +169,12 @@ function (ApiRequestBuilder $builder): RequestInterface {
169169
->shoppingLists()
170170
->withId('test_ID')
171171
->delete()
172-
->withVersion('version');
172+
->withDataErasure('dataErasure');
173173
},
174174
'delete',
175-
'test_projectKey/in-store/key=test_storeKey/me/shopping-lists/test_ID?version=version',
175+
'test_projectKey/in-store/key=test_storeKey/me/shopping-lists/test_ID?dataErasure=dataErasure',
176176
],
177-
'ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsByIDDelete_withExpand' => [
177+
'ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsByIDDelete_withVersion' => [
178178
function (ApiRequestBuilder $builder): RequestInterface {
179179
return $builder
180180
->withProjectKey('test_projectKey')
@@ -183,10 +183,10 @@ function (ApiRequestBuilder $builder): RequestInterface {
183183
->shoppingLists()
184184
->withId('test_ID')
185185
->delete()
186-
->withExpand('expand');
186+
->withVersion('version');
187187
},
188188
'delete',
189-
'test_projectKey/in-store/key=test_storeKey/me/shopping-lists/test_ID?expand=expand',
189+
'test_projectKey/in-store/key=test_storeKey/me/shopping-lists/test_ID?version=version',
190190
],
191191
'ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsByIDDelete' => [
192192
function (ApiRequestBuilder $builder): RequestInterface {

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ function (ApiRequestBuilder $builder): RequestInterface {
146146
'post',
147147
'test_projectKey/in-store/key=test_storeKey/me/shopping-lists/key=test_key',
148148
],
149-
'ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsKeyByKeyDelete_withDataErasure' => [
149+
'ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsKeyByKeyDelete_withExpand' => [
150150
function (ApiRequestBuilder $builder): RequestInterface {
151151
return $builder
152152
->withProjectKey('test_projectKey')
@@ -155,12 +155,12 @@ function (ApiRequestBuilder $builder): RequestInterface {
155155
->shoppingLists()
156156
->withKey('test_key')
157157
->delete()
158-
->withDataErasure('dataErasure');
158+
->withExpand('expand');
159159
},
160160
'delete',
161-
'test_projectKey/in-store/key=test_storeKey/me/shopping-lists/key=test_key?dataErasure=dataErasure',
161+
'test_projectKey/in-store/key=test_storeKey/me/shopping-lists/key=test_key?expand=expand',
162162
],
163-
'ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsKeyByKeyDelete_withVersion' => [
163+
'ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsKeyByKeyDelete_withDataErasure' => [
164164
function (ApiRequestBuilder $builder): RequestInterface {
165165
return $builder
166166
->withProjectKey('test_projectKey')
@@ -169,12 +169,12 @@ function (ApiRequestBuilder $builder): RequestInterface {
169169
->shoppingLists()
170170
->withKey('test_key')
171171
->delete()
172-
->withVersion('version');
172+
->withDataErasure('dataErasure');
173173
},
174174
'delete',
175-
'test_projectKey/in-store/key=test_storeKey/me/shopping-lists/key=test_key?version=version',
175+
'test_projectKey/in-store/key=test_storeKey/me/shopping-lists/key=test_key?dataErasure=dataErasure',
176176
],
177-
'ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsKeyByKeyDelete_withExpand' => [
177+
'ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsKeyByKeyDelete_withVersion' => [
178178
function (ApiRequestBuilder $builder): RequestInterface {
179179
return $builder
180180
->withProjectKey('test_projectKey')
@@ -183,10 +183,10 @@ function (ApiRequestBuilder $builder): RequestInterface {
183183
->shoppingLists()
184184
->withKey('test_key')
185185
->delete()
186-
->withExpand('expand');
186+
->withVersion('version');
187187
},
188188
'delete',
189-
'test_projectKey/in-store/key=test_storeKey/me/shopping-lists/key=test_key?expand=expand',
189+
'test_projectKey/in-store/key=test_storeKey/me/shopping-lists/key=test_key?version=version',
190190
],
191191
'ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsKeyByKeyDelete' => [
192192
function (ApiRequestBuilder $builder): RequestInterface {

lib/commercetools-api-tests/test/unit/Client/Resource/ResourceByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDTest.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+
'ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet_withStaged' => [
94+
function (ApiRequestBuilder $builder): RequestInterface {
95+
return $builder
96+
->withProjectKey('test_projectKey')
97+
->inStoreKeyWithStoreKeyValue('test_storeKey')
98+
->productProjections()
99+
->withId('test_ID')
100+
->get()
101+
->withStaged('staged');
102+
},
103+
'get',
104+
'test_projectKey/in-store/key=test_storeKey/product-projections/test_ID?staged=staged',
105+
],
93106
'ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet_withPriceCurrency' => [
94107
function (ApiRequestBuilder $builder): RequestInterface {
95108
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
@@ -90,6 +90,19 @@ public function testExecuteServerException(callable $builderFunction)
9090
public function getRequests()
9191
{
9292
return [
93+
'ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet_withStaged' => [
94+
function (ApiRequestBuilder $builder): RequestInterface {
95+
return $builder
96+
->withProjectKey('test_projectKey')
97+
->inStoreKeyWithStoreKeyValue('test_storeKey')
98+
->productProjections()
99+
->withKey('test_key')
100+
->get()
101+
->withStaged('staged');
102+
},
103+
'get',
104+
'test_projectKey/in-store/key=test_storeKey/product-projections/key=test_key?staged=staged',
105+
],
93106
'ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet_withPriceCurrency' => [
94107
function (ApiRequestBuilder $builder): RequestInterface {
95108
return $builder

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -142,44 +142,44 @@ function (ApiRequestBuilder $builder): RequestInterface {
142142
'post',
143143
'test_projectKey/in-store/key=test_storeKey/shopping-lists/test_ID',
144144
],
145-
'ByProjectKeyInStoreKeyByStoreKeyShoppingListsByIDDelete_withDataErasure' => [
145+
'ByProjectKeyInStoreKeyByStoreKeyShoppingListsByIDDelete_withExpand' => [
146146
function (ApiRequestBuilder $builder): RequestInterface {
147147
return $builder
148148
->withProjectKey('test_projectKey')
149149
->inStoreKeyWithStoreKeyValue('test_storeKey')
150150
->shoppingLists()
151151
->withId('test_ID')
152152
->delete()
153-
->withDataErasure('dataErasure');
153+
->withExpand('expand');
154154
},
155155
'delete',
156-
'test_projectKey/in-store/key=test_storeKey/shopping-lists/test_ID?dataErasure=dataErasure',
156+
'test_projectKey/in-store/key=test_storeKey/shopping-lists/test_ID?expand=expand',
157157
],
158-
'ByProjectKeyInStoreKeyByStoreKeyShoppingListsByIDDelete_withVersion' => [
158+
'ByProjectKeyInStoreKeyByStoreKeyShoppingListsByIDDelete_withDataErasure' => [
159159
function (ApiRequestBuilder $builder): RequestInterface {
160160
return $builder
161161
->withProjectKey('test_projectKey')
162162
->inStoreKeyWithStoreKeyValue('test_storeKey')
163163
->shoppingLists()
164164
->withId('test_ID')
165165
->delete()
166-
->withVersion('version');
166+
->withDataErasure('dataErasure');
167167
},
168168
'delete',
169-
'test_projectKey/in-store/key=test_storeKey/shopping-lists/test_ID?version=version',
169+
'test_projectKey/in-store/key=test_storeKey/shopping-lists/test_ID?dataErasure=dataErasure',
170170
],
171-
'ByProjectKeyInStoreKeyByStoreKeyShoppingListsByIDDelete_withExpand' => [
171+
'ByProjectKeyInStoreKeyByStoreKeyShoppingListsByIDDelete_withVersion' => [
172172
function (ApiRequestBuilder $builder): RequestInterface {
173173
return $builder
174174
->withProjectKey('test_projectKey')
175175
->inStoreKeyWithStoreKeyValue('test_storeKey')
176176
->shoppingLists()
177177
->withId('test_ID')
178178
->delete()
179-
->withExpand('expand');
179+
->withVersion('version');
180180
},
181181
'delete',
182-
'test_projectKey/in-store/key=test_storeKey/shopping-lists/test_ID?expand=expand',
182+
'test_projectKey/in-store/key=test_storeKey/shopping-lists/test_ID?version=version',
183183
],
184184
'ByProjectKeyInStoreKeyByStoreKeyShoppingListsByIDDelete' => [
185185
function (ApiRequestBuilder $builder): RequestInterface {

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -142,44 +142,44 @@ function (ApiRequestBuilder $builder): RequestInterface {
142142
'post',
143143
'test_projectKey/in-store/key=test_storeKey/shopping-lists/key=test_key',
144144
],
145-
'ByProjectKeyInStoreKeyByStoreKeyShoppingListsKeyByKeyDelete_withDataErasure' => [
145+
'ByProjectKeyInStoreKeyByStoreKeyShoppingListsKeyByKeyDelete_withExpand' => [
146146
function (ApiRequestBuilder $builder): RequestInterface {
147147
return $builder
148148
->withProjectKey('test_projectKey')
149149
->inStoreKeyWithStoreKeyValue('test_storeKey')
150150
->shoppingLists()
151151
->withKey('test_key')
152152
->delete()
153-
->withDataErasure('dataErasure');
153+
->withExpand('expand');
154154
},
155155
'delete',
156-
'test_projectKey/in-store/key=test_storeKey/shopping-lists/key=test_key?dataErasure=dataErasure',
156+
'test_projectKey/in-store/key=test_storeKey/shopping-lists/key=test_key?expand=expand',
157157
],
158-
'ByProjectKeyInStoreKeyByStoreKeyShoppingListsKeyByKeyDelete_withVersion' => [
158+
'ByProjectKeyInStoreKeyByStoreKeyShoppingListsKeyByKeyDelete_withDataErasure' => [
159159
function (ApiRequestBuilder $builder): RequestInterface {
160160
return $builder
161161
->withProjectKey('test_projectKey')
162162
->inStoreKeyWithStoreKeyValue('test_storeKey')
163163
->shoppingLists()
164164
->withKey('test_key')
165165
->delete()
166-
->withVersion('version');
166+
->withDataErasure('dataErasure');
167167
},
168168
'delete',
169-
'test_projectKey/in-store/key=test_storeKey/shopping-lists/key=test_key?version=version',
169+
'test_projectKey/in-store/key=test_storeKey/shopping-lists/key=test_key?dataErasure=dataErasure',
170170
],
171-
'ByProjectKeyInStoreKeyByStoreKeyShoppingListsKeyByKeyDelete_withExpand' => [
171+
'ByProjectKeyInStoreKeyByStoreKeyShoppingListsKeyByKeyDelete_withVersion' => [
172172
function (ApiRequestBuilder $builder): RequestInterface {
173173
return $builder
174174
->withProjectKey('test_projectKey')
175175
->inStoreKeyWithStoreKeyValue('test_storeKey')
176176
->shoppingLists()
177177
->withKey('test_key')
178178
->delete()
179-
->withExpand('expand');
179+
->withVersion('version');
180180
},
181181
'delete',
182-
'test_projectKey/in-store/key=test_storeKey/shopping-lists/key=test_key?expand=expand',
182+
'test_projectKey/in-store/key=test_storeKey/shopping-lists/key=test_key?version=version',
183183
],
184184
'ByProjectKeyInStoreKeyByStoreKeyShoppingListsKeyByKeyDelete' => [
185185
function (ApiRequestBuilder $builder): RequestInterface {

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -142,31 +142,31 @@ function (ApiRequestBuilder $builder): RequestInterface {
142142
'post',
143143
'test_projectKey/me/shopping-lists/test_ID',
144144
],
145-
'ByProjectKeyMeShoppingListsByIDDelete_withVersion' => [
145+
'ByProjectKeyMeShoppingListsByIDDelete_withExpand' => [
146146
function (ApiRequestBuilder $builder): RequestInterface {
147147
return $builder
148148
->withProjectKey('test_projectKey')
149149
->me()
150150
->shoppingLists()
151151
->withId('test_ID')
152152
->delete()
153-
->withVersion('version');
153+
->withExpand('expand');
154154
},
155155
'delete',
156-
'test_projectKey/me/shopping-lists/test_ID?version=version',
156+
'test_projectKey/me/shopping-lists/test_ID?expand=expand',
157157
],
158-
'ByProjectKeyMeShoppingListsByIDDelete_withExpand' => [
158+
'ByProjectKeyMeShoppingListsByIDDelete_withVersion' => [
159159
function (ApiRequestBuilder $builder): RequestInterface {
160160
return $builder
161161
->withProjectKey('test_projectKey')
162162
->me()
163163
->shoppingLists()
164164
->withId('test_ID')
165165
->delete()
166-
->withExpand('expand');
166+
->withVersion('version');
167167
},
168168
'delete',
169-
'test_projectKey/me/shopping-lists/test_ID?expand=expand',
169+
'test_projectKey/me/shopping-lists/test_ID?version=version',
170170
],
171171
'ByProjectKeyMeShoppingListsByIDDelete' => [
172172
function (ApiRequestBuilder $builder): RequestInterface {

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -142,31 +142,31 @@ function (ApiRequestBuilder $builder): RequestInterface {
142142
'post',
143143
'test_projectKey/me/shopping-lists/key=test_key',
144144
],
145-
'ByProjectKeyMeShoppingListsKeyByKeyDelete_withVersion' => [
145+
'ByProjectKeyMeShoppingListsKeyByKeyDelete_withExpand' => [
146146
function (ApiRequestBuilder $builder): RequestInterface {
147147
return $builder
148148
->withProjectKey('test_projectKey')
149149
->me()
150150
->shoppingLists()
151151
->withKey('test_key')
152152
->delete()
153-
->withVersion('version');
153+
->withExpand('expand');
154154
},
155155
'delete',
156-
'test_projectKey/me/shopping-lists/key=test_key?version=version',
156+
'test_projectKey/me/shopping-lists/key=test_key?expand=expand',
157157
],
158-
'ByProjectKeyMeShoppingListsKeyByKeyDelete_withExpand' => [
158+
'ByProjectKeyMeShoppingListsKeyByKeyDelete_withVersion' => [
159159
function (ApiRequestBuilder $builder): RequestInterface {
160160
return $builder
161161
->withProjectKey('test_projectKey')
162162
->me()
163163
->shoppingLists()
164164
->withKey('test_key')
165165
->delete()
166-
->withExpand('expand');
166+
->withVersion('version');
167167
},
168168
'delete',
169-
'test_projectKey/me/shopping-lists/key=test_key?expand=expand',
169+
'test_projectKey/me/shopping-lists/key=test_key?version=version',
170170
],
171171
'ByProjectKeyMeShoppingListsKeyByKeyDelete' => [
172172
function (ApiRequestBuilder $builder): RequestInterface {

0 commit comments

Comments
 (0)