diff --git a/changes.md b/changes.md index a0eed6748cb..ac448df2800 100644 --- a/changes.md +++ b/changes.md @@ -1,80 +1,47 @@ **Api changes**
-Added Enum(s) - -- added enum `ViewMyShoppingLists` to type `Permission` -- added enum `ViewOthersShoppingLists` to type `Permission` -- added enum `UpdateMyShoppingLists` to type `Permission` -- added enum `UpdateOthersShoppingLists` to type `Permission` -- added enum `CreateMyShoppingLists` to type `Permission` -- added enum `CreateOthersShoppingLists` to type `Permission` -- added enum `DeleteMyShoppingLists` to type `Permission` -- added enum `DeleteOthersShoppingLists` to type `Permission` +Added QueryParameter(s) + +- added query parameter `priceCustomerGroupAssignments` to method `get /{projectKey}/products` +- added query parameter `priceCustomerGroupAssignments` to method `post /{projectKey}/products` +- added query parameter `priceCustomerGroupAssignments` to method `get /{projectKey}/product-projections` +- added query parameter `priceCustomerGroupAssignments` to method `get /{projectKey}/products/key={key}` +- added query parameter `priceCustomerGroupAssignments` to method `post /{projectKey}/products/key={key}` +- added query parameter `priceCustomerGroupAssignments` to method `delete /{projectKey}/products/key={key}` +- added query parameter `priceCustomerGroupAssignments` to method `get /{projectKey}/products/{ID}` +- added query parameter `priceCustomerGroupAssignments` to method `post /{projectKey}/products/{ID}` +- added query parameter `priceCustomerGroupAssignments` to method `delete /{projectKey}/products/{ID}` +- added query parameter `priceCustomerGroupAssignments` to method `get /{projectKey}/product-projections/search` +- added query parameter `priceCustomerGroupAssignments` to method `get /{projectKey}/product-projections/key={key}` +- added query parameter `priceCustomerGroupAssignments` to method `get /{projectKey}/product-projections/{ID}` +- added query parameter `priceCustomerGroupAssignments` to method `get /{projectKey}/in-store/key={storeKey}/product-projections/key={key}` +- added query parameter `priceCustomerGroupAssignments` to method `get /{projectKey}/in-store/key={storeKey}/product-projections/{ID}`
Added Type(s) -- added type `BusinessUnitAssociateResponse` -- added type `BestDeal` -- added type `DiscountTypeCombination` -- added type `Stacking` -- added type `OrderBusinessUnitSetMessage` -- added type `OrderBusinessUnitSetMessagePayload` -- added type `StagedOrderSetBusinessUnitAction` -- added type `OrderSetBusinessUnitAction` -
- - -
-Added Resource(s) - -- added resource `/{projectKey}/as-associate/{associateId}/in-business-unit/key={businessUnitKey}/shopping-lists` -- added resource `/{projectKey}/as-associate/{associateId}/in-business-unit/key={businessUnitKey}/shopping-lists/key={key}` -- added resource `/{projectKey}/as-associate/{associateId}/in-business-unit/key={businessUnitKey}/shopping-lists/{ID}` -- added resource `/{projectKey}/business-units/key={key}/associates/{associateId}` -- added resource `/{projectKey}/business-units/{businessUnitId}/associates/{associateId}` -- added resource `/{projectKey}/in-store/key={storeKey}/business-units/key={key}/associates/{associateId}` -- added resource `/{projectKey}/in-store/key={storeKey}/business-units/{businessUnitId}/associates/{associateId}` -
- - -
-Added Method(s) - -- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().shoppingLists().get()` -- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().shoppingLists().head()` -- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().shoppingLists().post()` -- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().shoppingLists().withKey().get()` -- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().shoppingLists().withKey().head()` -- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().shoppingLists().withKey().post()` -- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().shoppingLists().withKey().delete()` -- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().shoppingLists().withId().get()` -- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().shoppingLists().withId().head()` -- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().shoppingLists().withId().post()` -- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().shoppingLists().withId().delete()` -- added method `apiRoot.withProjectKey().businessUnits().keyWithKeyValueAssociatesWithAssociateIdValue().get()` -- added method `apiRoot.withProjectKey().businessUnits().withBusinessUnitIdValueAssociatesWithAssociateIdValue().get()` -- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().businessUnits().keyWithKeyValueAssociatesWithAssociateIdValue().get()` -- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().businessUnits().withBusinessUnitIdValueAssociatesWithAssociateIdValue().get()` +- added type `CustomerGroupAssignment` +- added type `CustomerGroupAssignmentDraft` +- added type `CustomerAddCustomerGroupAssignmentAction` +- added type `CustomerRemoveCustomerGroupAssignmentAction` +- added type `CustomerSetCustomerGroupAssignmentsAction` +- added type `CustomerGroupAssignmentAddedMessage` +- added type `CustomerGroupAssignmentRemovedMessage` +- added type `CustomerGroupAssignmentsSetMessage` +- added type `CustomerGroupAssignmentAddedMessagePayload` +- added type `CustomerGroupAssignmentRemovedMessagePayload` +- added type `CustomerGroupAssignmentsSetMessagePayload`
Added Property(s) -- added property `discountTypeCombination` to type `Cart` -- added property `discountTypeCombination` to type `StagedOrder` -- added property `discountTypeCombination` to type `Order` -
- - -
-MarkDeprecated Property(s) - -- marked property `CountOnCustomLineItemUnits::excludeCount` as deprecated -- marked property `CountOnLineItemUnits::excludeCount` as deprecated +- added property `customerGroupAssignments` to type `Customer` +- added property `customerGroupAssignments` to type `CustomerDraft` +- added property `priceCustomerGroupAssignments` to type `ProductSearchProjectionParams`
diff --git a/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDTest.cs b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDTest.cs index 6adcd0ac0ee..98a9d9d8566 100644 --- a/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDTest.cs +++ b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDTest.cs @@ -67,6 +67,18 @@ public static IEnumerable GetData() "Get", "/test_projectKey/in-store/key=test_storeKey/product-projections/test_ID?priceCustomerGroup=priceCustomerGroup", }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .InStoreKeyWithStoreKeyValue("test_storeKey") + .ProductProjections() + .WithId("test_ID") + .Get() + .WithPriceCustomerGroupAssignments("priceCustomerGroupAssignments") + .Build(), + "Get", + "/test_projectKey/in-store/key=test_storeKey/product-projections/test_ID?priceCustomerGroupAssignments=priceCustomerGroupAssignments", + }, new Object[] { ApiRoot .WithProjectKey("test_projectKey") diff --git a/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyTest.cs b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyTest.cs index 2edae1b6ab2..8b39530feef 100644 --- a/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyTest.cs +++ b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyTest.cs @@ -67,6 +67,18 @@ public static IEnumerable GetData() "Get", "/test_projectKey/in-store/key=test_storeKey/product-projections/key=test_key?priceCustomerGroup=priceCustomerGroup", }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .InStoreKeyWithStoreKeyValue("test_storeKey") + .ProductProjections() + .WithKey("test_key") + .Get() + .WithPriceCustomerGroupAssignments("priceCustomerGroupAssignments") + .Build(), + "Get", + "/test_projectKey/in-store/key=test_storeKey/product-projections/key=test_key?priceCustomerGroupAssignments=priceCustomerGroupAssignments", + }, new Object[] { ApiRoot .WithProjectKey("test_projectKey") diff --git a/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/ProductProjections/ByProjectKeyProductProjectionsByIDTest.cs b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/ProductProjections/ByProjectKeyProductProjectionsByIDTest.cs index ab98f00fb6e..6a263b08555 100644 --- a/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/ProductProjections/ByProjectKeyProductProjectionsByIDTest.cs +++ b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/ProductProjections/ByProjectKeyProductProjectionsByIDTest.cs @@ -63,6 +63,17 @@ public static IEnumerable GetData() "Get", "/test_projectKey/product-projections/test_ID?priceCustomerGroup=priceCustomerGroup", }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .ProductProjections() + .WithId("test_ID") + .Get() + .WithPriceCustomerGroupAssignments("priceCustomerGroupAssignments") + .Build(), + "Get", + "/test_projectKey/product-projections/test_ID?priceCustomerGroupAssignments=priceCustomerGroupAssignments", + }, new Object[] { ApiRoot .WithProjectKey("test_projectKey") diff --git a/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/ProductProjections/ByProjectKeyProductProjectionsKeyByKeyTest.cs b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/ProductProjections/ByProjectKeyProductProjectionsKeyByKeyTest.cs index 0f1275d1f4a..7a0286bc0cc 100644 --- a/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/ProductProjections/ByProjectKeyProductProjectionsKeyByKeyTest.cs +++ b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/ProductProjections/ByProjectKeyProductProjectionsKeyByKeyTest.cs @@ -63,6 +63,17 @@ public static IEnumerable GetData() "Get", "/test_projectKey/product-projections/key=test_key?priceCustomerGroup=priceCustomerGroup", }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .ProductProjections() + .WithKey("test_key") + .Get() + .WithPriceCustomerGroupAssignments("priceCustomerGroupAssignments") + .Build(), + "Get", + "/test_projectKey/product-projections/key=test_key?priceCustomerGroupAssignments=priceCustomerGroupAssignments", + }, new Object[] { ApiRoot .WithProjectKey("test_projectKey") diff --git a/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/ProductProjections/ByProjectKeyProductProjectionsSearchTest.cs b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/ProductProjections/ByProjectKeyProductProjectionsSearchTest.cs index f1eb488cfed..47f1beb7104 100644 --- a/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/ProductProjections/ByProjectKeyProductProjectionsSearchTest.cs +++ b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/ProductProjections/ByProjectKeyProductProjectionsSearchTest.cs @@ -205,6 +205,17 @@ public static IEnumerable GetData() "Get", "/test_projectKey/product-projections/search?priceCustomerGroup=priceCustomerGroup", }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .ProductProjections() + .Search() + .Get() + .WithPriceCustomerGroupAssignments("priceCustomerGroupAssignments") + .Build(), + "Get", + "/test_projectKey/product-projections/search?priceCustomerGroupAssignments=priceCustomerGroupAssignments", + }, new Object[] { ApiRoot .WithProjectKey("test_projectKey") diff --git a/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/ProductProjections/ByProjectKeyProductProjectionsTest.cs b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/ProductProjections/ByProjectKeyProductProjectionsTest.cs index d40dddabd24..b51facd6a88 100644 --- a/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/ProductProjections/ByProjectKeyProductProjectionsTest.cs +++ b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/ProductProjections/ByProjectKeyProductProjectionsTest.cs @@ -59,6 +59,16 @@ public static IEnumerable GetData() "Get", "/test_projectKey/product-projections?priceCustomerGroup=priceCustomerGroup", }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .ProductProjections() + .Get() + .WithPriceCustomerGroupAssignments("priceCustomerGroupAssignments") + .Build(), + "Get", + "/test_projectKey/product-projections?priceCustomerGroupAssignments=priceCustomerGroupAssignments", + }, new Object[] { ApiRoot .WithProjectKey("test_projectKey") diff --git a/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/Products/ByProjectKeyProductsByIDTest.cs b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/Products/ByProjectKeyProductsByIDTest.cs index 52de0d088ec..264d1327de9 100644 --- a/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/Products/ByProjectKeyProductsByIDTest.cs +++ b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/Products/ByProjectKeyProductsByIDTest.cs @@ -52,6 +52,17 @@ public static IEnumerable GetData() "Get", "/test_projectKey/products/test_ID?priceCustomerGroup=priceCustomerGroup", }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .Products() + .WithId("test_ID") + .Get() + .WithPriceCustomerGroupAssignments("priceCustomerGroupAssignments") + .Build(), + "Get", + "/test_projectKey/products/test_ID?priceCustomerGroupAssignments=priceCustomerGroupAssignments", + }, new Object[] { ApiRoot .WithProjectKey("test_projectKey") @@ -127,6 +138,17 @@ public static IEnumerable GetData() "Post", "/test_projectKey/products/test_ID?priceCustomerGroup=priceCustomerGroup", }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .Products() + .WithId("test_ID") + .Post(null) + .WithPriceCustomerGroupAssignments("priceCustomerGroupAssignments") + .Build(), + "Post", + "/test_projectKey/products/test_ID?priceCustomerGroupAssignments=priceCustomerGroupAssignments", + }, new Object[] { ApiRoot .WithProjectKey("test_projectKey") @@ -192,6 +214,17 @@ public static IEnumerable GetData() "Delete", "/test_projectKey/products/test_ID?priceCustomerGroup=priceCustomerGroup", }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .Products() + .WithId("test_ID") + .Delete() + .WithPriceCustomerGroupAssignments("priceCustomerGroupAssignments") + .Build(), + "Delete", + "/test_projectKey/products/test_ID?priceCustomerGroupAssignments=priceCustomerGroupAssignments", + }, new Object[] { ApiRoot .WithProjectKey("test_projectKey") diff --git a/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/Products/ByProjectKeyProductsKeyByKeyTest.cs b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/Products/ByProjectKeyProductsKeyByKeyTest.cs index 91548cb0fce..c7f70072d37 100644 --- a/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/Products/ByProjectKeyProductsKeyByKeyTest.cs +++ b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/Products/ByProjectKeyProductsKeyByKeyTest.cs @@ -52,6 +52,17 @@ public static IEnumerable GetData() "Get", "/test_projectKey/products/key=test_key?priceCustomerGroup=priceCustomerGroup", }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .Products() + .WithKey("test_key") + .Get() + .WithPriceCustomerGroupAssignments("priceCustomerGroupAssignments") + .Build(), + "Get", + "/test_projectKey/products/key=test_key?priceCustomerGroupAssignments=priceCustomerGroupAssignments", + }, new Object[] { ApiRoot .WithProjectKey("test_projectKey") @@ -127,6 +138,17 @@ public static IEnumerable GetData() "Post", "/test_projectKey/products/key=test_key?priceCustomerGroup=priceCustomerGroup", }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .Products() + .WithKey("test_key") + .Post(null) + .WithPriceCustomerGroupAssignments("priceCustomerGroupAssignments") + .Build(), + "Post", + "/test_projectKey/products/key=test_key?priceCustomerGroupAssignments=priceCustomerGroupAssignments", + }, new Object[] { ApiRoot .WithProjectKey("test_projectKey") @@ -192,6 +214,17 @@ public static IEnumerable GetData() "Delete", "/test_projectKey/products/key=test_key?priceCustomerGroup=priceCustomerGroup", }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .Products() + .WithKey("test_key") + .Delete() + .WithPriceCustomerGroupAssignments("priceCustomerGroupAssignments") + .Build(), + "Delete", + "/test_projectKey/products/key=test_key?priceCustomerGroupAssignments=priceCustomerGroupAssignments", + }, new Object[] { ApiRoot .WithProjectKey("test_projectKey") diff --git a/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/Products/ByProjectKeyProductsTest.cs b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/Products/ByProjectKeyProductsTest.cs index e854779b976..15c1e618449 100644 --- a/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/Products/ByProjectKeyProductsTest.cs +++ b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/Products/ByProjectKeyProductsTest.cs @@ -59,6 +59,16 @@ public static IEnumerable GetData() "Get", "/test_projectKey/products?priceCustomerGroup=priceCustomerGroup", }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .Products() + .Get() + .WithPriceCustomerGroupAssignments("priceCustomerGroupAssignments") + .Build(), + "Get", + "/test_projectKey/products?priceCustomerGroupAssignments=priceCustomerGroupAssignments", + }, new Object[] { ApiRoot .WithProjectKey("test_projectKey") @@ -187,6 +197,16 @@ public static IEnumerable GetData() "Post", "/test_projectKey/products?priceCustomerGroup=priceCustomerGroup", }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .Products() + .Post(null) + .WithPriceCustomerGroupAssignments("priceCustomerGroupAssignments") + .Build(), + "Post", + "/test_projectKey/products?priceCustomerGroupAssignments=priceCustomerGroupAssignments", + }, new Object[] { ApiRoot .WithProjectKey("test_projectKey") diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet.cs index add5bd177d5..c9baa51b5ec 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet.cs @@ -53,6 +53,11 @@ public List GetPriceCustomerGroup() return this.GetQueryParam("priceCustomerGroup"); } + public List GetPriceCustomerGroupAssignments() + { + return this.GetQueryParam("priceCustomerGroupAssignments"); + } + public List GetPriceChannel() { return this.GetQueryParam("priceChannel"); @@ -88,6 +93,11 @@ public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet WithPriceCustom return this.AddQueryParam("priceCustomerGroup", priceCustomerGroup); } + public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet WithPriceCustomerGroupAssignments(string priceCustomerGroupAssignments) + { + return this.AddQueryParam("priceCustomerGroupAssignments", priceCustomerGroupAssignments); + } + public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet WithPriceChannel(string priceChannel) { return this.AddQueryParam("priceChannel", priceChannel); diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet.cs index cfdbdfa02e0..567109784a1 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet.cs @@ -53,6 +53,11 @@ public List GetPriceCustomerGroup() return this.GetQueryParam("priceCustomerGroup"); } + public List GetPriceCustomerGroupAssignments() + { + return this.GetQueryParam("priceCustomerGroupAssignments"); + } + public List GetPriceChannel() { return this.GetQueryParam("priceChannel"); @@ -88,6 +93,11 @@ public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet WithPriceCu return this.AddQueryParam("priceCustomerGroup", priceCustomerGroup); } + public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet WithPriceCustomerGroupAssignments(string priceCustomerGroupAssignments) + { + return this.AddQueryParam("priceCustomerGroupAssignments", priceCustomerGroupAssignments); + } + public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet WithPriceChannel(string priceChannel) { return this.AddQueryParam("priceChannel", priceChannel); diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductProjections/ByProjectKeyProductProjectionsByIDGet.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductProjections/ByProjectKeyProductProjectionsByIDGet.cs index 30be4ddd24b..ee4c463826c 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductProjections/ByProjectKeyProductProjectionsByIDGet.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductProjections/ByProjectKeyProductProjectionsByIDGet.cs @@ -50,6 +50,11 @@ public List GetPriceCustomerGroup() return this.GetQueryParam("priceCustomerGroup"); } + public List GetPriceCustomerGroupAssignments() + { + return this.GetQueryParam("priceCustomerGroupAssignments"); + } + public List GetPriceChannel() { return this.GetQueryParam("priceChannel"); @@ -90,6 +95,11 @@ public ByProjectKeyProductProjectionsByIDGet WithPriceCustomerGroup(string price return this.AddQueryParam("priceCustomerGroup", priceCustomerGroup); } + public ByProjectKeyProductProjectionsByIDGet WithPriceCustomerGroupAssignments(string priceCustomerGroupAssignments) + { + return this.AddQueryParam("priceCustomerGroupAssignments", priceCustomerGroupAssignments); + } + public ByProjectKeyProductProjectionsByIDGet WithPriceChannel(string priceChannel) { return this.AddQueryParam("priceChannel", priceChannel); diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductProjections/ByProjectKeyProductProjectionsGet.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductProjections/ByProjectKeyProductProjectionsGet.cs index fcf4b1240a8..a480888af5f 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductProjections/ByProjectKeyProductProjectionsGet.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductProjections/ByProjectKeyProductProjectionsGet.cs @@ -48,6 +48,11 @@ public List GetPriceCustomerGroup() return this.GetQueryParam("priceCustomerGroup"); } + public List GetPriceCustomerGroupAssignments() + { + return this.GetQueryParam("priceCustomerGroupAssignments"); + } + public List GetPriceChannel() { return this.GetQueryParam("priceChannel"); @@ -113,6 +118,11 @@ public ByProjectKeyProductProjectionsGet WithPriceCustomerGroup(string priceCust return this.AddQueryParam("priceCustomerGroup", priceCustomerGroup); } + public ByProjectKeyProductProjectionsGet WithPriceCustomerGroupAssignments(string priceCustomerGroupAssignments) + { + return this.AddQueryParam("priceCustomerGroupAssignments", priceCustomerGroupAssignments); + } + public ByProjectKeyProductProjectionsGet WithPriceChannel(string priceChannel) { return this.AddQueryParam("priceChannel", priceChannel); diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductProjections/ByProjectKeyProductProjectionsKeyByKeyGet.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductProjections/ByProjectKeyProductProjectionsKeyByKeyGet.cs index a6c23849fa5..dd2ae3d01f5 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductProjections/ByProjectKeyProductProjectionsKeyByKeyGet.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductProjections/ByProjectKeyProductProjectionsKeyByKeyGet.cs @@ -50,6 +50,11 @@ public List GetPriceCustomerGroup() return this.GetQueryParam("priceCustomerGroup"); } + public List GetPriceCustomerGroupAssignments() + { + return this.GetQueryParam("priceCustomerGroupAssignments"); + } + public List GetPriceChannel() { return this.GetQueryParam("priceChannel"); @@ -90,6 +95,11 @@ public ByProjectKeyProductProjectionsKeyByKeyGet WithPriceCustomerGroup(string p return this.AddQueryParam("priceCustomerGroup", priceCustomerGroup); } + public ByProjectKeyProductProjectionsKeyByKeyGet WithPriceCustomerGroupAssignments(string priceCustomerGroupAssignments) + { + return this.AddQueryParam("priceCustomerGroupAssignments", priceCustomerGroupAssignments); + } + public ByProjectKeyProductProjectionsKeyByKeyGet WithPriceChannel(string priceChannel) { return this.AddQueryParam("priceChannel", priceChannel); diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductProjections/ByProjectKeyProductProjectionsSearchGet.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductProjections/ByProjectKeyProductProjectionsSearchGet.cs index b180d729f04..85cd7dab0b1 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductProjections/ByProjectKeyProductProjectionsSearchGet.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductProjections/ByProjectKeyProductProjectionsSearchGet.cs @@ -103,6 +103,11 @@ public List GetPriceCustomerGroup() return this.GetQueryParam("priceCustomerGroup"); } + public List GetPriceCustomerGroupAssignments() + { + return this.GetQueryParam("priceCustomerGroupAssignments"); + } + public List GetPriceChannel() { return this.GetQueryParam("priceChannel"); @@ -198,6 +203,11 @@ public ByProjectKeyProductProjectionsSearchGet WithPriceCustomerGroup(string pri return this.AddQueryParam("priceCustomerGroup", priceCustomerGroup); } + public ByProjectKeyProductProjectionsSearchGet WithPriceCustomerGroupAssignments(string priceCustomerGroupAssignments) + { + return this.AddQueryParam("priceCustomerGroupAssignments", priceCustomerGroupAssignments); + } + public ByProjectKeyProductProjectionsSearchGet WithPriceChannel(string priceChannel) { return this.AddQueryParam("priceChannel", priceChannel); diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Products/ByProjectKeyProductsByIDDelete.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Products/ByProjectKeyProductsByIDDelete.cs index 575f766229b..f4c28399bde 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Products/ByProjectKeyProductsByIDDelete.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Products/ByProjectKeyProductsByIDDelete.cs @@ -46,6 +46,11 @@ public List GetPriceCustomerGroup() return this.GetQueryParam("priceCustomerGroup"); } + public List GetPriceCustomerGroupAssignments() + { + return this.GetQueryParam("priceCustomerGroupAssignments"); + } + public List GetPriceChannel() { return this.GetQueryParam("priceChannel"); @@ -76,6 +81,11 @@ public ByProjectKeyProductsByIDDelete WithPriceCustomerGroup(string priceCustome return this.AddQueryParam("priceCustomerGroup", priceCustomerGroup); } + public ByProjectKeyProductsByIDDelete WithPriceCustomerGroupAssignments(string priceCustomerGroupAssignments) + { + return this.AddQueryParam("priceCustomerGroupAssignments", priceCustomerGroupAssignments); + } + public ByProjectKeyProductsByIDDelete WithPriceChannel(string priceChannel) { return this.AddQueryParam("priceChannel", priceChannel); diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Products/ByProjectKeyProductsByIDGet.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Products/ByProjectKeyProductsByIDGet.cs index d93b9bcd6e7..23b7666fa93 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Products/ByProjectKeyProductsByIDGet.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Products/ByProjectKeyProductsByIDGet.cs @@ -45,6 +45,11 @@ public List GetPriceCustomerGroup() return this.GetQueryParam("priceCustomerGroup"); } + public List GetPriceCustomerGroupAssignments() + { + return this.GetQueryParam("priceCustomerGroupAssignments"); + } + public List GetPriceChannel() { return this.GetQueryParam("priceChannel"); @@ -70,6 +75,11 @@ public ByProjectKeyProductsByIDGet WithPriceCustomerGroup(string priceCustomerGr return this.AddQueryParam("priceCustomerGroup", priceCustomerGroup); } + public ByProjectKeyProductsByIDGet WithPriceCustomerGroupAssignments(string priceCustomerGroupAssignments) + { + return this.AddQueryParam("priceCustomerGroupAssignments", priceCustomerGroupAssignments); + } + public ByProjectKeyProductsByIDGet WithPriceChannel(string priceChannel) { return this.AddQueryParam("priceChannel", priceChannel); diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Products/ByProjectKeyProductsByIDPost.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Products/ByProjectKeyProductsByIDPost.cs index 6882fd7c674..05a27b8ee61 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Products/ByProjectKeyProductsByIDPost.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Products/ByProjectKeyProductsByIDPost.cs @@ -52,6 +52,11 @@ public List GetPriceCustomerGroup() return this.GetQueryParam("priceCustomerGroup"); } + public List GetPriceCustomerGroupAssignments() + { + return this.GetQueryParam("priceCustomerGroupAssignments"); + } + public List GetPriceChannel() { return this.GetQueryParam("priceChannel"); @@ -77,6 +82,11 @@ public ByProjectKeyProductsByIDPost WithPriceCustomerGroup(string priceCustomerG return this.AddQueryParam("priceCustomerGroup", priceCustomerGroup); } + public ByProjectKeyProductsByIDPost WithPriceCustomerGroupAssignments(string priceCustomerGroupAssignments) + { + return this.AddQueryParam("priceCustomerGroupAssignments", priceCustomerGroupAssignments); + } + public ByProjectKeyProductsByIDPost WithPriceChannel(string priceChannel) { return this.AddQueryParam("priceChannel", priceChannel); diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Products/ByProjectKeyProductsGet.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Products/ByProjectKeyProductsGet.cs index 28bf9d160e0..92d15a2762a 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Products/ByProjectKeyProductsGet.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Products/ByProjectKeyProductsGet.cs @@ -48,6 +48,11 @@ public List GetPriceCustomerGroup() return this.GetQueryParam("priceCustomerGroup"); } + public List GetPriceCustomerGroupAssignments() + { + return this.GetQueryParam("priceCustomerGroupAssignments"); + } + public List GetPriceChannel() { return this.GetQueryParam("priceChannel"); @@ -98,6 +103,11 @@ public ByProjectKeyProductsGet WithPriceCustomerGroup(string priceCustomerGroup) return this.AddQueryParam("priceCustomerGroup", priceCustomerGroup); } + public ByProjectKeyProductsGet WithPriceCustomerGroupAssignments(string priceCustomerGroupAssignments) + { + return this.AddQueryParam("priceCustomerGroupAssignments", priceCustomerGroupAssignments); + } + public ByProjectKeyProductsGet WithPriceChannel(string priceChannel) { return this.AddQueryParam("priceChannel", priceChannel); diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Products/ByProjectKeyProductsKeyByKeyDelete.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Products/ByProjectKeyProductsKeyByKeyDelete.cs index f0aaef01918..5794b79780a 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Products/ByProjectKeyProductsKeyByKeyDelete.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Products/ByProjectKeyProductsKeyByKeyDelete.cs @@ -46,6 +46,11 @@ public List GetPriceCustomerGroup() return this.GetQueryParam("priceCustomerGroup"); } + public List GetPriceCustomerGroupAssignments() + { + return this.GetQueryParam("priceCustomerGroupAssignments"); + } + public List GetPriceChannel() { return this.GetQueryParam("priceChannel"); @@ -76,6 +81,11 @@ public ByProjectKeyProductsKeyByKeyDelete WithPriceCustomerGroup(string priceCus return this.AddQueryParam("priceCustomerGroup", priceCustomerGroup); } + public ByProjectKeyProductsKeyByKeyDelete WithPriceCustomerGroupAssignments(string priceCustomerGroupAssignments) + { + return this.AddQueryParam("priceCustomerGroupAssignments", priceCustomerGroupAssignments); + } + public ByProjectKeyProductsKeyByKeyDelete WithPriceChannel(string priceChannel) { return this.AddQueryParam("priceChannel", priceChannel); diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Products/ByProjectKeyProductsKeyByKeyGet.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Products/ByProjectKeyProductsKeyByKeyGet.cs index 1c352436e2b..073fc885021 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Products/ByProjectKeyProductsKeyByKeyGet.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Products/ByProjectKeyProductsKeyByKeyGet.cs @@ -45,6 +45,11 @@ public List GetPriceCustomerGroup() return this.GetQueryParam("priceCustomerGroup"); } + public List GetPriceCustomerGroupAssignments() + { + return this.GetQueryParam("priceCustomerGroupAssignments"); + } + public List GetPriceChannel() { return this.GetQueryParam("priceChannel"); @@ -70,6 +75,11 @@ public ByProjectKeyProductsKeyByKeyGet WithPriceCustomerGroup(string priceCustom return this.AddQueryParam("priceCustomerGroup", priceCustomerGroup); } + public ByProjectKeyProductsKeyByKeyGet WithPriceCustomerGroupAssignments(string priceCustomerGroupAssignments) + { + return this.AddQueryParam("priceCustomerGroupAssignments", priceCustomerGroupAssignments); + } + public ByProjectKeyProductsKeyByKeyGet WithPriceChannel(string priceChannel) { return this.AddQueryParam("priceChannel", priceChannel); diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Products/ByProjectKeyProductsKeyByKeyPost.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Products/ByProjectKeyProductsKeyByKeyPost.cs index 50a357b2533..df8be17314a 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Products/ByProjectKeyProductsKeyByKeyPost.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Products/ByProjectKeyProductsKeyByKeyPost.cs @@ -52,6 +52,11 @@ public List GetPriceCustomerGroup() return this.GetQueryParam("priceCustomerGroup"); } + public List GetPriceCustomerGroupAssignments() + { + return this.GetQueryParam("priceCustomerGroupAssignments"); + } + public List GetPriceChannel() { return this.GetQueryParam("priceChannel"); @@ -77,6 +82,11 @@ public ByProjectKeyProductsKeyByKeyPost WithPriceCustomerGroup(string priceCusto return this.AddQueryParam("priceCustomerGroup", priceCustomerGroup); } + public ByProjectKeyProductsKeyByKeyPost WithPriceCustomerGroupAssignments(string priceCustomerGroupAssignments) + { + return this.AddQueryParam("priceCustomerGroupAssignments", priceCustomerGroupAssignments); + } + public ByProjectKeyProductsKeyByKeyPost WithPriceChannel(string priceChannel) { return this.AddQueryParam("priceChannel", priceChannel); diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Products/ByProjectKeyProductsPost.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Products/ByProjectKeyProductsPost.cs index 4f1acc54515..f0b532db254 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Products/ByProjectKeyProductsPost.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Products/ByProjectKeyProductsPost.cs @@ -49,6 +49,11 @@ public List GetPriceCustomerGroup() return this.GetQueryParam("priceCustomerGroup"); } + public List GetPriceCustomerGroupAssignments() + { + return this.GetQueryParam("priceCustomerGroupAssignments"); + } + public List GetPriceChannel() { return this.GetQueryParam("priceChannel"); @@ -74,6 +79,11 @@ public ByProjectKeyProductsPost WithPriceCustomerGroup(string priceCustomerGroup return this.AddQueryParam("priceCustomerGroup", priceCustomerGroup); } + public ByProjectKeyProductsPost WithPriceCustomerGroupAssignments(string priceCustomerGroupAssignments) + { + return this.AddQueryParam("priceCustomerGroupAssignments", priceCustomerGroupAssignments); + } + public ByProjectKeyProductsPost WithPriceChannel(string priceChannel) { return this.AddQueryParam("priceChannel", priceChannel); diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Client/IPriceselectingTrait.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Client/IPriceselectingTrait.cs index 26dc4a77135..f0fdaa6ab31 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Client/IPriceselectingTrait.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Client/IPriceselectingTrait.cs @@ -11,6 +11,8 @@ public interface IPriceselectingTrait where T : IPriceselectingTrait List GetPriceCustomerGroup(); + List GetPriceCustomerGroupAssignments(); + List GetPriceChannel(); /** @@ -28,6 +30,11 @@ public interface IPriceselectingTrait where T : IPriceselectingTrait */ T WithPriceCustomerGroup(string priceCustomerGroup); + /** + * set priceCustomerGroupAssignments with the specificied value + */ + T WithPriceCustomerGroupAssignments(string priceCustomerGroupAssignments); + /** * set priceChannel with the specificied value */ diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Customers/Customer.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Customers/Customer.cs index b2a4718791e..80a331fb113 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Customers/Customer.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Customers/Customer.cs @@ -79,5 +79,9 @@ public partial class Customer : ICustomer public IEnumerable StoresEnumerable { set => Stores = value.ToList(); } public IAuthenticationMode AuthenticationMode { get; set; } + + public IList CustomerGroupAssignments { get; set; } + + public IEnumerable CustomerGroupAssignmentsEnumerable { set => CustomerGroupAssignments = value.ToList(); } } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Customers/CustomerAddCustomerGroupAssignmentAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Customers/CustomerAddCustomerGroupAssignmentAction.cs new file mode 100644 index 00000000000..32647fdc48b --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Customers/CustomerAddCustomerGroupAssignmentAction.cs @@ -0,0 +1,16 @@ + + +namespace commercetools.Sdk.Api.Models.Customers +{ + + public partial class CustomerAddCustomerGroupAssignmentAction : ICustomerAddCustomerGroupAssignmentAction + { + public string Action { get; set; } + + public ICustomerGroupAssignmentDraft CustomerGroupAssignment { get; set; } + public CustomerAddCustomerGroupAssignmentAction() + { + this.Action = "addCustomerGroupAssignment"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Customers/CustomerDraft.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Customers/CustomerDraft.cs index ac3d6931e26..f87933ed39f 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Customers/CustomerDraft.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Customers/CustomerDraft.cs @@ -75,5 +75,9 @@ public partial class CustomerDraft : ICustomerDraft public IEnumerable StoresEnumerable { set => Stores = value.ToList(); } public IAuthenticationMode AuthenticationMode { get; set; } + + public IList CustomerGroupAssignments { get; set; } + + public IEnumerable CustomerGroupAssignmentsEnumerable { set => CustomerGroupAssignments = value.ToList(); } } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Customers/CustomerGroupAssignment.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Customers/CustomerGroupAssignment.cs new file mode 100644 index 00000000000..e73fbf08491 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Customers/CustomerGroupAssignment.cs @@ -0,0 +1,11 @@ +using commercetools.Sdk.Api.Models.CustomerGroups; + + +namespace commercetools.Sdk.Api.Models.Customers +{ + + public partial class CustomerGroupAssignment : ICustomerGroupAssignment + { + public ICustomerGroupReference CustomerGroup { get; set; } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Customers/CustomerGroupAssignmentDraft.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Customers/CustomerGroupAssignmentDraft.cs new file mode 100644 index 00000000000..e0f3716cc02 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Customers/CustomerGroupAssignmentDraft.cs @@ -0,0 +1,11 @@ +using commercetools.Sdk.Api.Models.CustomerGroups; + + +namespace commercetools.Sdk.Api.Models.Customers +{ + + public partial class CustomerGroupAssignmentDraft : ICustomerGroupAssignmentDraft + { + public ICustomerGroupResourceIdentifier CustomerGroup { get; set; } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Customers/CustomerRemoveCustomerGroupAssignmentAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Customers/CustomerRemoveCustomerGroupAssignmentAction.cs new file mode 100644 index 00000000000..9afe008db38 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Customers/CustomerRemoveCustomerGroupAssignmentAction.cs @@ -0,0 +1,17 @@ +using commercetools.Sdk.Api.Models.CustomerGroups; + + +namespace commercetools.Sdk.Api.Models.Customers +{ + + public partial class CustomerRemoveCustomerGroupAssignmentAction : ICustomerRemoveCustomerGroupAssignmentAction + { + public string Action { get; set; } + + public ICustomerGroupResourceIdentifier CustomerGroup { get; set; } + public CustomerRemoveCustomerGroupAssignmentAction() + { + this.Action = "removeCustomerGroupAssignment"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Customers/CustomerSetCustomerGroupAssignmentsAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Customers/CustomerSetCustomerGroupAssignmentsAction.cs new file mode 100644 index 00000000000..0b941ab5cae --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Customers/CustomerSetCustomerGroupAssignmentsAction.cs @@ -0,0 +1,19 @@ +using System.Collections.Generic; +using System.Linq; + +namespace commercetools.Sdk.Api.Models.Customers +{ + + public partial class CustomerSetCustomerGroupAssignmentsAction : ICustomerSetCustomerGroupAssignmentsAction + { + public string Action { get; set; } + + public IList CustomerGroupAssignments { get; set; } + + public IEnumerable CustomerGroupAssignmentsEnumerable { set => CustomerGroupAssignments = value.ToList(); } + public CustomerSetCustomerGroupAssignmentsAction() + { + this.Action = "setCustomerGroupAssignments"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Customers/ICustomer.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Customers/ICustomer.cs index 95fe5ea82fc..029839b588c 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Customers/ICustomer.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Customers/ICustomer.cs @@ -81,5 +81,9 @@ public partial interface ICustomer : IBaseResource IAuthenticationMode AuthenticationMode { get; set; } + IList CustomerGroupAssignments { get; set; } + + IEnumerable CustomerGroupAssignmentsEnumerable { set => CustomerGroupAssignments = value.ToList(); } + } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Customers/ICustomerAddCustomerGroupAssignmentAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Customers/ICustomerAddCustomerGroupAssignmentAction.cs new file mode 100644 index 00000000000..02f823eb264 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Customers/ICustomerAddCustomerGroupAssignmentAction.cs @@ -0,0 +1,11 @@ +using commercetools.Base.CustomAttributes; +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.Customers +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.Customers.CustomerAddCustomerGroupAssignmentAction))] + public partial interface ICustomerAddCustomerGroupAssignmentAction : ICustomerUpdateAction + { + ICustomerGroupAssignmentDraft CustomerGroupAssignment { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Customers/ICustomerDraft.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Customers/ICustomerDraft.cs index 954f47d2145..e9f36c140f8 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Customers/ICustomerDraft.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Customers/ICustomerDraft.cs @@ -77,5 +77,9 @@ public partial interface ICustomerDraft IAuthenticationMode AuthenticationMode { get; set; } + IList CustomerGroupAssignments { get; set; } + + IEnumerable CustomerGroupAssignmentsEnumerable { set => CustomerGroupAssignments = value.ToList(); } + } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Customers/ICustomerGroupAssignment.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Customers/ICustomerGroupAssignment.cs new file mode 100644 index 00000000000..a6f776aec9d --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Customers/ICustomerGroupAssignment.cs @@ -0,0 +1,12 @@ +using commercetools.Sdk.Api.Models.CustomerGroups; +using commercetools.Base.CustomAttributes; +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.Customers +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.Customers.CustomerGroupAssignment))] + public partial interface ICustomerGroupAssignment + { + ICustomerGroupReference CustomerGroup { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Customers/ICustomerGroupAssignmentDraft.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Customers/ICustomerGroupAssignmentDraft.cs new file mode 100644 index 00000000000..1698384d95e --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Customers/ICustomerGroupAssignmentDraft.cs @@ -0,0 +1,12 @@ +using commercetools.Sdk.Api.Models.CustomerGroups; +using commercetools.Base.CustomAttributes; +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.Customers +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.Customers.CustomerGroupAssignmentDraft))] + public partial interface ICustomerGroupAssignmentDraft + { + ICustomerGroupResourceIdentifier CustomerGroup { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Customers/ICustomerRemoveCustomerGroupAssignmentAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Customers/ICustomerRemoveCustomerGroupAssignmentAction.cs new file mode 100644 index 00000000000..6faa92b4de5 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Customers/ICustomerRemoveCustomerGroupAssignmentAction.cs @@ -0,0 +1,12 @@ +using commercetools.Sdk.Api.Models.CustomerGroups; +using commercetools.Base.CustomAttributes; +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.Customers +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.Customers.CustomerRemoveCustomerGroupAssignmentAction))] + public partial interface ICustomerRemoveCustomerGroupAssignmentAction : ICustomerUpdateAction + { + ICustomerGroupResourceIdentifier CustomerGroup { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Customers/ICustomerSetCustomerGroupAssignmentsAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Customers/ICustomerSetCustomerGroupAssignmentsAction.cs new file mode 100644 index 00000000000..685c9f47508 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Customers/ICustomerSetCustomerGroupAssignmentsAction.cs @@ -0,0 +1,15 @@ +using System.Collections.Generic; +using System.Linq; +using commercetools.Base.CustomAttributes; +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.Customers +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.Customers.CustomerSetCustomerGroupAssignmentsAction))] + public partial interface ICustomerSetCustomerGroupAssignmentsAction : ICustomerUpdateAction + { + IList CustomerGroupAssignments { get; set; } + + IEnumerable CustomerGroupAssignmentsEnumerable { set => CustomerGroupAssignments = value.ToList(); } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Customers/ICustomerUpdateAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Customers/ICustomerUpdateAction.cs index 10f79dc98d8..f45f30179af 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Customers/ICustomerUpdateAction.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Customers/ICustomerUpdateAction.cs @@ -7,12 +7,14 @@ namespace commercetools.Sdk.Api.Models.Customers [DefaultTypeDiscriminator(typeof(commercetools.Sdk.Api.Models.Customers.CustomerUpdateAction))] [SubTypeDiscriminator("addAddress", typeof(commercetools.Sdk.Api.Models.Customers.CustomerAddAddressAction))] [SubTypeDiscriminator("addBillingAddressId", typeof(commercetools.Sdk.Api.Models.Customers.CustomerAddBillingAddressIdAction))] + [SubTypeDiscriminator("addCustomerGroupAssignment", typeof(commercetools.Sdk.Api.Models.Customers.CustomerAddCustomerGroupAssignmentAction))] [SubTypeDiscriminator("addShippingAddressId", typeof(commercetools.Sdk.Api.Models.Customers.CustomerAddShippingAddressIdAction))] [SubTypeDiscriminator("addStore", typeof(commercetools.Sdk.Api.Models.Customers.CustomerAddStoreAction))] [SubTypeDiscriminator("changeAddress", typeof(commercetools.Sdk.Api.Models.Customers.CustomerChangeAddressAction))] [SubTypeDiscriminator("changeEmail", typeof(commercetools.Sdk.Api.Models.Customers.CustomerChangeEmailAction))] [SubTypeDiscriminator("removeAddress", typeof(commercetools.Sdk.Api.Models.Customers.CustomerRemoveAddressAction))] [SubTypeDiscriminator("removeBillingAddressId", typeof(commercetools.Sdk.Api.Models.Customers.CustomerRemoveBillingAddressIdAction))] + [SubTypeDiscriminator("removeCustomerGroupAssignment", typeof(commercetools.Sdk.Api.Models.Customers.CustomerRemoveCustomerGroupAssignmentAction))] [SubTypeDiscriminator("removeShippingAddressId", typeof(commercetools.Sdk.Api.Models.Customers.CustomerRemoveShippingAddressIdAction))] [SubTypeDiscriminator("removeStore", typeof(commercetools.Sdk.Api.Models.Customers.CustomerRemoveStoreAction))] [SubTypeDiscriminator("setAddressCustomField", typeof(commercetools.Sdk.Api.Models.Customers.CustomerSetAddressCustomFieldAction))] @@ -20,6 +22,7 @@ namespace commercetools.Sdk.Api.Models.Customers [SubTypeDiscriminator("setAuthenticationMode", typeof(commercetools.Sdk.Api.Models.Customers.CustomerSetAuthenticationModeAction))] [SubTypeDiscriminator("setCompanyName", typeof(commercetools.Sdk.Api.Models.Customers.CustomerSetCompanyNameAction))] [SubTypeDiscriminator("setCustomerGroup", typeof(commercetools.Sdk.Api.Models.Customers.CustomerSetCustomerGroupAction))] + [SubTypeDiscriminator("setCustomerGroupAssignments", typeof(commercetools.Sdk.Api.Models.Customers.CustomerSetCustomerGroupAssignmentsAction))] [SubTypeDiscriminator("setCustomerNumber", typeof(commercetools.Sdk.Api.Models.Customers.CustomerSetCustomerNumberAction))] [SubTypeDiscriminator("setCustomField", typeof(commercetools.Sdk.Api.Models.Customers.CustomerSetCustomFieldAction))] [SubTypeDiscriminator("setCustomType", typeof(commercetools.Sdk.Api.Models.Customers.CustomerSetCustomTypeAction))] @@ -52,6 +55,12 @@ static commercetools.Sdk.Api.Models.Customers.CustomerAddBillingAddressIdAction init?.Invoke(t); return t; } + static commercetools.Sdk.Api.Models.Customers.CustomerAddCustomerGroupAssignmentAction AddCustomerGroupAssignment(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.Customers.CustomerAddCustomerGroupAssignmentAction(); + init?.Invoke(t); + return t; + } static commercetools.Sdk.Api.Models.Customers.CustomerAddShippingAddressIdAction AddShippingAddressId(Action init = null) { var t = new commercetools.Sdk.Api.Models.Customers.CustomerAddShippingAddressIdAction(); @@ -88,6 +97,12 @@ static commercetools.Sdk.Api.Models.Customers.CustomerRemoveBillingAddressIdActi init?.Invoke(t); return t; } + static commercetools.Sdk.Api.Models.Customers.CustomerRemoveCustomerGroupAssignmentAction RemoveCustomerGroupAssignment(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.Customers.CustomerRemoveCustomerGroupAssignmentAction(); + init?.Invoke(t); + return t; + } static commercetools.Sdk.Api.Models.Customers.CustomerRemoveShippingAddressIdAction RemoveShippingAddressId(Action init = null) { var t = new commercetools.Sdk.Api.Models.Customers.CustomerRemoveShippingAddressIdAction(); @@ -130,6 +145,12 @@ static commercetools.Sdk.Api.Models.Customers.CustomerSetCustomerGroupAction Set init?.Invoke(t); return t; } + static commercetools.Sdk.Api.Models.Customers.CustomerSetCustomerGroupAssignmentsAction SetCustomerGroupAssignments(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.Customers.CustomerSetCustomerGroupAssignmentsAction(); + init?.Invoke(t); + return t; + } static commercetools.Sdk.Api.Models.Customers.CustomerSetCustomerNumberAction SetCustomerNumber(Action init = null) { var t = new commercetools.Sdk.Api.Models.Customers.CustomerSetCustomerNumberAction(); diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/CustomerGroupAssignmentAddedMessage.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/CustomerGroupAssignmentAddedMessage.cs new file mode 100644 index 00000000000..80d43675ba0 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/CustomerGroupAssignmentAddedMessage.cs @@ -0,0 +1,38 @@ +using commercetools.Sdk.Api.Models.Common; +using commercetools.Sdk.Api.Models.Customers; +using System; + +namespace commercetools.Sdk.Api.Models.Messages +{ + + public partial class CustomerGroupAssignmentAddedMessage : ICustomerGroupAssignmentAddedMessage + { + public string Id { get; set; } + + public long Version { get; set; } + + public DateTime CreatedAt { get; set; } + + public DateTime LastModifiedAt { get; set; } + + public ILastModifiedBy LastModifiedBy { get; set; } + + public ICreatedBy CreatedBy { get; set; } + + public long SequenceNumber { get; set; } + + public IReference Resource { get; set; } + + public long ResourceVersion { get; set; } + + public string Type { get; set; } + + public IUserProvidedIdentifiers ResourceUserProvidedIdentifiers { get; set; } + + public ICustomerGroupAssignment CustomerGroupAssignment { get; set; } + public CustomerGroupAssignmentAddedMessage() + { + this.Type = "CustomerGroupAssignmentAdded"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/CustomerGroupAssignmentAddedMessagePayload.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/CustomerGroupAssignmentAddedMessagePayload.cs new file mode 100644 index 00000000000..b76c1fe78d6 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/CustomerGroupAssignmentAddedMessagePayload.cs @@ -0,0 +1,17 @@ +using commercetools.Sdk.Api.Models.Customers; + + +namespace commercetools.Sdk.Api.Models.Messages +{ + + public partial class CustomerGroupAssignmentAddedMessagePayload : ICustomerGroupAssignmentAddedMessagePayload + { + public string Type { get; set; } + + public ICustomerGroupAssignment CustomerGroupAssignment { get; set; } + public CustomerGroupAssignmentAddedMessagePayload() + { + this.Type = "CustomerGroupAssignmentAdded"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/CustomerGroupAssignmentRemovedMessage.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/CustomerGroupAssignmentRemovedMessage.cs new file mode 100644 index 00000000000..4d2d8242a89 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/CustomerGroupAssignmentRemovedMessage.cs @@ -0,0 +1,38 @@ +using commercetools.Sdk.Api.Models.Common; +using commercetools.Sdk.Api.Models.Customers; +using System; + +namespace commercetools.Sdk.Api.Models.Messages +{ + + public partial class CustomerGroupAssignmentRemovedMessage : ICustomerGroupAssignmentRemovedMessage + { + public string Id { get; set; } + + public long Version { get; set; } + + public DateTime CreatedAt { get; set; } + + public DateTime LastModifiedAt { get; set; } + + public ILastModifiedBy LastModifiedBy { get; set; } + + public ICreatedBy CreatedBy { get; set; } + + public long SequenceNumber { get; set; } + + public IReference Resource { get; set; } + + public long ResourceVersion { get; set; } + + public string Type { get; set; } + + public IUserProvidedIdentifiers ResourceUserProvidedIdentifiers { get; set; } + + public ICustomerGroupAssignment CustomerGroupAssignment { get; set; } + public CustomerGroupAssignmentRemovedMessage() + { + this.Type = "CustomerGroupAssignmentRemoved"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/CustomerGroupAssignmentRemovedMessagePayload.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/CustomerGroupAssignmentRemovedMessagePayload.cs new file mode 100644 index 00000000000..7031e20e0fa --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/CustomerGroupAssignmentRemovedMessagePayload.cs @@ -0,0 +1,17 @@ +using commercetools.Sdk.Api.Models.Customers; + + +namespace commercetools.Sdk.Api.Models.Messages +{ + + public partial class CustomerGroupAssignmentRemovedMessagePayload : ICustomerGroupAssignmentRemovedMessagePayload + { + public string Type { get; set; } + + public ICustomerGroupAssignment CustomerGroupAssignment { get; set; } + public CustomerGroupAssignmentRemovedMessagePayload() + { + this.Type = "CustomerGroupAssignmentRemoved"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/CustomerGroupAssignmentsSetMessage.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/CustomerGroupAssignmentsSetMessage.cs new file mode 100644 index 00000000000..00b029d45d4 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/CustomerGroupAssignmentsSetMessage.cs @@ -0,0 +1,42 @@ +using commercetools.Sdk.Api.Models.Common; +using commercetools.Sdk.Api.Models.Customers; +using System; +using System.Collections.Generic; +using System.Linq; + +namespace commercetools.Sdk.Api.Models.Messages +{ + + public partial class CustomerGroupAssignmentsSetMessage : ICustomerGroupAssignmentsSetMessage + { + public string Id { get; set; } + + public long Version { get; set; } + + public DateTime CreatedAt { get; set; } + + public DateTime LastModifiedAt { get; set; } + + public ILastModifiedBy LastModifiedBy { get; set; } + + public ICreatedBy CreatedBy { get; set; } + + public long SequenceNumber { get; set; } + + public IReference Resource { get; set; } + + public long ResourceVersion { get; set; } + + public string Type { get; set; } + + public IUserProvidedIdentifiers ResourceUserProvidedIdentifiers { get; set; } + + public IList CustomerGroupAssignments { get; set; } + + public IEnumerable CustomerGroupAssignmentsEnumerable { set => CustomerGroupAssignments = value.ToList(); } + public CustomerGroupAssignmentsSetMessage() + { + this.Type = "CustomerGroupAssignmentsSet"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/CustomerGroupAssignmentsSetMessagePayload.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/CustomerGroupAssignmentsSetMessagePayload.cs new file mode 100644 index 00000000000..9e162037b76 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/CustomerGroupAssignmentsSetMessagePayload.cs @@ -0,0 +1,20 @@ +using commercetools.Sdk.Api.Models.Customers; +using System.Collections.Generic; +using System.Linq; + +namespace commercetools.Sdk.Api.Models.Messages +{ + + public partial class CustomerGroupAssignmentsSetMessagePayload : ICustomerGroupAssignmentsSetMessagePayload + { + public string Type { get; set; } + + public IList CustomerGroupAssignments { get; set; } + + public IEnumerable CustomerGroupAssignmentsEnumerable { set => CustomerGroupAssignments = value.ToList(); } + public CustomerGroupAssignmentsSetMessagePayload() + { + this.Type = "CustomerGroupAssignmentsSet"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/ICustomerGroupAssignmentAddedMessage.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/ICustomerGroupAssignmentAddedMessage.cs new file mode 100644 index 00000000000..0be92043292 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/ICustomerGroupAssignmentAddedMessage.cs @@ -0,0 +1,12 @@ +using commercetools.Sdk.Api.Models.Customers; +using commercetools.Base.CustomAttributes; +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.Messages +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.CustomerGroupAssignmentAddedMessage))] + public partial interface ICustomerGroupAssignmentAddedMessage : IMessage + { + ICustomerGroupAssignment CustomerGroupAssignment { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/ICustomerGroupAssignmentAddedMessagePayload.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/ICustomerGroupAssignmentAddedMessagePayload.cs new file mode 100644 index 00000000000..e7a96348e9e --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/ICustomerGroupAssignmentAddedMessagePayload.cs @@ -0,0 +1,12 @@ +using commercetools.Sdk.Api.Models.Customers; +using commercetools.Base.CustomAttributes; +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.Messages +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.CustomerGroupAssignmentAddedMessagePayload))] + public partial interface ICustomerGroupAssignmentAddedMessagePayload : IMessagePayload + { + ICustomerGroupAssignment CustomerGroupAssignment { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/ICustomerGroupAssignmentRemovedMessage.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/ICustomerGroupAssignmentRemovedMessage.cs new file mode 100644 index 00000000000..754fc7d1d5f --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/ICustomerGroupAssignmentRemovedMessage.cs @@ -0,0 +1,12 @@ +using commercetools.Sdk.Api.Models.Customers; +using commercetools.Base.CustomAttributes; +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.Messages +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.CustomerGroupAssignmentRemovedMessage))] + public partial interface ICustomerGroupAssignmentRemovedMessage : IMessage + { + ICustomerGroupAssignment CustomerGroupAssignment { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/ICustomerGroupAssignmentRemovedMessagePayload.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/ICustomerGroupAssignmentRemovedMessagePayload.cs new file mode 100644 index 00000000000..2821d0a5844 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/ICustomerGroupAssignmentRemovedMessagePayload.cs @@ -0,0 +1,12 @@ +using commercetools.Sdk.Api.Models.Customers; +using commercetools.Base.CustomAttributes; +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.Messages +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.CustomerGroupAssignmentRemovedMessagePayload))] + public partial interface ICustomerGroupAssignmentRemovedMessagePayload : IMessagePayload + { + ICustomerGroupAssignment CustomerGroupAssignment { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/ICustomerGroupAssignmentsSetMessage.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/ICustomerGroupAssignmentsSetMessage.cs new file mode 100644 index 00000000000..827e49cd151 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/ICustomerGroupAssignmentsSetMessage.cs @@ -0,0 +1,16 @@ +using commercetools.Sdk.Api.Models.Customers; +using System.Collections.Generic; +using System.Linq; +using commercetools.Base.CustomAttributes; +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.Messages +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.CustomerGroupAssignmentsSetMessage))] + public partial interface ICustomerGroupAssignmentsSetMessage : IMessage + { + IList CustomerGroupAssignments { get; set; } + + IEnumerable CustomerGroupAssignmentsEnumerable { set => CustomerGroupAssignments = value.ToList(); } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/ICustomerGroupAssignmentsSetMessagePayload.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/ICustomerGroupAssignmentsSetMessagePayload.cs new file mode 100644 index 00000000000..275b80e6b6d --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/ICustomerGroupAssignmentsSetMessagePayload.cs @@ -0,0 +1,16 @@ +using commercetools.Sdk.Api.Models.Customers; +using System.Collections.Generic; +using System.Linq; +using commercetools.Base.CustomAttributes; +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.Messages +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.CustomerGroupAssignmentsSetMessagePayload))] + public partial interface ICustomerGroupAssignmentsSetMessagePayload : IMessagePayload + { + IList CustomerGroupAssignments { get; set; } + + IEnumerable CustomerGroupAssignmentsEnumerable { set => CustomerGroupAssignments = value.ToList(); } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/IMessage.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/IMessage.cs index 3ae53bdeab1..6053445f64a 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/IMessage.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/IMessage.cs @@ -88,6 +88,9 @@ namespace commercetools.Sdk.Api.Models.Messages [SubTypeDiscriminator("CustomerEmailTokenCreated", typeof(commercetools.Sdk.Api.Models.Messages.CustomerEmailTokenCreatedMessage))] [SubTypeDiscriminator("CustomerEmailVerified", typeof(commercetools.Sdk.Api.Models.Messages.CustomerEmailVerifiedMessage))] [SubTypeDiscriminator("CustomerFirstNameSet", typeof(commercetools.Sdk.Api.Models.Messages.CustomerFirstNameSetMessage))] + [SubTypeDiscriminator("CustomerGroupAssignmentAdded", typeof(commercetools.Sdk.Api.Models.Messages.CustomerGroupAssignmentAddedMessage))] + [SubTypeDiscriminator("CustomerGroupAssignmentRemoved", typeof(commercetools.Sdk.Api.Models.Messages.CustomerGroupAssignmentRemovedMessage))] + [SubTypeDiscriminator("CustomerGroupAssignmentsSet", typeof(commercetools.Sdk.Api.Models.Messages.CustomerGroupAssignmentsSetMessage))] [SubTypeDiscriminator("CustomerGroupCustomFieldAdded", typeof(commercetools.Sdk.Api.Models.Messages.CustomerGroupCustomFieldAddedMessage))] [SubTypeDiscriminator("CustomerGroupCustomFieldChanged", typeof(commercetools.Sdk.Api.Models.Messages.CustomerGroupCustomFieldChangedMessage))] [SubTypeDiscriminator("CustomerGroupCustomFieldRemoved", typeof(commercetools.Sdk.Api.Models.Messages.CustomerGroupCustomFieldRemovedMessage))] @@ -768,6 +771,24 @@ static commercetools.Sdk.Api.Models.Messages.CustomerFirstNameSetMessage Custome init?.Invoke(t); return t; } + static commercetools.Sdk.Api.Models.Messages.CustomerGroupAssignmentAddedMessage CustomerGroupAssignmentAdded(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.Messages.CustomerGroupAssignmentAddedMessage(); + init?.Invoke(t); + return t; + } + static commercetools.Sdk.Api.Models.Messages.CustomerGroupAssignmentRemovedMessage CustomerGroupAssignmentRemoved(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.Messages.CustomerGroupAssignmentRemovedMessage(); + init?.Invoke(t); + return t; + } + static commercetools.Sdk.Api.Models.Messages.CustomerGroupAssignmentsSetMessage CustomerGroupAssignmentsSet(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.Messages.CustomerGroupAssignmentsSetMessage(); + init?.Invoke(t); + return t; + } static commercetools.Sdk.Api.Models.Messages.CustomerGroupCustomFieldAddedMessage CustomerGroupCustomFieldAdded(Action init = null) { var t = new commercetools.Sdk.Api.Models.Messages.CustomerGroupCustomFieldAddedMessage(); diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/IMessagePayload.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/IMessagePayload.cs index 67f8ac1ca28..f7da8e26a12 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/IMessagePayload.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/IMessagePayload.cs @@ -87,6 +87,9 @@ namespace commercetools.Sdk.Api.Models.Messages [SubTypeDiscriminator("CustomerEmailTokenCreated", typeof(commercetools.Sdk.Api.Models.Messages.CustomerEmailTokenCreatedMessagePayload))] [SubTypeDiscriminator("CustomerEmailVerified", typeof(commercetools.Sdk.Api.Models.Messages.CustomerEmailVerifiedMessagePayload))] [SubTypeDiscriminator("CustomerFirstNameSet", typeof(commercetools.Sdk.Api.Models.Messages.CustomerFirstNameSetMessagePayload))] + [SubTypeDiscriminator("CustomerGroupAssignmentAdded", typeof(commercetools.Sdk.Api.Models.Messages.CustomerGroupAssignmentAddedMessagePayload))] + [SubTypeDiscriminator("CustomerGroupAssignmentRemoved", typeof(commercetools.Sdk.Api.Models.Messages.CustomerGroupAssignmentRemovedMessagePayload))] + [SubTypeDiscriminator("CustomerGroupAssignmentsSet", typeof(commercetools.Sdk.Api.Models.Messages.CustomerGroupAssignmentsSetMessagePayload))] [SubTypeDiscriminator("CustomerGroupCustomFieldAdded", typeof(commercetools.Sdk.Api.Models.Messages.CustomerGroupCustomFieldAddedMessagePayload))] [SubTypeDiscriminator("CustomerGroupCustomFieldChanged", typeof(commercetools.Sdk.Api.Models.Messages.CustomerGroupCustomFieldChangedMessagePayload))] [SubTypeDiscriminator("CustomerGroupCustomFieldRemoved", typeof(commercetools.Sdk.Api.Models.Messages.CustomerGroupCustomFieldRemovedMessagePayload))] @@ -748,6 +751,24 @@ static commercetools.Sdk.Api.Models.Messages.CustomerFirstNameSetMessagePayload init?.Invoke(t); return t; } + static commercetools.Sdk.Api.Models.Messages.CustomerGroupAssignmentAddedMessagePayload CustomerGroupAssignmentAdded(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.Messages.CustomerGroupAssignmentAddedMessagePayload(); + init?.Invoke(t); + return t; + } + static commercetools.Sdk.Api.Models.Messages.CustomerGroupAssignmentRemovedMessagePayload CustomerGroupAssignmentRemoved(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.Messages.CustomerGroupAssignmentRemovedMessagePayload(); + init?.Invoke(t); + return t; + } + static commercetools.Sdk.Api.Models.Messages.CustomerGroupAssignmentsSetMessagePayload CustomerGroupAssignmentsSet(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.Messages.CustomerGroupAssignmentsSetMessagePayload(); + init?.Invoke(t); + return t; + } static commercetools.Sdk.Api.Models.Messages.CustomerGroupCustomFieldAddedMessagePayload CustomerGroupCustomFieldAdded(Action init = null) { var t = new commercetools.Sdk.Api.Models.Messages.CustomerGroupCustomFieldAddedMessagePayload(); diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ProductSearches/IProductSearchProjectionParams.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ProductSearches/IProductSearchProjectionParams.cs index 9f05b909294..d2b875717bb 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ProductSearches/IProductSearchProjectionParams.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ProductSearches/IProductSearchProjectionParams.cs @@ -19,6 +19,10 @@ public partial interface IProductSearchProjectionParams string PriceCustomerGroup { get; set; } + IList PriceCustomerGroupAssignments { get; set; } + + IEnumerable PriceCustomerGroupAssignmentsEnumerable { set => PriceCustomerGroupAssignments = value.ToList(); } + string PriceChannel { get; set; } IList LocaleProjection { get; set; } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ProductSearches/ProductSearchProjectionParams.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ProductSearches/ProductSearchProjectionParams.cs index 4a94bb9c78e..190a27865bf 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ProductSearches/ProductSearchProjectionParams.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ProductSearches/ProductSearchProjectionParams.cs @@ -18,6 +18,10 @@ public partial class ProductSearchProjectionParams : IProductSearchProjectionPar public string PriceCustomerGroup { get; set; } + public IList PriceCustomerGroupAssignments { get; set; } + + public IEnumerable PriceCustomerGroupAssignmentsEnumerable { set => PriceCustomerGroupAssignments = value.ToList(); } + public string PriceChannel { get; set; } public IList LocaleProjection { get; set; } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Customers/CustomerAddCustomerGroupAssignmentActionQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Customers/CustomerAddCustomerGroupAssignmentActionQueryBuilderDsl.cs new file mode 100644 index 00000000000..a77e740414f --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Customers/CustomerAddCustomerGroupAssignmentActionQueryBuilderDsl.cs @@ -0,0 +1,35 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.Customers +{ + + public partial class CustomerAddCustomerGroupAssignmentActionQueryBuilderDsl + { + public CustomerAddCustomerGroupAssignmentActionQueryBuilderDsl() + { + } + + public static CustomerAddCustomerGroupAssignmentActionQueryBuilderDsl Of() + { + return new CustomerAddCustomerGroupAssignmentActionQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Action() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("action")), + p => new CombinationQueryPredicate(p, CustomerAddCustomerGroupAssignmentActionQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate CustomerGroupAssignment( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("customerGroupAssignment")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Customers.CustomerGroupAssignmentDraftQueryBuilderDsl.Of())), + CustomerAddCustomerGroupAssignmentActionQueryBuilderDsl.Of); + } + + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Customers/CustomerDraftQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Customers/CustomerDraftQueryBuilderDsl.cs index 5da71726a85..d2685eaf1be 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Customers/CustomerDraftQueryBuilderDsl.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Customers/CustomerDraftQueryBuilderDsl.cs @@ -201,6 +201,19 @@ public IComparisonPredicateBuilder Authent p => new CombinationQueryPredicate(p, CustomerDraftQueryBuilderDsl.Of), PredicateFormatter.Format); } + public CombinationQueryPredicate CustomerGroupAssignments( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("customerGroupAssignments")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Customers.CustomerGroupAssignmentDraftQueryBuilderDsl.Of())), + CustomerDraftQueryBuilderDsl.Of); + } + public ICollectionPredicateBuilder CustomerGroupAssignments() + { + return new CollectionPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("customerGroupAssignments")), + p => new CombinationQueryPredicate(p, CustomerDraftQueryBuilderDsl.Of)); + } } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Customers/CustomerGroupAssignmentDraftQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Customers/CustomerGroupAssignmentDraftQueryBuilderDsl.cs new file mode 100644 index 00000000000..90707741693 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Customers/CustomerGroupAssignmentDraftQueryBuilderDsl.cs @@ -0,0 +1,29 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.Customers +{ + + public partial class CustomerGroupAssignmentDraftQueryBuilderDsl + { + public CustomerGroupAssignmentDraftQueryBuilderDsl() + { + } + + public static CustomerGroupAssignmentDraftQueryBuilderDsl Of() + { + return new CustomerGroupAssignmentDraftQueryBuilderDsl(); + } + + public CombinationQueryPredicate CustomerGroup( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("customerGroup")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.CustomerGroups.CustomerGroupResourceIdentifierQueryBuilderDsl.Of())), + CustomerGroupAssignmentDraftQueryBuilderDsl.Of); + } + + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Customers/CustomerGroupAssignmentQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Customers/CustomerGroupAssignmentQueryBuilderDsl.cs new file mode 100644 index 00000000000..bda37be3aa6 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Customers/CustomerGroupAssignmentQueryBuilderDsl.cs @@ -0,0 +1,29 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.Customers +{ + + public partial class CustomerGroupAssignmentQueryBuilderDsl + { + public CustomerGroupAssignmentQueryBuilderDsl() + { + } + + public static CustomerGroupAssignmentQueryBuilderDsl Of() + { + return new CustomerGroupAssignmentQueryBuilderDsl(); + } + + public CombinationQueryPredicate CustomerGroup( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("customerGroup")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.CustomerGroups.CustomerGroupReferenceQueryBuilderDsl.Of())), + CustomerGroupAssignmentQueryBuilderDsl.Of); + } + + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Customers/CustomerQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Customers/CustomerQueryBuilderDsl.cs index b676e5c46c5..e20caa15ec3 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Customers/CustomerQueryBuilderDsl.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Customers/CustomerQueryBuilderDsl.cs @@ -222,6 +222,19 @@ public IComparisonPredicateBuilder Authenticati p => new CombinationQueryPredicate(p, CustomerQueryBuilderDsl.Of), PredicateFormatter.Format); } + public CombinationQueryPredicate CustomerGroupAssignments( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("customerGroupAssignments")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Customers.CustomerGroupAssignmentQueryBuilderDsl.Of())), + CustomerQueryBuilderDsl.Of); + } + public ICollectionPredicateBuilder CustomerGroupAssignments() + { + return new CollectionPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("customerGroupAssignments")), + p => new CombinationQueryPredicate(p, CustomerQueryBuilderDsl.Of)); + } } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Customers/CustomerRemoveCustomerGroupAssignmentActionQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Customers/CustomerRemoveCustomerGroupAssignmentActionQueryBuilderDsl.cs new file mode 100644 index 00000000000..5429b10fae9 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Customers/CustomerRemoveCustomerGroupAssignmentActionQueryBuilderDsl.cs @@ -0,0 +1,35 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.Customers +{ + + public partial class CustomerRemoveCustomerGroupAssignmentActionQueryBuilderDsl + { + public CustomerRemoveCustomerGroupAssignmentActionQueryBuilderDsl() + { + } + + public static CustomerRemoveCustomerGroupAssignmentActionQueryBuilderDsl Of() + { + return new CustomerRemoveCustomerGroupAssignmentActionQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Action() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("action")), + p => new CombinationQueryPredicate(p, CustomerRemoveCustomerGroupAssignmentActionQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate CustomerGroup( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("customerGroup")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.CustomerGroups.CustomerGroupResourceIdentifierQueryBuilderDsl.Of())), + CustomerRemoveCustomerGroupAssignmentActionQueryBuilderDsl.Of); + } + + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Customers/CustomerSetCustomerGroupAssignmentsActionQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Customers/CustomerSetCustomerGroupAssignmentsActionQueryBuilderDsl.cs new file mode 100644 index 00000000000..d3be0194244 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Customers/CustomerSetCustomerGroupAssignmentsActionQueryBuilderDsl.cs @@ -0,0 +1,39 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.Customers +{ + + public partial class CustomerSetCustomerGroupAssignmentsActionQueryBuilderDsl + { + public CustomerSetCustomerGroupAssignmentsActionQueryBuilderDsl() + { + } + + public static CustomerSetCustomerGroupAssignmentsActionQueryBuilderDsl Of() + { + return new CustomerSetCustomerGroupAssignmentsActionQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Action() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("action")), + p => new CombinationQueryPredicate(p, CustomerSetCustomerGroupAssignmentsActionQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate CustomerGroupAssignments( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("customerGroupAssignments")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Customers.CustomerGroupAssignmentDraftQueryBuilderDsl.Of())), + CustomerSetCustomerGroupAssignmentsActionQueryBuilderDsl.Of); + } + public ICollectionPredicateBuilder CustomerGroupAssignments() + { + return new CollectionPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("customerGroupAssignments")), + p => new CombinationQueryPredicate(p, CustomerSetCustomerGroupAssignmentsActionQueryBuilderDsl.Of)); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Customers/CustomerUpdateActionQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Customers/CustomerUpdateActionQueryBuilderDsl.cs index 0b5778c63a5..012dd5e045a 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Customers/CustomerUpdateActionQueryBuilderDsl.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Customers/CustomerUpdateActionQueryBuilderDsl.cs @@ -34,6 +34,12 @@ public CombinationQueryPredicate AsAddBilli return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Customers.CustomerAddBillingAddressIdActionQueryBuilderDsl.Of()), CustomerUpdateActionQueryBuilderDsl.Of); } + public CombinationQueryPredicate AsAddCustomerGroupAssignment( + Func> fn) + { + return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Customers.CustomerAddCustomerGroupAssignmentActionQueryBuilderDsl.Of()), + CustomerUpdateActionQueryBuilderDsl.Of); + } public CombinationQueryPredicate AsAddShippingAddressId( Func> fn) { @@ -70,6 +76,12 @@ public CombinationQueryPredicate AsRemoveBi return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Customers.CustomerRemoveBillingAddressIdActionQueryBuilderDsl.Of()), CustomerUpdateActionQueryBuilderDsl.Of); } + public CombinationQueryPredicate AsRemoveCustomerGroupAssignment( + Func> fn) + { + return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Customers.CustomerRemoveCustomerGroupAssignmentActionQueryBuilderDsl.Of()), + CustomerUpdateActionQueryBuilderDsl.Of); + } public CombinationQueryPredicate AsRemoveShippingAddressId( Func> fn) { @@ -124,6 +136,12 @@ public CombinationQueryPredicate AsSetCusto return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Customers.CustomerSetCustomerGroupActionQueryBuilderDsl.Of()), CustomerUpdateActionQueryBuilderDsl.Of); } + public CombinationQueryPredicate AsSetCustomerGroupAssignments( + Func> fn) + { + return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Customers.CustomerSetCustomerGroupAssignmentsActionQueryBuilderDsl.Of()), + CustomerUpdateActionQueryBuilderDsl.Of); + } public CombinationQueryPredicate AsSetCustomerNumber( Func> fn) { diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/CustomerGroupAssignmentAddedMessagePayloadQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/CustomerGroupAssignmentAddedMessagePayloadQueryBuilderDsl.cs new file mode 100644 index 00000000000..c5e06ea5f00 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/CustomerGroupAssignmentAddedMessagePayloadQueryBuilderDsl.cs @@ -0,0 +1,35 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.Messages +{ + + public partial class CustomerGroupAssignmentAddedMessagePayloadQueryBuilderDsl + { + public CustomerGroupAssignmentAddedMessagePayloadQueryBuilderDsl() + { + } + + public static CustomerGroupAssignmentAddedMessagePayloadQueryBuilderDsl Of() + { + return new CustomerGroupAssignmentAddedMessagePayloadQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Type() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("type")), + p => new CombinationQueryPredicate(p, CustomerGroupAssignmentAddedMessagePayloadQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate CustomerGroupAssignment( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("customerGroupAssignment")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Customers.CustomerGroupAssignmentQueryBuilderDsl.Of())), + CustomerGroupAssignmentAddedMessagePayloadQueryBuilderDsl.Of); + } + + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/CustomerGroupAssignmentAddedMessageQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/CustomerGroupAssignmentAddedMessageQueryBuilderDsl.cs new file mode 100644 index 00000000000..b6e27bbe716 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/CustomerGroupAssignmentAddedMessageQueryBuilderDsl.cs @@ -0,0 +1,107 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.Messages +{ + + public partial class CustomerGroupAssignmentAddedMessageQueryBuilderDsl + { + public CustomerGroupAssignmentAddedMessageQueryBuilderDsl() + { + } + + public static CustomerGroupAssignmentAddedMessageQueryBuilderDsl Of() + { + return new CustomerGroupAssignmentAddedMessageQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Id() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("id")), + p => new CombinationQueryPredicate(p, CustomerGroupAssignmentAddedMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Version() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("version")), + p => new CombinationQueryPredicate(p, CustomerGroupAssignmentAddedMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder CreatedAt() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("createdAt")), + p => new CombinationQueryPredicate(p, CustomerGroupAssignmentAddedMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder LastModifiedAt() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("lastModifiedAt")), + p => new CombinationQueryPredicate(p, CustomerGroupAssignmentAddedMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate LastModifiedBy( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("lastModifiedBy")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.LastModifiedByQueryBuilderDsl.Of())), + CustomerGroupAssignmentAddedMessageQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate CreatedBy( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("createdBy")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.CreatedByQueryBuilderDsl.Of())), + CustomerGroupAssignmentAddedMessageQueryBuilderDsl.Of); + } + + public IComparisonPredicateBuilder SequenceNumber() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("sequenceNumber")), + p => new CombinationQueryPredicate(p, CustomerGroupAssignmentAddedMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate Resource( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("resource")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.ReferenceQueryBuilderDsl.Of())), + CustomerGroupAssignmentAddedMessageQueryBuilderDsl.Of); + } + + public IComparisonPredicateBuilder ResourceVersion() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("resourceVersion")), + p => new CombinationQueryPredicate(p, CustomerGroupAssignmentAddedMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Type() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("type")), + p => new CombinationQueryPredicate(p, CustomerGroupAssignmentAddedMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate ResourceUserProvidedIdentifiers( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("resourceUserProvidedIdentifiers")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Messages.UserProvidedIdentifiersQueryBuilderDsl.Of())), + CustomerGroupAssignmentAddedMessageQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate CustomerGroupAssignment( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("customerGroupAssignment")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Customers.CustomerGroupAssignmentQueryBuilderDsl.Of())), + CustomerGroupAssignmentAddedMessageQueryBuilderDsl.Of); + } + + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/CustomerGroupAssignmentRemovedMessagePayloadQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/CustomerGroupAssignmentRemovedMessagePayloadQueryBuilderDsl.cs new file mode 100644 index 00000000000..3550c683385 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/CustomerGroupAssignmentRemovedMessagePayloadQueryBuilderDsl.cs @@ -0,0 +1,35 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.Messages +{ + + public partial class CustomerGroupAssignmentRemovedMessagePayloadQueryBuilderDsl + { + public CustomerGroupAssignmentRemovedMessagePayloadQueryBuilderDsl() + { + } + + public static CustomerGroupAssignmentRemovedMessagePayloadQueryBuilderDsl Of() + { + return new CustomerGroupAssignmentRemovedMessagePayloadQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Type() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("type")), + p => new CombinationQueryPredicate(p, CustomerGroupAssignmentRemovedMessagePayloadQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate CustomerGroupAssignment( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("customerGroupAssignment")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Customers.CustomerGroupAssignmentQueryBuilderDsl.Of())), + CustomerGroupAssignmentRemovedMessagePayloadQueryBuilderDsl.Of); + } + + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/CustomerGroupAssignmentRemovedMessageQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/CustomerGroupAssignmentRemovedMessageQueryBuilderDsl.cs new file mode 100644 index 00000000000..364ffb694fe --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/CustomerGroupAssignmentRemovedMessageQueryBuilderDsl.cs @@ -0,0 +1,107 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.Messages +{ + + public partial class CustomerGroupAssignmentRemovedMessageQueryBuilderDsl + { + public CustomerGroupAssignmentRemovedMessageQueryBuilderDsl() + { + } + + public static CustomerGroupAssignmentRemovedMessageQueryBuilderDsl Of() + { + return new CustomerGroupAssignmentRemovedMessageQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Id() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("id")), + p => new CombinationQueryPredicate(p, CustomerGroupAssignmentRemovedMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Version() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("version")), + p => new CombinationQueryPredicate(p, CustomerGroupAssignmentRemovedMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder CreatedAt() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("createdAt")), + p => new CombinationQueryPredicate(p, CustomerGroupAssignmentRemovedMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder LastModifiedAt() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("lastModifiedAt")), + p => new CombinationQueryPredicate(p, CustomerGroupAssignmentRemovedMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate LastModifiedBy( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("lastModifiedBy")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.LastModifiedByQueryBuilderDsl.Of())), + CustomerGroupAssignmentRemovedMessageQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate CreatedBy( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("createdBy")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.CreatedByQueryBuilderDsl.Of())), + CustomerGroupAssignmentRemovedMessageQueryBuilderDsl.Of); + } + + public IComparisonPredicateBuilder SequenceNumber() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("sequenceNumber")), + p => new CombinationQueryPredicate(p, CustomerGroupAssignmentRemovedMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate Resource( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("resource")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.ReferenceQueryBuilderDsl.Of())), + CustomerGroupAssignmentRemovedMessageQueryBuilderDsl.Of); + } + + public IComparisonPredicateBuilder ResourceVersion() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("resourceVersion")), + p => new CombinationQueryPredicate(p, CustomerGroupAssignmentRemovedMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Type() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("type")), + p => new CombinationQueryPredicate(p, CustomerGroupAssignmentRemovedMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate ResourceUserProvidedIdentifiers( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("resourceUserProvidedIdentifiers")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Messages.UserProvidedIdentifiersQueryBuilderDsl.Of())), + CustomerGroupAssignmentRemovedMessageQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate CustomerGroupAssignment( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("customerGroupAssignment")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Customers.CustomerGroupAssignmentQueryBuilderDsl.Of())), + CustomerGroupAssignmentRemovedMessageQueryBuilderDsl.Of); + } + + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/CustomerGroupAssignmentsSetMessagePayloadQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/CustomerGroupAssignmentsSetMessagePayloadQueryBuilderDsl.cs new file mode 100644 index 00000000000..bf4756ac4e0 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/CustomerGroupAssignmentsSetMessagePayloadQueryBuilderDsl.cs @@ -0,0 +1,39 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.Messages +{ + + public partial class CustomerGroupAssignmentsSetMessagePayloadQueryBuilderDsl + { + public CustomerGroupAssignmentsSetMessagePayloadQueryBuilderDsl() + { + } + + public static CustomerGroupAssignmentsSetMessagePayloadQueryBuilderDsl Of() + { + return new CustomerGroupAssignmentsSetMessagePayloadQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Type() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("type")), + p => new CombinationQueryPredicate(p, CustomerGroupAssignmentsSetMessagePayloadQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate CustomerGroupAssignments( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("customerGroupAssignments")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Customers.CustomerGroupAssignmentQueryBuilderDsl.Of())), + CustomerGroupAssignmentsSetMessagePayloadQueryBuilderDsl.Of); + } + public ICollectionPredicateBuilder CustomerGroupAssignments() + { + return new CollectionPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("customerGroupAssignments")), + p => new CombinationQueryPredicate(p, CustomerGroupAssignmentsSetMessagePayloadQueryBuilderDsl.Of)); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/CustomerGroupAssignmentsSetMessageQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/CustomerGroupAssignmentsSetMessageQueryBuilderDsl.cs new file mode 100644 index 00000000000..e9ddcc2b0cc --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/CustomerGroupAssignmentsSetMessageQueryBuilderDsl.cs @@ -0,0 +1,111 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.Messages +{ + + public partial class CustomerGroupAssignmentsSetMessageQueryBuilderDsl + { + public CustomerGroupAssignmentsSetMessageQueryBuilderDsl() + { + } + + public static CustomerGroupAssignmentsSetMessageQueryBuilderDsl Of() + { + return new CustomerGroupAssignmentsSetMessageQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Id() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("id")), + p => new CombinationQueryPredicate(p, CustomerGroupAssignmentsSetMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Version() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("version")), + p => new CombinationQueryPredicate(p, CustomerGroupAssignmentsSetMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder CreatedAt() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("createdAt")), + p => new CombinationQueryPredicate(p, CustomerGroupAssignmentsSetMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder LastModifiedAt() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("lastModifiedAt")), + p => new CombinationQueryPredicate(p, CustomerGroupAssignmentsSetMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate LastModifiedBy( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("lastModifiedBy")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.LastModifiedByQueryBuilderDsl.Of())), + CustomerGroupAssignmentsSetMessageQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate CreatedBy( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("createdBy")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.CreatedByQueryBuilderDsl.Of())), + CustomerGroupAssignmentsSetMessageQueryBuilderDsl.Of); + } + + public IComparisonPredicateBuilder SequenceNumber() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("sequenceNumber")), + p => new CombinationQueryPredicate(p, CustomerGroupAssignmentsSetMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate Resource( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("resource")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.ReferenceQueryBuilderDsl.Of())), + CustomerGroupAssignmentsSetMessageQueryBuilderDsl.Of); + } + + public IComparisonPredicateBuilder ResourceVersion() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("resourceVersion")), + p => new CombinationQueryPredicate(p, CustomerGroupAssignmentsSetMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Type() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("type")), + p => new CombinationQueryPredicate(p, CustomerGroupAssignmentsSetMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate ResourceUserProvidedIdentifiers( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("resourceUserProvidedIdentifiers")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Messages.UserProvidedIdentifiersQueryBuilderDsl.Of())), + CustomerGroupAssignmentsSetMessageQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate CustomerGroupAssignments( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("customerGroupAssignments")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Customers.CustomerGroupAssignmentQueryBuilderDsl.Of())), + CustomerGroupAssignmentsSetMessageQueryBuilderDsl.Of); + } + public ICollectionPredicateBuilder CustomerGroupAssignments() + { + return new CollectionPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("customerGroupAssignments")), + p => new CombinationQueryPredicate(p, CustomerGroupAssignmentsSetMessageQueryBuilderDsl.Of)); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/MessagePayloadQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/MessagePayloadQueryBuilderDsl.cs index c6e326954a8..59e817e9854 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/MessagePayloadQueryBuilderDsl.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/MessagePayloadQueryBuilderDsl.cs @@ -514,6 +514,24 @@ public CombinationQueryPredicate AsCustomerFirstN return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Messages.CustomerFirstNameSetMessagePayloadQueryBuilderDsl.Of()), MessagePayloadQueryBuilderDsl.Of); } + public CombinationQueryPredicate AsCustomerGroupAssignmentAdded( + Func> fn) + { + return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Messages.CustomerGroupAssignmentAddedMessagePayloadQueryBuilderDsl.Of()), + MessagePayloadQueryBuilderDsl.Of); + } + public CombinationQueryPredicate AsCustomerGroupAssignmentRemoved( + Func> fn) + { + return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Messages.CustomerGroupAssignmentRemovedMessagePayloadQueryBuilderDsl.Of()), + MessagePayloadQueryBuilderDsl.Of); + } + public CombinationQueryPredicate AsCustomerGroupAssignmentsSet( + Func> fn) + { + return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Messages.CustomerGroupAssignmentsSetMessagePayloadQueryBuilderDsl.Of()), + MessagePayloadQueryBuilderDsl.Of); + } public CombinationQueryPredicate AsCustomerGroupCustomFieldAdded( Func> fn) { diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/MessageQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/MessageQueryBuilderDsl.cs index e6e0e7c4069..a0854ffad71 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/MessageQueryBuilderDsl.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/MessageQueryBuilderDsl.cs @@ -586,6 +586,24 @@ public CombinationQueryPredicate AsCustomerFirstNameSet( return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Messages.CustomerFirstNameSetMessageQueryBuilderDsl.Of()), MessageQueryBuilderDsl.Of); } + public CombinationQueryPredicate AsCustomerGroupAssignmentAdded( + Func> fn) + { + return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Messages.CustomerGroupAssignmentAddedMessageQueryBuilderDsl.Of()), + MessageQueryBuilderDsl.Of); + } + public CombinationQueryPredicate AsCustomerGroupAssignmentRemoved( + Func> fn) + { + return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Messages.CustomerGroupAssignmentRemovedMessageQueryBuilderDsl.Of()), + MessageQueryBuilderDsl.Of); + } + public CombinationQueryPredicate AsCustomerGroupAssignmentsSet( + Func> fn) + { + return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Messages.CustomerGroupAssignmentsSetMessageQueryBuilderDsl.Of()), + MessageQueryBuilderDsl.Of); + } public CombinationQueryPredicate AsCustomerGroupCustomFieldAdded( Func> fn) { diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductSearches/ProductSearchProjectionParamsQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductSearches/ProductSearchProjectionParamsQueryBuilderDsl.cs index 698aca3219c..e73b16b3c41 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductSearches/ProductSearchProjectionParamsQueryBuilderDsl.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductSearches/ProductSearchProjectionParamsQueryBuilderDsl.cs @@ -43,6 +43,12 @@ public IComparisonPredicateBuilder new CombinationQueryPredicate(p, ProductSearchProjectionParamsQueryBuilderDsl.Of), PredicateFormatter.Format); } + public IComparableCollectionPredicateBuilder PriceCustomerGroupAssignments() + { + return new ComparableCollectionPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("priceCustomerGroupAssignments")), + p => new CombinationQueryPredicate(p, ProductSearchProjectionParamsQueryBuilderDsl.Of), + PredicateFormatter.Format); + } public IComparisonPredicateBuilder PriceChannel() { return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("priceChannel")), diff --git a/commercetools.Sdk/commercetools.Sdk.GraphQL.Api/schema.graphqls b/commercetools.Sdk/commercetools.Sdk.GraphQL.Api/schema.graphqls index 714b7c4cf40..20ee42b286b 100644 --- a/commercetools.Sdk/commercetools.Sdk.GraphQL.Api/schema.graphqls +++ b/commercetools.Sdk/commercetools.Sdk.GraphQL.Api/schema.graphqls @@ -198,6 +198,11 @@ input AddCustomerBillingAddressId { addressKey: String } +"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" +input AddCustomerGroupAssignment { + customerGroupAssignment: CustomerGroupAssignmentDraft! +} + input AddCustomerShippingAddressId { addressId: String addressKey: String @@ -3521,6 +3526,9 @@ type Customer implements Versioned & ReferenceExpandable { billingAddresses: [Address!]! storesRef: [KeyReference!]! stores: [Store!]! + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" + customerGroupAssignments: [CustomerGroupAssignment!] custom: CustomFieldsType id: String! version: Long! @@ -3677,6 +3685,35 @@ type CustomerGroup implements Versioned & ReferenceExpandable { lastModifiedBy: Initiator } +"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" +type CustomerGroupAssignment { + customerGroupRef: Reference + customerGroup: CustomerGroup +} + +"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" +type CustomerGroupAssignmentAdded implements MessagePayload { + customerGroupAssignment: CustomerGroupAssignment! + type: String! +} + +"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" +input CustomerGroupAssignmentDraft { + customerGroup: ResourceIdentifierInput! +} + +"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" +type CustomerGroupAssignmentRemoved implements MessagePayload { + customerGroupAssignment: CustomerGroupAssignment! + type: String! +} + +"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" +type CustomerGroupAssignmentsSet implements MessagePayload { + customerGroupAssignments: [CustomerGroupAssignment!]! + type: String! +} + type CustomerGroupCustomFieldAdded implements MessagePayload { name: String! value: Json! @@ -3910,6 +3947,9 @@ input CustomerSignUpDraft { anonymousCart: ResourceIdentifierInput externalId: String customerGroup: ResourceIdentifierInput + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" + customerGroupAssignments: [CustomerGroupAssignmentDraft!] isEmailVerified: Boolean anonymousId: String authenticationMode: AuthenticationMode @@ -3923,12 +3963,18 @@ type CustomerTitleSet implements MessagePayload { input CustomerUpdateAction { addAddress: AddCustomerAddress addBillingAddressId: AddCustomerBillingAddressId + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" + addCustomerGroupAssignment: AddCustomerGroupAssignment addShippingAddressId: AddCustomerShippingAddressId addStore: AddCustomerStore changeAddress: ChangeCustomerAddress changeEmail: ChangeCustomerEmail removeAddress: RemoveCustomerAddress removeBillingAddressId: RemoveCustomerBillingAddressId + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" + removeCustomerGroupAssignment: RemoveCustomerGroupAssignment removeShippingAddressId: RemoveCustomerShippingAddressId removeStore: RemoveCustomerStore setCompanyName: SetCustomerCompanyName @@ -3938,6 +3984,9 @@ input CustomerUpdateAction { setCustomField: SetCustomerCustomField setCustomType: SetCustomerCustomType setCustomerGroup: SetCustomerGroup + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" + setCustomerGroupAssignments: SetCustomerGroupAssignments setKey: SetCustomerKey setLocale: SetCustomerLocale setCustomerNumber: SetCustomerNumber @@ -8999,7 +9048,7 @@ type ProductVariant { prices: [ProductPrice!] "Returns a single price based on the price selection rules." - price(currency: Currency!, country: Country, customerGroupId: String, channelId: String, date: DateTime): ProductPrice + price(currency: Currency!, country: Country, customerGroupId: String, customerGroupAssignmentIds: [String!], channelId: String, date: DateTime): ProductPrice images: [Image!]! assets: [Asset!]! availability: ProductVariantAvailabilityWithChannels @@ -10050,6 +10099,11 @@ input RemoveCustomerBillingAddressId { addressKey: String } +"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" +input RemoveCustomerGroupAssignment { + customerGroup: ResourceIdentifierInput! +} + input RemoveCustomerShippingAddressId { addressId: String addressKey: String @@ -11289,6 +11343,11 @@ input SetCustomerGroup { customerGroup: ResourceIdentifierInput } +"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" +input SetCustomerGroupAssignments { + customerGroupAssignments: [CustomerGroupAssignmentDraft!]! +} + input SetCustomerGroupCustomField { name: String! value: String diff --git a/reference.txt b/reference.txt new file mode 100644 index 00000000000..46e88e181cb --- /dev/null +++ b/reference.txt @@ -0,0 +1 @@ +83cd8adc6f390f5621bc908ec4482f74baabdba0 diff --git a/references.txt b/references.txt index d50e299a783..fe19aab19c3 100644 --- a/references.txt +++ b/references.txt @@ -325,3 +325,4 @@ bc499c5a4815716efc119199dd274dc72f538a36 020bd279b2cc54072bf692d0654c883d73ade338 a4fe92e28e967d91ddaad6750b6434a65949b840 7682e166db2a6b16fdafcbbdbf04bfd470b20c6d +ffa8644c871728467258443ffb54707031865c44