Skip to content

Commit ba38c44

Browse files
Merge pull request #335 from commercetools/gen-sdk-updates
Update generated SDKs
2 parents 3c270d0 + b0c12ac commit ba38c44

File tree

85 files changed

+5561
-13
lines changed

Some content is hidden

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

85 files changed

+5561
-13
lines changed

changes.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,11 @@
3636
- added property `inheritedStores` to type `Company`
3737
- added property `inheritedStores` to type `Division`
3838
- added property `discountTypeCombination` to type `Cart`
39+
- added property `customerGroupAssignments` to type `Customer`
40+
- added property `customerGroupAssignments` to type `CustomerDraft`
3941
- added property `discountTypeCombination` to type `StagedOrder`
4042
- added property `discountTypeCombination` to type `Order`
43+
- added property `priceCustomerGroupAssignments` to type `ProductSearchProjectionParams`
4144
- added property `businessUnit` to type `ShoppingList`
4245
- added property `businessUnit` to type `ShoppingListDraft`
4346
</details>
@@ -51,16 +54,47 @@
5154
</details>
5255

5356

57+
<details>
58+
<summary>Added QueryParameter(s)</summary>
59+
60+
- added query parameter `priceCustomerGroupAssignments` to method `get /{projectKey}/products`
61+
- added query parameter `priceCustomerGroupAssignments` to method `post /{projectKey}/products`
62+
- added query parameter `priceCustomerGroupAssignments` to method `get /{projectKey}/product-projections`
63+
- added query parameter `priceCustomerGroupAssignments` to method `get /{projectKey}/products/key={key}`
64+
- added query parameter `priceCustomerGroupAssignments` to method `post /{projectKey}/products/key={key}`
65+
- added query parameter `priceCustomerGroupAssignments` to method `delete /{projectKey}/products/key={key}`
66+
- added query parameter `priceCustomerGroupAssignments` to method `get /{projectKey}/products/{ID}`
67+
- added query parameter `priceCustomerGroupAssignments` to method `post /{projectKey}/products/{ID}`
68+
- added query parameter `priceCustomerGroupAssignments` to method `delete /{projectKey}/products/{ID}`
69+
- added query parameter `priceCustomerGroupAssignments` to method `get /{projectKey}/product-projections/search`
70+
- added query parameter `priceCustomerGroupAssignments` to method `get /{projectKey}/product-projections/key={key}`
71+
- added query parameter `priceCustomerGroupAssignments` to method `get /{projectKey}/product-projections/{ID}`
72+
- added query parameter `priceCustomerGroupAssignments` to method `get /{projectKey}/in-store/key={storeKey}/product-projections/key={key}`
73+
- added query parameter `priceCustomerGroupAssignments` to method `get /{projectKey}/in-store/key={storeKey}/product-projections/{ID}`
74+
</details>
75+
76+
5477
<details>
5578
<summary>Added Type(s)</summary>
5679

5780
- added type `BusinessUnitAssociateResponse`
5881
- added type `BestDeal`
5982
- added type `DiscountTypeCombination`
6083
- added type `Stacking`
84+
- added type `CustomerGroupAssignment`
85+
- added type `CustomerGroupAssignmentDraft`
86+
- added type `CustomerAddCustomerGroupAssignmentAction`
87+
- added type `CustomerRemoveCustomerGroupAssignmentAction`
88+
- added type `CustomerSetCustomerGroupAssignmentsAction`
6189
- added type `AssociateRoleNameSetMessage`
90+
- added type `CustomerGroupAssignmentAddedMessage`
91+
- added type `CustomerGroupAssignmentRemovedMessage`
92+
- added type `CustomerGroupAssignmentsSetMessage`
6293
- added type `OrderBusinessUnitSetMessage`
6394
- added type `AssociateRoleNameSetMessagePayload`
95+
- added type `CustomerGroupAssignmentAddedMessagePayload`
96+
- added type `CustomerGroupAssignmentRemovedMessagePayload`
97+
- added type `CustomerGroupAssignmentsSetMessagePayload`
6498
- added type `OrderBusinessUnitSetMessagePayload`
6599
- added type `StagedOrderSetBusinessUnitAction`
66100
- added type `OrderSetBusinessUnitAction`

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,19 @@ function (ApiRequestBuilder $builder): RequestInterface {
143143
'get',
144144
'test_projectKey/in-store/key=test_storeKey/product-projections/test_ID?priceCustomerGroup=priceCustomerGroup',
145145
],
146+
'ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet_withPriceCustomerGroupAssignments' => [
147+
function (ApiRequestBuilder $builder): RequestInterface {
148+
return $builder
149+
->withProjectKey('test_projectKey')
150+
->inStoreKeyWithStoreKeyValue('test_storeKey')
151+
->productProjections()
152+
->withId('test_ID')
153+
->get()
154+
->withPriceCustomerGroupAssignments('priceCustomerGroupAssignments');
155+
},
156+
'get',
157+
'test_projectKey/in-store/key=test_storeKey/product-projections/test_ID?priceCustomerGroupAssignments=priceCustomerGroupAssignments',
158+
],
146159
'ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet_withPriceChannel' => [
147160
function (ApiRequestBuilder $builder): RequestInterface {
148161
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
@@ -143,6 +143,19 @@ function (ApiRequestBuilder $builder): RequestInterface {
143143
'get',
144144
'test_projectKey/in-store/key=test_storeKey/product-projections/key=test_key?priceCustomerGroup=priceCustomerGroup',
145145
],
146+
'ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet_withPriceCustomerGroupAssignments' => [
147+
function (ApiRequestBuilder $builder): RequestInterface {
148+
return $builder
149+
->withProjectKey('test_projectKey')
150+
->inStoreKeyWithStoreKeyValue('test_storeKey')
151+
->productProjections()
152+
->withKey('test_key')
153+
->get()
154+
->withPriceCustomerGroupAssignments('priceCustomerGroupAssignments');
155+
},
156+
'get',
157+
'test_projectKey/in-store/key=test_storeKey/product-projections/key=test_key?priceCustomerGroupAssignments=priceCustomerGroupAssignments',
158+
],
146159
'ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet_withPriceChannel' => [
147160
function (ApiRequestBuilder $builder): RequestInterface {
148161
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
@@ -139,6 +139,18 @@ function (ApiRequestBuilder $builder): RequestInterface {
139139
'get',
140140
'test_projectKey/product-projections/test_ID?priceCustomerGroup=priceCustomerGroup',
141141
],
142+
'ByProjectKeyProductProjectionsByIDGet_withPriceCustomerGroupAssignments' => [
143+
function (ApiRequestBuilder $builder): RequestInterface {
144+
return $builder
145+
->withProjectKey('test_projectKey')
146+
->productProjections()
147+
->withId('test_ID')
148+
->get()
149+
->withPriceCustomerGroupAssignments('priceCustomerGroupAssignments');
150+
},
151+
'get',
152+
'test_projectKey/product-projections/test_ID?priceCustomerGroupAssignments=priceCustomerGroupAssignments',
153+
],
142154
'ByProjectKeyProductProjectionsByIDGet_withPriceChannel' => [
143155
function (ApiRequestBuilder $builder): RequestInterface {
144156
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
@@ -139,6 +139,18 @@ function (ApiRequestBuilder $builder): RequestInterface {
139139
'get',
140140
'test_projectKey/product-projections/key=test_key?priceCustomerGroup=priceCustomerGroup',
141141
],
142+
'ByProjectKeyProductProjectionsKeyByKeyGet_withPriceCustomerGroupAssignments' => [
143+
function (ApiRequestBuilder $builder): RequestInterface {
144+
return $builder
145+
->withProjectKey('test_projectKey')
146+
->productProjections()
147+
->withKey('test_key')
148+
->get()
149+
->withPriceCustomerGroupAssignments('priceCustomerGroupAssignments');
150+
},
151+
'get',
152+
'test_projectKey/product-projections/key=test_key?priceCustomerGroupAssignments=priceCustomerGroupAssignments',
153+
],
142154
'ByProjectKeyProductProjectionsKeyByKeyGet_withPriceChannel' => [
143155
function (ApiRequestBuilder $builder): RequestInterface {
144156
return $builder

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,18 @@ function (ApiRequestBuilder $builder): RequestInterface {
294294
'get',
295295
'test_projectKey/product-projections/search?priceCustomerGroup=priceCustomerGroup',
296296
],
297+
'ByProjectKeyProductProjectionsSearchGet_withPriceCustomerGroupAssignments' => [
298+
function (ApiRequestBuilder $builder): RequestInterface {
299+
return $builder
300+
->withProjectKey('test_projectKey')
301+
->productProjections()
302+
->search()
303+
->get()
304+
->withPriceCustomerGroupAssignments('priceCustomerGroupAssignments');
305+
},
306+
'get',
307+
'test_projectKey/product-projections/search?priceCustomerGroupAssignments=priceCustomerGroupAssignments',
308+
],
297309
'ByProjectKeyProductProjectionsSearchGet_withPriceChannel' => [
298310
function (ApiRequestBuilder $builder): RequestInterface {
299311
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
@@ -148,6 +148,17 @@ function (ApiRequestBuilder $builder): RequestInterface {
148148
'get',
149149
'test_projectKey/product-projections?priceCustomerGroup=priceCustomerGroup',
150150
],
151+
'ByProjectKeyProductProjectionsGet_withPriceCustomerGroupAssignments' => [
152+
function (ApiRequestBuilder $builder): RequestInterface {
153+
return $builder
154+
->withProjectKey('test_projectKey')
155+
->productProjections()
156+
->get()
157+
->withPriceCustomerGroupAssignments('priceCustomerGroupAssignments');
158+
},
159+
'get',
160+
'test_projectKey/product-projections?priceCustomerGroupAssignments=priceCustomerGroupAssignments',
161+
],
151162
'ByProjectKeyProductProjectionsGet_withPriceChannel' => [
152163
function (ApiRequestBuilder $builder): RequestInterface {
153164
return $builder

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

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,18 @@ function (ApiRequestBuilder $builder): RequestInterface {
140140
'get',
141141
'test_projectKey/products/test_ID?priceCustomerGroup=priceCustomerGroup',
142142
],
143+
'ByProjectKeyProductsByIDGet_withPriceCustomerGroupAssignments' => [
144+
function (ApiRequestBuilder $builder): RequestInterface {
145+
return $builder
146+
->withProjectKey('test_projectKey')
147+
->products()
148+
->withId('test_ID')
149+
->get()
150+
->withPriceCustomerGroupAssignments('priceCustomerGroupAssignments');
151+
},
152+
'get',
153+
'test_projectKey/products/test_ID?priceCustomerGroupAssignments=priceCustomerGroupAssignments',
154+
],
143155
'ByProjectKeyProductsByIDGet_withPriceChannel' => [
144156
function (ApiRequestBuilder $builder): RequestInterface {
145157
return $builder
@@ -222,6 +234,18 @@ function (ApiRequestBuilder $builder): RequestInterface {
222234
'post',
223235
'test_projectKey/products/test_ID?priceCustomerGroup=priceCustomerGroup',
224236
],
237+
'ByProjectKeyProductsByIDPost_withPriceCustomerGroupAssignments' => [
238+
function (ApiRequestBuilder $builder): RequestInterface {
239+
return $builder
240+
->withProjectKey('test_projectKey')
241+
->products()
242+
->withId('test_ID')
243+
->post(null)
244+
->withPriceCustomerGroupAssignments('priceCustomerGroupAssignments');
245+
},
246+
'post',
247+
'test_projectKey/products/test_ID?priceCustomerGroupAssignments=priceCustomerGroupAssignments',
248+
],
225249
'ByProjectKeyProductsByIDPost_withPriceChannel' => [
226250
function (ApiRequestBuilder $builder): RequestInterface {
227251
return $builder
@@ -293,6 +317,18 @@ function (ApiRequestBuilder $builder): RequestInterface {
293317
'delete',
294318
'test_projectKey/products/test_ID?priceCustomerGroup=priceCustomerGroup',
295319
],
320+
'ByProjectKeyProductsByIDDelete_withPriceCustomerGroupAssignments' => [
321+
function (ApiRequestBuilder $builder): RequestInterface {
322+
return $builder
323+
->withProjectKey('test_projectKey')
324+
->products()
325+
->withId('test_ID')
326+
->delete()
327+
->withPriceCustomerGroupAssignments('priceCustomerGroupAssignments');
328+
},
329+
'delete',
330+
'test_projectKey/products/test_ID?priceCustomerGroupAssignments=priceCustomerGroupAssignments',
331+
],
296332
'ByProjectKeyProductsByIDDelete_withPriceChannel' => [
297333
function (ApiRequestBuilder $builder): RequestInterface {
298334
return $builder

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

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,18 @@ function (ApiRequestBuilder $builder): RequestInterface {
139139
'get',
140140
'test_projectKey/products/key=test_key?priceCustomerGroup=priceCustomerGroup',
141141
],
142+
'ByProjectKeyProductsKeyByKeyGet_withPriceCustomerGroupAssignments' => [
143+
function (ApiRequestBuilder $builder): RequestInterface {
144+
return $builder
145+
->withProjectKey('test_projectKey')
146+
->products()
147+
->withKey('test_key')
148+
->get()
149+
->withPriceCustomerGroupAssignments('priceCustomerGroupAssignments');
150+
},
151+
'get',
152+
'test_projectKey/products/key=test_key?priceCustomerGroupAssignments=priceCustomerGroupAssignments',
153+
],
142154
'ByProjectKeyProductsKeyByKeyGet_withPriceChannel' => [
143155
function (ApiRequestBuilder $builder): RequestInterface {
144156
return $builder
@@ -221,6 +233,18 @@ function (ApiRequestBuilder $builder): RequestInterface {
221233
'post',
222234
'test_projectKey/products/key=test_key?priceCustomerGroup=priceCustomerGroup',
223235
],
236+
'ByProjectKeyProductsKeyByKeyPost_withPriceCustomerGroupAssignments' => [
237+
function (ApiRequestBuilder $builder): RequestInterface {
238+
return $builder
239+
->withProjectKey('test_projectKey')
240+
->products()
241+
->withKey('test_key')
242+
->post(null)
243+
->withPriceCustomerGroupAssignments('priceCustomerGroupAssignments');
244+
},
245+
'post',
246+
'test_projectKey/products/key=test_key?priceCustomerGroupAssignments=priceCustomerGroupAssignments',
247+
],
224248
'ByProjectKeyProductsKeyByKeyPost_withPriceChannel' => [
225249
function (ApiRequestBuilder $builder): RequestInterface {
226250
return $builder
@@ -292,6 +316,18 @@ function (ApiRequestBuilder $builder): RequestInterface {
292316
'delete',
293317
'test_projectKey/products/key=test_key?priceCustomerGroup=priceCustomerGroup',
294318
],
319+
'ByProjectKeyProductsKeyByKeyDelete_withPriceCustomerGroupAssignments' => [
320+
function (ApiRequestBuilder $builder): RequestInterface {
321+
return $builder
322+
->withProjectKey('test_projectKey')
323+
->products()
324+
->withKey('test_key')
325+
->delete()
326+
->withPriceCustomerGroupAssignments('priceCustomerGroupAssignments');
327+
},
328+
'delete',
329+
'test_projectKey/products/key=test_key?priceCustomerGroupAssignments=priceCustomerGroupAssignments',
330+
],
295331
'ByProjectKeyProductsKeyByKeyDelete_withPriceChannel' => [
296332
function (ApiRequestBuilder $builder): RequestInterface {
297333
return $builder

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

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,17 @@ function (ApiRequestBuilder $builder): RequestInterface {
148148
'get',
149149
'test_projectKey/products?priceCustomerGroup=priceCustomerGroup',
150150
],
151+
'ByProjectKeyProductsGet_withPriceCustomerGroupAssignments' => [
152+
function (ApiRequestBuilder $builder): RequestInterface {
153+
return $builder
154+
->withProjectKey('test_projectKey')
155+
->products()
156+
->get()
157+
->withPriceCustomerGroupAssignments('priceCustomerGroupAssignments');
158+
},
159+
'get',
160+
'test_projectKey/products?priceCustomerGroupAssignments=priceCustomerGroupAssignments',
161+
],
151162
'ByProjectKeyProductsGet_withPriceChannel' => [
152163
function (ApiRequestBuilder $builder): RequestInterface {
153164
return $builder
@@ -289,6 +300,17 @@ function (ApiRequestBuilder $builder): RequestInterface {
289300
'post',
290301
'test_projectKey/products?priceCustomerGroup=priceCustomerGroup',
291302
],
303+
'ByProjectKeyProductsPost_withPriceCustomerGroupAssignments' => [
304+
function (ApiRequestBuilder $builder): RequestInterface {
305+
return $builder
306+
->withProjectKey('test_projectKey')
307+
->products()
308+
->post(null)
309+
->withPriceCustomerGroupAssignments('priceCustomerGroupAssignments');
310+
},
311+
'post',
312+
'test_projectKey/products?priceCustomerGroupAssignments=priceCustomerGroupAssignments',
313+
],
292314
'ByProjectKeyProductsPost_withPriceChannel' => [
293315
function (ApiRequestBuilder $builder): RequestInterface {
294316
return $builder

0 commit comments

Comments
 (0)