From bba089a01dc1c37eddfa2a39635417b91b1a0778 Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Mon, 10 Feb 2025 21:25:59 +0000 Subject: [PATCH] build(codegen): updating SDK --- changes.md | 34 ++ .../main/resources/graphql/schema.graphqls | 2 +- ...eyByStoreKeyProductProjectionsByIDGet.java | 93 ++++ ...StoreKeyProductProjectionsKeyByKeyGet.java | 93 ++++ ...ByProjectKeyProductProjectionsByIDGet.java | 91 ++++ .../ByProjectKeyProductProjectionsGet.java | 91 ++++ ...ojectKeyProductProjectionsKeyByKeyGet.java | 92 ++++ ...ProjectKeyProductProjectionsSearchGet.java | 91 ++++ .../ByProjectKeyProductsByIDDelete.java | 91 ++++ .../client/ByProjectKeyProductsByIDGet.java | 91 ++++ .../client/ByProjectKeyProductsByIDPost.java | 91 ++++ .../ByProjectKeyProductsByIDPostString.java | 91 ++++ .../api/client/ByProjectKeyProductsGet.java | 89 +++ .../ByProjectKeyProductsKeyByKeyDelete.java | 91 ++++ .../ByProjectKeyProductsKeyByKeyGet.java | 91 ++++ .../ByProjectKeyProductsKeyByKeyPost.java | 91 ++++ ...yProjectKeyProductsKeyByKeyPostString.java | 91 ++++ .../api/client/ByProjectKeyProductsPost.java | 89 +++ .../ByProjectKeyProductsPostString.java | 91 ++++ .../api/client/PriceselectingTrait.java | 18 + .../api/models/customer/Customer.java | 29 + ...tomerAddCustomerGroupAssignmentAction.java | 133 +++++ ...dCustomerGroupAssignmentActionBuilder.java | 114 ++++ ...rAddCustomerGroupAssignmentActionImpl.java | 97 ++++ .../api/models/customer/CustomerBuilder.java | 113 +++- .../api/models/customer/CustomerDraft.java | 29 + .../models/customer/CustomerDraftBuilder.java | 111 +++- .../models/customer/CustomerDraftImpl.java | 28 +- .../customer/CustomerGroupAssignment.java | 126 +++++ .../CustomerGroupAssignmentBuilder.java | 111 ++++ .../CustomerGroupAssignmentDraft.java | 126 +++++ .../CustomerGroupAssignmentDraftBuilder.java | 111 ++++ .../CustomerGroupAssignmentDraftImpl.java | 81 +++ .../customer/CustomerGroupAssignmentImpl.java | 81 +++ .../api/models/customer/CustomerImpl.java | 28 +- ...erRemoveCustomerGroupAssignmentAction.java | 135 +++++ ...eCustomerGroupAssignmentActionBuilder.java | 114 ++++ ...moveCustomerGroupAssignmentActionImpl.java | 97 ++++ ...omerSetCustomerGroupAssignmentsAction.java | 146 +++++ ...CustomerGroupAssignmentsActionBuilder.java | 168 ++++++ ...SetCustomerGroupAssignmentsActionImpl.java | 102 ++++ .../models/customer/CustomerUpdateAction.java | 39 ++ .../customer/CustomerUpdateActionBuilder.java | 12 + .../CustomerGroupAssignmentAddedMessage.java | 162 ++++++ ...merGroupAssignmentAddedMessageBuilder.java | 462 ++++++++++++++++ ...stomerGroupAssignmentAddedMessageImpl.java | 298 ++++++++++ ...merGroupAssignmentAddedMessagePayload.java | 135 +++++ ...pAssignmentAddedMessagePayloadBuilder.java | 114 ++++ ...roupAssignmentAddedMessagePayloadImpl.java | 97 ++++ ...CustomerGroupAssignmentRemovedMessage.java | 162 ++++++ ...rGroupAssignmentRemovedMessageBuilder.java | 463 ++++++++++++++++ ...omerGroupAssignmentRemovedMessageImpl.java | 298 ++++++++++ ...rGroupAssignmentRemovedMessagePayload.java | 135 +++++ ...ssignmentRemovedMessagePayloadBuilder.java | 114 ++++ ...upAssignmentRemovedMessagePayloadImpl.java | 97 ++++ .../CustomerGroupAssignmentsSetMessage.java | 170 ++++++ ...omerGroupAssignmentsSetMessageBuilder.java | 515 ++++++++++++++++++ ...ustomerGroupAssignmentsSetMessageImpl.java | 303 +++++++++++ ...omerGroupAssignmentsSetMessagePayload.java | 144 +++++ ...upAssignmentsSetMessagePayloadBuilder.java | 169 ++++++ ...GroupAssignmentsSetMessagePayloadImpl.java | 102 ++++ .../api/models/message/Message.java | 39 ++ .../api/models/message/MessageBuilder.java | 12 + .../api/models/message/MessagePayload.java | 39 ++ .../models/message/MessagePayloadBuilder.java | 12 + .../ProductSearchProjectionParams.java | 26 + .../ProductSearchProjectionParamsBuilder.java | 57 +- .../ProductSearchProjectionParamsImpl.java | 24 + ...gnmentAddedMessageExpansionBuilderDsl.java | 46 ++ ...mentRemovedMessageExpansionBuilderDsl.java | 51 ++ ...ignmentsSetMessageExpansionBuilderDsl.java | 46 ++ ...rGroupAssignmentActionQueryBuilderDsl.java | 31 ++ .../CustomerDraftQueryBuilderDsl.java | 15 + ...erGroupAssignmentDraftQueryBuilderDsl.java | 26 + ...ustomerGroupAssignmentQueryBuilderDsl.java | 25 + .../customer/CustomerQueryBuilderDsl.java | 16 + ...rGroupAssignmentActionQueryBuilderDsl.java | 32 ++ ...GroupAssignmentsActionQueryBuilderDsl.java | 37 ++ .../CustomerUpdateActionQueryBuilderDsl.java | 24 + ...entAddedMessagePayloadQueryBuilderDsl.java | 32 ++ ...AssignmentAddedMessageQueryBuilderDsl.java | 104 ++++ ...tRemovedMessagePayloadQueryBuilderDsl.java | 31 ++ ...signmentRemovedMessageQueryBuilderDsl.java | 103 ++++ ...mentsSetMessagePayloadQueryBuilderDsl.java | 38 ++ ...pAssignmentsSetMessageQueryBuilderDsl.java | 110 ++++ .../MessagePayloadQueryBuilderDsl.java | 24 + .../query/message/MessageQueryBuilderDsl.java | 23 + ...SearchProjectionParamsQueryBuilderDsl.java | 6 + ...yByStoreKeyProductProjectionsByIDTest.java | 16 + ...toreKeyProductProjectionsKeyByKeyTest.java | 16 + ...yProjectKeyProductProjectionsByIDTest.java | 14 + ...jectKeyProductProjectionsKeyByKeyTest.java | 14 + ...rojectKeyProductProjectionsSearchTest.java | 14 + .../ByProjectKeyProductProjectionsTest.java | 12 + .../ByProjectKeyProductsByIDTest.java | 42 ++ .../ByProjectKeyProductsKeyByKeyTest.java | 42 ++ .../resource/ByProjectKeyProductsTest.java | 24 + ...rAddCustomerGroupAssignmentActionTest.java | 40 ++ .../models/customer/CustomerDraftTest.java | 15 +- .../CustomerGroupAssignmentDraftTest.java | 39 ++ .../customer/CustomerGroupAssignmentTest.java | 38 ++ ...moveCustomerGroupAssignmentActionTest.java | 41 ++ ...SetCustomerGroupAssignmentsActionTest.java | 44 ++ .../api/models/customer/CustomerTest.java | 15 +- ...roupAssignmentAddedMessagePayloadTest.java | 40 ++ ...stomerGroupAssignmentAddedMessageTest.java | 39 ++ ...upAssignmentRemovedMessagePayloadTest.java | 41 ++ ...omerGroupAssignmentRemovedMessageTest.java | 40 ++ ...GroupAssignmentsSetMessagePayloadTest.java | 44 ++ ...ustomerGroupAssignmentsSetMessageTest.java | 44 ++ .../ProductSearchProjectionParamsTest.java | 10 + references.txt | 1 + 112 files changed, 9376 insertions(+), 11 deletions(-) create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerAddCustomerGroupAssignmentAction.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerAddCustomerGroupAssignmentActionBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerAddCustomerGroupAssignmentActionImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerGroupAssignment.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerGroupAssignmentBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerGroupAssignmentDraft.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerGroupAssignmentDraftBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerGroupAssignmentDraftImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerGroupAssignmentImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveCustomerGroupAssignmentAction.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveCustomerGroupAssignmentActionBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveCustomerGroupAssignmentActionImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetCustomerGroupAssignmentsAction.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetCustomerGroupAssignmentsActionBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetCustomerGroupAssignmentsActionImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentAddedMessage.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentAddedMessageBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentAddedMessageImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentAddedMessagePayload.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentAddedMessagePayloadBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentAddedMessagePayloadImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentRemovedMessage.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentRemovedMessageBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentRemovedMessageImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentRemovedMessagePayload.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentRemovedMessagePayloadBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentRemovedMessagePayloadImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentsSetMessage.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentsSetMessageBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentsSetMessageImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentsSetMessagePayload.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentsSetMessagePayloadBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentsSetMessagePayloadImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/expansion/message/CustomerGroupAssignmentAddedMessageExpansionBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/expansion/message/CustomerGroupAssignmentRemovedMessageExpansionBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/expansion/message/CustomerGroupAssignmentsSetMessageExpansionBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/customer/CustomerAddCustomerGroupAssignmentActionQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/customer/CustomerGroupAssignmentDraftQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/customer/CustomerGroupAssignmentQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/customer/CustomerRemoveCustomerGroupAssignmentActionQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/customer/CustomerSetCustomerGroupAssignmentsActionQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerGroupAssignmentAddedMessagePayloadQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerGroupAssignmentAddedMessageQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerGroupAssignmentRemovedMessagePayloadQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerGroupAssignmentRemovedMessageQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerGroupAssignmentsSetMessagePayloadQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerGroupAssignmentsSetMessageQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/customer/CustomerAddCustomerGroupAssignmentActionTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/customer/CustomerGroupAssignmentDraftTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/customer/CustomerGroupAssignmentTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/customer/CustomerRemoveCustomerGroupAssignmentActionTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/customer/CustomerSetCustomerGroupAssignmentsActionTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentAddedMessagePayloadTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentAddedMessageTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentRemovedMessagePayloadTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentRemovedMessageTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentsSetMessagePayloadTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentsSetMessageTest.java diff --git a/changes.md b/changes.md index 05db4c4e8bd..157ae6b4fe9 100644 --- a/changes.md +++ b/changes.md @@ -10,6 +10,17 @@
Added Type(s) +- 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 type `ShoppingListSetBusinessUnitAction`
@@ -17,7 +28,30 @@
Added Property(s) +- added property `customerGroupAssignments` to type `Customer` +- added property `customerGroupAssignments` to type `CustomerDraft` +- added property `priceCustomerGroupAssignments` to type `ProductSearchProjectionParams` - added property `businessUnit` to type `ShoppingList` - added property `businessUnit` to type `ShoppingListDraft`
+ +
+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}` +
+ diff --git a/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls b/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls index d02e768677d..1442f07bc17 100644 --- a/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls +++ b/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls @@ -8947,7 +8947,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 diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet.java index 086b6663737..fc400ad4dc5 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet.java @@ -125,6 +125,10 @@ public List getPriceCustomerGroup() { return this.getQueryParam("priceCustomerGroup"); } + public List getPriceCustomerGroupAssignments() { + return this.getQueryParam("priceCustomerGroupAssignments"); + } + public List getPriceChannel() { return this.getQueryParam("priceChannel"); } @@ -496,6 +500,95 @@ public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet addPri .collect(Collectors.toList())); } + /** + * set priceCustomerGroupAssignments with the specified value + * @param priceCustomerGroupAssignments value to be set + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet + */ + public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet withPriceCustomerGroupAssignments( + final TValue priceCustomerGroupAssignments) { + return copy().withQueryParam("priceCustomerGroupAssignments", priceCustomerGroupAssignments); + } + + /** + * add additional priceCustomerGroupAssignments query parameter + * @param priceCustomerGroupAssignments value to be added + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet + */ + public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet addPriceCustomerGroupAssignments( + final TValue priceCustomerGroupAssignments) { + return copy().addQueryParam("priceCustomerGroupAssignments", priceCustomerGroupAssignments); + } + + /** + * set priceCustomerGroupAssignments with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet + */ + public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet withPriceCustomerGroupAssignments( + final Supplier supplier) { + return copy().withQueryParam("priceCustomerGroupAssignments", supplier.get()); + } + + /** + * add additional priceCustomerGroupAssignments query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet + */ + public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet addPriceCustomerGroupAssignments( + final Supplier supplier) { + return copy().addQueryParam("priceCustomerGroupAssignments", supplier.get()); + } + + /** + * set priceCustomerGroupAssignments with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet + */ + public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet withPriceCustomerGroupAssignments( + final Function op) { + return copy().withQueryParam("priceCustomerGroupAssignments", op.apply(new StringBuilder())); + } + + /** + * add additional priceCustomerGroupAssignments query parameter + * @param op builder for the value to be added + * @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet + */ + public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet addPriceCustomerGroupAssignments( + final Function op) { + return copy().addQueryParam("priceCustomerGroupAssignments", op.apply(new StringBuilder())); + } + + /** + * set priceCustomerGroupAssignments with the specified values + * @param priceCustomerGroupAssignments values to be set + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet + */ + public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet withPriceCustomerGroupAssignments( + final Collection priceCustomerGroupAssignments) { + return copy().withoutQueryParam("priceCustomerGroupAssignments") + .addQueryParams(priceCustomerGroupAssignments.stream() + .map(s -> new ParamEntry<>("priceCustomerGroupAssignments", s.toString())) + .collect(Collectors.toList())); + } + + /** + * add additional priceCustomerGroupAssignments query parameters + * @param priceCustomerGroupAssignments values to be added + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet + */ + public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet addPriceCustomerGroupAssignments( + final Collection priceCustomerGroupAssignments) { + return copy().addQueryParams(priceCustomerGroupAssignments.stream() + .map(s -> new ParamEntry<>("priceCustomerGroupAssignments", s.toString())) + .collect(Collectors.toList())); + } + /** * set priceChannel with the specified value * @param priceChannel value to be set diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet.java index c0315b8f770..5b43da06b21 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet.java @@ -125,6 +125,10 @@ public List getPriceCustomerGroup() { return this.getQueryParam("priceCustomerGroup"); } + public List getPriceCustomerGroupAssignments() { + return this.getQueryParam("priceCustomerGroupAssignments"); + } + public List getPriceChannel() { return this.getQueryParam("priceChannel"); } @@ -499,6 +503,95 @@ public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet ad .collect(Collectors.toList())); } + /** + * set priceCustomerGroupAssignments with the specified value + * @param priceCustomerGroupAssignments value to be set + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet + */ + public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet withPriceCustomerGroupAssignments( + final TValue priceCustomerGroupAssignments) { + return copy().withQueryParam("priceCustomerGroupAssignments", priceCustomerGroupAssignments); + } + + /** + * add additional priceCustomerGroupAssignments query parameter + * @param priceCustomerGroupAssignments value to be added + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet + */ + public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet addPriceCustomerGroupAssignments( + final TValue priceCustomerGroupAssignments) { + return copy().addQueryParam("priceCustomerGroupAssignments", priceCustomerGroupAssignments); + } + + /** + * set priceCustomerGroupAssignments with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet + */ + public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet withPriceCustomerGroupAssignments( + final Supplier supplier) { + return copy().withQueryParam("priceCustomerGroupAssignments", supplier.get()); + } + + /** + * add additional priceCustomerGroupAssignments query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet + */ + public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet addPriceCustomerGroupAssignments( + final Supplier supplier) { + return copy().addQueryParam("priceCustomerGroupAssignments", supplier.get()); + } + + /** + * set priceCustomerGroupAssignments with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet + */ + public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet withPriceCustomerGroupAssignments( + final Function op) { + return copy().withQueryParam("priceCustomerGroupAssignments", op.apply(new StringBuilder())); + } + + /** + * add additional priceCustomerGroupAssignments query parameter + * @param op builder for the value to be added + * @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet + */ + public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet addPriceCustomerGroupAssignments( + final Function op) { + return copy().addQueryParam("priceCustomerGroupAssignments", op.apply(new StringBuilder())); + } + + /** + * set priceCustomerGroupAssignments with the specified values + * @param priceCustomerGroupAssignments values to be set + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet + */ + public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet withPriceCustomerGroupAssignments( + final Collection priceCustomerGroupAssignments) { + return copy().withoutQueryParam("priceCustomerGroupAssignments") + .addQueryParams(priceCustomerGroupAssignments.stream() + .map(s -> new ParamEntry<>("priceCustomerGroupAssignments", s.toString())) + .collect(Collectors.toList())); + } + + /** + * add additional priceCustomerGroupAssignments query parameters + * @param priceCustomerGroupAssignments values to be added + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet + */ + public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet addPriceCustomerGroupAssignments( + final Collection priceCustomerGroupAssignments) { + return copy().addQueryParams(priceCustomerGroupAssignments.stream() + .map(s -> new ParamEntry<>("priceCustomerGroupAssignments", s.toString())) + .collect(Collectors.toList())); + } + /** * set priceChannel with the specified value * @param priceChannel value to be set diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsByIDGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsByIDGet.java index dd82554bb92..9ce8767b208 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsByIDGet.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsByIDGet.java @@ -114,6 +114,10 @@ public List getPriceCustomerGroup() { return this.getQueryParam("priceCustomerGroup"); } + public List getPriceCustomerGroupAssignments() { + return this.getQueryParam("priceCustomerGroupAssignments"); + } + public List getPriceChannel() { return this.getQueryParam("priceChannel"); } @@ -464,6 +468,93 @@ public ByProjectKeyProductProjectionsByIDGet addPriceCustomerGroup( .collect(Collectors.toList())); } + /** + * set priceCustomerGroupAssignments with the specified value + * @param priceCustomerGroupAssignments value to be set + * @param value type + * @return ByProjectKeyProductProjectionsByIDGet + */ + public ByProjectKeyProductProjectionsByIDGet withPriceCustomerGroupAssignments( + final TValue priceCustomerGroupAssignments) { + return copy().withQueryParam("priceCustomerGroupAssignments", priceCustomerGroupAssignments); + } + + /** + * add additional priceCustomerGroupAssignments query parameter + * @param priceCustomerGroupAssignments value to be added + * @param value type + * @return ByProjectKeyProductProjectionsByIDGet + */ + public ByProjectKeyProductProjectionsByIDGet addPriceCustomerGroupAssignments( + final TValue priceCustomerGroupAssignments) { + return copy().addQueryParam("priceCustomerGroupAssignments", priceCustomerGroupAssignments); + } + + /** + * set priceCustomerGroupAssignments with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyProductProjectionsByIDGet + */ + public ByProjectKeyProductProjectionsByIDGet withPriceCustomerGroupAssignments(final Supplier supplier) { + return copy().withQueryParam("priceCustomerGroupAssignments", supplier.get()); + } + + /** + * add additional priceCustomerGroupAssignments query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyProductProjectionsByIDGet + */ + public ByProjectKeyProductProjectionsByIDGet addPriceCustomerGroupAssignments(final Supplier supplier) { + return copy().addQueryParam("priceCustomerGroupAssignments", supplier.get()); + } + + /** + * set priceCustomerGroupAssignments with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyProductProjectionsByIDGet + */ + public ByProjectKeyProductProjectionsByIDGet withPriceCustomerGroupAssignments( + final Function op) { + return copy().withQueryParam("priceCustomerGroupAssignments", op.apply(new StringBuilder())); + } + + /** + * add additional priceCustomerGroupAssignments query parameter + * @param op builder for the value to be added + * @return ByProjectKeyProductProjectionsByIDGet + */ + public ByProjectKeyProductProjectionsByIDGet addPriceCustomerGroupAssignments( + final Function op) { + return copy().addQueryParam("priceCustomerGroupAssignments", op.apply(new StringBuilder())); + } + + /** + * set priceCustomerGroupAssignments with the specified values + * @param priceCustomerGroupAssignments values to be set + * @param value type + * @return ByProjectKeyProductProjectionsByIDGet + */ + public ByProjectKeyProductProjectionsByIDGet withPriceCustomerGroupAssignments( + final Collection priceCustomerGroupAssignments) { + return copy().withoutQueryParam("priceCustomerGroupAssignments") + .addQueryParams(priceCustomerGroupAssignments.stream() + .map(s -> new ParamEntry<>("priceCustomerGroupAssignments", s.toString())) + .collect(Collectors.toList())); + } + + /** + * add additional priceCustomerGroupAssignments query parameters + * @param priceCustomerGroupAssignments values to be added + * @param value type + * @return ByProjectKeyProductProjectionsByIDGet + */ + public ByProjectKeyProductProjectionsByIDGet addPriceCustomerGroupAssignments( + final Collection priceCustomerGroupAssignments) { + return copy().addQueryParams(priceCustomerGroupAssignments.stream() + .map(s -> new ParamEntry<>("priceCustomerGroupAssignments", s.toString())) + .collect(Collectors.toList())); + } + /** * set priceChannel with the specified value * @param priceChannel value to be set diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsGet.java index 14bb7ef6412..67eb2a0846e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsGet.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsGet.java @@ -109,6 +109,10 @@ public List getPriceCustomerGroup() { return this.getQueryParam("priceCustomerGroup"); } + public List getPriceCustomerGroupAssignments() { + return this.getQueryParam("priceCustomerGroupAssignments"); + } + public List getPriceChannel() { return this.getQueryParam("priceChannel"); } @@ -473,6 +477,93 @@ public ByProjectKeyProductProjectionsGet addPriceCustomerGroup( .collect(Collectors.toList())); } + /** + * set priceCustomerGroupAssignments with the specified value + * @param priceCustomerGroupAssignments value to be set + * @param value type + * @return ByProjectKeyProductProjectionsGet + */ + public ByProjectKeyProductProjectionsGet withPriceCustomerGroupAssignments( + final TValue priceCustomerGroupAssignments) { + return copy().withQueryParam("priceCustomerGroupAssignments", priceCustomerGroupAssignments); + } + + /** + * add additional priceCustomerGroupAssignments query parameter + * @param priceCustomerGroupAssignments value to be added + * @param value type + * @return ByProjectKeyProductProjectionsGet + */ + public ByProjectKeyProductProjectionsGet addPriceCustomerGroupAssignments( + final TValue priceCustomerGroupAssignments) { + return copy().addQueryParam("priceCustomerGroupAssignments", priceCustomerGroupAssignments); + } + + /** + * set priceCustomerGroupAssignments with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyProductProjectionsGet + */ + public ByProjectKeyProductProjectionsGet withPriceCustomerGroupAssignments(final Supplier supplier) { + return copy().withQueryParam("priceCustomerGroupAssignments", supplier.get()); + } + + /** + * add additional priceCustomerGroupAssignments query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyProductProjectionsGet + */ + public ByProjectKeyProductProjectionsGet addPriceCustomerGroupAssignments(final Supplier supplier) { + return copy().addQueryParam("priceCustomerGroupAssignments", supplier.get()); + } + + /** + * set priceCustomerGroupAssignments with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyProductProjectionsGet + */ + public ByProjectKeyProductProjectionsGet withPriceCustomerGroupAssignments( + final Function op) { + return copy().withQueryParam("priceCustomerGroupAssignments", op.apply(new StringBuilder())); + } + + /** + * add additional priceCustomerGroupAssignments query parameter + * @param op builder for the value to be added + * @return ByProjectKeyProductProjectionsGet + */ + public ByProjectKeyProductProjectionsGet addPriceCustomerGroupAssignments( + final Function op) { + return copy().addQueryParam("priceCustomerGroupAssignments", op.apply(new StringBuilder())); + } + + /** + * set priceCustomerGroupAssignments with the specified values + * @param priceCustomerGroupAssignments values to be set + * @param value type + * @return ByProjectKeyProductProjectionsGet + */ + public ByProjectKeyProductProjectionsGet withPriceCustomerGroupAssignments( + final Collection priceCustomerGroupAssignments) { + return copy().withoutQueryParam("priceCustomerGroupAssignments") + .addQueryParams(priceCustomerGroupAssignments.stream() + .map(s -> new ParamEntry<>("priceCustomerGroupAssignments", s.toString())) + .collect(Collectors.toList())); + } + + /** + * add additional priceCustomerGroupAssignments query parameters + * @param priceCustomerGroupAssignments values to be added + * @param value type + * @return ByProjectKeyProductProjectionsGet + */ + public ByProjectKeyProductProjectionsGet addPriceCustomerGroupAssignments( + final Collection priceCustomerGroupAssignments) { + return copy().addQueryParams(priceCustomerGroupAssignments.stream() + .map(s -> new ParamEntry<>("priceCustomerGroupAssignments", s.toString())) + .collect(Collectors.toList())); + } + /** * set priceChannel with the specified value * @param priceChannel value to be set diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsKeyByKeyGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsKeyByKeyGet.java index 5990d0cd99d..8399bd8ad12 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsKeyByKeyGet.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsKeyByKeyGet.java @@ -114,6 +114,10 @@ public List getPriceCustomerGroup() { return this.getQueryParam("priceCustomerGroup"); } + public List getPriceCustomerGroupAssignments() { + return this.getQueryParam("priceCustomerGroupAssignments"); + } + public List getPriceChannel() { return this.getQueryParam("priceChannel"); } @@ -466,6 +470,94 @@ public ByProjectKeyProductProjectionsKeyByKeyGet addPriceCustomerGroup( .collect(Collectors.toList())); } + /** + * set priceCustomerGroupAssignments with the specified value + * @param priceCustomerGroupAssignments value to be set + * @param value type + * @return ByProjectKeyProductProjectionsKeyByKeyGet + */ + public ByProjectKeyProductProjectionsKeyByKeyGet withPriceCustomerGroupAssignments( + final TValue priceCustomerGroupAssignments) { + return copy().withQueryParam("priceCustomerGroupAssignments", priceCustomerGroupAssignments); + } + + /** + * add additional priceCustomerGroupAssignments query parameter + * @param priceCustomerGroupAssignments value to be added + * @param value type + * @return ByProjectKeyProductProjectionsKeyByKeyGet + */ + public ByProjectKeyProductProjectionsKeyByKeyGet addPriceCustomerGroupAssignments( + final TValue priceCustomerGroupAssignments) { + return copy().addQueryParam("priceCustomerGroupAssignments", priceCustomerGroupAssignments); + } + + /** + * set priceCustomerGroupAssignments with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyProductProjectionsKeyByKeyGet + */ + public ByProjectKeyProductProjectionsKeyByKeyGet withPriceCustomerGroupAssignments( + final Supplier supplier) { + return copy().withQueryParam("priceCustomerGroupAssignments", supplier.get()); + } + + /** + * add additional priceCustomerGroupAssignments query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyProductProjectionsKeyByKeyGet + */ + public ByProjectKeyProductProjectionsKeyByKeyGet addPriceCustomerGroupAssignments(final Supplier supplier) { + return copy().addQueryParam("priceCustomerGroupAssignments", supplier.get()); + } + + /** + * set priceCustomerGroupAssignments with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyProductProjectionsKeyByKeyGet + */ + public ByProjectKeyProductProjectionsKeyByKeyGet withPriceCustomerGroupAssignments( + final Function op) { + return copy().withQueryParam("priceCustomerGroupAssignments", op.apply(new StringBuilder())); + } + + /** + * add additional priceCustomerGroupAssignments query parameter + * @param op builder for the value to be added + * @return ByProjectKeyProductProjectionsKeyByKeyGet + */ + public ByProjectKeyProductProjectionsKeyByKeyGet addPriceCustomerGroupAssignments( + final Function op) { + return copy().addQueryParam("priceCustomerGroupAssignments", op.apply(new StringBuilder())); + } + + /** + * set priceCustomerGroupAssignments with the specified values + * @param priceCustomerGroupAssignments values to be set + * @param value type + * @return ByProjectKeyProductProjectionsKeyByKeyGet + */ + public ByProjectKeyProductProjectionsKeyByKeyGet withPriceCustomerGroupAssignments( + final Collection priceCustomerGroupAssignments) { + return copy().withoutQueryParam("priceCustomerGroupAssignments") + .addQueryParams(priceCustomerGroupAssignments.stream() + .map(s -> new ParamEntry<>("priceCustomerGroupAssignments", s.toString())) + .collect(Collectors.toList())); + } + + /** + * add additional priceCustomerGroupAssignments query parameters + * @param priceCustomerGroupAssignments values to be added + * @param value type + * @return ByProjectKeyProductProjectionsKeyByKeyGet + */ + public ByProjectKeyProductProjectionsKeyByKeyGet addPriceCustomerGroupAssignments( + final Collection priceCustomerGroupAssignments) { + return copy().addQueryParams(priceCustomerGroupAssignments.stream() + .map(s -> new ParamEntry<>("priceCustomerGroupAssignments", s.toString())) + .collect(Collectors.toList())); + } + /** * set priceChannel with the specified value * @param priceChannel value to be set diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsSearchGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsSearchGet.java index cea727441bf..431b8b1f6cc 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsSearchGet.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsSearchGet.java @@ -153,6 +153,10 @@ public List getPriceCustomerGroup() { return this.getQueryParam("priceCustomerGroup"); } + public List getPriceCustomerGroupAssignments() { + return this.getQueryParam("priceCustomerGroupAssignments"); + } + public List getPriceChannel() { return this.getQueryParam("priceChannel"); } @@ -1380,6 +1384,93 @@ public ByProjectKeyProductProjectionsSearchGet addPriceCustomerGroup( .collect(Collectors.toList())); } + /** + * set priceCustomerGroupAssignments with the specified value + * @param priceCustomerGroupAssignments value to be set + * @param value type + * @return ByProjectKeyProductProjectionsSearchGet + */ + public ByProjectKeyProductProjectionsSearchGet withPriceCustomerGroupAssignments( + final TValue priceCustomerGroupAssignments) { + return copy().withQueryParam("priceCustomerGroupAssignments", priceCustomerGroupAssignments); + } + + /** + * add additional priceCustomerGroupAssignments query parameter + * @param priceCustomerGroupAssignments value to be added + * @param value type + * @return ByProjectKeyProductProjectionsSearchGet + */ + public ByProjectKeyProductProjectionsSearchGet addPriceCustomerGroupAssignments( + final TValue priceCustomerGroupAssignments) { + return copy().addQueryParam("priceCustomerGroupAssignments", priceCustomerGroupAssignments); + } + + /** + * set priceCustomerGroupAssignments with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyProductProjectionsSearchGet + */ + public ByProjectKeyProductProjectionsSearchGet withPriceCustomerGroupAssignments(final Supplier supplier) { + return copy().withQueryParam("priceCustomerGroupAssignments", supplier.get()); + } + + /** + * add additional priceCustomerGroupAssignments query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyProductProjectionsSearchGet + */ + public ByProjectKeyProductProjectionsSearchGet addPriceCustomerGroupAssignments(final Supplier supplier) { + return copy().addQueryParam("priceCustomerGroupAssignments", supplier.get()); + } + + /** + * set priceCustomerGroupAssignments with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyProductProjectionsSearchGet + */ + public ByProjectKeyProductProjectionsSearchGet withPriceCustomerGroupAssignments( + final Function op) { + return copy().withQueryParam("priceCustomerGroupAssignments", op.apply(new StringBuilder())); + } + + /** + * add additional priceCustomerGroupAssignments query parameter + * @param op builder for the value to be added + * @return ByProjectKeyProductProjectionsSearchGet + */ + public ByProjectKeyProductProjectionsSearchGet addPriceCustomerGroupAssignments( + final Function op) { + return copy().addQueryParam("priceCustomerGroupAssignments", op.apply(new StringBuilder())); + } + + /** + * set priceCustomerGroupAssignments with the specified values + * @param priceCustomerGroupAssignments values to be set + * @param value type + * @return ByProjectKeyProductProjectionsSearchGet + */ + public ByProjectKeyProductProjectionsSearchGet withPriceCustomerGroupAssignments( + final Collection priceCustomerGroupAssignments) { + return copy().withoutQueryParam("priceCustomerGroupAssignments") + .addQueryParams(priceCustomerGroupAssignments.stream() + .map(s -> new ParamEntry<>("priceCustomerGroupAssignments", s.toString())) + .collect(Collectors.toList())); + } + + /** + * add additional priceCustomerGroupAssignments query parameters + * @param priceCustomerGroupAssignments values to be added + * @param value type + * @return ByProjectKeyProductProjectionsSearchGet + */ + public ByProjectKeyProductProjectionsSearchGet addPriceCustomerGroupAssignments( + final Collection priceCustomerGroupAssignments) { + return copy().addQueryParams(priceCustomerGroupAssignments.stream() + .map(s -> new ParamEntry<>("priceCustomerGroupAssignments", s.toString())) + .collect(Collectors.toList())); + } + /** * set priceChannel with the specified value * @param priceChannel value to be set diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsByIDDelete.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsByIDDelete.java index dbb3269733e..90fa35ce213 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsByIDDelete.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsByIDDelete.java @@ -110,6 +110,10 @@ public List getPriceCustomerGroup() { return this.getQueryParam("priceCustomerGroup"); } + public List getPriceCustomerGroupAssignments() { + return this.getQueryParam("priceCustomerGroupAssignments"); + } + public List getPriceChannel() { return this.getQueryParam("priceChannel"); } @@ -373,6 +377,93 @@ public ByProjectKeyProductsByIDDelete addPriceCustomerGroup(final Colle .collect(Collectors.toList())); } + /** + * set priceCustomerGroupAssignments with the specified value + * @param priceCustomerGroupAssignments value to be set + * @param value type + * @return ByProjectKeyProductsByIDDelete + */ + public ByProjectKeyProductsByIDDelete withPriceCustomerGroupAssignments( + final TValue priceCustomerGroupAssignments) { + return copy().withQueryParam("priceCustomerGroupAssignments", priceCustomerGroupAssignments); + } + + /** + * add additional priceCustomerGroupAssignments query parameter + * @param priceCustomerGroupAssignments value to be added + * @param value type + * @return ByProjectKeyProductsByIDDelete + */ + public ByProjectKeyProductsByIDDelete addPriceCustomerGroupAssignments( + final TValue priceCustomerGroupAssignments) { + return copy().addQueryParam("priceCustomerGroupAssignments", priceCustomerGroupAssignments); + } + + /** + * set priceCustomerGroupAssignments with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyProductsByIDDelete + */ + public ByProjectKeyProductsByIDDelete withPriceCustomerGroupAssignments(final Supplier supplier) { + return copy().withQueryParam("priceCustomerGroupAssignments", supplier.get()); + } + + /** + * add additional priceCustomerGroupAssignments query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyProductsByIDDelete + */ + public ByProjectKeyProductsByIDDelete addPriceCustomerGroupAssignments(final Supplier supplier) { + return copy().addQueryParam("priceCustomerGroupAssignments", supplier.get()); + } + + /** + * set priceCustomerGroupAssignments with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyProductsByIDDelete + */ + public ByProjectKeyProductsByIDDelete withPriceCustomerGroupAssignments( + final Function op) { + return copy().withQueryParam("priceCustomerGroupAssignments", op.apply(new StringBuilder())); + } + + /** + * add additional priceCustomerGroupAssignments query parameter + * @param op builder for the value to be added + * @return ByProjectKeyProductsByIDDelete + */ + public ByProjectKeyProductsByIDDelete addPriceCustomerGroupAssignments( + final Function op) { + return copy().addQueryParam("priceCustomerGroupAssignments", op.apply(new StringBuilder())); + } + + /** + * set priceCustomerGroupAssignments with the specified values + * @param priceCustomerGroupAssignments values to be set + * @param value type + * @return ByProjectKeyProductsByIDDelete + */ + public ByProjectKeyProductsByIDDelete withPriceCustomerGroupAssignments( + final Collection priceCustomerGroupAssignments) { + return copy().withoutQueryParam("priceCustomerGroupAssignments") + .addQueryParams(priceCustomerGroupAssignments.stream() + .map(s -> new ParamEntry<>("priceCustomerGroupAssignments", s.toString())) + .collect(Collectors.toList())); + } + + /** + * add additional priceCustomerGroupAssignments query parameters + * @param priceCustomerGroupAssignments values to be added + * @param value type + * @return ByProjectKeyProductsByIDDelete + */ + public ByProjectKeyProductsByIDDelete addPriceCustomerGroupAssignments( + final Collection priceCustomerGroupAssignments) { + return copy().addQueryParams(priceCustomerGroupAssignments.stream() + .map(s -> new ParamEntry<>("priceCustomerGroupAssignments", s.toString())) + .collect(Collectors.toList())); + } + /** * set priceChannel with the specified value * @param priceChannel value to be set diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsByIDGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsByIDGet.java index 93f7b216b76..05026da9797 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsByIDGet.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsByIDGet.java @@ -106,6 +106,10 @@ public List getPriceCustomerGroup() { return this.getQueryParam("priceCustomerGroup"); } + public List getPriceCustomerGroupAssignments() { + return this.getQueryParam("priceCustomerGroupAssignments"); + } + public List getPriceChannel() { return this.getQueryParam("priceChannel"); } @@ -365,6 +369,93 @@ public ByProjectKeyProductsByIDGet addPriceCustomerGroup(final Collecti .collect(Collectors.toList())); } + /** + * set priceCustomerGroupAssignments with the specified value + * @param priceCustomerGroupAssignments value to be set + * @param value type + * @return ByProjectKeyProductsByIDGet + */ + public ByProjectKeyProductsByIDGet withPriceCustomerGroupAssignments( + final TValue priceCustomerGroupAssignments) { + return copy().withQueryParam("priceCustomerGroupAssignments", priceCustomerGroupAssignments); + } + + /** + * add additional priceCustomerGroupAssignments query parameter + * @param priceCustomerGroupAssignments value to be added + * @param value type + * @return ByProjectKeyProductsByIDGet + */ + public ByProjectKeyProductsByIDGet addPriceCustomerGroupAssignments( + final TValue priceCustomerGroupAssignments) { + return copy().addQueryParam("priceCustomerGroupAssignments", priceCustomerGroupAssignments); + } + + /** + * set priceCustomerGroupAssignments with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyProductsByIDGet + */ + public ByProjectKeyProductsByIDGet withPriceCustomerGroupAssignments(final Supplier supplier) { + return copy().withQueryParam("priceCustomerGroupAssignments", supplier.get()); + } + + /** + * add additional priceCustomerGroupAssignments query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyProductsByIDGet + */ + public ByProjectKeyProductsByIDGet addPriceCustomerGroupAssignments(final Supplier supplier) { + return copy().addQueryParam("priceCustomerGroupAssignments", supplier.get()); + } + + /** + * set priceCustomerGroupAssignments with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyProductsByIDGet + */ + public ByProjectKeyProductsByIDGet withPriceCustomerGroupAssignments( + final Function op) { + return copy().withQueryParam("priceCustomerGroupAssignments", op.apply(new StringBuilder())); + } + + /** + * add additional priceCustomerGroupAssignments query parameter + * @param op builder for the value to be added + * @return ByProjectKeyProductsByIDGet + */ + public ByProjectKeyProductsByIDGet addPriceCustomerGroupAssignments( + final Function op) { + return copy().addQueryParam("priceCustomerGroupAssignments", op.apply(new StringBuilder())); + } + + /** + * set priceCustomerGroupAssignments with the specified values + * @param priceCustomerGroupAssignments values to be set + * @param value type + * @return ByProjectKeyProductsByIDGet + */ + public ByProjectKeyProductsByIDGet withPriceCustomerGroupAssignments( + final Collection priceCustomerGroupAssignments) { + return copy().withoutQueryParam("priceCustomerGroupAssignments") + .addQueryParams(priceCustomerGroupAssignments.stream() + .map(s -> new ParamEntry<>("priceCustomerGroupAssignments", s.toString())) + .collect(Collectors.toList())); + } + + /** + * add additional priceCustomerGroupAssignments query parameters + * @param priceCustomerGroupAssignments values to be added + * @param value type + * @return ByProjectKeyProductsByIDGet + */ + public ByProjectKeyProductsByIDGet addPriceCustomerGroupAssignments( + final Collection priceCustomerGroupAssignments) { + return copy().addQueryParams(priceCustomerGroupAssignments.stream() + .map(s -> new ParamEntry<>("priceCustomerGroupAssignments", s.toString())) + .collect(Collectors.toList())); + } + /** * set priceChannel with the specified value * @param priceChannel value to be set diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsByIDPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsByIDPost.java index bf94e3340e9..9bcee023214 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsByIDPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsByIDPost.java @@ -116,6 +116,10 @@ public List getPriceCustomerGroup() { return this.getQueryParam("priceCustomerGroup"); } + public List getPriceCustomerGroupAssignments() { + return this.getQueryParam("priceCustomerGroupAssignments"); + } + public List getPriceChannel() { return this.getQueryParam("priceChannel"); } @@ -375,6 +379,93 @@ public ByProjectKeyProductsByIDPost addPriceCustomerGroup(final Collect .collect(Collectors.toList())); } + /** + * set priceCustomerGroupAssignments with the specified value + * @param priceCustomerGroupAssignments value to be set + * @param value type + * @return ByProjectKeyProductsByIDPost + */ + public ByProjectKeyProductsByIDPost withPriceCustomerGroupAssignments( + final TValue priceCustomerGroupAssignments) { + return copy().withQueryParam("priceCustomerGroupAssignments", priceCustomerGroupAssignments); + } + + /** + * add additional priceCustomerGroupAssignments query parameter + * @param priceCustomerGroupAssignments value to be added + * @param value type + * @return ByProjectKeyProductsByIDPost + */ + public ByProjectKeyProductsByIDPost addPriceCustomerGroupAssignments( + final TValue priceCustomerGroupAssignments) { + return copy().addQueryParam("priceCustomerGroupAssignments", priceCustomerGroupAssignments); + } + + /** + * set priceCustomerGroupAssignments with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyProductsByIDPost + */ + public ByProjectKeyProductsByIDPost withPriceCustomerGroupAssignments(final Supplier supplier) { + return copy().withQueryParam("priceCustomerGroupAssignments", supplier.get()); + } + + /** + * add additional priceCustomerGroupAssignments query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyProductsByIDPost + */ + public ByProjectKeyProductsByIDPost addPriceCustomerGroupAssignments(final Supplier supplier) { + return copy().addQueryParam("priceCustomerGroupAssignments", supplier.get()); + } + + /** + * set priceCustomerGroupAssignments with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyProductsByIDPost + */ + public ByProjectKeyProductsByIDPost withPriceCustomerGroupAssignments( + final Function op) { + return copy().withQueryParam("priceCustomerGroupAssignments", op.apply(new StringBuilder())); + } + + /** + * add additional priceCustomerGroupAssignments query parameter + * @param op builder for the value to be added + * @return ByProjectKeyProductsByIDPost + */ + public ByProjectKeyProductsByIDPost addPriceCustomerGroupAssignments( + final Function op) { + return copy().addQueryParam("priceCustomerGroupAssignments", op.apply(new StringBuilder())); + } + + /** + * set priceCustomerGroupAssignments with the specified values + * @param priceCustomerGroupAssignments values to be set + * @param value type + * @return ByProjectKeyProductsByIDPost + */ + public ByProjectKeyProductsByIDPost withPriceCustomerGroupAssignments( + final Collection priceCustomerGroupAssignments) { + return copy().withoutQueryParam("priceCustomerGroupAssignments") + .addQueryParams(priceCustomerGroupAssignments.stream() + .map(s -> new ParamEntry<>("priceCustomerGroupAssignments", s.toString())) + .collect(Collectors.toList())); + } + + /** + * add additional priceCustomerGroupAssignments query parameters + * @param priceCustomerGroupAssignments values to be added + * @param value type + * @return ByProjectKeyProductsByIDPost + */ + public ByProjectKeyProductsByIDPost addPriceCustomerGroupAssignments( + final Collection priceCustomerGroupAssignments) { + return copy().addQueryParams(priceCustomerGroupAssignments.stream() + .map(s -> new ParamEntry<>("priceCustomerGroupAssignments", s.toString())) + .collect(Collectors.toList())); + } + /** * set priceChannel with the specified value * @param priceChannel value to be set diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsByIDPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsByIDPostString.java index 7a9670a3fa3..632da449fb5 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsByIDPostString.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsByIDPostString.java @@ -115,6 +115,10 @@ public List getPriceCustomerGroup() { return this.getQueryParam("priceCustomerGroup"); } + public List getPriceCustomerGroupAssignments() { + return this.getQueryParam("priceCustomerGroupAssignments"); + } + public List getPriceChannel() { return this.getQueryParam("priceChannel"); } @@ -376,6 +380,93 @@ public ByProjectKeyProductsByIDPostString addPriceCustomerGroup( .collect(Collectors.toList())); } + /** + * set priceCustomerGroupAssignments with the specified value + * @param value type + * @param priceCustomerGroupAssignments value to be set + * @return ByProjectKeyProductsByIDPostString + */ + public ByProjectKeyProductsByIDPostString withPriceCustomerGroupAssignments( + final TValue priceCustomerGroupAssignments) { + return copy().withQueryParam("priceCustomerGroupAssignments", priceCustomerGroupAssignments); + } + + /** + * add additional priceCustomerGroupAssignments query parameter + * @param value type + * @param priceCustomerGroupAssignments value to be added + * @return ByProjectKeyProductsByIDPostString + */ + public ByProjectKeyProductsByIDPostString addPriceCustomerGroupAssignments( + final TValue priceCustomerGroupAssignments) { + return copy().addQueryParam("priceCustomerGroupAssignments", priceCustomerGroupAssignments); + } + + /** + * set priceCustomerGroupAssignments with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyProductsByIDPostString + */ + public ByProjectKeyProductsByIDPostString withPriceCustomerGroupAssignments(final Supplier supplier) { + return copy().withQueryParam("priceCustomerGroupAssignments", supplier.get()); + } + + /** + * add additional priceCustomerGroupAssignments query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyProductsByIDPostString + */ + public ByProjectKeyProductsByIDPostString addPriceCustomerGroupAssignments(final Supplier supplier) { + return copy().addQueryParam("priceCustomerGroupAssignments", supplier.get()); + } + + /** + * set priceCustomerGroupAssignments with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyProductsByIDPostString + */ + public ByProjectKeyProductsByIDPostString withPriceCustomerGroupAssignments( + final Function op) { + return copy().withQueryParam("priceCustomerGroupAssignments", op.apply(new StringBuilder())); + } + + /** + * add additional priceCustomerGroupAssignments query parameter + * @param op builder for the value to be added + * @return ByProjectKeyProductsByIDPostString + */ + public ByProjectKeyProductsByIDPostString addPriceCustomerGroupAssignments( + final Function op) { + return copy().addQueryParam("priceCustomerGroupAssignments", op.apply(new StringBuilder())); + } + + /** + * set priceCustomerGroupAssignments with the specified values + * @param value type + * @param priceCustomerGroupAssignments values to be set + * @return ByProjectKeyProductsByIDPostString + */ + public ByProjectKeyProductsByIDPostString withPriceCustomerGroupAssignments( + final Collection priceCustomerGroupAssignments) { + return copy().withoutQueryParam("priceCustomerGroupAssignments") + .addQueryParams(priceCustomerGroupAssignments.stream() + .map(s -> new ParamEntry<>("priceCustomerGroupAssignments", s.toString())) + .collect(Collectors.toList())); + } + + /** + * add additional priceCustomerGroupAssignments query parameters + * @param value type + * @param priceCustomerGroupAssignments values to be added + * @return ByProjectKeyProductsByIDPostString + */ + public ByProjectKeyProductsByIDPostString addPriceCustomerGroupAssignments( + final Collection priceCustomerGroupAssignments) { + return copy().addQueryParams(priceCustomerGroupAssignments.stream() + .map(s -> new ParamEntry<>("priceCustomerGroupAssignments", s.toString())) + .collect(Collectors.toList())); + } + /** * set priceChannel with the specified value * @param value type diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsGet.java index 81cec5942f4..1428b0d4728 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsGet.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsGet.java @@ -105,6 +105,10 @@ public List getPriceCustomerGroup() { return this.getQueryParam("priceCustomerGroup"); } + public List getPriceCustomerGroupAssignments() { + return this.getQueryParam("priceCustomerGroupAssignments"); + } + public List getPriceChannel() { return this.getQueryParam("priceChannel"); } @@ -455,6 +459,91 @@ public ByProjectKeyProductsGet addPriceCustomerGroup(final Collection value type + * @return ByProjectKeyProductsGet + */ + public ByProjectKeyProductsGet withPriceCustomerGroupAssignments( + final TValue priceCustomerGroupAssignments) { + return copy().withQueryParam("priceCustomerGroupAssignments", priceCustomerGroupAssignments); + } + + /** + * add additional priceCustomerGroupAssignments query parameter + * @param priceCustomerGroupAssignments value to be added + * @param value type + * @return ByProjectKeyProductsGet + */ + public ByProjectKeyProductsGet addPriceCustomerGroupAssignments( + final TValue priceCustomerGroupAssignments) { + return copy().addQueryParam("priceCustomerGroupAssignments", priceCustomerGroupAssignments); + } + + /** + * set priceCustomerGroupAssignments with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyProductsGet + */ + public ByProjectKeyProductsGet withPriceCustomerGroupAssignments(final Supplier supplier) { + return copy().withQueryParam("priceCustomerGroupAssignments", supplier.get()); + } + + /** + * add additional priceCustomerGroupAssignments query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyProductsGet + */ + public ByProjectKeyProductsGet addPriceCustomerGroupAssignments(final Supplier supplier) { + return copy().addQueryParam("priceCustomerGroupAssignments", supplier.get()); + } + + /** + * set priceCustomerGroupAssignments with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyProductsGet + */ + public ByProjectKeyProductsGet withPriceCustomerGroupAssignments(final Function op) { + return copy().withQueryParam("priceCustomerGroupAssignments", op.apply(new StringBuilder())); + } + + /** + * add additional priceCustomerGroupAssignments query parameter + * @param op builder for the value to be added + * @return ByProjectKeyProductsGet + */ + public ByProjectKeyProductsGet addPriceCustomerGroupAssignments(final Function op) { + return copy().addQueryParam("priceCustomerGroupAssignments", op.apply(new StringBuilder())); + } + + /** + * set priceCustomerGroupAssignments with the specified values + * @param priceCustomerGroupAssignments values to be set + * @param value type + * @return ByProjectKeyProductsGet + */ + public ByProjectKeyProductsGet withPriceCustomerGroupAssignments( + final Collection priceCustomerGroupAssignments) { + return copy().withoutQueryParam("priceCustomerGroupAssignments") + .addQueryParams(priceCustomerGroupAssignments.stream() + .map(s -> new ParamEntry<>("priceCustomerGroupAssignments", s.toString())) + .collect(Collectors.toList())); + } + + /** + * add additional priceCustomerGroupAssignments query parameters + * @param priceCustomerGroupAssignments values to be added + * @param value type + * @return ByProjectKeyProductsGet + */ + public ByProjectKeyProductsGet addPriceCustomerGroupAssignments( + final Collection priceCustomerGroupAssignments) { + return copy().addQueryParams(priceCustomerGroupAssignments.stream() + .map(s -> new ParamEntry<>("priceCustomerGroupAssignments", s.toString())) + .collect(Collectors.toList())); + } + /** * set priceChannel with the specified value * @param priceChannel value to be set diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsKeyByKeyDelete.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsKeyByKeyDelete.java index ff8836df09b..a92d1840ded 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsKeyByKeyDelete.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsKeyByKeyDelete.java @@ -110,6 +110,10 @@ public List getPriceCustomerGroup() { return this.getQueryParam("priceCustomerGroup"); } + public List getPriceCustomerGroupAssignments() { + return this.getQueryParam("priceCustomerGroupAssignments"); + } + public List getPriceChannel() { return this.getQueryParam("priceChannel"); } @@ -375,6 +379,93 @@ public ByProjectKeyProductsKeyByKeyDelete addPriceCustomerGroup( .collect(Collectors.toList())); } + /** + * set priceCustomerGroupAssignments with the specified value + * @param priceCustomerGroupAssignments value to be set + * @param value type + * @return ByProjectKeyProductsKeyByKeyDelete + */ + public ByProjectKeyProductsKeyByKeyDelete withPriceCustomerGroupAssignments( + final TValue priceCustomerGroupAssignments) { + return copy().withQueryParam("priceCustomerGroupAssignments", priceCustomerGroupAssignments); + } + + /** + * add additional priceCustomerGroupAssignments query parameter + * @param priceCustomerGroupAssignments value to be added + * @param value type + * @return ByProjectKeyProductsKeyByKeyDelete + */ + public ByProjectKeyProductsKeyByKeyDelete addPriceCustomerGroupAssignments( + final TValue priceCustomerGroupAssignments) { + return copy().addQueryParam("priceCustomerGroupAssignments", priceCustomerGroupAssignments); + } + + /** + * set priceCustomerGroupAssignments with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyProductsKeyByKeyDelete + */ + public ByProjectKeyProductsKeyByKeyDelete withPriceCustomerGroupAssignments(final Supplier supplier) { + return copy().withQueryParam("priceCustomerGroupAssignments", supplier.get()); + } + + /** + * add additional priceCustomerGroupAssignments query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyProductsKeyByKeyDelete + */ + public ByProjectKeyProductsKeyByKeyDelete addPriceCustomerGroupAssignments(final Supplier supplier) { + return copy().addQueryParam("priceCustomerGroupAssignments", supplier.get()); + } + + /** + * set priceCustomerGroupAssignments with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyProductsKeyByKeyDelete + */ + public ByProjectKeyProductsKeyByKeyDelete withPriceCustomerGroupAssignments( + final Function op) { + return copy().withQueryParam("priceCustomerGroupAssignments", op.apply(new StringBuilder())); + } + + /** + * add additional priceCustomerGroupAssignments query parameter + * @param op builder for the value to be added + * @return ByProjectKeyProductsKeyByKeyDelete + */ + public ByProjectKeyProductsKeyByKeyDelete addPriceCustomerGroupAssignments( + final Function op) { + return copy().addQueryParam("priceCustomerGroupAssignments", op.apply(new StringBuilder())); + } + + /** + * set priceCustomerGroupAssignments with the specified values + * @param priceCustomerGroupAssignments values to be set + * @param value type + * @return ByProjectKeyProductsKeyByKeyDelete + */ + public ByProjectKeyProductsKeyByKeyDelete withPriceCustomerGroupAssignments( + final Collection priceCustomerGroupAssignments) { + return copy().withoutQueryParam("priceCustomerGroupAssignments") + .addQueryParams(priceCustomerGroupAssignments.stream() + .map(s -> new ParamEntry<>("priceCustomerGroupAssignments", s.toString())) + .collect(Collectors.toList())); + } + + /** + * add additional priceCustomerGroupAssignments query parameters + * @param priceCustomerGroupAssignments values to be added + * @param value type + * @return ByProjectKeyProductsKeyByKeyDelete + */ + public ByProjectKeyProductsKeyByKeyDelete addPriceCustomerGroupAssignments( + final Collection priceCustomerGroupAssignments) { + return copy().addQueryParams(priceCustomerGroupAssignments.stream() + .map(s -> new ParamEntry<>("priceCustomerGroupAssignments", s.toString())) + .collect(Collectors.toList())); + } + /** * set priceChannel with the specified value * @param priceChannel value to be set diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsKeyByKeyGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsKeyByKeyGet.java index f279588567a..0ecb2f52294 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsKeyByKeyGet.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsKeyByKeyGet.java @@ -106,6 +106,10 @@ public List getPriceCustomerGroup() { return this.getQueryParam("priceCustomerGroup"); } + public List getPriceCustomerGroupAssignments() { + return this.getQueryParam("priceCustomerGroupAssignments"); + } + public List getPriceChannel() { return this.getQueryParam("priceChannel"); } @@ -366,6 +370,93 @@ public ByProjectKeyProductsKeyByKeyGet addPriceCustomerGroup(final Coll .collect(Collectors.toList())); } + /** + * set priceCustomerGroupAssignments with the specified value + * @param priceCustomerGroupAssignments value to be set + * @param value type + * @return ByProjectKeyProductsKeyByKeyGet + */ + public ByProjectKeyProductsKeyByKeyGet withPriceCustomerGroupAssignments( + final TValue priceCustomerGroupAssignments) { + return copy().withQueryParam("priceCustomerGroupAssignments", priceCustomerGroupAssignments); + } + + /** + * add additional priceCustomerGroupAssignments query parameter + * @param priceCustomerGroupAssignments value to be added + * @param value type + * @return ByProjectKeyProductsKeyByKeyGet + */ + public ByProjectKeyProductsKeyByKeyGet addPriceCustomerGroupAssignments( + final TValue priceCustomerGroupAssignments) { + return copy().addQueryParam("priceCustomerGroupAssignments", priceCustomerGroupAssignments); + } + + /** + * set priceCustomerGroupAssignments with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyProductsKeyByKeyGet + */ + public ByProjectKeyProductsKeyByKeyGet withPriceCustomerGroupAssignments(final Supplier supplier) { + return copy().withQueryParam("priceCustomerGroupAssignments", supplier.get()); + } + + /** + * add additional priceCustomerGroupAssignments query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyProductsKeyByKeyGet + */ + public ByProjectKeyProductsKeyByKeyGet addPriceCustomerGroupAssignments(final Supplier supplier) { + return copy().addQueryParam("priceCustomerGroupAssignments", supplier.get()); + } + + /** + * set priceCustomerGroupAssignments with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyProductsKeyByKeyGet + */ + public ByProjectKeyProductsKeyByKeyGet withPriceCustomerGroupAssignments( + final Function op) { + return copy().withQueryParam("priceCustomerGroupAssignments", op.apply(new StringBuilder())); + } + + /** + * add additional priceCustomerGroupAssignments query parameter + * @param op builder for the value to be added + * @return ByProjectKeyProductsKeyByKeyGet + */ + public ByProjectKeyProductsKeyByKeyGet addPriceCustomerGroupAssignments( + final Function op) { + return copy().addQueryParam("priceCustomerGroupAssignments", op.apply(new StringBuilder())); + } + + /** + * set priceCustomerGroupAssignments with the specified values + * @param priceCustomerGroupAssignments values to be set + * @param value type + * @return ByProjectKeyProductsKeyByKeyGet + */ + public ByProjectKeyProductsKeyByKeyGet withPriceCustomerGroupAssignments( + final Collection priceCustomerGroupAssignments) { + return copy().withoutQueryParam("priceCustomerGroupAssignments") + .addQueryParams(priceCustomerGroupAssignments.stream() + .map(s -> new ParamEntry<>("priceCustomerGroupAssignments", s.toString())) + .collect(Collectors.toList())); + } + + /** + * add additional priceCustomerGroupAssignments query parameters + * @param priceCustomerGroupAssignments values to be added + * @param value type + * @return ByProjectKeyProductsKeyByKeyGet + */ + public ByProjectKeyProductsKeyByKeyGet addPriceCustomerGroupAssignments( + final Collection priceCustomerGroupAssignments) { + return copy().addQueryParams(priceCustomerGroupAssignments.stream() + .map(s -> new ParamEntry<>("priceCustomerGroupAssignments", s.toString())) + .collect(Collectors.toList())); + } + /** * set priceChannel with the specified value * @param priceChannel value to be set diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsKeyByKeyPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsKeyByKeyPost.java index 6d5749bb546..a049944f298 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsKeyByKeyPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsKeyByKeyPost.java @@ -115,6 +115,10 @@ public List getPriceCustomerGroup() { return this.getQueryParam("priceCustomerGroup"); } + public List getPriceCustomerGroupAssignments() { + return this.getQueryParam("priceCustomerGroupAssignments"); + } + public List getPriceChannel() { return this.getQueryParam("priceChannel"); } @@ -376,6 +380,93 @@ public ByProjectKeyProductsKeyByKeyPost addPriceCustomerGroup( .collect(Collectors.toList())); } + /** + * set priceCustomerGroupAssignments with the specified value + * @param priceCustomerGroupAssignments value to be set + * @param value type + * @return ByProjectKeyProductsKeyByKeyPost + */ + public ByProjectKeyProductsKeyByKeyPost withPriceCustomerGroupAssignments( + final TValue priceCustomerGroupAssignments) { + return copy().withQueryParam("priceCustomerGroupAssignments", priceCustomerGroupAssignments); + } + + /** + * add additional priceCustomerGroupAssignments query parameter + * @param priceCustomerGroupAssignments value to be added + * @param value type + * @return ByProjectKeyProductsKeyByKeyPost + */ + public ByProjectKeyProductsKeyByKeyPost addPriceCustomerGroupAssignments( + final TValue priceCustomerGroupAssignments) { + return copy().addQueryParam("priceCustomerGroupAssignments", priceCustomerGroupAssignments); + } + + /** + * set priceCustomerGroupAssignments with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyProductsKeyByKeyPost + */ + public ByProjectKeyProductsKeyByKeyPost withPriceCustomerGroupAssignments(final Supplier supplier) { + return copy().withQueryParam("priceCustomerGroupAssignments", supplier.get()); + } + + /** + * add additional priceCustomerGroupAssignments query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyProductsKeyByKeyPost + */ + public ByProjectKeyProductsKeyByKeyPost addPriceCustomerGroupAssignments(final Supplier supplier) { + return copy().addQueryParam("priceCustomerGroupAssignments", supplier.get()); + } + + /** + * set priceCustomerGroupAssignments with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyProductsKeyByKeyPost + */ + public ByProjectKeyProductsKeyByKeyPost withPriceCustomerGroupAssignments( + final Function op) { + return copy().withQueryParam("priceCustomerGroupAssignments", op.apply(new StringBuilder())); + } + + /** + * add additional priceCustomerGroupAssignments query parameter + * @param op builder for the value to be added + * @return ByProjectKeyProductsKeyByKeyPost + */ + public ByProjectKeyProductsKeyByKeyPost addPriceCustomerGroupAssignments( + final Function op) { + return copy().addQueryParam("priceCustomerGroupAssignments", op.apply(new StringBuilder())); + } + + /** + * set priceCustomerGroupAssignments with the specified values + * @param priceCustomerGroupAssignments values to be set + * @param value type + * @return ByProjectKeyProductsKeyByKeyPost + */ + public ByProjectKeyProductsKeyByKeyPost withPriceCustomerGroupAssignments( + final Collection priceCustomerGroupAssignments) { + return copy().withoutQueryParam("priceCustomerGroupAssignments") + .addQueryParams(priceCustomerGroupAssignments.stream() + .map(s -> new ParamEntry<>("priceCustomerGroupAssignments", s.toString())) + .collect(Collectors.toList())); + } + + /** + * add additional priceCustomerGroupAssignments query parameters + * @param priceCustomerGroupAssignments values to be added + * @param value type + * @return ByProjectKeyProductsKeyByKeyPost + */ + public ByProjectKeyProductsKeyByKeyPost addPriceCustomerGroupAssignments( + final Collection priceCustomerGroupAssignments) { + return copy().addQueryParams(priceCustomerGroupAssignments.stream() + .map(s -> new ParamEntry<>("priceCustomerGroupAssignments", s.toString())) + .collect(Collectors.toList())); + } + /** * set priceChannel with the specified value * @param priceChannel value to be set diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsKeyByKeyPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsKeyByKeyPostString.java index dafe2d9b032..8e057e77f03 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsKeyByKeyPostString.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsKeyByKeyPostString.java @@ -114,6 +114,10 @@ public List getPriceCustomerGroup() { return this.getQueryParam("priceCustomerGroup"); } + public List getPriceCustomerGroupAssignments() { + return this.getQueryParam("priceCustomerGroupAssignments"); + } + public List getPriceChannel() { return this.getQueryParam("priceChannel"); } @@ -377,6 +381,93 @@ public ByProjectKeyProductsKeyByKeyPostString addPriceCustomerGroup( .collect(Collectors.toList())); } + /** + * set priceCustomerGroupAssignments with the specified value + * @param value type + * @param priceCustomerGroupAssignments value to be set + * @return ByProjectKeyProductsKeyByKeyPostString + */ + public ByProjectKeyProductsKeyByKeyPostString withPriceCustomerGroupAssignments( + final TValue priceCustomerGroupAssignments) { + return copy().withQueryParam("priceCustomerGroupAssignments", priceCustomerGroupAssignments); + } + + /** + * add additional priceCustomerGroupAssignments query parameter + * @param value type + * @param priceCustomerGroupAssignments value to be added + * @return ByProjectKeyProductsKeyByKeyPostString + */ + public ByProjectKeyProductsKeyByKeyPostString addPriceCustomerGroupAssignments( + final TValue priceCustomerGroupAssignments) { + return copy().addQueryParam("priceCustomerGroupAssignments", priceCustomerGroupAssignments); + } + + /** + * set priceCustomerGroupAssignments with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyProductsKeyByKeyPostString + */ + public ByProjectKeyProductsKeyByKeyPostString withPriceCustomerGroupAssignments(final Supplier supplier) { + return copy().withQueryParam("priceCustomerGroupAssignments", supplier.get()); + } + + /** + * add additional priceCustomerGroupAssignments query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyProductsKeyByKeyPostString + */ + public ByProjectKeyProductsKeyByKeyPostString addPriceCustomerGroupAssignments(final Supplier supplier) { + return copy().addQueryParam("priceCustomerGroupAssignments", supplier.get()); + } + + /** + * set priceCustomerGroupAssignments with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyProductsKeyByKeyPostString + */ + public ByProjectKeyProductsKeyByKeyPostString withPriceCustomerGroupAssignments( + final Function op) { + return copy().withQueryParam("priceCustomerGroupAssignments", op.apply(new StringBuilder())); + } + + /** + * add additional priceCustomerGroupAssignments query parameter + * @param op builder for the value to be added + * @return ByProjectKeyProductsKeyByKeyPostString + */ + public ByProjectKeyProductsKeyByKeyPostString addPriceCustomerGroupAssignments( + final Function op) { + return copy().addQueryParam("priceCustomerGroupAssignments", op.apply(new StringBuilder())); + } + + /** + * set priceCustomerGroupAssignments with the specified values + * @param value type + * @param priceCustomerGroupAssignments values to be set + * @return ByProjectKeyProductsKeyByKeyPostString + */ + public ByProjectKeyProductsKeyByKeyPostString withPriceCustomerGroupAssignments( + final Collection priceCustomerGroupAssignments) { + return copy().withoutQueryParam("priceCustomerGroupAssignments") + .addQueryParams(priceCustomerGroupAssignments.stream() + .map(s -> new ParamEntry<>("priceCustomerGroupAssignments", s.toString())) + .collect(Collectors.toList())); + } + + /** + * add additional priceCustomerGroupAssignments query parameters + * @param value type + * @param priceCustomerGroupAssignments values to be added + * @return ByProjectKeyProductsKeyByKeyPostString + */ + public ByProjectKeyProductsKeyByKeyPostString addPriceCustomerGroupAssignments( + final Collection priceCustomerGroupAssignments) { + return copy().addQueryParams(priceCustomerGroupAssignments.stream() + .map(s -> new ParamEntry<>("priceCustomerGroupAssignments", s.toString())) + .collect(Collectors.toList())); + } + /** * set priceChannel with the specified value * @param value type diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsPost.java index e7c6e50be8f..894818ac200 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsPost.java @@ -105,6 +105,10 @@ public List getPriceCustomerGroup() { return this.getQueryParam("priceCustomerGroup"); } + public List getPriceCustomerGroupAssignments() { + return this.getQueryParam("priceCustomerGroupAssignments"); + } + public List getPriceChannel() { return this.getQueryParam("priceChannel"); } @@ -360,6 +364,91 @@ public ByProjectKeyProductsPost addPriceCustomerGroup(final Collection< .collect(Collectors.toList())); } + /** + * set priceCustomerGroupAssignments with the specified value + * @param priceCustomerGroupAssignments value to be set + * @param value type + * @return ByProjectKeyProductsPost + */ + public ByProjectKeyProductsPost withPriceCustomerGroupAssignments( + final TValue priceCustomerGroupAssignments) { + return copy().withQueryParam("priceCustomerGroupAssignments", priceCustomerGroupAssignments); + } + + /** + * add additional priceCustomerGroupAssignments query parameter + * @param priceCustomerGroupAssignments value to be added + * @param value type + * @return ByProjectKeyProductsPost + */ + public ByProjectKeyProductsPost addPriceCustomerGroupAssignments( + final TValue priceCustomerGroupAssignments) { + return copy().addQueryParam("priceCustomerGroupAssignments", priceCustomerGroupAssignments); + } + + /** + * set priceCustomerGroupAssignments with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyProductsPost + */ + public ByProjectKeyProductsPost withPriceCustomerGroupAssignments(final Supplier supplier) { + return copy().withQueryParam("priceCustomerGroupAssignments", supplier.get()); + } + + /** + * add additional priceCustomerGroupAssignments query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyProductsPost + */ + public ByProjectKeyProductsPost addPriceCustomerGroupAssignments(final Supplier supplier) { + return copy().addQueryParam("priceCustomerGroupAssignments", supplier.get()); + } + + /** + * set priceCustomerGroupAssignments with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyProductsPost + */ + public ByProjectKeyProductsPost withPriceCustomerGroupAssignments(final Function op) { + return copy().withQueryParam("priceCustomerGroupAssignments", op.apply(new StringBuilder())); + } + + /** + * add additional priceCustomerGroupAssignments query parameter + * @param op builder for the value to be added + * @return ByProjectKeyProductsPost + */ + public ByProjectKeyProductsPost addPriceCustomerGroupAssignments(final Function op) { + return copy().addQueryParam("priceCustomerGroupAssignments", op.apply(new StringBuilder())); + } + + /** + * set priceCustomerGroupAssignments with the specified values + * @param priceCustomerGroupAssignments values to be set + * @param value type + * @return ByProjectKeyProductsPost + */ + public ByProjectKeyProductsPost withPriceCustomerGroupAssignments( + final Collection priceCustomerGroupAssignments) { + return copy().withoutQueryParam("priceCustomerGroupAssignments") + .addQueryParams(priceCustomerGroupAssignments.stream() + .map(s -> new ParamEntry<>("priceCustomerGroupAssignments", s.toString())) + .collect(Collectors.toList())); + } + + /** + * add additional priceCustomerGroupAssignments query parameters + * @param priceCustomerGroupAssignments values to be added + * @param value type + * @return ByProjectKeyProductsPost + */ + public ByProjectKeyProductsPost addPriceCustomerGroupAssignments( + final Collection priceCustomerGroupAssignments) { + return copy().addQueryParams(priceCustomerGroupAssignments.stream() + .map(s -> new ParamEntry<>("priceCustomerGroupAssignments", s.toString())) + .collect(Collectors.toList())); + } + /** * set priceChannel with the specified value * @param priceChannel value to be set diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsPostString.java index 8aaabc12bc0..2ffdec87f6f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsPostString.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsPostString.java @@ -104,6 +104,10 @@ public List getPriceCustomerGroup() { return this.getQueryParam("priceCustomerGroup"); } + public List getPriceCustomerGroupAssignments() { + return this.getQueryParam("priceCustomerGroupAssignments"); + } + public List getPriceChannel() { return this.getQueryParam("priceChannel"); } @@ -359,6 +363,93 @@ public ByProjectKeyProductsPostString addPriceCustomerGroup(final Colle .collect(Collectors.toList())); } + /** + * set priceCustomerGroupAssignments with the specified value + * @param value type + * @param priceCustomerGroupAssignments value to be set + * @return ByProjectKeyProductsPostString + */ + public ByProjectKeyProductsPostString withPriceCustomerGroupAssignments( + final TValue priceCustomerGroupAssignments) { + return copy().withQueryParam("priceCustomerGroupAssignments", priceCustomerGroupAssignments); + } + + /** + * add additional priceCustomerGroupAssignments query parameter + * @param value type + * @param priceCustomerGroupAssignments value to be added + * @return ByProjectKeyProductsPostString + */ + public ByProjectKeyProductsPostString addPriceCustomerGroupAssignments( + final TValue priceCustomerGroupAssignments) { + return copy().addQueryParam("priceCustomerGroupAssignments", priceCustomerGroupAssignments); + } + + /** + * set priceCustomerGroupAssignments with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyProductsPostString + */ + public ByProjectKeyProductsPostString withPriceCustomerGroupAssignments(final Supplier supplier) { + return copy().withQueryParam("priceCustomerGroupAssignments", supplier.get()); + } + + /** + * add additional priceCustomerGroupAssignments query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyProductsPostString + */ + public ByProjectKeyProductsPostString addPriceCustomerGroupAssignments(final Supplier supplier) { + return copy().addQueryParam("priceCustomerGroupAssignments", supplier.get()); + } + + /** + * set priceCustomerGroupAssignments with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyProductsPostString + */ + public ByProjectKeyProductsPostString withPriceCustomerGroupAssignments( + final Function op) { + return copy().withQueryParam("priceCustomerGroupAssignments", op.apply(new StringBuilder())); + } + + /** + * add additional priceCustomerGroupAssignments query parameter + * @param op builder for the value to be added + * @return ByProjectKeyProductsPostString + */ + public ByProjectKeyProductsPostString addPriceCustomerGroupAssignments( + final Function op) { + return copy().addQueryParam("priceCustomerGroupAssignments", op.apply(new StringBuilder())); + } + + /** + * set priceCustomerGroupAssignments with the specified values + * @param value type + * @param priceCustomerGroupAssignments values to be set + * @return ByProjectKeyProductsPostString + */ + public ByProjectKeyProductsPostString withPriceCustomerGroupAssignments( + final Collection priceCustomerGroupAssignments) { + return copy().withoutQueryParam("priceCustomerGroupAssignments") + .addQueryParams(priceCustomerGroupAssignments.stream() + .map(s -> new ParamEntry<>("priceCustomerGroupAssignments", s.toString())) + .collect(Collectors.toList())); + } + + /** + * add additional priceCustomerGroupAssignments query parameters + * @param value type + * @param priceCustomerGroupAssignments values to be added + * @return ByProjectKeyProductsPostString + */ + public ByProjectKeyProductsPostString addPriceCustomerGroupAssignments( + final Collection priceCustomerGroupAssignments) { + return copy().addQueryParams(priceCustomerGroupAssignments.stream() + .map(s -> new ParamEntry<>("priceCustomerGroupAssignments", s.toString())) + .collect(Collectors.toList())); + } + /** * set priceChannel with the specified value * @param value type diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/PriceselectingTrait.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/PriceselectingTrait.java index e78b9e3fa07..71738fb1bf4 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/PriceselectingTrait.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/PriceselectingTrait.java @@ -17,6 +17,8 @@ public interface PriceselectingTrait> { List getPriceCustomerGroup(); + List getPriceCustomerGroupAssignments(); + List getPriceChannel(); /** @@ -67,6 +69,22 @@ public interface PriceselectingTrait> { */ PriceselectingTrait addPriceCustomerGroup(final TValue priceCustomerGroup); + /** + * set priceCustomerGroupAssignments with the specificied value + * @param priceCustomerGroupAssignments value to be set + * @param value type + * @return PriceselectingTrait + */ + PriceselectingTrait withPriceCustomerGroupAssignments(final TValue priceCustomerGroupAssignments); + + /** + * add additional priceCustomerGroupAssignments query parameter + * @param priceCustomerGroupAssignments value to be added + * @param value type + * @return PriceselectingTrait + */ + PriceselectingTrait addPriceCustomerGroupAssignments(final TValue priceCustomerGroupAssignments); + /** * set priceChannel with the specificied value * @param priceChannel value to be set diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/Customer.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/Customer.java index 316538da7f1..902e03e9bc8 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/Customer.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/Customer.java @@ -300,6 +300,14 @@ public interface Customer extends BaseResource, CustomerMixin, com.commercetools @JsonProperty("authenticationMode") public AuthenticationMode getAuthenticationMode(); + /** + *

Customer Groups of the Customer.

+ * @return customerGroupAssignments + */ + @Valid + @JsonProperty("customerGroupAssignments") + public List getCustomerGroupAssignments(); + /** *

Unique identifier of the Customer.

* @param id value to be set @@ -551,6 +559,21 @@ public interface Customer extends BaseResource, CustomerMixin, com.commercetools public void setAuthenticationMode(final AuthenticationMode authenticationMode); + /** + *

Customer Groups of the Customer.

+ * @param customerGroupAssignments values to be set + */ + + @JsonIgnore + public void setCustomerGroupAssignments(final CustomerGroupAssignment... customerGroupAssignments); + + /** + *

Customer Groups of the Customer.

+ * @param customerGroupAssignments values to be set + */ + + public void setCustomerGroupAssignments(final List customerGroupAssignments); + /** * factory method * @return instance of Customer @@ -596,6 +619,7 @@ public static Customer of(final Customer template) { instance.setSalutation(template.getSalutation()); instance.setStores(template.getStores()); instance.setAuthenticationMode(template.getAuthenticationMode()); + instance.setCustomerGroupAssignments(template.getCustomerGroupAssignments()); return instance; } @@ -652,6 +676,11 @@ public static Customer deepCopy(@Nullable final Customer template) { .collect(Collectors.toList())) .orElse(null)); instance.setAuthenticationMode(template.getAuthenticationMode()); + instance.setCustomerGroupAssignments(Optional.ofNullable(template.getCustomerGroupAssignments()) + .map(t -> t.stream() + .map(com.commercetools.api.models.customer.CustomerGroupAssignment::deepCopy) + .collect(Collectors.toList())) + .orElse(null)); return instance; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerAddCustomerGroupAssignmentAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerAddCustomerGroupAssignmentAction.java new file mode 100644 index 00000000000..26b3519d388 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerAddCustomerGroupAssignmentAction.java @@ -0,0 +1,133 @@ + +package com.commercetools.api.models.customer; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; + +/** + *

Adds a single Customer Group to the Customer's list of customerGroupAssignments. Adding a Customer Group generates the CustomerGroupAssignmentAdded Message.

+ * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     CustomerAddCustomerGroupAssignmentAction customerAddCustomerGroupAssignmentAction = CustomerAddCustomerGroupAssignmentAction.builder()
+ *             .customerGroupAssignment(customerGroupAssignmentBuilder -> customerGroupAssignmentBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = CustomerAddCustomerGroupAssignmentActionImpl.class) +public interface CustomerAddCustomerGroupAssignmentAction extends CustomerUpdateAction { + + /** + * discriminator value for CustomerAddCustomerGroupAssignmentAction + */ + String ADD_CUSTOMER_GROUP_ASSIGNMENT = "addCustomerGroupAssignment"; + + /** + *

Customer Group to assign to the Customer.

+ * @return customerGroupAssignment + */ + @NotNull + @Valid + @JsonProperty("customerGroupAssignment") + public CustomerGroupAssignmentDraft getCustomerGroupAssignment(); + + /** + *

Customer Group to assign to the Customer.

+ * @param customerGroupAssignment value to be set + */ + + public void setCustomerGroupAssignment(final CustomerGroupAssignmentDraft customerGroupAssignment); + + /** + * factory method + * @return instance of CustomerAddCustomerGroupAssignmentAction + */ + public static CustomerAddCustomerGroupAssignmentAction of() { + return new CustomerAddCustomerGroupAssignmentActionImpl(); + } + + /** + * factory method to create a shallow copy CustomerAddCustomerGroupAssignmentAction + * @param template instance to be copied + * @return copy instance + */ + public static CustomerAddCustomerGroupAssignmentAction of(final CustomerAddCustomerGroupAssignmentAction template) { + CustomerAddCustomerGroupAssignmentActionImpl instance = new CustomerAddCustomerGroupAssignmentActionImpl(); + instance.setCustomerGroupAssignment(template.getCustomerGroupAssignment()); + return instance; + } + + /** + * factory method to create a deep copy of CustomerAddCustomerGroupAssignmentAction + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static CustomerAddCustomerGroupAssignmentAction deepCopy( + @Nullable final CustomerAddCustomerGroupAssignmentAction template) { + if (template == null) { + return null; + } + CustomerAddCustomerGroupAssignmentActionImpl instance = new CustomerAddCustomerGroupAssignmentActionImpl(); + instance.setCustomerGroupAssignment(com.commercetools.api.models.customer.CustomerGroupAssignmentDraft + .deepCopy(template.getCustomerGroupAssignment())); + return instance; + } + + /** + * builder factory method for CustomerAddCustomerGroupAssignmentAction + * @return builder + */ + public static CustomerAddCustomerGroupAssignmentActionBuilder builder() { + return CustomerAddCustomerGroupAssignmentActionBuilder.of(); + } + + /** + * create builder for CustomerAddCustomerGroupAssignmentAction instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CustomerAddCustomerGroupAssignmentActionBuilder builder( + final CustomerAddCustomerGroupAssignmentAction template) { + return CustomerAddCustomerGroupAssignmentActionBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withCustomerAddCustomerGroupAssignmentAction( + Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerAddCustomerGroupAssignmentActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerAddCustomerGroupAssignmentActionBuilder.java new file mode 100644 index 00000000000..c050078c5c9 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerAddCustomerGroupAssignmentActionBuilder.java @@ -0,0 +1,114 @@ + +package com.commercetools.api.models.customer; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * CustomerAddCustomerGroupAssignmentActionBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     CustomerAddCustomerGroupAssignmentAction customerAddCustomerGroupAssignmentAction = CustomerAddCustomerGroupAssignmentAction.builder()
+ *             .customerGroupAssignment(customerGroupAssignmentBuilder -> customerGroupAssignmentBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CustomerAddCustomerGroupAssignmentActionBuilder + implements Builder { + + private com.commercetools.api.models.customer.CustomerGroupAssignmentDraft customerGroupAssignment; + + /** + *

Customer Group to assign to the Customer.

+ * @param builder function to build the customerGroupAssignment value + * @return Builder + */ + + public CustomerAddCustomerGroupAssignmentActionBuilder customerGroupAssignment( + Function builder) { + this.customerGroupAssignment = builder + .apply(com.commercetools.api.models.customer.CustomerGroupAssignmentDraftBuilder.of()) + .build(); + return this; + } + + /** + *

Customer Group to assign to the Customer.

+ * @param builder function to build the customerGroupAssignment value + * @return Builder + */ + + public CustomerAddCustomerGroupAssignmentActionBuilder withCustomerGroupAssignment( + Function builder) { + this.customerGroupAssignment = builder + .apply(com.commercetools.api.models.customer.CustomerGroupAssignmentDraftBuilder.of()); + return this; + } + + /** + *

Customer Group to assign to the Customer.

+ * @param customerGroupAssignment value to be set + * @return Builder + */ + + public CustomerAddCustomerGroupAssignmentActionBuilder customerGroupAssignment( + final com.commercetools.api.models.customer.CustomerGroupAssignmentDraft customerGroupAssignment) { + this.customerGroupAssignment = customerGroupAssignment; + return this; + } + + /** + *

Customer Group to assign to the Customer.

+ * @return customerGroupAssignment + */ + + public com.commercetools.api.models.customer.CustomerGroupAssignmentDraft getCustomerGroupAssignment() { + return this.customerGroupAssignment; + } + + /** + * builds CustomerAddCustomerGroupAssignmentAction with checking for non-null required values + * @return CustomerAddCustomerGroupAssignmentAction + */ + public CustomerAddCustomerGroupAssignmentAction build() { + Objects.requireNonNull(customerGroupAssignment, + CustomerAddCustomerGroupAssignmentAction.class + ": customerGroupAssignment is missing"); + return new CustomerAddCustomerGroupAssignmentActionImpl(customerGroupAssignment); + } + + /** + * builds CustomerAddCustomerGroupAssignmentAction without checking for non-null required values + * @return CustomerAddCustomerGroupAssignmentAction + */ + public CustomerAddCustomerGroupAssignmentAction buildUnchecked() { + return new CustomerAddCustomerGroupAssignmentActionImpl(customerGroupAssignment); + } + + /** + * factory method for an instance of CustomerAddCustomerGroupAssignmentActionBuilder + * @return builder + */ + public static CustomerAddCustomerGroupAssignmentActionBuilder of() { + return new CustomerAddCustomerGroupAssignmentActionBuilder(); + } + + /** + * create builder for CustomerAddCustomerGroupAssignmentAction instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CustomerAddCustomerGroupAssignmentActionBuilder of( + final CustomerAddCustomerGroupAssignmentAction template) { + CustomerAddCustomerGroupAssignmentActionBuilder builder = new CustomerAddCustomerGroupAssignmentActionBuilder(); + builder.customerGroupAssignment = template.getCustomerGroupAssignment(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerAddCustomerGroupAssignmentActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerAddCustomerGroupAssignmentActionImpl.java new file mode 100644 index 00000000000..154a837ee76 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerAddCustomerGroupAssignmentActionImpl.java @@ -0,0 +1,97 @@ + +package com.commercetools.api.models.customer; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.ModelBase; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +/** + *

Adds a single Customer Group to the Customer's list of customerGroupAssignments. Adding a Customer Group generates the CustomerGroupAssignmentAdded Message.

+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CustomerAddCustomerGroupAssignmentActionImpl + implements CustomerAddCustomerGroupAssignmentAction, ModelBase { + + private String action; + + private com.commercetools.api.models.customer.CustomerGroupAssignmentDraft customerGroupAssignment; + + /** + * create instance with all properties + */ + @JsonCreator + CustomerAddCustomerGroupAssignmentActionImpl( + @JsonProperty("customerGroupAssignment") final com.commercetools.api.models.customer.CustomerGroupAssignmentDraft customerGroupAssignment) { + this.customerGroupAssignment = customerGroupAssignment; + this.action = ADD_CUSTOMER_GROUP_ASSIGNMENT; + } + + /** + * create empty instance + */ + public CustomerAddCustomerGroupAssignmentActionImpl() { + this.action = ADD_CUSTOMER_GROUP_ASSIGNMENT; + } + + /** + * + */ + + public String getAction() { + return this.action; + } + + /** + *

Customer Group to assign to the Customer.

+ */ + + public com.commercetools.api.models.customer.CustomerGroupAssignmentDraft getCustomerGroupAssignment() { + return this.customerGroupAssignment; + } + + public void setCustomerGroupAssignment( + final com.commercetools.api.models.customer.CustomerGroupAssignmentDraft customerGroupAssignment) { + this.customerGroupAssignment = customerGroupAssignment; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + CustomerAddCustomerGroupAssignmentActionImpl that = (CustomerAddCustomerGroupAssignmentActionImpl) o; + + return new EqualsBuilder().append(action, that.action) + .append(customerGroupAssignment, that.customerGroupAssignment) + .append(action, that.action) + .append(customerGroupAssignment, that.customerGroupAssignment) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(action).append(customerGroupAssignment).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("action", action) + .append("customerGroupAssignment", customerGroupAssignment) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerBuilder.java index 70a9c8c99f1..307406a0f54 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerBuilder.java @@ -113,6 +113,9 @@ public class CustomerBuilder implements Builder { private com.commercetools.api.models.customer.AuthenticationMode authenticationMode; + @Nullable + private java.util.List customerGroupAssignments; + /** *

Unique identifier of the Customer.

* @param id value to be set @@ -774,6 +777,99 @@ public CustomerBuilder authenticationMode( return this; } + /** + *

Customer Groups of the Customer.

+ * @param customerGroupAssignments value to be set + * @return Builder + */ + + public CustomerBuilder customerGroupAssignments( + @Nullable final com.commercetools.api.models.customer.CustomerGroupAssignment... customerGroupAssignments) { + this.customerGroupAssignments = new ArrayList<>(Arrays.asList(customerGroupAssignments)); + return this; + } + + /** + *

Customer Groups of the Customer.

+ * @param customerGroupAssignments value to be set + * @return Builder + */ + + public CustomerBuilder customerGroupAssignments( + @Nullable final java.util.List customerGroupAssignments) { + this.customerGroupAssignments = customerGroupAssignments; + return this; + } + + /** + *

Customer Groups of the Customer.

+ * @param customerGroupAssignments value to be set + * @return Builder + */ + + public CustomerBuilder plusCustomerGroupAssignments( + @Nullable final com.commercetools.api.models.customer.CustomerGroupAssignment... customerGroupAssignments) { + if (this.customerGroupAssignments == null) { + this.customerGroupAssignments = new ArrayList<>(); + } + this.customerGroupAssignments.addAll(Arrays.asList(customerGroupAssignments)); + return this; + } + + /** + *

Customer Groups of the Customer.

+ * @param builder function to build the customerGroupAssignments value + * @return Builder + */ + + public CustomerBuilder plusCustomerGroupAssignments( + Function builder) { + if (this.customerGroupAssignments == null) { + this.customerGroupAssignments = new ArrayList<>(); + } + this.customerGroupAssignments + .add(builder.apply(com.commercetools.api.models.customer.CustomerGroupAssignmentBuilder.of()).build()); + return this; + } + + /** + *

Customer Groups of the Customer.

+ * @param builder function to build the customerGroupAssignments value + * @return Builder + */ + + public CustomerBuilder withCustomerGroupAssignments( + Function builder) { + this.customerGroupAssignments = new ArrayList<>(); + this.customerGroupAssignments + .add(builder.apply(com.commercetools.api.models.customer.CustomerGroupAssignmentBuilder.of()).build()); + return this; + } + + /** + *

Customer Groups of the Customer.

+ * @param builder function to build the customerGroupAssignments value + * @return Builder + */ + + public CustomerBuilder addCustomerGroupAssignments( + Function builder) { + return plusCustomerGroupAssignments( + builder.apply(com.commercetools.api.models.customer.CustomerGroupAssignmentBuilder.of())); + } + + /** + *

Customer Groups of the Customer.

+ * @param builder function to build the customerGroupAssignments value + * @return Builder + */ + + public CustomerBuilder setCustomerGroupAssignments( + Function builder) { + return customerGroupAssignments( + builder.apply(com.commercetools.api.models.customer.CustomerGroupAssignmentBuilder.of())); + } + /** *

Unique identifier of the Customer.

* @return id @@ -1070,6 +1166,16 @@ public com.commercetools.api.models.customer.AuthenticationMode getAuthenticatio return this.authenticationMode; } + /** + *

Customer Groups of the Customer.

+ * @return customerGroupAssignments + */ + + @Nullable + public java.util.List getCustomerGroupAssignments() { + return this.customerGroupAssignments; + } + /** * builds Customer with checking for non-null required values * @return Customer @@ -1087,7 +1193,8 @@ public Customer build() { return new CustomerImpl(id, version, createdAt, lastModifiedAt, key, customerNumber, externalId, lastModifiedBy, createdBy, email, password, firstName, lastName, middleName, title, dateOfBirth, companyName, vatId, addresses, defaultShippingAddressId, shippingAddressIds, defaultBillingAddressId, billingAddressIds, - isEmailVerified, customerGroup, custom, locale, salutation, stores, authenticationMode); + isEmailVerified, customerGroup, custom, locale, salutation, stores, authenticationMode, + customerGroupAssignments); } /** @@ -1098,7 +1205,8 @@ public Customer buildUnchecked() { return new CustomerImpl(id, version, createdAt, lastModifiedAt, key, customerNumber, externalId, lastModifiedBy, createdBy, email, password, firstName, lastName, middleName, title, dateOfBirth, companyName, vatId, addresses, defaultShippingAddressId, shippingAddressIds, defaultBillingAddressId, billingAddressIds, - isEmailVerified, customerGroup, custom, locale, salutation, stores, authenticationMode); + isEmailVerified, customerGroup, custom, locale, salutation, stores, authenticationMode, + customerGroupAssignments); } /** @@ -1146,6 +1254,7 @@ public static CustomerBuilder of(final Customer template) { builder.salutation = template.getSalutation(); builder.stores = template.getStores(); builder.authenticationMode = template.getAuthenticationMode(); + builder.customerGroupAssignments = template.getCustomerGroupAssignments(); return builder; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerDraft.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerDraft.java index 7529a2fd4d1..c9347d44825 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerDraft.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerDraft.java @@ -265,6 +265,14 @@ public interface CustomerDraft extends com.commercetools.api.models.Customizable @JsonProperty("authenticationMode") public AuthenticationMode getAuthenticationMode(); + /** + *

Customer Groups to assign to the Customer.

+ * @return customerGroupAssignments + */ + @Valid + @JsonProperty("customerGroupAssignments") + public List getCustomerGroupAssignments(); + /** *

User-defined unique identifier for the Customer. The key field is preferred over customerNumber as it is mutable and provides more flexibility.

*

This field is optional for backwards compatibility reasons, but we strongly recommend setting it. Keys are mandatory for importing Customers with the Import API.

@@ -499,6 +507,21 @@ public interface CustomerDraft extends com.commercetools.api.models.Customizable public void setAuthenticationMode(final AuthenticationMode authenticationMode); + /** + *

Customer Groups to assign to the Customer.

+ * @param customerGroupAssignments values to be set + */ + + @JsonIgnore + public void setCustomerGroupAssignments(final CustomerGroupAssignmentDraft... customerGroupAssignments); + + /** + *

Customer Groups to assign to the Customer.

+ * @param customerGroupAssignments values to be set + */ + + public void setCustomerGroupAssignments(final List customerGroupAssignments); + /** * factory method * @return instance of CustomerDraft @@ -541,6 +564,7 @@ public static CustomerDraft of(final CustomerDraft template) { instance.setSalutation(template.getSalutation()); instance.setStores(template.getStores()); instance.setAuthenticationMode(template.getAuthenticationMode()); + instance.setCustomerGroupAssignments(template.getCustomerGroupAssignments()); return instance; } @@ -594,6 +618,11 @@ public static CustomerDraft deepCopy(@Nullable final CustomerDraft template) { .collect(Collectors.toList())) .orElse(null)); instance.setAuthenticationMode(template.getAuthenticationMode()); + instance.setCustomerGroupAssignments(Optional.ofNullable(template.getCustomerGroupAssignments()) + .map(t -> t.stream() + .map(com.commercetools.api.models.customer.CustomerGroupAssignmentDraft::deepCopy) + .collect(Collectors.toList())) + .orElse(null)); return instance; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerDraftBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerDraftBuilder.java index b575c752779..a1704343095 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerDraftBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerDraftBuilder.java @@ -105,6 +105,9 @@ public class CustomerDraftBuilder implements Builder { @Nullable private com.commercetools.api.models.customer.AuthenticationMode authenticationMode; + @Nullable + private java.util.List customerGroupAssignments; + /** *

User-defined unique identifier for the Customer. The key field is preferred over customerNumber as it is mutable and provides more flexibility.

*

This field is optional for backwards compatibility reasons, but we strongly recommend setting it. Keys are mandatory for importing Customers with the Import API.

@@ -720,6 +723,99 @@ public CustomerDraftBuilder authenticationMode( return this; } + /** + *

Customer Groups to assign to the Customer.

+ * @param customerGroupAssignments value to be set + * @return Builder + */ + + public CustomerDraftBuilder customerGroupAssignments( + @Nullable final com.commercetools.api.models.customer.CustomerGroupAssignmentDraft... customerGroupAssignments) { + this.customerGroupAssignments = new ArrayList<>(Arrays.asList(customerGroupAssignments)); + return this; + } + + /** + *

Customer Groups to assign to the Customer.

+ * @param customerGroupAssignments value to be set + * @return Builder + */ + + public CustomerDraftBuilder customerGroupAssignments( + @Nullable final java.util.List customerGroupAssignments) { + this.customerGroupAssignments = customerGroupAssignments; + return this; + } + + /** + *

Customer Groups to assign to the Customer.

+ * @param customerGroupAssignments value to be set + * @return Builder + */ + + public CustomerDraftBuilder plusCustomerGroupAssignments( + @Nullable final com.commercetools.api.models.customer.CustomerGroupAssignmentDraft... customerGroupAssignments) { + if (this.customerGroupAssignments == null) { + this.customerGroupAssignments = new ArrayList<>(); + } + this.customerGroupAssignments.addAll(Arrays.asList(customerGroupAssignments)); + return this; + } + + /** + *

Customer Groups to assign to the Customer.

+ * @param builder function to build the customerGroupAssignments value + * @return Builder + */ + + public CustomerDraftBuilder plusCustomerGroupAssignments( + Function builder) { + if (this.customerGroupAssignments == null) { + this.customerGroupAssignments = new ArrayList<>(); + } + this.customerGroupAssignments.add( + builder.apply(com.commercetools.api.models.customer.CustomerGroupAssignmentDraftBuilder.of()).build()); + return this; + } + + /** + *

Customer Groups to assign to the Customer.

+ * @param builder function to build the customerGroupAssignments value + * @return Builder + */ + + public CustomerDraftBuilder withCustomerGroupAssignments( + Function builder) { + this.customerGroupAssignments = new ArrayList<>(); + this.customerGroupAssignments.add( + builder.apply(com.commercetools.api.models.customer.CustomerGroupAssignmentDraftBuilder.of()).build()); + return this; + } + + /** + *

Customer Groups to assign to the Customer.

+ * @param builder function to build the customerGroupAssignments value + * @return Builder + */ + + public CustomerDraftBuilder addCustomerGroupAssignments( + Function builder) { + return plusCustomerGroupAssignments( + builder.apply(com.commercetools.api.models.customer.CustomerGroupAssignmentDraftBuilder.of())); + } + + /** + *

Customer Groups to assign to the Customer.

+ * @param builder function to build the customerGroupAssignments value + * @return Builder + */ + + public CustomerDraftBuilder setCustomerGroupAssignments( + Function builder) { + return customerGroupAssignments( + builder.apply(com.commercetools.api.models.customer.CustomerGroupAssignmentDraftBuilder.of())); + } + /** *

User-defined unique identifier for the Customer. The key field is preferred over customerNumber as it is mutable and provides more flexibility.

*

This field is optional for backwards compatibility reasons, but we strongly recommend setting it. Keys are mandatory for importing Customers with the Import API.

@@ -998,6 +1094,16 @@ public com.commercetools.api.models.customer.AuthenticationMode getAuthenticatio return this.authenticationMode; } + /** + *

Customer Groups to assign to the Customer.

+ * @return customerGroupAssignments + */ + + @Nullable + public java.util.List getCustomerGroupAssignments() { + return this.customerGroupAssignments; + } + /** * builds CustomerDraft with checking for non-null required values * @return CustomerDraft @@ -1007,7 +1113,7 @@ public CustomerDraft build() { return new CustomerDraftImpl(key, customerNumber, externalId, email, password, firstName, lastName, middleName, title, anonymousCartId, anonymousCart, anonymousId, dateOfBirth, companyName, vatId, addresses, defaultShippingAddress, shippingAddresses, defaultBillingAddress, billingAddresses, isEmailVerified, - customerGroup, custom, locale, salutation, stores, authenticationMode); + customerGroup, custom, locale, salutation, stores, authenticationMode, customerGroupAssignments); } /** @@ -1018,7 +1124,7 @@ public CustomerDraft buildUnchecked() { return new CustomerDraftImpl(key, customerNumber, externalId, email, password, firstName, lastName, middleName, title, anonymousCartId, anonymousCart, anonymousId, dateOfBirth, companyName, vatId, addresses, defaultShippingAddress, shippingAddresses, defaultBillingAddress, billingAddresses, isEmailVerified, - customerGroup, custom, locale, salutation, stores, authenticationMode); + customerGroup, custom, locale, salutation, stores, authenticationMode, customerGroupAssignments); } /** @@ -1063,6 +1169,7 @@ public static CustomerDraftBuilder of(final CustomerDraft template) { builder.salutation = template.getSalutation(); builder.stores = template.getStores(); builder.authenticationMode = template.getAuthenticationMode(); + builder.customerGroupAssignments = template.getCustomerGroupAssignments(); return builder; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerDraftImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerDraftImpl.java index 8ed54630126..9c58b5c7a64 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerDraftImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerDraftImpl.java @@ -77,6 +77,8 @@ public class CustomerDraftImpl implements CustomerDraft, ModelBase { private com.commercetools.api.models.customer.AuthenticationMode authenticationMode; + private java.util.List customerGroupAssignments; + /** * create instance with all properties */ @@ -101,7 +103,8 @@ public class CustomerDraftImpl implements CustomerDraft, ModelBase { @JsonProperty("custom") final com.commercetools.api.models.type.CustomFieldsDraft custom, @JsonProperty("locale") final String locale, @JsonProperty("salutation") final String salutation, @JsonProperty("stores") final java.util.List stores, - @JsonProperty("authenticationMode") final com.commercetools.api.models.customer.AuthenticationMode authenticationMode) { + @JsonProperty("authenticationMode") final com.commercetools.api.models.customer.AuthenticationMode authenticationMode, + @JsonProperty("customerGroupAssignments") final java.util.List customerGroupAssignments) { this.key = key; this.customerNumber = customerNumber; this.externalId = externalId; @@ -129,6 +132,7 @@ public class CustomerDraftImpl implements CustomerDraft, ModelBase { this.salutation = salutation; this.stores = stores; this.authenticationMode = authenticationMode; + this.customerGroupAssignments = customerGroupAssignments; } /** @@ -362,6 +366,14 @@ public com.commercetools.api.models.customer.AuthenticationMode getAuthenticatio return this.authenticationMode; } + /** + *

Customer Groups to assign to the Customer.

+ */ + + public java.util.List getCustomerGroupAssignments() { + return this.customerGroupAssignments; + } + public void setKey(final String key) { this.key = key; } @@ -489,6 +501,16 @@ public void setAuthenticationMode( this.authenticationMode = authenticationMode; } + public void setCustomerGroupAssignments( + final com.commercetools.api.models.customer.CustomerGroupAssignmentDraft... customerGroupAssignments) { + this.customerGroupAssignments = new ArrayList<>(Arrays.asList(customerGroupAssignments)); + } + + public void setCustomerGroupAssignments( + final java.util.List customerGroupAssignments) { + this.customerGroupAssignments = customerGroupAssignments; + } + @Override public boolean equals(Object o) { if (this == o) @@ -526,6 +548,7 @@ public boolean equals(Object o) { .append(salutation, that.salutation) .append(stores, that.stores) .append(authenticationMode, that.authenticationMode) + .append(customerGroupAssignments, that.customerGroupAssignments) .append(key, that.key) .append(customerNumber, that.customerNumber) .append(externalId, that.externalId) @@ -553,6 +576,7 @@ public boolean equals(Object o) { .append(salutation, that.salutation) .append(stores, that.stores) .append(authenticationMode, that.authenticationMode) + .append(customerGroupAssignments, that.customerGroupAssignments) .isEquals(); } @@ -585,6 +609,7 @@ public int hashCode() { .append(salutation) .append(stores) .append(authenticationMode) + .append(customerGroupAssignments) .toHashCode(); } @@ -617,6 +642,7 @@ public String toString() { .append("salutation", salutation) .append("stores", stores) .append("authenticationMode", authenticationMode) + .append("customerGroupAssignments", customerGroupAssignments) .build(); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerGroupAssignment.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerGroupAssignment.java new file mode 100644 index 00000000000..5d93c0fdad1 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerGroupAssignment.java @@ -0,0 +1,126 @@ + +package com.commercetools.api.models.customer; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.commercetools.api.models.customer_group.CustomerGroupReference; +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; + +/** + *

Represents an individual Customer Group assignment as a Reference to a CustomerGroup.

+ * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     CustomerGroupAssignment customerGroupAssignment = CustomerGroupAssignment.builder()
+ *             .customerGroup(customerGroupBuilder -> customerGroupBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = CustomerGroupAssignmentImpl.class) +public interface CustomerGroupAssignment { + + /** + *

Reference to a Customer Group.

+ * @return customerGroup + */ + @NotNull + @Valid + @JsonProperty("customerGroup") + public CustomerGroupReference getCustomerGroup(); + + /** + *

Reference to a Customer Group.

+ * @param customerGroup value to be set + */ + + public void setCustomerGroup(final CustomerGroupReference customerGroup); + + /** + * factory method + * @return instance of CustomerGroupAssignment + */ + public static CustomerGroupAssignment of() { + return new CustomerGroupAssignmentImpl(); + } + + /** + * factory method to create a shallow copy CustomerGroupAssignment + * @param template instance to be copied + * @return copy instance + */ + public static CustomerGroupAssignment of(final CustomerGroupAssignment template) { + CustomerGroupAssignmentImpl instance = new CustomerGroupAssignmentImpl(); + instance.setCustomerGroup(template.getCustomerGroup()); + return instance; + } + + /** + * factory method to create a deep copy of CustomerGroupAssignment + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static CustomerGroupAssignment deepCopy(@Nullable final CustomerGroupAssignment template) { + if (template == null) { + return null; + } + CustomerGroupAssignmentImpl instance = new CustomerGroupAssignmentImpl(); + instance.setCustomerGroup( + com.commercetools.api.models.customer_group.CustomerGroupReference.deepCopy(template.getCustomerGroup())); + return instance; + } + + /** + * builder factory method for CustomerGroupAssignment + * @return builder + */ + public static CustomerGroupAssignmentBuilder builder() { + return CustomerGroupAssignmentBuilder.of(); + } + + /** + * create builder for CustomerGroupAssignment instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CustomerGroupAssignmentBuilder builder(final CustomerGroupAssignment template) { + return CustomerGroupAssignmentBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withCustomerGroupAssignment(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerGroupAssignmentBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerGroupAssignmentBuilder.java new file mode 100644 index 00000000000..0e52d56d3cb --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerGroupAssignmentBuilder.java @@ -0,0 +1,111 @@ + +package com.commercetools.api.models.customer; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * CustomerGroupAssignmentBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     CustomerGroupAssignment customerGroupAssignment = CustomerGroupAssignment.builder()
+ *             .customerGroup(customerGroupBuilder -> customerGroupBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CustomerGroupAssignmentBuilder implements Builder { + + private com.commercetools.api.models.customer_group.CustomerGroupReference customerGroup; + + /** + *

Reference to a Customer Group.

+ * @param builder function to build the customerGroup value + * @return Builder + */ + + public CustomerGroupAssignmentBuilder customerGroup( + Function builder) { + this.customerGroup = builder + .apply(com.commercetools.api.models.customer_group.CustomerGroupReferenceBuilder.of()) + .build(); + return this; + } + + /** + *

Reference to a Customer Group.

+ * @param builder function to build the customerGroup value + * @return Builder + */ + + public CustomerGroupAssignmentBuilder withCustomerGroup( + Function builder) { + this.customerGroup = builder + .apply(com.commercetools.api.models.customer_group.CustomerGroupReferenceBuilder.of()); + return this; + } + + /** + *

Reference to a Customer Group.

+ * @param customerGroup value to be set + * @return Builder + */ + + public CustomerGroupAssignmentBuilder customerGroup( + final com.commercetools.api.models.customer_group.CustomerGroupReference customerGroup) { + this.customerGroup = customerGroup; + return this; + } + + /** + *

Reference to a Customer Group.

+ * @return customerGroup + */ + + public com.commercetools.api.models.customer_group.CustomerGroupReference getCustomerGroup() { + return this.customerGroup; + } + + /** + * builds CustomerGroupAssignment with checking for non-null required values + * @return CustomerGroupAssignment + */ + public CustomerGroupAssignment build() { + Objects.requireNonNull(customerGroup, CustomerGroupAssignment.class + ": customerGroup is missing"); + return new CustomerGroupAssignmentImpl(customerGroup); + } + + /** + * builds CustomerGroupAssignment without checking for non-null required values + * @return CustomerGroupAssignment + */ + public CustomerGroupAssignment buildUnchecked() { + return new CustomerGroupAssignmentImpl(customerGroup); + } + + /** + * factory method for an instance of CustomerGroupAssignmentBuilder + * @return builder + */ + public static CustomerGroupAssignmentBuilder of() { + return new CustomerGroupAssignmentBuilder(); + } + + /** + * create builder for CustomerGroupAssignment instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CustomerGroupAssignmentBuilder of(final CustomerGroupAssignment template) { + CustomerGroupAssignmentBuilder builder = new CustomerGroupAssignmentBuilder(); + builder.customerGroup = template.getCustomerGroup(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerGroupAssignmentDraft.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerGroupAssignmentDraft.java new file mode 100644 index 00000000000..56fdfd17131 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerGroupAssignmentDraft.java @@ -0,0 +1,126 @@ + +package com.commercetools.api.models.customer; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.commercetools.api.models.customer_group.CustomerGroupResourceIdentifier; +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; + +/** + * CustomerGroupAssignmentDraft + * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     CustomerGroupAssignmentDraft customerGroupAssignmentDraft = CustomerGroupAssignmentDraft.builder()
+ *             .customerGroup(customerGroupBuilder -> customerGroupBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = CustomerGroupAssignmentDraftImpl.class) +public interface CustomerGroupAssignmentDraft extends io.vrap.rmf.base.client.Draft { + + /** + *

ResourceIdentifier of a Customer Group.

+ * @return customerGroup + */ + @NotNull + @Valid + @JsonProperty("customerGroup") + public CustomerGroupResourceIdentifier getCustomerGroup(); + + /** + *

ResourceIdentifier of a Customer Group.

+ * @param customerGroup value to be set + */ + + public void setCustomerGroup(final CustomerGroupResourceIdentifier customerGroup); + + /** + * factory method + * @return instance of CustomerGroupAssignmentDraft + */ + public static CustomerGroupAssignmentDraft of() { + return new CustomerGroupAssignmentDraftImpl(); + } + + /** + * factory method to create a shallow copy CustomerGroupAssignmentDraft + * @param template instance to be copied + * @return copy instance + */ + public static CustomerGroupAssignmentDraft of(final CustomerGroupAssignmentDraft template) { + CustomerGroupAssignmentDraftImpl instance = new CustomerGroupAssignmentDraftImpl(); + instance.setCustomerGroup(template.getCustomerGroup()); + return instance; + } + + /** + * factory method to create a deep copy of CustomerGroupAssignmentDraft + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static CustomerGroupAssignmentDraft deepCopy(@Nullable final CustomerGroupAssignmentDraft template) { + if (template == null) { + return null; + } + CustomerGroupAssignmentDraftImpl instance = new CustomerGroupAssignmentDraftImpl(); + instance.setCustomerGroup(com.commercetools.api.models.customer_group.CustomerGroupResourceIdentifier + .deepCopy(template.getCustomerGroup())); + return instance; + } + + /** + * builder factory method for CustomerGroupAssignmentDraft + * @return builder + */ + public static CustomerGroupAssignmentDraftBuilder builder() { + return CustomerGroupAssignmentDraftBuilder.of(); + } + + /** + * create builder for CustomerGroupAssignmentDraft instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CustomerGroupAssignmentDraftBuilder builder(final CustomerGroupAssignmentDraft template) { + return CustomerGroupAssignmentDraftBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withCustomerGroupAssignmentDraft(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerGroupAssignmentDraftBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerGroupAssignmentDraftBuilder.java new file mode 100644 index 00000000000..da4b209fbe5 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerGroupAssignmentDraftBuilder.java @@ -0,0 +1,111 @@ + +package com.commercetools.api.models.customer; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * CustomerGroupAssignmentDraftBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     CustomerGroupAssignmentDraft customerGroupAssignmentDraft = CustomerGroupAssignmentDraft.builder()
+ *             .customerGroup(customerGroupBuilder -> customerGroupBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CustomerGroupAssignmentDraftBuilder implements Builder { + + private com.commercetools.api.models.customer_group.CustomerGroupResourceIdentifier customerGroup; + + /** + *

ResourceIdentifier of a Customer Group.

+ * @param builder function to build the customerGroup value + * @return Builder + */ + + public CustomerGroupAssignmentDraftBuilder customerGroup( + Function builder) { + this.customerGroup = builder + .apply(com.commercetools.api.models.customer_group.CustomerGroupResourceIdentifierBuilder.of()) + .build(); + return this; + } + + /** + *

ResourceIdentifier of a Customer Group.

+ * @param builder function to build the customerGroup value + * @return Builder + */ + + public CustomerGroupAssignmentDraftBuilder withCustomerGroup( + Function builder) { + this.customerGroup = builder + .apply(com.commercetools.api.models.customer_group.CustomerGroupResourceIdentifierBuilder.of()); + return this; + } + + /** + *

ResourceIdentifier of a Customer Group.

+ * @param customerGroup value to be set + * @return Builder + */ + + public CustomerGroupAssignmentDraftBuilder customerGroup( + final com.commercetools.api.models.customer_group.CustomerGroupResourceIdentifier customerGroup) { + this.customerGroup = customerGroup; + return this; + } + + /** + *

ResourceIdentifier of a Customer Group.

+ * @return customerGroup + */ + + public com.commercetools.api.models.customer_group.CustomerGroupResourceIdentifier getCustomerGroup() { + return this.customerGroup; + } + + /** + * builds CustomerGroupAssignmentDraft with checking for non-null required values + * @return CustomerGroupAssignmentDraft + */ + public CustomerGroupAssignmentDraft build() { + Objects.requireNonNull(customerGroup, CustomerGroupAssignmentDraft.class + ": customerGroup is missing"); + return new CustomerGroupAssignmentDraftImpl(customerGroup); + } + + /** + * builds CustomerGroupAssignmentDraft without checking for non-null required values + * @return CustomerGroupAssignmentDraft + */ + public CustomerGroupAssignmentDraft buildUnchecked() { + return new CustomerGroupAssignmentDraftImpl(customerGroup); + } + + /** + * factory method for an instance of CustomerGroupAssignmentDraftBuilder + * @return builder + */ + public static CustomerGroupAssignmentDraftBuilder of() { + return new CustomerGroupAssignmentDraftBuilder(); + } + + /** + * create builder for CustomerGroupAssignmentDraft instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CustomerGroupAssignmentDraftBuilder of(final CustomerGroupAssignmentDraft template) { + CustomerGroupAssignmentDraftBuilder builder = new CustomerGroupAssignmentDraftBuilder(); + builder.customerGroup = template.getCustomerGroup(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerGroupAssignmentDraftImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerGroupAssignmentDraftImpl.java new file mode 100644 index 00000000000..cd5b6356566 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerGroupAssignmentDraftImpl.java @@ -0,0 +1,81 @@ + +package com.commercetools.api.models.customer; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.ModelBase; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +/** + * CustomerGroupAssignmentDraft + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CustomerGroupAssignmentDraftImpl implements CustomerGroupAssignmentDraft, ModelBase { + + private com.commercetools.api.models.customer_group.CustomerGroupResourceIdentifier customerGroup; + + /** + * create instance with all properties + */ + @JsonCreator + CustomerGroupAssignmentDraftImpl( + @JsonProperty("customerGroup") final com.commercetools.api.models.customer_group.CustomerGroupResourceIdentifier customerGroup) { + this.customerGroup = customerGroup; + } + + /** + * create empty instance + */ + public CustomerGroupAssignmentDraftImpl() { + } + + /** + *

ResourceIdentifier of a Customer Group.

+ */ + + public com.commercetools.api.models.customer_group.CustomerGroupResourceIdentifier getCustomerGroup() { + return this.customerGroup; + } + + public void setCustomerGroup( + final com.commercetools.api.models.customer_group.CustomerGroupResourceIdentifier customerGroup) { + this.customerGroup = customerGroup; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + CustomerGroupAssignmentDraftImpl that = (CustomerGroupAssignmentDraftImpl) o; + + return new EqualsBuilder().append(customerGroup, that.customerGroup) + .append(customerGroup, that.customerGroup) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(customerGroup).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("customerGroup", customerGroup) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerGroupAssignmentImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerGroupAssignmentImpl.java new file mode 100644 index 00000000000..abb7620ab3e --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerGroupAssignmentImpl.java @@ -0,0 +1,81 @@ + +package com.commercetools.api.models.customer; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.ModelBase; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +/** + *

Represents an individual Customer Group assignment as a Reference to a CustomerGroup.

+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CustomerGroupAssignmentImpl implements CustomerGroupAssignment, ModelBase { + + private com.commercetools.api.models.customer_group.CustomerGroupReference customerGroup; + + /** + * create instance with all properties + */ + @JsonCreator + CustomerGroupAssignmentImpl( + @JsonProperty("customerGroup") final com.commercetools.api.models.customer_group.CustomerGroupReference customerGroup) { + this.customerGroup = customerGroup; + } + + /** + * create empty instance + */ + public CustomerGroupAssignmentImpl() { + } + + /** + *

Reference to a Customer Group.

+ */ + + public com.commercetools.api.models.customer_group.CustomerGroupReference getCustomerGroup() { + return this.customerGroup; + } + + public void setCustomerGroup( + final com.commercetools.api.models.customer_group.CustomerGroupReference customerGroup) { + this.customerGroup = customerGroup; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + CustomerGroupAssignmentImpl that = (CustomerGroupAssignmentImpl) o; + + return new EqualsBuilder().append(customerGroup, that.customerGroup) + .append(customerGroup, that.customerGroup) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(customerGroup).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("customerGroup", customerGroup) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerImpl.java index 6baf47c666c..11ff7ad0460 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerImpl.java @@ -82,6 +82,8 @@ public class CustomerImpl implements Customer, ModelBase { private com.commercetools.api.models.customer.AuthenticationMode authenticationMode; + private java.util.List customerGroupAssignments; + /** * create instance with all properties */ @@ -108,7 +110,8 @@ public class CustomerImpl implements Customer, ModelBase { @JsonProperty("custom") final com.commercetools.api.models.type.CustomFields custom, @JsonProperty("locale") final String locale, @JsonProperty("salutation") final String salutation, @JsonProperty("stores") final java.util.List stores, - @JsonProperty("authenticationMode") final com.commercetools.api.models.customer.AuthenticationMode authenticationMode) { + @JsonProperty("authenticationMode") final com.commercetools.api.models.customer.AuthenticationMode authenticationMode, + @JsonProperty("customerGroupAssignments") final java.util.List customerGroupAssignments) { this.id = id; this.version = version; this.createdAt = createdAt; @@ -139,6 +142,7 @@ public class CustomerImpl implements Customer, ModelBase { this.salutation = salutation; this.stores = stores; this.authenticationMode = authenticationMode; + this.customerGroupAssignments = customerGroupAssignments; } /** @@ -392,6 +396,14 @@ public com.commercetools.api.models.customer.AuthenticationMode getAuthenticatio return this.authenticationMode; } + /** + *

Customer Groups of the Customer.

+ */ + + public java.util.List getCustomerGroupAssignments() { + return this.customerGroupAssignments; + } + public void setId(final String id) { this.id = id; } @@ -530,6 +542,16 @@ public void setAuthenticationMode( this.authenticationMode = authenticationMode; } + public void setCustomerGroupAssignments( + final com.commercetools.api.models.customer.CustomerGroupAssignment... customerGroupAssignments) { + this.customerGroupAssignments = new ArrayList<>(Arrays.asList(customerGroupAssignments)); + } + + public void setCustomerGroupAssignments( + final java.util.List customerGroupAssignments) { + this.customerGroupAssignments = customerGroupAssignments; + } + @Override public boolean equals(Object o) { if (this == o) @@ -570,6 +592,7 @@ public boolean equals(Object o) { .append(salutation, that.salutation) .append(stores, that.stores) .append(authenticationMode, that.authenticationMode) + .append(customerGroupAssignments, that.customerGroupAssignments) .append(id, that.id) .append(version, that.version) .append(createdAt, that.createdAt) @@ -600,6 +623,7 @@ public boolean equals(Object o) { .append(salutation, that.salutation) .append(stores, that.stores) .append(authenticationMode, that.authenticationMode) + .append(customerGroupAssignments, that.customerGroupAssignments) .isEquals(); } @@ -635,6 +659,7 @@ public int hashCode() { .append(salutation) .append(stores) .append(authenticationMode) + .append(customerGroupAssignments) .toHashCode(); } @@ -670,6 +695,7 @@ public String toString() { .append("salutation", salutation) .append("stores", stores) .append("authenticationMode", authenticationMode) + .append("customerGroupAssignments", customerGroupAssignments) .build(); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveCustomerGroupAssignmentAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveCustomerGroupAssignmentAction.java new file mode 100644 index 00000000000..cdbdb1ea9d3 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveCustomerGroupAssignmentAction.java @@ -0,0 +1,135 @@ + +package com.commercetools.api.models.customer; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.commercetools.api.models.customer_group.CustomerGroupResourceIdentifier; +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; + +/** + *

Unassigns a Customer Group from a Customer. Unassigning a Customer Group generates the CustomerGroupAssignmentRemoved Message.

+ * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     CustomerRemoveCustomerGroupAssignmentAction customerRemoveCustomerGroupAssignmentAction = CustomerRemoveCustomerGroupAssignmentAction.builder()
+ *             .customerGroup(customerGroupBuilder -> customerGroupBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = CustomerRemoveCustomerGroupAssignmentActionImpl.class) +public interface CustomerRemoveCustomerGroupAssignmentAction extends CustomerUpdateAction { + + /** + * discriminator value for CustomerRemoveCustomerGroupAssignmentAction + */ + String REMOVE_CUSTOMER_GROUP_ASSIGNMENT = "removeCustomerGroupAssignment"; + + /** + *

Customer Group to unassign from the Customer.

+ * @return customerGroup + */ + @NotNull + @Valid + @JsonProperty("customerGroup") + public CustomerGroupResourceIdentifier getCustomerGroup(); + + /** + *

Customer Group to unassign from the Customer.

+ * @param customerGroup value to be set + */ + + public void setCustomerGroup(final CustomerGroupResourceIdentifier customerGroup); + + /** + * factory method + * @return instance of CustomerRemoveCustomerGroupAssignmentAction + */ + public static CustomerRemoveCustomerGroupAssignmentAction of() { + return new CustomerRemoveCustomerGroupAssignmentActionImpl(); + } + + /** + * factory method to create a shallow copy CustomerRemoveCustomerGroupAssignmentAction + * @param template instance to be copied + * @return copy instance + */ + public static CustomerRemoveCustomerGroupAssignmentAction of( + final CustomerRemoveCustomerGroupAssignmentAction template) { + CustomerRemoveCustomerGroupAssignmentActionImpl instance = new CustomerRemoveCustomerGroupAssignmentActionImpl(); + instance.setCustomerGroup(template.getCustomerGroup()); + return instance; + } + + /** + * factory method to create a deep copy of CustomerRemoveCustomerGroupAssignmentAction + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static CustomerRemoveCustomerGroupAssignmentAction deepCopy( + @Nullable final CustomerRemoveCustomerGroupAssignmentAction template) { + if (template == null) { + return null; + } + CustomerRemoveCustomerGroupAssignmentActionImpl instance = new CustomerRemoveCustomerGroupAssignmentActionImpl(); + instance.setCustomerGroup(com.commercetools.api.models.customer_group.CustomerGroupResourceIdentifier + .deepCopy(template.getCustomerGroup())); + return instance; + } + + /** + * builder factory method for CustomerRemoveCustomerGroupAssignmentAction + * @return builder + */ + public static CustomerRemoveCustomerGroupAssignmentActionBuilder builder() { + return CustomerRemoveCustomerGroupAssignmentActionBuilder.of(); + } + + /** + * create builder for CustomerRemoveCustomerGroupAssignmentAction instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CustomerRemoveCustomerGroupAssignmentActionBuilder builder( + final CustomerRemoveCustomerGroupAssignmentAction template) { + return CustomerRemoveCustomerGroupAssignmentActionBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withCustomerRemoveCustomerGroupAssignmentAction( + Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveCustomerGroupAssignmentActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveCustomerGroupAssignmentActionBuilder.java new file mode 100644 index 00000000000..f97ad8dd84c --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveCustomerGroupAssignmentActionBuilder.java @@ -0,0 +1,114 @@ + +package com.commercetools.api.models.customer; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * CustomerRemoveCustomerGroupAssignmentActionBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     CustomerRemoveCustomerGroupAssignmentAction customerRemoveCustomerGroupAssignmentAction = CustomerRemoveCustomerGroupAssignmentAction.builder()
+ *             .customerGroup(customerGroupBuilder -> customerGroupBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CustomerRemoveCustomerGroupAssignmentActionBuilder + implements Builder { + + private com.commercetools.api.models.customer_group.CustomerGroupResourceIdentifier customerGroup; + + /** + *

Customer Group to unassign from the Customer.

+ * @param builder function to build the customerGroup value + * @return Builder + */ + + public CustomerRemoveCustomerGroupAssignmentActionBuilder customerGroup( + Function builder) { + this.customerGroup = builder + .apply(com.commercetools.api.models.customer_group.CustomerGroupResourceIdentifierBuilder.of()) + .build(); + return this; + } + + /** + *

Customer Group to unassign from the Customer.

+ * @param builder function to build the customerGroup value + * @return Builder + */ + + public CustomerRemoveCustomerGroupAssignmentActionBuilder withCustomerGroup( + Function builder) { + this.customerGroup = builder + .apply(com.commercetools.api.models.customer_group.CustomerGroupResourceIdentifierBuilder.of()); + return this; + } + + /** + *

Customer Group to unassign from the Customer.

+ * @param customerGroup value to be set + * @return Builder + */ + + public CustomerRemoveCustomerGroupAssignmentActionBuilder customerGroup( + final com.commercetools.api.models.customer_group.CustomerGroupResourceIdentifier customerGroup) { + this.customerGroup = customerGroup; + return this; + } + + /** + *

Customer Group to unassign from the Customer.

+ * @return customerGroup + */ + + public com.commercetools.api.models.customer_group.CustomerGroupResourceIdentifier getCustomerGroup() { + return this.customerGroup; + } + + /** + * builds CustomerRemoveCustomerGroupAssignmentAction with checking for non-null required values + * @return CustomerRemoveCustomerGroupAssignmentAction + */ + public CustomerRemoveCustomerGroupAssignmentAction build() { + Objects.requireNonNull(customerGroup, + CustomerRemoveCustomerGroupAssignmentAction.class + ": customerGroup is missing"); + return new CustomerRemoveCustomerGroupAssignmentActionImpl(customerGroup); + } + + /** + * builds CustomerRemoveCustomerGroupAssignmentAction without checking for non-null required values + * @return CustomerRemoveCustomerGroupAssignmentAction + */ + public CustomerRemoveCustomerGroupAssignmentAction buildUnchecked() { + return new CustomerRemoveCustomerGroupAssignmentActionImpl(customerGroup); + } + + /** + * factory method for an instance of CustomerRemoveCustomerGroupAssignmentActionBuilder + * @return builder + */ + public static CustomerRemoveCustomerGroupAssignmentActionBuilder of() { + return new CustomerRemoveCustomerGroupAssignmentActionBuilder(); + } + + /** + * create builder for CustomerRemoveCustomerGroupAssignmentAction instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CustomerRemoveCustomerGroupAssignmentActionBuilder of( + final CustomerRemoveCustomerGroupAssignmentAction template) { + CustomerRemoveCustomerGroupAssignmentActionBuilder builder = new CustomerRemoveCustomerGroupAssignmentActionBuilder(); + builder.customerGroup = template.getCustomerGroup(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveCustomerGroupAssignmentActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveCustomerGroupAssignmentActionImpl.java new file mode 100644 index 00000000000..93cf5e93dc9 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveCustomerGroupAssignmentActionImpl.java @@ -0,0 +1,97 @@ + +package com.commercetools.api.models.customer; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.ModelBase; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +/** + *

Unassigns a Customer Group from a Customer. Unassigning a Customer Group generates the CustomerGroupAssignmentRemoved Message.

+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CustomerRemoveCustomerGroupAssignmentActionImpl + implements CustomerRemoveCustomerGroupAssignmentAction, ModelBase { + + private String action; + + private com.commercetools.api.models.customer_group.CustomerGroupResourceIdentifier customerGroup; + + /** + * create instance with all properties + */ + @JsonCreator + CustomerRemoveCustomerGroupAssignmentActionImpl( + @JsonProperty("customerGroup") final com.commercetools.api.models.customer_group.CustomerGroupResourceIdentifier customerGroup) { + this.customerGroup = customerGroup; + this.action = REMOVE_CUSTOMER_GROUP_ASSIGNMENT; + } + + /** + * create empty instance + */ + public CustomerRemoveCustomerGroupAssignmentActionImpl() { + this.action = REMOVE_CUSTOMER_GROUP_ASSIGNMENT; + } + + /** + * + */ + + public String getAction() { + return this.action; + } + + /** + *

Customer Group to unassign from the Customer.

+ */ + + public com.commercetools.api.models.customer_group.CustomerGroupResourceIdentifier getCustomerGroup() { + return this.customerGroup; + } + + public void setCustomerGroup( + final com.commercetools.api.models.customer_group.CustomerGroupResourceIdentifier customerGroup) { + this.customerGroup = customerGroup; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + CustomerRemoveCustomerGroupAssignmentActionImpl that = (CustomerRemoveCustomerGroupAssignmentActionImpl) o; + + return new EqualsBuilder().append(action, that.action) + .append(customerGroup, that.customerGroup) + .append(action, that.action) + .append(customerGroup, that.customerGroup) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(action).append(customerGroup).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("action", action) + .append("customerGroup", customerGroup) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetCustomerGroupAssignmentsAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetCustomerGroupAssignmentsAction.java new file mode 100644 index 00000000000..dde36d3c00b --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetCustomerGroupAssignmentsAction.java @@ -0,0 +1,146 @@ + +package com.commercetools.api.models.customer; + +import java.time.*; +import java.util.*; +import java.util.function.Function; +import java.util.stream.Collectors; + +import javax.annotation.Nullable; + +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; + +/** + *

Assigns multiple Customer Groups to a Customer. Assigning Customer Groups generates the CustomerGroupAssignmentsSetMessage Message.

+ * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     CustomerSetCustomerGroupAssignmentsAction customerSetCustomerGroupAssignmentsAction = CustomerSetCustomerGroupAssignmentsAction.builder()
+ *             .plusCustomerGroupAssignments(customerGroupAssignmentsBuilder -> customerGroupAssignmentsBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = CustomerSetCustomerGroupAssignmentsActionImpl.class) +public interface CustomerSetCustomerGroupAssignmentsAction extends CustomerUpdateAction { + + /** + * discriminator value for CustomerSetCustomerGroupAssignmentsAction + */ + String SET_CUSTOMER_GROUP_ASSIGNMENTS = "setCustomerGroupAssignments"; + + /** + *

Customer Groups to assign to the Customer.

+ * @return customerGroupAssignments + */ + @NotNull + @Valid + @JsonProperty("customerGroupAssignments") + public List getCustomerGroupAssignments(); + + /** + *

Customer Groups to assign to the Customer.

+ * @param customerGroupAssignments values to be set + */ + + @JsonIgnore + public void setCustomerGroupAssignments(final CustomerGroupAssignmentDraft... customerGroupAssignments); + + /** + *

Customer Groups to assign to the Customer.

+ * @param customerGroupAssignments values to be set + */ + + public void setCustomerGroupAssignments(final List customerGroupAssignments); + + /** + * factory method + * @return instance of CustomerSetCustomerGroupAssignmentsAction + */ + public static CustomerSetCustomerGroupAssignmentsAction of() { + return new CustomerSetCustomerGroupAssignmentsActionImpl(); + } + + /** + * factory method to create a shallow copy CustomerSetCustomerGroupAssignmentsAction + * @param template instance to be copied + * @return copy instance + */ + public static CustomerSetCustomerGroupAssignmentsAction of( + final CustomerSetCustomerGroupAssignmentsAction template) { + CustomerSetCustomerGroupAssignmentsActionImpl instance = new CustomerSetCustomerGroupAssignmentsActionImpl(); + instance.setCustomerGroupAssignments(template.getCustomerGroupAssignments()); + return instance; + } + + /** + * factory method to create a deep copy of CustomerSetCustomerGroupAssignmentsAction + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static CustomerSetCustomerGroupAssignmentsAction deepCopy( + @Nullable final CustomerSetCustomerGroupAssignmentsAction template) { + if (template == null) { + return null; + } + CustomerSetCustomerGroupAssignmentsActionImpl instance = new CustomerSetCustomerGroupAssignmentsActionImpl(); + instance.setCustomerGroupAssignments(Optional.ofNullable(template.getCustomerGroupAssignments()) + .map(t -> t.stream() + .map(com.commercetools.api.models.customer.CustomerGroupAssignmentDraft::deepCopy) + .collect(Collectors.toList())) + .orElse(null)); + return instance; + } + + /** + * builder factory method for CustomerSetCustomerGroupAssignmentsAction + * @return builder + */ + public static CustomerSetCustomerGroupAssignmentsActionBuilder builder() { + return CustomerSetCustomerGroupAssignmentsActionBuilder.of(); + } + + /** + * create builder for CustomerSetCustomerGroupAssignmentsAction instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CustomerSetCustomerGroupAssignmentsActionBuilder builder( + final CustomerSetCustomerGroupAssignmentsAction template) { + return CustomerSetCustomerGroupAssignmentsActionBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withCustomerSetCustomerGroupAssignmentsAction( + Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetCustomerGroupAssignmentsActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetCustomerGroupAssignmentsActionBuilder.java new file mode 100644 index 00000000000..4a3d1223757 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetCustomerGroupAssignmentsActionBuilder.java @@ -0,0 +1,168 @@ + +package com.commercetools.api.models.customer; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * CustomerSetCustomerGroupAssignmentsActionBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     CustomerSetCustomerGroupAssignmentsAction customerSetCustomerGroupAssignmentsAction = CustomerSetCustomerGroupAssignmentsAction.builder()
+ *             .plusCustomerGroupAssignments(customerGroupAssignmentsBuilder -> customerGroupAssignmentsBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CustomerSetCustomerGroupAssignmentsActionBuilder + implements Builder { + + private java.util.List customerGroupAssignments; + + /** + *

Customer Groups to assign to the Customer.

+ * @param customerGroupAssignments value to be set + * @return Builder + */ + + public CustomerSetCustomerGroupAssignmentsActionBuilder customerGroupAssignments( + final com.commercetools.api.models.customer.CustomerGroupAssignmentDraft... customerGroupAssignments) { + this.customerGroupAssignments = new ArrayList<>(Arrays.asList(customerGroupAssignments)); + return this; + } + + /** + *

Customer Groups to assign to the Customer.

+ * @param customerGroupAssignments value to be set + * @return Builder + */ + + public CustomerSetCustomerGroupAssignmentsActionBuilder customerGroupAssignments( + final java.util.List customerGroupAssignments) { + this.customerGroupAssignments = customerGroupAssignments; + return this; + } + + /** + *

Customer Groups to assign to the Customer.

+ * @param customerGroupAssignments value to be set + * @return Builder + */ + + public CustomerSetCustomerGroupAssignmentsActionBuilder plusCustomerGroupAssignments( + final com.commercetools.api.models.customer.CustomerGroupAssignmentDraft... customerGroupAssignments) { + if (this.customerGroupAssignments == null) { + this.customerGroupAssignments = new ArrayList<>(); + } + this.customerGroupAssignments.addAll(Arrays.asList(customerGroupAssignments)); + return this; + } + + /** + *

Customer Groups to assign to the Customer.

+ * @param builder function to build the customerGroupAssignments value + * @return Builder + */ + + public CustomerSetCustomerGroupAssignmentsActionBuilder plusCustomerGroupAssignments( + Function builder) { + if (this.customerGroupAssignments == null) { + this.customerGroupAssignments = new ArrayList<>(); + } + this.customerGroupAssignments.add( + builder.apply(com.commercetools.api.models.customer.CustomerGroupAssignmentDraftBuilder.of()).build()); + return this; + } + + /** + *

Customer Groups to assign to the Customer.

+ * @param builder function to build the customerGroupAssignments value + * @return Builder + */ + + public CustomerSetCustomerGroupAssignmentsActionBuilder withCustomerGroupAssignments( + Function builder) { + this.customerGroupAssignments = new ArrayList<>(); + this.customerGroupAssignments.add( + builder.apply(com.commercetools.api.models.customer.CustomerGroupAssignmentDraftBuilder.of()).build()); + return this; + } + + /** + *

Customer Groups to assign to the Customer.

+ * @param builder function to build the customerGroupAssignments value + * @return Builder + */ + + public CustomerSetCustomerGroupAssignmentsActionBuilder addCustomerGroupAssignments( + Function builder) { + return plusCustomerGroupAssignments( + builder.apply(com.commercetools.api.models.customer.CustomerGroupAssignmentDraftBuilder.of())); + } + + /** + *

Customer Groups to assign to the Customer.

+ * @param builder function to build the customerGroupAssignments value + * @return Builder + */ + + public CustomerSetCustomerGroupAssignmentsActionBuilder setCustomerGroupAssignments( + Function builder) { + return customerGroupAssignments( + builder.apply(com.commercetools.api.models.customer.CustomerGroupAssignmentDraftBuilder.of())); + } + + /** + *

Customer Groups to assign to the Customer.

+ * @return customerGroupAssignments + */ + + public java.util.List getCustomerGroupAssignments() { + return this.customerGroupAssignments; + } + + /** + * builds CustomerSetCustomerGroupAssignmentsAction with checking for non-null required values + * @return CustomerSetCustomerGroupAssignmentsAction + */ + public CustomerSetCustomerGroupAssignmentsAction build() { + Objects.requireNonNull(customerGroupAssignments, + CustomerSetCustomerGroupAssignmentsAction.class + ": customerGroupAssignments is missing"); + return new CustomerSetCustomerGroupAssignmentsActionImpl(customerGroupAssignments); + } + + /** + * builds CustomerSetCustomerGroupAssignmentsAction without checking for non-null required values + * @return CustomerSetCustomerGroupAssignmentsAction + */ + public CustomerSetCustomerGroupAssignmentsAction buildUnchecked() { + return new CustomerSetCustomerGroupAssignmentsActionImpl(customerGroupAssignments); + } + + /** + * factory method for an instance of CustomerSetCustomerGroupAssignmentsActionBuilder + * @return builder + */ + public static CustomerSetCustomerGroupAssignmentsActionBuilder of() { + return new CustomerSetCustomerGroupAssignmentsActionBuilder(); + } + + /** + * create builder for CustomerSetCustomerGroupAssignmentsAction instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CustomerSetCustomerGroupAssignmentsActionBuilder of( + final CustomerSetCustomerGroupAssignmentsAction template) { + CustomerSetCustomerGroupAssignmentsActionBuilder builder = new CustomerSetCustomerGroupAssignmentsActionBuilder(); + builder.customerGroupAssignments = template.getCustomerGroupAssignments(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetCustomerGroupAssignmentsActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetCustomerGroupAssignmentsActionImpl.java new file mode 100644 index 00000000000..3251be952a0 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetCustomerGroupAssignmentsActionImpl.java @@ -0,0 +1,102 @@ + +package com.commercetools.api.models.customer; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.ModelBase; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +/** + *

Assigns multiple Customer Groups to a Customer. Assigning Customer Groups generates the CustomerGroupAssignmentsSetMessage Message.

+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CustomerSetCustomerGroupAssignmentsActionImpl + implements CustomerSetCustomerGroupAssignmentsAction, ModelBase { + + private String action; + + private java.util.List customerGroupAssignments; + + /** + * create instance with all properties + */ + @JsonCreator + CustomerSetCustomerGroupAssignmentsActionImpl( + @JsonProperty("customerGroupAssignments") final java.util.List customerGroupAssignments) { + this.customerGroupAssignments = customerGroupAssignments; + this.action = SET_CUSTOMER_GROUP_ASSIGNMENTS; + } + + /** + * create empty instance + */ + public CustomerSetCustomerGroupAssignmentsActionImpl() { + this.action = SET_CUSTOMER_GROUP_ASSIGNMENTS; + } + + /** + * + */ + + public String getAction() { + return this.action; + } + + /** + *

Customer Groups to assign to the Customer.

+ */ + + public java.util.List getCustomerGroupAssignments() { + return this.customerGroupAssignments; + } + + public void setCustomerGroupAssignments( + final com.commercetools.api.models.customer.CustomerGroupAssignmentDraft... customerGroupAssignments) { + this.customerGroupAssignments = new ArrayList<>(Arrays.asList(customerGroupAssignments)); + } + + public void setCustomerGroupAssignments( + final java.util.List customerGroupAssignments) { + this.customerGroupAssignments = customerGroupAssignments; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + CustomerSetCustomerGroupAssignmentsActionImpl that = (CustomerSetCustomerGroupAssignmentsActionImpl) o; + + return new EqualsBuilder().append(action, that.action) + .append(customerGroupAssignments, that.customerGroupAssignments) + .append(action, that.action) + .append(customerGroupAssignments, that.customerGroupAssignments) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(action).append(customerGroupAssignments).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("action", action) + .append("customerGroupAssignments", customerGroupAssignments) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerUpdateAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerUpdateAction.java index f2342815726..931da60a284 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerUpdateAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerUpdateAction.java @@ -30,12 +30,14 @@ @JsonSubTypes({ @JsonSubTypes.Type(value = com.commercetools.api.models.customer.CustomerAddAddressActionImpl.class, name = CustomerAddAddressAction.ADD_ADDRESS), @JsonSubTypes.Type(value = com.commercetools.api.models.customer.CustomerAddBillingAddressIdActionImpl.class, name = CustomerAddBillingAddressIdAction.ADD_BILLING_ADDRESS_ID), + @JsonSubTypes.Type(value = com.commercetools.api.models.customer.CustomerAddCustomerGroupAssignmentActionImpl.class, name = CustomerAddCustomerGroupAssignmentAction.ADD_CUSTOMER_GROUP_ASSIGNMENT), @JsonSubTypes.Type(value = com.commercetools.api.models.customer.CustomerAddShippingAddressIdActionImpl.class, name = CustomerAddShippingAddressIdAction.ADD_SHIPPING_ADDRESS_ID), @JsonSubTypes.Type(value = com.commercetools.api.models.customer.CustomerAddStoreActionImpl.class, name = CustomerAddStoreAction.ADD_STORE), @JsonSubTypes.Type(value = com.commercetools.api.models.customer.CustomerChangeAddressActionImpl.class, name = CustomerChangeAddressAction.CHANGE_ADDRESS), @JsonSubTypes.Type(value = com.commercetools.api.models.customer.CustomerChangeEmailActionImpl.class, name = CustomerChangeEmailAction.CHANGE_EMAIL), @JsonSubTypes.Type(value = com.commercetools.api.models.customer.CustomerRemoveAddressActionImpl.class, name = CustomerRemoveAddressAction.REMOVE_ADDRESS), @JsonSubTypes.Type(value = com.commercetools.api.models.customer.CustomerRemoveBillingAddressIdActionImpl.class, name = CustomerRemoveBillingAddressIdAction.REMOVE_BILLING_ADDRESS_ID), + @JsonSubTypes.Type(value = com.commercetools.api.models.customer.CustomerRemoveCustomerGroupAssignmentActionImpl.class, name = CustomerRemoveCustomerGroupAssignmentAction.REMOVE_CUSTOMER_GROUP_ASSIGNMENT), @JsonSubTypes.Type(value = com.commercetools.api.models.customer.CustomerRemoveShippingAddressIdActionImpl.class, name = CustomerRemoveShippingAddressIdAction.REMOVE_SHIPPING_ADDRESS_ID), @JsonSubTypes.Type(value = com.commercetools.api.models.customer.CustomerRemoveStoreActionImpl.class, name = CustomerRemoveStoreAction.REMOVE_STORE), @JsonSubTypes.Type(value = com.commercetools.api.models.customer.CustomerSetAddressCustomFieldActionImpl.class, name = CustomerSetAddressCustomFieldAction.SET_ADDRESS_CUSTOM_FIELD), @@ -45,6 +47,7 @@ @JsonSubTypes.Type(value = com.commercetools.api.models.customer.CustomerSetCustomFieldActionImpl.class, name = CustomerSetCustomFieldAction.SET_CUSTOM_FIELD), @JsonSubTypes.Type(value = com.commercetools.api.models.customer.CustomerSetCustomTypeActionImpl.class, name = CustomerSetCustomTypeAction.SET_CUSTOM_TYPE), @JsonSubTypes.Type(value = com.commercetools.api.models.customer.CustomerSetCustomerGroupActionImpl.class, name = CustomerSetCustomerGroupAction.SET_CUSTOMER_GROUP), + @JsonSubTypes.Type(value = com.commercetools.api.models.customer.CustomerSetCustomerGroupAssignmentsActionImpl.class, name = CustomerSetCustomerGroupAssignmentsAction.SET_CUSTOMER_GROUP_ASSIGNMENTS), @JsonSubTypes.Type(value = com.commercetools.api.models.customer.CustomerSetCustomerNumberActionImpl.class, name = CustomerSetCustomerNumberAction.SET_CUSTOMER_NUMBER), @JsonSubTypes.Type(value = com.commercetools.api.models.customer.CustomerSetDateOfBirthActionImpl.class, name = CustomerSetDateOfBirthAction.SET_DATE_OF_BIRTH), @JsonSubTypes.Type(value = com.commercetools.api.models.customer.CustomerSetDefaultBillingAddressActionImpl.class, name = CustomerSetDefaultBillingAddressAction.SET_DEFAULT_BILLING_ADDRESS), @@ -90,6 +93,10 @@ public static CustomerUpdateAction deepCopy(@Nullable final CustomerUpdateAction return com.commercetools.api.models.customer.CustomerAddBillingAddressIdAction .deepCopy((com.commercetools.api.models.customer.CustomerAddBillingAddressIdAction) template); } + if (template instanceof com.commercetools.api.models.customer.CustomerAddCustomerGroupAssignmentAction) { + return com.commercetools.api.models.customer.CustomerAddCustomerGroupAssignmentAction.deepCopy( + (com.commercetools.api.models.customer.CustomerAddCustomerGroupAssignmentAction) template); + } if (template instanceof com.commercetools.api.models.customer.CustomerAddShippingAddressIdAction) { return com.commercetools.api.models.customer.CustomerAddShippingAddressIdAction .deepCopy((com.commercetools.api.models.customer.CustomerAddShippingAddressIdAction) template); @@ -114,6 +121,10 @@ public static CustomerUpdateAction deepCopy(@Nullable final CustomerUpdateAction return com.commercetools.api.models.customer.CustomerRemoveBillingAddressIdAction .deepCopy((com.commercetools.api.models.customer.CustomerRemoveBillingAddressIdAction) template); } + if (template instanceof com.commercetools.api.models.customer.CustomerRemoveCustomerGroupAssignmentAction) { + return com.commercetools.api.models.customer.CustomerRemoveCustomerGroupAssignmentAction.deepCopy( + (com.commercetools.api.models.customer.CustomerRemoveCustomerGroupAssignmentAction) template); + } if (template instanceof com.commercetools.api.models.customer.CustomerRemoveShippingAddressIdAction) { return com.commercetools.api.models.customer.CustomerRemoveShippingAddressIdAction .deepCopy((com.commercetools.api.models.customer.CustomerRemoveShippingAddressIdAction) template); @@ -150,6 +161,10 @@ public static CustomerUpdateAction deepCopy(@Nullable final CustomerUpdateAction return com.commercetools.api.models.customer.CustomerSetCustomerGroupAction .deepCopy((com.commercetools.api.models.customer.CustomerSetCustomerGroupAction) template); } + if (template instanceof com.commercetools.api.models.customer.CustomerSetCustomerGroupAssignmentsAction) { + return com.commercetools.api.models.customer.CustomerSetCustomerGroupAssignmentsAction.deepCopy( + (com.commercetools.api.models.customer.CustomerSetCustomerGroupAssignmentsAction) template); + } if (template instanceof com.commercetools.api.models.customer.CustomerSetCustomerNumberAction) { return com.commercetools.api.models.customer.CustomerSetCustomerNumberAction .deepCopy((com.commercetools.api.models.customer.CustomerSetCustomerNumberAction) template); @@ -226,6 +241,14 @@ public static com.commercetools.api.models.customer.CustomerAddBillingAddressIdA return com.commercetools.api.models.customer.CustomerAddBillingAddressIdActionBuilder.of(); } + /** + * builder for addCustomerGroupAssignment subtype + * @return builder + */ + public static com.commercetools.api.models.customer.CustomerAddCustomerGroupAssignmentActionBuilder addCustomerGroupAssignmentBuilder() { + return com.commercetools.api.models.customer.CustomerAddCustomerGroupAssignmentActionBuilder.of(); + } + /** * builder for addShippingAddressId subtype * @return builder @@ -274,6 +297,14 @@ public static com.commercetools.api.models.customer.CustomerRemoveBillingAddress return com.commercetools.api.models.customer.CustomerRemoveBillingAddressIdActionBuilder.of(); } + /** + * builder for removeCustomerGroupAssignment subtype + * @return builder + */ + public static com.commercetools.api.models.customer.CustomerRemoveCustomerGroupAssignmentActionBuilder removeCustomerGroupAssignmentBuilder() { + return com.commercetools.api.models.customer.CustomerRemoveCustomerGroupAssignmentActionBuilder.of(); + } + /** * builder for removeShippingAddressId subtype * @return builder @@ -346,6 +377,14 @@ public static com.commercetools.api.models.customer.CustomerSetCustomerGroupActi return com.commercetools.api.models.customer.CustomerSetCustomerGroupActionBuilder.of(); } + /** + * builder for setCustomerGroupAssignments subtype + * @return builder + */ + public static com.commercetools.api.models.customer.CustomerSetCustomerGroupAssignmentsActionBuilder setCustomerGroupAssignmentsBuilder() { + return com.commercetools.api.models.customer.CustomerSetCustomerGroupAssignmentsActionBuilder.of(); + } + /** * builder for setCustomerNumber subtype * @return builder diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerUpdateActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerUpdateActionBuilder.java index 7c377af520a..04a419dadb6 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerUpdateActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerUpdateActionBuilder.java @@ -19,6 +19,10 @@ public com.commercetools.api.models.customer.CustomerAddBillingAddressIdActionBu return com.commercetools.api.models.customer.CustomerAddBillingAddressIdActionBuilder.of(); } + public com.commercetools.api.models.customer.CustomerAddCustomerGroupAssignmentActionBuilder addCustomerGroupAssignmentBuilder() { + return com.commercetools.api.models.customer.CustomerAddCustomerGroupAssignmentActionBuilder.of(); + } + public com.commercetools.api.models.customer.CustomerAddShippingAddressIdActionBuilder addShippingAddressIdBuilder() { return com.commercetools.api.models.customer.CustomerAddShippingAddressIdActionBuilder.of(); } @@ -43,6 +47,10 @@ public com.commercetools.api.models.customer.CustomerRemoveBillingAddressIdActio return com.commercetools.api.models.customer.CustomerRemoveBillingAddressIdActionBuilder.of(); } + public com.commercetools.api.models.customer.CustomerRemoveCustomerGroupAssignmentActionBuilder removeCustomerGroupAssignmentBuilder() { + return com.commercetools.api.models.customer.CustomerRemoveCustomerGroupAssignmentActionBuilder.of(); + } + public com.commercetools.api.models.customer.CustomerRemoveShippingAddressIdActionBuilder removeShippingAddressIdBuilder() { return com.commercetools.api.models.customer.CustomerRemoveShippingAddressIdActionBuilder.of(); } @@ -79,6 +87,10 @@ public com.commercetools.api.models.customer.CustomerSetCustomerGroupActionBuild return com.commercetools.api.models.customer.CustomerSetCustomerGroupActionBuilder.of(); } + public com.commercetools.api.models.customer.CustomerSetCustomerGroupAssignmentsActionBuilder setCustomerGroupAssignmentsBuilder() { + return com.commercetools.api.models.customer.CustomerSetCustomerGroupAssignmentsActionBuilder.of(); + } + public com.commercetools.api.models.customer.CustomerSetCustomerNumberActionBuilder setCustomerNumberBuilder() { return com.commercetools.api.models.customer.CustomerSetCustomerNumberActionBuilder.of(); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentAddedMessage.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentAddedMessage.java new file mode 100644 index 00000000000..846dafaddc6 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentAddedMessage.java @@ -0,0 +1,162 @@ + +package com.commercetools.api.models.message; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.commercetools.api.models.customer.CustomerGroupAssignment; +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; + +/** + *

Generated after a successful Add CustomerGroupAssignment update action.

+ * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     CustomerGroupAssignmentAddedMessage customerGroupAssignmentAddedMessage = CustomerGroupAssignmentAddedMessage.builder()
+ *             .id("{id}")
+ *             .version(0.3)
+ *             .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
+ *             .lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
+ *             .sequenceNumber(0.3)
+ *             .resource(resourceBuilder -> resourceBuilder)
+ *             .resourceVersion(0.3)
+ *             .customerGroupAssignment(customerGroupAssignmentBuilder -> customerGroupAssignmentBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = CustomerGroupAssignmentAddedMessageImpl.class) +public interface CustomerGroupAssignmentAddedMessage extends Message { + + /** + * discriminator value for CustomerGroupAssignmentAddedMessage + */ + String CUSTOMER_GROUP_ASSIGNMENT_ADDED = "CustomerGroupAssignmentAdded"; + + /** + *

CustomerGroupAssignment that was added during the Add CustomerGroupAssignment update action.

+ * @return customerGroupAssignment + */ + @NotNull + @Valid + @JsonProperty("customerGroupAssignment") + public CustomerGroupAssignment getCustomerGroupAssignment(); + + /** + *

CustomerGroupAssignment that was added during the Add CustomerGroupAssignment update action.

+ * @param customerGroupAssignment value to be set + */ + + public void setCustomerGroupAssignment(final CustomerGroupAssignment customerGroupAssignment); + + /** + * factory method + * @return instance of CustomerGroupAssignmentAddedMessage + */ + public static CustomerGroupAssignmentAddedMessage of() { + return new CustomerGroupAssignmentAddedMessageImpl(); + } + + /** + * factory method to create a shallow copy CustomerGroupAssignmentAddedMessage + * @param template instance to be copied + * @return copy instance + */ + public static CustomerGroupAssignmentAddedMessage of(final CustomerGroupAssignmentAddedMessage template) { + CustomerGroupAssignmentAddedMessageImpl instance = new CustomerGroupAssignmentAddedMessageImpl(); + instance.setId(template.getId()); + instance.setVersion(template.getVersion()); + instance.setCreatedAt(template.getCreatedAt()); + instance.setLastModifiedAt(template.getLastModifiedAt()); + instance.setLastModifiedBy(template.getLastModifiedBy()); + instance.setCreatedBy(template.getCreatedBy()); + instance.setSequenceNumber(template.getSequenceNumber()); + instance.setResource(template.getResource()); + instance.setResourceVersion(template.getResourceVersion()); + instance.setResourceUserProvidedIdentifiers(template.getResourceUserProvidedIdentifiers()); + instance.setCustomerGroupAssignment(template.getCustomerGroupAssignment()); + return instance; + } + + /** + * factory method to create a deep copy of CustomerGroupAssignmentAddedMessage + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static CustomerGroupAssignmentAddedMessage deepCopy( + @Nullable final CustomerGroupAssignmentAddedMessage template) { + if (template == null) { + return null; + } + CustomerGroupAssignmentAddedMessageImpl instance = new CustomerGroupAssignmentAddedMessageImpl(); + instance.setId(template.getId()); + instance.setVersion(template.getVersion()); + instance.setCreatedAt(template.getCreatedAt()); + instance.setLastModifiedAt(template.getLastModifiedAt()); + instance.setLastModifiedBy( + com.commercetools.api.models.common.LastModifiedBy.deepCopy(template.getLastModifiedBy())); + instance.setCreatedBy(com.commercetools.api.models.common.CreatedBy.deepCopy(template.getCreatedBy())); + instance.setSequenceNumber(template.getSequenceNumber()); + instance.setResource(com.commercetools.api.models.common.Reference.deepCopy(template.getResource())); + instance.setResourceVersion(template.getResourceVersion()); + instance.setResourceUserProvidedIdentifiers(com.commercetools.api.models.message.UserProvidedIdentifiers + .deepCopy(template.getResourceUserProvidedIdentifiers())); + instance.setCustomerGroupAssignment(com.commercetools.api.models.customer.CustomerGroupAssignment + .deepCopy(template.getCustomerGroupAssignment())); + return instance; + } + + /** + * builder factory method for CustomerGroupAssignmentAddedMessage + * @return builder + */ + public static CustomerGroupAssignmentAddedMessageBuilder builder() { + return CustomerGroupAssignmentAddedMessageBuilder.of(); + } + + /** + * create builder for CustomerGroupAssignmentAddedMessage instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CustomerGroupAssignmentAddedMessageBuilder builder( + final CustomerGroupAssignmentAddedMessage template) { + return CustomerGroupAssignmentAddedMessageBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withCustomerGroupAssignmentAddedMessage(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentAddedMessageBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentAddedMessageBuilder.java new file mode 100644 index 00000000000..d3696dfb1ce --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentAddedMessageBuilder.java @@ -0,0 +1,462 @@ + +package com.commercetools.api.models.message; + +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * CustomerGroupAssignmentAddedMessageBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     CustomerGroupAssignmentAddedMessage customerGroupAssignmentAddedMessage = CustomerGroupAssignmentAddedMessage.builder()
+ *             .id("{id}")
+ *             .version(0.3)
+ *             .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
+ *             .lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
+ *             .sequenceNumber(0.3)
+ *             .resource(resourceBuilder -> resourceBuilder)
+ *             .resourceVersion(0.3)
+ *             .customerGroupAssignment(customerGroupAssignmentBuilder -> customerGroupAssignmentBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CustomerGroupAssignmentAddedMessageBuilder implements Builder { + + private String id; + + private Long version; + + private java.time.ZonedDateTime createdAt; + + private java.time.ZonedDateTime lastModifiedAt; + + @Nullable + private com.commercetools.api.models.common.LastModifiedBy lastModifiedBy; + + @Nullable + private com.commercetools.api.models.common.CreatedBy createdBy; + + private Long sequenceNumber; + + private com.commercetools.api.models.common.Reference resource; + + private Long resourceVersion; + + @Nullable + private com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers; + + private com.commercetools.api.models.customer.CustomerGroupAssignment customerGroupAssignment; + + /** + *

Unique identifier of the Message. Can be used to track which Messages have been processed.

+ * @param id value to be set + * @return Builder + */ + + public CustomerGroupAssignmentAddedMessageBuilder id(final String id) { + this.id = id; + return this; + } + + /** + *

Version of a resource. In case of Messages, this is always 1.

+ * @param version value to be set + * @return Builder + */ + + public CustomerGroupAssignmentAddedMessageBuilder version(final Long version) { + this.version = version; + return this; + } + + /** + *

Date and time (UTC) the Message was generated.

+ * @param createdAt value to be set + * @return Builder + */ + + public CustomerGroupAssignmentAddedMessageBuilder createdAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + *

Value of createdAt.

+ * @param lastModifiedAt value to be set + * @return Builder + */ + + public CustomerGroupAssignmentAddedMessageBuilder lastModifiedAt(final java.time.ZonedDateTime lastModifiedAt) { + this.lastModifiedAt = lastModifiedAt; + return this; + } + + /** + *

IDs and references that last modified the Message.

+ * @param builder function to build the lastModifiedBy value + * @return Builder + */ + + public CustomerGroupAssignmentAddedMessageBuilder lastModifiedBy( + Function builder) { + this.lastModifiedBy = builder.apply(com.commercetools.api.models.common.LastModifiedByBuilder.of()).build(); + return this; + } + + /** + *

IDs and references that last modified the Message.

+ * @param builder function to build the lastModifiedBy value + * @return Builder + */ + + public CustomerGroupAssignmentAddedMessageBuilder withLastModifiedBy( + Function builder) { + this.lastModifiedBy = builder.apply(com.commercetools.api.models.common.LastModifiedByBuilder.of()); + return this; + } + + /** + *

IDs and references that last modified the Message.

+ * @param lastModifiedBy value to be set + * @return Builder + */ + + public CustomerGroupAssignmentAddedMessageBuilder lastModifiedBy( + @Nullable final com.commercetools.api.models.common.LastModifiedBy lastModifiedBy) { + this.lastModifiedBy = lastModifiedBy; + return this; + } + + /** + *

IDs and references that created the Message.

+ * @param builder function to build the createdBy value + * @return Builder + */ + + public CustomerGroupAssignmentAddedMessageBuilder createdBy( + Function builder) { + this.createdBy = builder.apply(com.commercetools.api.models.common.CreatedByBuilder.of()).build(); + return this; + } + + /** + *

IDs and references that created the Message.

+ * @param builder function to build the createdBy value + * @return Builder + */ + + public CustomerGroupAssignmentAddedMessageBuilder withCreatedBy( + Function builder) { + this.createdBy = builder.apply(com.commercetools.api.models.common.CreatedByBuilder.of()); + return this; + } + + /** + *

IDs and references that created the Message.

+ * @param createdBy value to be set + * @return Builder + */ + + public CustomerGroupAssignmentAddedMessageBuilder createdBy( + @Nullable final com.commercetools.api.models.common.CreatedBy createdBy) { + this.createdBy = createdBy; + return this; + } + + /** + *

Message number in relation to other Messages for a given resource. The sequenceNumber of the next Message for the resource is the successor of the sequenceNumber of the current Message. Meaning, the sequenceNumber of the next Message equals the sequenceNumber of the current Message + 1. sequenceNumber can be used to ensure that Messages are processed in the correct order for a particular resource.

+ * @param sequenceNumber value to be set + * @return Builder + */ + + public CustomerGroupAssignmentAddedMessageBuilder sequenceNumber(final Long sequenceNumber) { + this.sequenceNumber = sequenceNumber; + return this; + } + + /** + *

Reference to the resource on which the change or action was performed.

+ * @param resource value to be set + * @return Builder + */ + + public CustomerGroupAssignmentAddedMessageBuilder resource( + final com.commercetools.api.models.common.Reference resource) { + this.resource = resource; + return this; + } + + /** + *

Reference to the resource on which the change or action was performed.

+ * @param builder function to build the resource value + * @return Builder + */ + + public CustomerGroupAssignmentAddedMessageBuilder resource( + Function> builder) { + this.resource = builder.apply(com.commercetools.api.models.common.ReferenceBuilder.of()).build(); + return this; + } + + /** + *

Version of the resource on which the change or action was performed.

+ * @param resourceVersion value to be set + * @return Builder + */ + + public CustomerGroupAssignmentAddedMessageBuilder resourceVersion(final Long resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + *

User-provided identifiers of the resource, such as key or externalId. Only present if the resource has such identifiers.

+ * @param builder function to build the resourceUserProvidedIdentifiers value + * @return Builder + */ + + public CustomerGroupAssignmentAddedMessageBuilder resourceUserProvidedIdentifiers( + Function builder) { + this.resourceUserProvidedIdentifiers = builder + .apply(com.commercetools.api.models.message.UserProvidedIdentifiersBuilder.of()) + .build(); + return this; + } + + /** + *

User-provided identifiers of the resource, such as key or externalId. Only present if the resource has such identifiers.

+ * @param builder function to build the resourceUserProvidedIdentifiers value + * @return Builder + */ + + public CustomerGroupAssignmentAddedMessageBuilder withResourceUserProvidedIdentifiers( + Function builder) { + this.resourceUserProvidedIdentifiers = builder + .apply(com.commercetools.api.models.message.UserProvidedIdentifiersBuilder.of()); + return this; + } + + /** + *

User-provided identifiers of the resource, such as key or externalId. Only present if the resource has such identifiers.

+ * @param resourceUserProvidedIdentifiers value to be set + * @return Builder + */ + + public CustomerGroupAssignmentAddedMessageBuilder resourceUserProvidedIdentifiers( + @Nullable final com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers) { + this.resourceUserProvidedIdentifiers = resourceUserProvidedIdentifiers; + return this; + } + + /** + *

CustomerGroupAssignment that was added during the Add CustomerGroupAssignment update action.

+ * @param builder function to build the customerGroupAssignment value + * @return Builder + */ + + public CustomerGroupAssignmentAddedMessageBuilder customerGroupAssignment( + Function builder) { + this.customerGroupAssignment = builder + .apply(com.commercetools.api.models.customer.CustomerGroupAssignmentBuilder.of()) + .build(); + return this; + } + + /** + *

CustomerGroupAssignment that was added during the Add CustomerGroupAssignment update action.

+ * @param builder function to build the customerGroupAssignment value + * @return Builder + */ + + public CustomerGroupAssignmentAddedMessageBuilder withCustomerGroupAssignment( + Function builder) { + this.customerGroupAssignment = builder + .apply(com.commercetools.api.models.customer.CustomerGroupAssignmentBuilder.of()); + return this; + } + + /** + *

CustomerGroupAssignment that was added during the Add CustomerGroupAssignment update action.

+ * @param customerGroupAssignment value to be set + * @return Builder + */ + + public CustomerGroupAssignmentAddedMessageBuilder customerGroupAssignment( + final com.commercetools.api.models.customer.CustomerGroupAssignment customerGroupAssignment) { + this.customerGroupAssignment = customerGroupAssignment; + return this; + } + + /** + *

Unique identifier of the Message. Can be used to track which Messages have been processed.

+ * @return id + */ + + public String getId() { + return this.id; + } + + /** + *

Version of a resource. In case of Messages, this is always 1.

+ * @return version + */ + + public Long getVersion() { + return this.version; + } + + /** + *

Date and time (UTC) the Message was generated.

+ * @return createdAt + */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + /** + *

Value of createdAt.

+ * @return lastModifiedAt + */ + + public java.time.ZonedDateTime getLastModifiedAt() { + return this.lastModifiedAt; + } + + /** + *

IDs and references that last modified the Message.

+ * @return lastModifiedBy + */ + + @Nullable + public com.commercetools.api.models.common.LastModifiedBy getLastModifiedBy() { + return this.lastModifiedBy; + } + + /** + *

IDs and references that created the Message.

+ * @return createdBy + */ + + @Nullable + public com.commercetools.api.models.common.CreatedBy getCreatedBy() { + return this.createdBy; + } + + /** + *

Message number in relation to other Messages for a given resource. The sequenceNumber of the next Message for the resource is the successor of the sequenceNumber of the current Message. Meaning, the sequenceNumber of the next Message equals the sequenceNumber of the current Message + 1. sequenceNumber can be used to ensure that Messages are processed in the correct order for a particular resource.

+ * @return sequenceNumber + */ + + public Long getSequenceNumber() { + return this.sequenceNumber; + } + + /** + *

Reference to the resource on which the change or action was performed.

+ * @return resource + */ + + public com.commercetools.api.models.common.Reference getResource() { + return this.resource; + } + + /** + *

Version of the resource on which the change or action was performed.

+ * @return resourceVersion + */ + + public Long getResourceVersion() { + return this.resourceVersion; + } + + /** + *

User-provided identifiers of the resource, such as key or externalId. Only present if the resource has such identifiers.

+ * @return resourceUserProvidedIdentifiers + */ + + @Nullable + public com.commercetools.api.models.message.UserProvidedIdentifiers getResourceUserProvidedIdentifiers() { + return this.resourceUserProvidedIdentifiers; + } + + /** + *

CustomerGroupAssignment that was added during the Add CustomerGroupAssignment update action.

+ * @return customerGroupAssignment + */ + + public com.commercetools.api.models.customer.CustomerGroupAssignment getCustomerGroupAssignment() { + return this.customerGroupAssignment; + } + + /** + * builds CustomerGroupAssignmentAddedMessage with checking for non-null required values + * @return CustomerGroupAssignmentAddedMessage + */ + public CustomerGroupAssignmentAddedMessage build() { + Objects.requireNonNull(id, CustomerGroupAssignmentAddedMessage.class + ": id is missing"); + Objects.requireNonNull(version, CustomerGroupAssignmentAddedMessage.class + ": version is missing"); + Objects.requireNonNull(createdAt, CustomerGroupAssignmentAddedMessage.class + ": createdAt is missing"); + Objects.requireNonNull(lastModifiedAt, + CustomerGroupAssignmentAddedMessage.class + ": lastModifiedAt is missing"); + Objects.requireNonNull(sequenceNumber, + CustomerGroupAssignmentAddedMessage.class + ": sequenceNumber is missing"); + Objects.requireNonNull(resource, CustomerGroupAssignmentAddedMessage.class + ": resource is missing"); + Objects.requireNonNull(resourceVersion, + CustomerGroupAssignmentAddedMessage.class + ": resourceVersion is missing"); + Objects.requireNonNull(customerGroupAssignment, + CustomerGroupAssignmentAddedMessage.class + ": customerGroupAssignment is missing"); + return new CustomerGroupAssignmentAddedMessageImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, + createdBy, sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, + customerGroupAssignment); + } + + /** + * builds CustomerGroupAssignmentAddedMessage without checking for non-null required values + * @return CustomerGroupAssignmentAddedMessage + */ + public CustomerGroupAssignmentAddedMessage buildUnchecked() { + return new CustomerGroupAssignmentAddedMessageImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, + createdBy, sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, + customerGroupAssignment); + } + + /** + * factory method for an instance of CustomerGroupAssignmentAddedMessageBuilder + * @return builder + */ + public static CustomerGroupAssignmentAddedMessageBuilder of() { + return new CustomerGroupAssignmentAddedMessageBuilder(); + } + + /** + * create builder for CustomerGroupAssignmentAddedMessage instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CustomerGroupAssignmentAddedMessageBuilder of(final CustomerGroupAssignmentAddedMessage template) { + CustomerGroupAssignmentAddedMessageBuilder builder = new CustomerGroupAssignmentAddedMessageBuilder(); + builder.id = template.getId(); + builder.version = template.getVersion(); + builder.createdAt = template.getCreatedAt(); + builder.lastModifiedAt = template.getLastModifiedAt(); + builder.lastModifiedBy = template.getLastModifiedBy(); + builder.createdBy = template.getCreatedBy(); + builder.sequenceNumber = template.getSequenceNumber(); + builder.resource = template.getResource(); + builder.resourceVersion = template.getResourceVersion(); + builder.resourceUserProvidedIdentifiers = template.getResourceUserProvidedIdentifiers(); + builder.customerGroupAssignment = template.getCustomerGroupAssignment(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentAddedMessageImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentAddedMessageImpl.java new file mode 100644 index 00000000000..ed61a4c5a00 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentAddedMessageImpl.java @@ -0,0 +1,298 @@ + +package com.commercetools.api.models.message; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.ModelBase; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +/** + *

Generated after a successful Add CustomerGroupAssignment update action.

+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CustomerGroupAssignmentAddedMessageImpl implements CustomerGroupAssignmentAddedMessage, ModelBase { + + private String id; + + private Long version; + + private java.time.ZonedDateTime createdAt; + + private java.time.ZonedDateTime lastModifiedAt; + + private com.commercetools.api.models.common.LastModifiedBy lastModifiedBy; + + private com.commercetools.api.models.common.CreatedBy createdBy; + + private Long sequenceNumber; + + private com.commercetools.api.models.common.Reference resource; + + private Long resourceVersion; + + private String type; + + private com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers; + + private com.commercetools.api.models.customer.CustomerGroupAssignment customerGroupAssignment; + + /** + * create instance with all properties + */ + @JsonCreator + CustomerGroupAssignmentAddedMessageImpl(@JsonProperty("id") final String id, + @JsonProperty("version") final Long version, + @JsonProperty("createdAt") final java.time.ZonedDateTime createdAt, + @JsonProperty("lastModifiedAt") final java.time.ZonedDateTime lastModifiedAt, + @JsonProperty("lastModifiedBy") final com.commercetools.api.models.common.LastModifiedBy lastModifiedBy, + @JsonProperty("createdBy") final com.commercetools.api.models.common.CreatedBy createdBy, + @JsonProperty("sequenceNumber") final Long sequenceNumber, + @JsonProperty("resource") final com.commercetools.api.models.common.Reference resource, + @JsonProperty("resourceVersion") final Long resourceVersion, + @JsonProperty("resourceUserProvidedIdentifiers") final com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers, + @JsonProperty("customerGroupAssignment") final com.commercetools.api.models.customer.CustomerGroupAssignment customerGroupAssignment) { + this.id = id; + this.version = version; + this.createdAt = createdAt; + this.lastModifiedAt = lastModifiedAt; + this.lastModifiedBy = lastModifiedBy; + this.createdBy = createdBy; + this.sequenceNumber = sequenceNumber; + this.resource = resource; + this.resourceVersion = resourceVersion; + this.resourceUserProvidedIdentifiers = resourceUserProvidedIdentifiers; + this.customerGroupAssignment = customerGroupAssignment; + this.type = CUSTOMER_GROUP_ASSIGNMENT_ADDED; + } + + /** + * create empty instance + */ + public CustomerGroupAssignmentAddedMessageImpl() { + this.type = CUSTOMER_GROUP_ASSIGNMENT_ADDED; + } + + /** + *

Unique identifier of the Message. Can be used to track which Messages have been processed.

+ */ + + public String getId() { + return this.id; + } + + /** + *

Version of a resource. In case of Messages, this is always 1.

+ */ + + public Long getVersion() { + return this.version; + } + + /** + *

Date and time (UTC) the Message was generated.

+ */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + /** + *

Value of createdAt.

+ */ + + public java.time.ZonedDateTime getLastModifiedAt() { + return this.lastModifiedAt; + } + + /** + *

IDs and references that last modified the Message.

+ */ + + public com.commercetools.api.models.common.LastModifiedBy getLastModifiedBy() { + return this.lastModifiedBy; + } + + /** + *

IDs and references that created the Message.

+ */ + + public com.commercetools.api.models.common.CreatedBy getCreatedBy() { + return this.createdBy; + } + + /** + *

Message number in relation to other Messages for a given resource. The sequenceNumber of the next Message for the resource is the successor of the sequenceNumber of the current Message. Meaning, the sequenceNumber of the next Message equals the sequenceNumber of the current Message + 1. sequenceNumber can be used to ensure that Messages are processed in the correct order for a particular resource.

+ */ + + public Long getSequenceNumber() { + return this.sequenceNumber; + } + + /** + *

Reference to the resource on which the change or action was performed.

+ */ + + public com.commercetools.api.models.common.Reference getResource() { + return this.resource; + } + + /** + *

Version of the resource on which the change or action was performed.

+ */ + + public Long getResourceVersion() { + return this.resourceVersion; + } + + /** + *

Message Type of the Message.

+ */ + + public String getType() { + return this.type; + } + + /** + *

User-provided identifiers of the resource, such as key or externalId. Only present if the resource has such identifiers.

+ */ + + public com.commercetools.api.models.message.UserProvidedIdentifiers getResourceUserProvidedIdentifiers() { + return this.resourceUserProvidedIdentifiers; + } + + /** + *

CustomerGroupAssignment that was added during the Add CustomerGroupAssignment update action.

+ */ + + public com.commercetools.api.models.customer.CustomerGroupAssignment getCustomerGroupAssignment() { + return this.customerGroupAssignment; + } + + public void setId(final String id) { + this.id = id; + } + + public void setVersion(final Long version) { + this.version = version; + } + + public void setCreatedAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + } + + public void setLastModifiedAt(final java.time.ZonedDateTime lastModifiedAt) { + this.lastModifiedAt = lastModifiedAt; + } + + public void setLastModifiedBy(final com.commercetools.api.models.common.LastModifiedBy lastModifiedBy) { + this.lastModifiedBy = lastModifiedBy; + } + + public void setCreatedBy(final com.commercetools.api.models.common.CreatedBy createdBy) { + this.createdBy = createdBy; + } + + public void setSequenceNumber(final Long sequenceNumber) { + this.sequenceNumber = sequenceNumber; + } + + public void setResource(final com.commercetools.api.models.common.Reference resource) { + this.resource = resource; + } + + public void setResourceVersion(final Long resourceVersion) { + this.resourceVersion = resourceVersion; + } + + public void setResourceUserProvidedIdentifiers( + final com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers) { + this.resourceUserProvidedIdentifiers = resourceUserProvidedIdentifiers; + } + + public void setCustomerGroupAssignment( + final com.commercetools.api.models.customer.CustomerGroupAssignment customerGroupAssignment) { + this.customerGroupAssignment = customerGroupAssignment; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + CustomerGroupAssignmentAddedMessageImpl that = (CustomerGroupAssignmentAddedMessageImpl) o; + + return new EqualsBuilder().append(id, that.id) + .append(version, that.version) + .append(createdAt, that.createdAt) + .append(lastModifiedAt, that.lastModifiedAt) + .append(lastModifiedBy, that.lastModifiedBy) + .append(createdBy, that.createdBy) + .append(sequenceNumber, that.sequenceNumber) + .append(resource, that.resource) + .append(resourceVersion, that.resourceVersion) + .append(type, that.type) + .append(resourceUserProvidedIdentifiers, that.resourceUserProvidedIdentifiers) + .append(customerGroupAssignment, that.customerGroupAssignment) + .append(id, that.id) + .append(version, that.version) + .append(createdAt, that.createdAt) + .append(lastModifiedAt, that.lastModifiedAt) + .append(lastModifiedBy, that.lastModifiedBy) + .append(createdBy, that.createdBy) + .append(sequenceNumber, that.sequenceNumber) + .append(resource, that.resource) + .append(resourceVersion, that.resourceVersion) + .append(type, that.type) + .append(resourceUserProvidedIdentifiers, that.resourceUserProvidedIdentifiers) + .append(customerGroupAssignment, that.customerGroupAssignment) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(id) + .append(version) + .append(createdAt) + .append(lastModifiedAt) + .append(lastModifiedBy) + .append(createdBy) + .append(sequenceNumber) + .append(resource) + .append(resourceVersion) + .append(type) + .append(resourceUserProvidedIdentifiers) + .append(customerGroupAssignment) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("id", id) + .append("version", version) + .append("createdAt", createdAt) + .append("lastModifiedAt", lastModifiedAt) + .append("lastModifiedBy", lastModifiedBy) + .append("createdBy", createdBy) + .append("sequenceNumber", sequenceNumber) + .append("resource", resource) + .append("resourceVersion", resourceVersion) + .append("type", type) + .append("resourceUserProvidedIdentifiers", resourceUserProvidedIdentifiers) + .append("customerGroupAssignment", customerGroupAssignment) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentAddedMessagePayload.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentAddedMessagePayload.java new file mode 100644 index 00000000000..9efa9e847c3 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentAddedMessagePayload.java @@ -0,0 +1,135 @@ + +package com.commercetools.api.models.message; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.commercetools.api.models.customer.CustomerGroupAssignment; +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; + +/** + *

Generated after a successful Add CustomerGroupAssignment update action.

+ * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     CustomerGroupAssignmentAddedMessagePayload customerGroupAssignmentAddedMessagePayload = CustomerGroupAssignmentAddedMessagePayload.builder()
+ *             .customerGroupAssignment(customerGroupAssignmentBuilder -> customerGroupAssignmentBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = CustomerGroupAssignmentAddedMessagePayloadImpl.class) +public interface CustomerGroupAssignmentAddedMessagePayload extends MessagePayload { + + /** + * discriminator value for CustomerGroupAssignmentAddedMessagePayload + */ + String CUSTOMER_GROUP_ASSIGNMENT_ADDED = "CustomerGroupAssignmentAdded"; + + /** + *

CustomerGroupAssignment that was added during the Add CustomerGroupAssignment update action.

+ * @return customerGroupAssignment + */ + @NotNull + @Valid + @JsonProperty("customerGroupAssignment") + public CustomerGroupAssignment getCustomerGroupAssignment(); + + /** + *

CustomerGroupAssignment that was added during the Add CustomerGroupAssignment update action.

+ * @param customerGroupAssignment value to be set + */ + + public void setCustomerGroupAssignment(final CustomerGroupAssignment customerGroupAssignment); + + /** + * factory method + * @return instance of CustomerGroupAssignmentAddedMessagePayload + */ + public static CustomerGroupAssignmentAddedMessagePayload of() { + return new CustomerGroupAssignmentAddedMessagePayloadImpl(); + } + + /** + * factory method to create a shallow copy CustomerGroupAssignmentAddedMessagePayload + * @param template instance to be copied + * @return copy instance + */ + public static CustomerGroupAssignmentAddedMessagePayload of( + final CustomerGroupAssignmentAddedMessagePayload template) { + CustomerGroupAssignmentAddedMessagePayloadImpl instance = new CustomerGroupAssignmentAddedMessagePayloadImpl(); + instance.setCustomerGroupAssignment(template.getCustomerGroupAssignment()); + return instance; + } + + /** + * factory method to create a deep copy of CustomerGroupAssignmentAddedMessagePayload + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static CustomerGroupAssignmentAddedMessagePayload deepCopy( + @Nullable final CustomerGroupAssignmentAddedMessagePayload template) { + if (template == null) { + return null; + } + CustomerGroupAssignmentAddedMessagePayloadImpl instance = new CustomerGroupAssignmentAddedMessagePayloadImpl(); + instance.setCustomerGroupAssignment(com.commercetools.api.models.customer.CustomerGroupAssignment + .deepCopy(template.getCustomerGroupAssignment())); + return instance; + } + + /** + * builder factory method for CustomerGroupAssignmentAddedMessagePayload + * @return builder + */ + public static CustomerGroupAssignmentAddedMessagePayloadBuilder builder() { + return CustomerGroupAssignmentAddedMessagePayloadBuilder.of(); + } + + /** + * create builder for CustomerGroupAssignmentAddedMessagePayload instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CustomerGroupAssignmentAddedMessagePayloadBuilder builder( + final CustomerGroupAssignmentAddedMessagePayload template) { + return CustomerGroupAssignmentAddedMessagePayloadBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withCustomerGroupAssignmentAddedMessagePayload( + Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentAddedMessagePayloadBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentAddedMessagePayloadBuilder.java new file mode 100644 index 00000000000..9eb1bfcacc3 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentAddedMessagePayloadBuilder.java @@ -0,0 +1,114 @@ + +package com.commercetools.api.models.message; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * CustomerGroupAssignmentAddedMessagePayloadBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     CustomerGroupAssignmentAddedMessagePayload customerGroupAssignmentAddedMessagePayload = CustomerGroupAssignmentAddedMessagePayload.builder()
+ *             .customerGroupAssignment(customerGroupAssignmentBuilder -> customerGroupAssignmentBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CustomerGroupAssignmentAddedMessagePayloadBuilder + implements Builder { + + private com.commercetools.api.models.customer.CustomerGroupAssignment customerGroupAssignment; + + /** + *

CustomerGroupAssignment that was added during the Add CustomerGroupAssignment update action.

+ * @param builder function to build the customerGroupAssignment value + * @return Builder + */ + + public CustomerGroupAssignmentAddedMessagePayloadBuilder customerGroupAssignment( + Function builder) { + this.customerGroupAssignment = builder + .apply(com.commercetools.api.models.customer.CustomerGroupAssignmentBuilder.of()) + .build(); + return this; + } + + /** + *

CustomerGroupAssignment that was added during the Add CustomerGroupAssignment update action.

+ * @param builder function to build the customerGroupAssignment value + * @return Builder + */ + + public CustomerGroupAssignmentAddedMessagePayloadBuilder withCustomerGroupAssignment( + Function builder) { + this.customerGroupAssignment = builder + .apply(com.commercetools.api.models.customer.CustomerGroupAssignmentBuilder.of()); + return this; + } + + /** + *

CustomerGroupAssignment that was added during the Add CustomerGroupAssignment update action.

+ * @param customerGroupAssignment value to be set + * @return Builder + */ + + public CustomerGroupAssignmentAddedMessagePayloadBuilder customerGroupAssignment( + final com.commercetools.api.models.customer.CustomerGroupAssignment customerGroupAssignment) { + this.customerGroupAssignment = customerGroupAssignment; + return this; + } + + /** + *

CustomerGroupAssignment that was added during the Add CustomerGroupAssignment update action.

+ * @return customerGroupAssignment + */ + + public com.commercetools.api.models.customer.CustomerGroupAssignment getCustomerGroupAssignment() { + return this.customerGroupAssignment; + } + + /** + * builds CustomerGroupAssignmentAddedMessagePayload with checking for non-null required values + * @return CustomerGroupAssignmentAddedMessagePayload + */ + public CustomerGroupAssignmentAddedMessagePayload build() { + Objects.requireNonNull(customerGroupAssignment, + CustomerGroupAssignmentAddedMessagePayload.class + ": customerGroupAssignment is missing"); + return new CustomerGroupAssignmentAddedMessagePayloadImpl(customerGroupAssignment); + } + + /** + * builds CustomerGroupAssignmentAddedMessagePayload without checking for non-null required values + * @return CustomerGroupAssignmentAddedMessagePayload + */ + public CustomerGroupAssignmentAddedMessagePayload buildUnchecked() { + return new CustomerGroupAssignmentAddedMessagePayloadImpl(customerGroupAssignment); + } + + /** + * factory method for an instance of CustomerGroupAssignmentAddedMessagePayloadBuilder + * @return builder + */ + public static CustomerGroupAssignmentAddedMessagePayloadBuilder of() { + return new CustomerGroupAssignmentAddedMessagePayloadBuilder(); + } + + /** + * create builder for CustomerGroupAssignmentAddedMessagePayload instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CustomerGroupAssignmentAddedMessagePayloadBuilder of( + final CustomerGroupAssignmentAddedMessagePayload template) { + CustomerGroupAssignmentAddedMessagePayloadBuilder builder = new CustomerGroupAssignmentAddedMessagePayloadBuilder(); + builder.customerGroupAssignment = template.getCustomerGroupAssignment(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentAddedMessagePayloadImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentAddedMessagePayloadImpl.java new file mode 100644 index 00000000000..40661ed7b2d --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentAddedMessagePayloadImpl.java @@ -0,0 +1,97 @@ + +package com.commercetools.api.models.message; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.ModelBase; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +/** + *

Generated after a successful Add CustomerGroupAssignment update action.

+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CustomerGroupAssignmentAddedMessagePayloadImpl + implements CustomerGroupAssignmentAddedMessagePayload, ModelBase { + + private String type; + + private com.commercetools.api.models.customer.CustomerGroupAssignment customerGroupAssignment; + + /** + * create instance with all properties + */ + @JsonCreator + CustomerGroupAssignmentAddedMessagePayloadImpl( + @JsonProperty("customerGroupAssignment") final com.commercetools.api.models.customer.CustomerGroupAssignment customerGroupAssignment) { + this.customerGroupAssignment = customerGroupAssignment; + this.type = CUSTOMER_GROUP_ASSIGNMENT_ADDED; + } + + /** + * create empty instance + */ + public CustomerGroupAssignmentAddedMessagePayloadImpl() { + this.type = CUSTOMER_GROUP_ASSIGNMENT_ADDED; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + *

CustomerGroupAssignment that was added during the Add CustomerGroupAssignment update action.

+ */ + + public com.commercetools.api.models.customer.CustomerGroupAssignment getCustomerGroupAssignment() { + return this.customerGroupAssignment; + } + + public void setCustomerGroupAssignment( + final com.commercetools.api.models.customer.CustomerGroupAssignment customerGroupAssignment) { + this.customerGroupAssignment = customerGroupAssignment; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + CustomerGroupAssignmentAddedMessagePayloadImpl that = (CustomerGroupAssignmentAddedMessagePayloadImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(customerGroupAssignment, that.customerGroupAssignment) + .append(type, that.type) + .append(customerGroupAssignment, that.customerGroupAssignment) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type).append(customerGroupAssignment).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) + .append("customerGroupAssignment", customerGroupAssignment) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentRemovedMessage.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentRemovedMessage.java new file mode 100644 index 00000000000..1764615ad53 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentRemovedMessage.java @@ -0,0 +1,162 @@ + +package com.commercetools.api.models.message; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.commercetools.api.models.customer_group.CustomerGroupReference; +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; + +/** + *

Generated after a successful Remove CustomerGroupAssignment update action.

+ * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     CustomerGroupAssignmentRemovedMessage customerGroupAssignmentRemovedMessage = CustomerGroupAssignmentRemovedMessage.builder()
+ *             .id("{id}")
+ *             .version(0.3)
+ *             .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
+ *             .lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
+ *             .sequenceNumber(0.3)
+ *             .resource(resourceBuilder -> resourceBuilder)
+ *             .resourceVersion(0.3)
+ *             .customerGroupAssignment(customerGroupAssignmentBuilder -> customerGroupAssignmentBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = CustomerGroupAssignmentRemovedMessageImpl.class) +public interface CustomerGroupAssignmentRemovedMessage extends Message { + + /** + * discriminator value for CustomerGroupAssignmentRemovedMessage + */ + String CUSTOMER_GROUP_ASSIGNMENT_REMOVED = "CustomerGroupAssignmentRemoved"; + + /** + *

CustomerGroupAssignment that was removed during the Remove CustomerGroupAssignment update action.

+ * @return customerGroupAssignment + */ + @NotNull + @Valid + @JsonProperty("customerGroupAssignment") + public CustomerGroupReference getCustomerGroupAssignment(); + + /** + *

CustomerGroupAssignment that was removed during the Remove CustomerGroupAssignment update action.

+ * @param customerGroupAssignment value to be set + */ + + public void setCustomerGroupAssignment(final CustomerGroupReference customerGroupAssignment); + + /** + * factory method + * @return instance of CustomerGroupAssignmentRemovedMessage + */ + public static CustomerGroupAssignmentRemovedMessage of() { + return new CustomerGroupAssignmentRemovedMessageImpl(); + } + + /** + * factory method to create a shallow copy CustomerGroupAssignmentRemovedMessage + * @param template instance to be copied + * @return copy instance + */ + public static CustomerGroupAssignmentRemovedMessage of(final CustomerGroupAssignmentRemovedMessage template) { + CustomerGroupAssignmentRemovedMessageImpl instance = new CustomerGroupAssignmentRemovedMessageImpl(); + instance.setId(template.getId()); + instance.setVersion(template.getVersion()); + instance.setCreatedAt(template.getCreatedAt()); + instance.setLastModifiedAt(template.getLastModifiedAt()); + instance.setLastModifiedBy(template.getLastModifiedBy()); + instance.setCreatedBy(template.getCreatedBy()); + instance.setSequenceNumber(template.getSequenceNumber()); + instance.setResource(template.getResource()); + instance.setResourceVersion(template.getResourceVersion()); + instance.setResourceUserProvidedIdentifiers(template.getResourceUserProvidedIdentifiers()); + instance.setCustomerGroupAssignment(template.getCustomerGroupAssignment()); + return instance; + } + + /** + * factory method to create a deep copy of CustomerGroupAssignmentRemovedMessage + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static CustomerGroupAssignmentRemovedMessage deepCopy( + @Nullable final CustomerGroupAssignmentRemovedMessage template) { + if (template == null) { + return null; + } + CustomerGroupAssignmentRemovedMessageImpl instance = new CustomerGroupAssignmentRemovedMessageImpl(); + instance.setId(template.getId()); + instance.setVersion(template.getVersion()); + instance.setCreatedAt(template.getCreatedAt()); + instance.setLastModifiedAt(template.getLastModifiedAt()); + instance.setLastModifiedBy( + com.commercetools.api.models.common.LastModifiedBy.deepCopy(template.getLastModifiedBy())); + instance.setCreatedBy(com.commercetools.api.models.common.CreatedBy.deepCopy(template.getCreatedBy())); + instance.setSequenceNumber(template.getSequenceNumber()); + instance.setResource(com.commercetools.api.models.common.Reference.deepCopy(template.getResource())); + instance.setResourceVersion(template.getResourceVersion()); + instance.setResourceUserProvidedIdentifiers(com.commercetools.api.models.message.UserProvidedIdentifiers + .deepCopy(template.getResourceUserProvidedIdentifiers())); + instance.setCustomerGroupAssignment(com.commercetools.api.models.customer_group.CustomerGroupReference + .deepCopy(template.getCustomerGroupAssignment())); + return instance; + } + + /** + * builder factory method for CustomerGroupAssignmentRemovedMessage + * @return builder + */ + public static CustomerGroupAssignmentRemovedMessageBuilder builder() { + return CustomerGroupAssignmentRemovedMessageBuilder.of(); + } + + /** + * create builder for CustomerGroupAssignmentRemovedMessage instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CustomerGroupAssignmentRemovedMessageBuilder builder( + final CustomerGroupAssignmentRemovedMessage template) { + return CustomerGroupAssignmentRemovedMessageBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withCustomerGroupAssignmentRemovedMessage(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentRemovedMessageBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentRemovedMessageBuilder.java new file mode 100644 index 00000000000..782b33d8ec5 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentRemovedMessageBuilder.java @@ -0,0 +1,463 @@ + +package com.commercetools.api.models.message; + +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * CustomerGroupAssignmentRemovedMessageBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     CustomerGroupAssignmentRemovedMessage customerGroupAssignmentRemovedMessage = CustomerGroupAssignmentRemovedMessage.builder()
+ *             .id("{id}")
+ *             .version(0.3)
+ *             .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
+ *             .lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
+ *             .sequenceNumber(0.3)
+ *             .resource(resourceBuilder -> resourceBuilder)
+ *             .resourceVersion(0.3)
+ *             .customerGroupAssignment(customerGroupAssignmentBuilder -> customerGroupAssignmentBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CustomerGroupAssignmentRemovedMessageBuilder implements Builder { + + private String id; + + private Long version; + + private java.time.ZonedDateTime createdAt; + + private java.time.ZonedDateTime lastModifiedAt; + + @Nullable + private com.commercetools.api.models.common.LastModifiedBy lastModifiedBy; + + @Nullable + private com.commercetools.api.models.common.CreatedBy createdBy; + + private Long sequenceNumber; + + private com.commercetools.api.models.common.Reference resource; + + private Long resourceVersion; + + @Nullable + private com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers; + + private com.commercetools.api.models.customer_group.CustomerGroupReference customerGroupAssignment; + + /** + *

Unique identifier of the Message. Can be used to track which Messages have been processed.

+ * @param id value to be set + * @return Builder + */ + + public CustomerGroupAssignmentRemovedMessageBuilder id(final String id) { + this.id = id; + return this; + } + + /** + *

Version of a resource. In case of Messages, this is always 1.

+ * @param version value to be set + * @return Builder + */ + + public CustomerGroupAssignmentRemovedMessageBuilder version(final Long version) { + this.version = version; + return this; + } + + /** + *

Date and time (UTC) the Message was generated.

+ * @param createdAt value to be set + * @return Builder + */ + + public CustomerGroupAssignmentRemovedMessageBuilder createdAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + *

Value of createdAt.

+ * @param lastModifiedAt value to be set + * @return Builder + */ + + public CustomerGroupAssignmentRemovedMessageBuilder lastModifiedAt(final java.time.ZonedDateTime lastModifiedAt) { + this.lastModifiedAt = lastModifiedAt; + return this; + } + + /** + *

IDs and references that last modified the Message.

+ * @param builder function to build the lastModifiedBy value + * @return Builder + */ + + public CustomerGroupAssignmentRemovedMessageBuilder lastModifiedBy( + Function builder) { + this.lastModifiedBy = builder.apply(com.commercetools.api.models.common.LastModifiedByBuilder.of()).build(); + return this; + } + + /** + *

IDs and references that last modified the Message.

+ * @param builder function to build the lastModifiedBy value + * @return Builder + */ + + public CustomerGroupAssignmentRemovedMessageBuilder withLastModifiedBy( + Function builder) { + this.lastModifiedBy = builder.apply(com.commercetools.api.models.common.LastModifiedByBuilder.of()); + return this; + } + + /** + *

IDs and references that last modified the Message.

+ * @param lastModifiedBy value to be set + * @return Builder + */ + + public CustomerGroupAssignmentRemovedMessageBuilder lastModifiedBy( + @Nullable final com.commercetools.api.models.common.LastModifiedBy lastModifiedBy) { + this.lastModifiedBy = lastModifiedBy; + return this; + } + + /** + *

IDs and references that created the Message.

+ * @param builder function to build the createdBy value + * @return Builder + */ + + public CustomerGroupAssignmentRemovedMessageBuilder createdBy( + Function builder) { + this.createdBy = builder.apply(com.commercetools.api.models.common.CreatedByBuilder.of()).build(); + return this; + } + + /** + *

IDs and references that created the Message.

+ * @param builder function to build the createdBy value + * @return Builder + */ + + public CustomerGroupAssignmentRemovedMessageBuilder withCreatedBy( + Function builder) { + this.createdBy = builder.apply(com.commercetools.api.models.common.CreatedByBuilder.of()); + return this; + } + + /** + *

IDs and references that created the Message.

+ * @param createdBy value to be set + * @return Builder + */ + + public CustomerGroupAssignmentRemovedMessageBuilder createdBy( + @Nullable final com.commercetools.api.models.common.CreatedBy createdBy) { + this.createdBy = createdBy; + return this; + } + + /** + *

Message number in relation to other Messages for a given resource. The sequenceNumber of the next Message for the resource is the successor of the sequenceNumber of the current Message. Meaning, the sequenceNumber of the next Message equals the sequenceNumber of the current Message + 1. sequenceNumber can be used to ensure that Messages are processed in the correct order for a particular resource.

+ * @param sequenceNumber value to be set + * @return Builder + */ + + public CustomerGroupAssignmentRemovedMessageBuilder sequenceNumber(final Long sequenceNumber) { + this.sequenceNumber = sequenceNumber; + return this; + } + + /** + *

Reference to the resource on which the change or action was performed.

+ * @param resource value to be set + * @return Builder + */ + + public CustomerGroupAssignmentRemovedMessageBuilder resource( + final com.commercetools.api.models.common.Reference resource) { + this.resource = resource; + return this; + } + + /** + *

Reference to the resource on which the change or action was performed.

+ * @param builder function to build the resource value + * @return Builder + */ + + public CustomerGroupAssignmentRemovedMessageBuilder resource( + Function> builder) { + this.resource = builder.apply(com.commercetools.api.models.common.ReferenceBuilder.of()).build(); + return this; + } + + /** + *

Version of the resource on which the change or action was performed.

+ * @param resourceVersion value to be set + * @return Builder + */ + + public CustomerGroupAssignmentRemovedMessageBuilder resourceVersion(final Long resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + *

User-provided identifiers of the resource, such as key or externalId. Only present if the resource has such identifiers.

+ * @param builder function to build the resourceUserProvidedIdentifiers value + * @return Builder + */ + + public CustomerGroupAssignmentRemovedMessageBuilder resourceUserProvidedIdentifiers( + Function builder) { + this.resourceUserProvidedIdentifiers = builder + .apply(com.commercetools.api.models.message.UserProvidedIdentifiersBuilder.of()) + .build(); + return this; + } + + /** + *

User-provided identifiers of the resource, such as key or externalId. Only present if the resource has such identifiers.

+ * @param builder function to build the resourceUserProvidedIdentifiers value + * @return Builder + */ + + public CustomerGroupAssignmentRemovedMessageBuilder withResourceUserProvidedIdentifiers( + Function builder) { + this.resourceUserProvidedIdentifiers = builder + .apply(com.commercetools.api.models.message.UserProvidedIdentifiersBuilder.of()); + return this; + } + + /** + *

User-provided identifiers of the resource, such as key or externalId. Only present if the resource has such identifiers.

+ * @param resourceUserProvidedIdentifiers value to be set + * @return Builder + */ + + public CustomerGroupAssignmentRemovedMessageBuilder resourceUserProvidedIdentifiers( + @Nullable final com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers) { + this.resourceUserProvidedIdentifiers = resourceUserProvidedIdentifiers; + return this; + } + + /** + *

CustomerGroupAssignment that was removed during the Remove CustomerGroupAssignment update action.

+ * @param builder function to build the customerGroupAssignment value + * @return Builder + */ + + public CustomerGroupAssignmentRemovedMessageBuilder customerGroupAssignment( + Function builder) { + this.customerGroupAssignment = builder + .apply(com.commercetools.api.models.customer_group.CustomerGroupReferenceBuilder.of()) + .build(); + return this; + } + + /** + *

CustomerGroupAssignment that was removed during the Remove CustomerGroupAssignment update action.

+ * @param builder function to build the customerGroupAssignment value + * @return Builder + */ + + public CustomerGroupAssignmentRemovedMessageBuilder withCustomerGroupAssignment( + Function builder) { + this.customerGroupAssignment = builder + .apply(com.commercetools.api.models.customer_group.CustomerGroupReferenceBuilder.of()); + return this; + } + + /** + *

CustomerGroupAssignment that was removed during the Remove CustomerGroupAssignment update action.

+ * @param customerGroupAssignment value to be set + * @return Builder + */ + + public CustomerGroupAssignmentRemovedMessageBuilder customerGroupAssignment( + final com.commercetools.api.models.customer_group.CustomerGroupReference customerGroupAssignment) { + this.customerGroupAssignment = customerGroupAssignment; + return this; + } + + /** + *

Unique identifier of the Message. Can be used to track which Messages have been processed.

+ * @return id + */ + + public String getId() { + return this.id; + } + + /** + *

Version of a resource. In case of Messages, this is always 1.

+ * @return version + */ + + public Long getVersion() { + return this.version; + } + + /** + *

Date and time (UTC) the Message was generated.

+ * @return createdAt + */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + /** + *

Value of createdAt.

+ * @return lastModifiedAt + */ + + public java.time.ZonedDateTime getLastModifiedAt() { + return this.lastModifiedAt; + } + + /** + *

IDs and references that last modified the Message.

+ * @return lastModifiedBy + */ + + @Nullable + public com.commercetools.api.models.common.LastModifiedBy getLastModifiedBy() { + return this.lastModifiedBy; + } + + /** + *

IDs and references that created the Message.

+ * @return createdBy + */ + + @Nullable + public com.commercetools.api.models.common.CreatedBy getCreatedBy() { + return this.createdBy; + } + + /** + *

Message number in relation to other Messages for a given resource. The sequenceNumber of the next Message for the resource is the successor of the sequenceNumber of the current Message. Meaning, the sequenceNumber of the next Message equals the sequenceNumber of the current Message + 1. sequenceNumber can be used to ensure that Messages are processed in the correct order for a particular resource.

+ * @return sequenceNumber + */ + + public Long getSequenceNumber() { + return this.sequenceNumber; + } + + /** + *

Reference to the resource on which the change or action was performed.

+ * @return resource + */ + + public com.commercetools.api.models.common.Reference getResource() { + return this.resource; + } + + /** + *

Version of the resource on which the change or action was performed.

+ * @return resourceVersion + */ + + public Long getResourceVersion() { + return this.resourceVersion; + } + + /** + *

User-provided identifiers of the resource, such as key or externalId. Only present if the resource has such identifiers.

+ * @return resourceUserProvidedIdentifiers + */ + + @Nullable + public com.commercetools.api.models.message.UserProvidedIdentifiers getResourceUserProvidedIdentifiers() { + return this.resourceUserProvidedIdentifiers; + } + + /** + *

CustomerGroupAssignment that was removed during the Remove CustomerGroupAssignment update action.

+ * @return customerGroupAssignment + */ + + public com.commercetools.api.models.customer_group.CustomerGroupReference getCustomerGroupAssignment() { + return this.customerGroupAssignment; + } + + /** + * builds CustomerGroupAssignmentRemovedMessage with checking for non-null required values + * @return CustomerGroupAssignmentRemovedMessage + */ + public CustomerGroupAssignmentRemovedMessage build() { + Objects.requireNonNull(id, CustomerGroupAssignmentRemovedMessage.class + ": id is missing"); + Objects.requireNonNull(version, CustomerGroupAssignmentRemovedMessage.class + ": version is missing"); + Objects.requireNonNull(createdAt, CustomerGroupAssignmentRemovedMessage.class + ": createdAt is missing"); + Objects.requireNonNull(lastModifiedAt, + CustomerGroupAssignmentRemovedMessage.class + ": lastModifiedAt is missing"); + Objects.requireNonNull(sequenceNumber, + CustomerGroupAssignmentRemovedMessage.class + ": sequenceNumber is missing"); + Objects.requireNonNull(resource, CustomerGroupAssignmentRemovedMessage.class + ": resource is missing"); + Objects.requireNonNull(resourceVersion, + CustomerGroupAssignmentRemovedMessage.class + ": resourceVersion is missing"); + Objects.requireNonNull(customerGroupAssignment, + CustomerGroupAssignmentRemovedMessage.class + ": customerGroupAssignment is missing"); + return new CustomerGroupAssignmentRemovedMessageImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, + createdBy, sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, + customerGroupAssignment); + } + + /** + * builds CustomerGroupAssignmentRemovedMessage without checking for non-null required values + * @return CustomerGroupAssignmentRemovedMessage + */ + public CustomerGroupAssignmentRemovedMessage buildUnchecked() { + return new CustomerGroupAssignmentRemovedMessageImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, + createdBy, sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, + customerGroupAssignment); + } + + /** + * factory method for an instance of CustomerGroupAssignmentRemovedMessageBuilder + * @return builder + */ + public static CustomerGroupAssignmentRemovedMessageBuilder of() { + return new CustomerGroupAssignmentRemovedMessageBuilder(); + } + + /** + * create builder for CustomerGroupAssignmentRemovedMessage instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CustomerGroupAssignmentRemovedMessageBuilder of( + final CustomerGroupAssignmentRemovedMessage template) { + CustomerGroupAssignmentRemovedMessageBuilder builder = new CustomerGroupAssignmentRemovedMessageBuilder(); + builder.id = template.getId(); + builder.version = template.getVersion(); + builder.createdAt = template.getCreatedAt(); + builder.lastModifiedAt = template.getLastModifiedAt(); + builder.lastModifiedBy = template.getLastModifiedBy(); + builder.createdBy = template.getCreatedBy(); + builder.sequenceNumber = template.getSequenceNumber(); + builder.resource = template.getResource(); + builder.resourceVersion = template.getResourceVersion(); + builder.resourceUserProvidedIdentifiers = template.getResourceUserProvidedIdentifiers(); + builder.customerGroupAssignment = template.getCustomerGroupAssignment(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentRemovedMessageImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentRemovedMessageImpl.java new file mode 100644 index 00000000000..36e91a84eac --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentRemovedMessageImpl.java @@ -0,0 +1,298 @@ + +package com.commercetools.api.models.message; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.ModelBase; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +/** + *

Generated after a successful Remove CustomerGroupAssignment update action.

+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CustomerGroupAssignmentRemovedMessageImpl implements CustomerGroupAssignmentRemovedMessage, ModelBase { + + private String id; + + private Long version; + + private java.time.ZonedDateTime createdAt; + + private java.time.ZonedDateTime lastModifiedAt; + + private com.commercetools.api.models.common.LastModifiedBy lastModifiedBy; + + private com.commercetools.api.models.common.CreatedBy createdBy; + + private Long sequenceNumber; + + private com.commercetools.api.models.common.Reference resource; + + private Long resourceVersion; + + private String type; + + private com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers; + + private com.commercetools.api.models.customer_group.CustomerGroupReference customerGroupAssignment; + + /** + * create instance with all properties + */ + @JsonCreator + CustomerGroupAssignmentRemovedMessageImpl(@JsonProperty("id") final String id, + @JsonProperty("version") final Long version, + @JsonProperty("createdAt") final java.time.ZonedDateTime createdAt, + @JsonProperty("lastModifiedAt") final java.time.ZonedDateTime lastModifiedAt, + @JsonProperty("lastModifiedBy") final com.commercetools.api.models.common.LastModifiedBy lastModifiedBy, + @JsonProperty("createdBy") final com.commercetools.api.models.common.CreatedBy createdBy, + @JsonProperty("sequenceNumber") final Long sequenceNumber, + @JsonProperty("resource") final com.commercetools.api.models.common.Reference resource, + @JsonProperty("resourceVersion") final Long resourceVersion, + @JsonProperty("resourceUserProvidedIdentifiers") final com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers, + @JsonProperty("customerGroupAssignment") final com.commercetools.api.models.customer_group.CustomerGroupReference customerGroupAssignment) { + this.id = id; + this.version = version; + this.createdAt = createdAt; + this.lastModifiedAt = lastModifiedAt; + this.lastModifiedBy = lastModifiedBy; + this.createdBy = createdBy; + this.sequenceNumber = sequenceNumber; + this.resource = resource; + this.resourceVersion = resourceVersion; + this.resourceUserProvidedIdentifiers = resourceUserProvidedIdentifiers; + this.customerGroupAssignment = customerGroupAssignment; + this.type = CUSTOMER_GROUP_ASSIGNMENT_REMOVED; + } + + /** + * create empty instance + */ + public CustomerGroupAssignmentRemovedMessageImpl() { + this.type = CUSTOMER_GROUP_ASSIGNMENT_REMOVED; + } + + /** + *

Unique identifier of the Message. Can be used to track which Messages have been processed.

+ */ + + public String getId() { + return this.id; + } + + /** + *

Version of a resource. In case of Messages, this is always 1.

+ */ + + public Long getVersion() { + return this.version; + } + + /** + *

Date and time (UTC) the Message was generated.

+ */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + /** + *

Value of createdAt.

+ */ + + public java.time.ZonedDateTime getLastModifiedAt() { + return this.lastModifiedAt; + } + + /** + *

IDs and references that last modified the Message.

+ */ + + public com.commercetools.api.models.common.LastModifiedBy getLastModifiedBy() { + return this.lastModifiedBy; + } + + /** + *

IDs and references that created the Message.

+ */ + + public com.commercetools.api.models.common.CreatedBy getCreatedBy() { + return this.createdBy; + } + + /** + *

Message number in relation to other Messages for a given resource. The sequenceNumber of the next Message for the resource is the successor of the sequenceNumber of the current Message. Meaning, the sequenceNumber of the next Message equals the sequenceNumber of the current Message + 1. sequenceNumber can be used to ensure that Messages are processed in the correct order for a particular resource.

+ */ + + public Long getSequenceNumber() { + return this.sequenceNumber; + } + + /** + *

Reference to the resource on which the change or action was performed.

+ */ + + public com.commercetools.api.models.common.Reference getResource() { + return this.resource; + } + + /** + *

Version of the resource on which the change or action was performed.

+ */ + + public Long getResourceVersion() { + return this.resourceVersion; + } + + /** + *

Message Type of the Message.

+ */ + + public String getType() { + return this.type; + } + + /** + *

User-provided identifiers of the resource, such as key or externalId. Only present if the resource has such identifiers.

+ */ + + public com.commercetools.api.models.message.UserProvidedIdentifiers getResourceUserProvidedIdentifiers() { + return this.resourceUserProvidedIdentifiers; + } + + /** + *

CustomerGroupAssignment that was removed during the Remove CustomerGroupAssignment update action.

+ */ + + public com.commercetools.api.models.customer_group.CustomerGroupReference getCustomerGroupAssignment() { + return this.customerGroupAssignment; + } + + public void setId(final String id) { + this.id = id; + } + + public void setVersion(final Long version) { + this.version = version; + } + + public void setCreatedAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + } + + public void setLastModifiedAt(final java.time.ZonedDateTime lastModifiedAt) { + this.lastModifiedAt = lastModifiedAt; + } + + public void setLastModifiedBy(final com.commercetools.api.models.common.LastModifiedBy lastModifiedBy) { + this.lastModifiedBy = lastModifiedBy; + } + + public void setCreatedBy(final com.commercetools.api.models.common.CreatedBy createdBy) { + this.createdBy = createdBy; + } + + public void setSequenceNumber(final Long sequenceNumber) { + this.sequenceNumber = sequenceNumber; + } + + public void setResource(final com.commercetools.api.models.common.Reference resource) { + this.resource = resource; + } + + public void setResourceVersion(final Long resourceVersion) { + this.resourceVersion = resourceVersion; + } + + public void setResourceUserProvidedIdentifiers( + final com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers) { + this.resourceUserProvidedIdentifiers = resourceUserProvidedIdentifiers; + } + + public void setCustomerGroupAssignment( + final com.commercetools.api.models.customer_group.CustomerGroupReference customerGroupAssignment) { + this.customerGroupAssignment = customerGroupAssignment; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + CustomerGroupAssignmentRemovedMessageImpl that = (CustomerGroupAssignmentRemovedMessageImpl) o; + + return new EqualsBuilder().append(id, that.id) + .append(version, that.version) + .append(createdAt, that.createdAt) + .append(lastModifiedAt, that.lastModifiedAt) + .append(lastModifiedBy, that.lastModifiedBy) + .append(createdBy, that.createdBy) + .append(sequenceNumber, that.sequenceNumber) + .append(resource, that.resource) + .append(resourceVersion, that.resourceVersion) + .append(type, that.type) + .append(resourceUserProvidedIdentifiers, that.resourceUserProvidedIdentifiers) + .append(customerGroupAssignment, that.customerGroupAssignment) + .append(id, that.id) + .append(version, that.version) + .append(createdAt, that.createdAt) + .append(lastModifiedAt, that.lastModifiedAt) + .append(lastModifiedBy, that.lastModifiedBy) + .append(createdBy, that.createdBy) + .append(sequenceNumber, that.sequenceNumber) + .append(resource, that.resource) + .append(resourceVersion, that.resourceVersion) + .append(type, that.type) + .append(resourceUserProvidedIdentifiers, that.resourceUserProvidedIdentifiers) + .append(customerGroupAssignment, that.customerGroupAssignment) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(id) + .append(version) + .append(createdAt) + .append(lastModifiedAt) + .append(lastModifiedBy) + .append(createdBy) + .append(sequenceNumber) + .append(resource) + .append(resourceVersion) + .append(type) + .append(resourceUserProvidedIdentifiers) + .append(customerGroupAssignment) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("id", id) + .append("version", version) + .append("createdAt", createdAt) + .append("lastModifiedAt", lastModifiedAt) + .append("lastModifiedBy", lastModifiedBy) + .append("createdBy", createdBy) + .append("sequenceNumber", sequenceNumber) + .append("resource", resource) + .append("resourceVersion", resourceVersion) + .append("type", type) + .append("resourceUserProvidedIdentifiers", resourceUserProvidedIdentifiers) + .append("customerGroupAssignment", customerGroupAssignment) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentRemovedMessagePayload.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentRemovedMessagePayload.java new file mode 100644 index 00000000000..ba91bd7fe4e --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentRemovedMessagePayload.java @@ -0,0 +1,135 @@ + +package com.commercetools.api.models.message; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.commercetools.api.models.customer_group.CustomerGroupReference; +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; + +/** + *

Generated after a successful Remove CustomerGroupAssignment update action.

+ * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     CustomerGroupAssignmentRemovedMessagePayload customerGroupAssignmentRemovedMessagePayload = CustomerGroupAssignmentRemovedMessagePayload.builder()
+ *             .customerGroupAssignment(customerGroupAssignmentBuilder -> customerGroupAssignmentBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = CustomerGroupAssignmentRemovedMessagePayloadImpl.class) +public interface CustomerGroupAssignmentRemovedMessagePayload extends MessagePayload { + + /** + * discriminator value for CustomerGroupAssignmentRemovedMessagePayload + */ + String CUSTOMER_GROUP_ASSIGNMENT_REMOVED = "CustomerGroupAssignmentRemoved"; + + /** + *

CustomerGroupAssignment that was removed during the Remove CustomerGroupAssignment update action.

+ * @return customerGroupAssignment + */ + @NotNull + @Valid + @JsonProperty("customerGroupAssignment") + public CustomerGroupReference getCustomerGroupAssignment(); + + /** + *

CustomerGroupAssignment that was removed during the Remove CustomerGroupAssignment update action.

+ * @param customerGroupAssignment value to be set + */ + + public void setCustomerGroupAssignment(final CustomerGroupReference customerGroupAssignment); + + /** + * factory method + * @return instance of CustomerGroupAssignmentRemovedMessagePayload + */ + public static CustomerGroupAssignmentRemovedMessagePayload of() { + return new CustomerGroupAssignmentRemovedMessagePayloadImpl(); + } + + /** + * factory method to create a shallow copy CustomerGroupAssignmentRemovedMessagePayload + * @param template instance to be copied + * @return copy instance + */ + public static CustomerGroupAssignmentRemovedMessagePayload of( + final CustomerGroupAssignmentRemovedMessagePayload template) { + CustomerGroupAssignmentRemovedMessagePayloadImpl instance = new CustomerGroupAssignmentRemovedMessagePayloadImpl(); + instance.setCustomerGroupAssignment(template.getCustomerGroupAssignment()); + return instance; + } + + /** + * factory method to create a deep copy of CustomerGroupAssignmentRemovedMessagePayload + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static CustomerGroupAssignmentRemovedMessagePayload deepCopy( + @Nullable final CustomerGroupAssignmentRemovedMessagePayload template) { + if (template == null) { + return null; + } + CustomerGroupAssignmentRemovedMessagePayloadImpl instance = new CustomerGroupAssignmentRemovedMessagePayloadImpl(); + instance.setCustomerGroupAssignment(com.commercetools.api.models.customer_group.CustomerGroupReference + .deepCopy(template.getCustomerGroupAssignment())); + return instance; + } + + /** + * builder factory method for CustomerGroupAssignmentRemovedMessagePayload + * @return builder + */ + public static CustomerGroupAssignmentRemovedMessagePayloadBuilder builder() { + return CustomerGroupAssignmentRemovedMessagePayloadBuilder.of(); + } + + /** + * create builder for CustomerGroupAssignmentRemovedMessagePayload instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CustomerGroupAssignmentRemovedMessagePayloadBuilder builder( + final CustomerGroupAssignmentRemovedMessagePayload template) { + return CustomerGroupAssignmentRemovedMessagePayloadBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withCustomerGroupAssignmentRemovedMessagePayload( + Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentRemovedMessagePayloadBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentRemovedMessagePayloadBuilder.java new file mode 100644 index 00000000000..9ff7dc3c4b4 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentRemovedMessagePayloadBuilder.java @@ -0,0 +1,114 @@ + +package com.commercetools.api.models.message; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * CustomerGroupAssignmentRemovedMessagePayloadBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     CustomerGroupAssignmentRemovedMessagePayload customerGroupAssignmentRemovedMessagePayload = CustomerGroupAssignmentRemovedMessagePayload.builder()
+ *             .customerGroupAssignment(customerGroupAssignmentBuilder -> customerGroupAssignmentBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CustomerGroupAssignmentRemovedMessagePayloadBuilder + implements Builder { + + private com.commercetools.api.models.customer_group.CustomerGroupReference customerGroupAssignment; + + /** + *

CustomerGroupAssignment that was removed during the Remove CustomerGroupAssignment update action.

+ * @param builder function to build the customerGroupAssignment value + * @return Builder + */ + + public CustomerGroupAssignmentRemovedMessagePayloadBuilder customerGroupAssignment( + Function builder) { + this.customerGroupAssignment = builder + .apply(com.commercetools.api.models.customer_group.CustomerGroupReferenceBuilder.of()) + .build(); + return this; + } + + /** + *

CustomerGroupAssignment that was removed during the Remove CustomerGroupAssignment update action.

+ * @param builder function to build the customerGroupAssignment value + * @return Builder + */ + + public CustomerGroupAssignmentRemovedMessagePayloadBuilder withCustomerGroupAssignment( + Function builder) { + this.customerGroupAssignment = builder + .apply(com.commercetools.api.models.customer_group.CustomerGroupReferenceBuilder.of()); + return this; + } + + /** + *

CustomerGroupAssignment that was removed during the Remove CustomerGroupAssignment update action.

+ * @param customerGroupAssignment value to be set + * @return Builder + */ + + public CustomerGroupAssignmentRemovedMessagePayloadBuilder customerGroupAssignment( + final com.commercetools.api.models.customer_group.CustomerGroupReference customerGroupAssignment) { + this.customerGroupAssignment = customerGroupAssignment; + return this; + } + + /** + *

CustomerGroupAssignment that was removed during the Remove CustomerGroupAssignment update action.

+ * @return customerGroupAssignment + */ + + public com.commercetools.api.models.customer_group.CustomerGroupReference getCustomerGroupAssignment() { + return this.customerGroupAssignment; + } + + /** + * builds CustomerGroupAssignmentRemovedMessagePayload with checking for non-null required values + * @return CustomerGroupAssignmentRemovedMessagePayload + */ + public CustomerGroupAssignmentRemovedMessagePayload build() { + Objects.requireNonNull(customerGroupAssignment, + CustomerGroupAssignmentRemovedMessagePayload.class + ": customerGroupAssignment is missing"); + return new CustomerGroupAssignmentRemovedMessagePayloadImpl(customerGroupAssignment); + } + + /** + * builds CustomerGroupAssignmentRemovedMessagePayload without checking for non-null required values + * @return CustomerGroupAssignmentRemovedMessagePayload + */ + public CustomerGroupAssignmentRemovedMessagePayload buildUnchecked() { + return new CustomerGroupAssignmentRemovedMessagePayloadImpl(customerGroupAssignment); + } + + /** + * factory method for an instance of CustomerGroupAssignmentRemovedMessagePayloadBuilder + * @return builder + */ + public static CustomerGroupAssignmentRemovedMessagePayloadBuilder of() { + return new CustomerGroupAssignmentRemovedMessagePayloadBuilder(); + } + + /** + * create builder for CustomerGroupAssignmentRemovedMessagePayload instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CustomerGroupAssignmentRemovedMessagePayloadBuilder of( + final CustomerGroupAssignmentRemovedMessagePayload template) { + CustomerGroupAssignmentRemovedMessagePayloadBuilder builder = new CustomerGroupAssignmentRemovedMessagePayloadBuilder(); + builder.customerGroupAssignment = template.getCustomerGroupAssignment(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentRemovedMessagePayloadImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentRemovedMessagePayloadImpl.java new file mode 100644 index 00000000000..3f2f5c1cf59 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentRemovedMessagePayloadImpl.java @@ -0,0 +1,97 @@ + +package com.commercetools.api.models.message; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.ModelBase; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +/** + *

Generated after a successful Remove CustomerGroupAssignment update action.

+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CustomerGroupAssignmentRemovedMessagePayloadImpl + implements CustomerGroupAssignmentRemovedMessagePayload, ModelBase { + + private String type; + + private com.commercetools.api.models.customer_group.CustomerGroupReference customerGroupAssignment; + + /** + * create instance with all properties + */ + @JsonCreator + CustomerGroupAssignmentRemovedMessagePayloadImpl( + @JsonProperty("customerGroupAssignment") final com.commercetools.api.models.customer_group.CustomerGroupReference customerGroupAssignment) { + this.customerGroupAssignment = customerGroupAssignment; + this.type = CUSTOMER_GROUP_ASSIGNMENT_REMOVED; + } + + /** + * create empty instance + */ + public CustomerGroupAssignmentRemovedMessagePayloadImpl() { + this.type = CUSTOMER_GROUP_ASSIGNMENT_REMOVED; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + *

CustomerGroupAssignment that was removed during the Remove CustomerGroupAssignment update action.

+ */ + + public com.commercetools.api.models.customer_group.CustomerGroupReference getCustomerGroupAssignment() { + return this.customerGroupAssignment; + } + + public void setCustomerGroupAssignment( + final com.commercetools.api.models.customer_group.CustomerGroupReference customerGroupAssignment) { + this.customerGroupAssignment = customerGroupAssignment; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + CustomerGroupAssignmentRemovedMessagePayloadImpl that = (CustomerGroupAssignmentRemovedMessagePayloadImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(customerGroupAssignment, that.customerGroupAssignment) + .append(type, that.type) + .append(customerGroupAssignment, that.customerGroupAssignment) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type).append(customerGroupAssignment).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) + .append("customerGroupAssignment", customerGroupAssignment) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentsSetMessage.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentsSetMessage.java new file mode 100644 index 00000000000..d8c2fa03c6c --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentsSetMessage.java @@ -0,0 +1,170 @@ + +package com.commercetools.api.models.message; + +import java.time.*; +import java.util.*; +import java.util.function.Function; +import java.util.stream.Collectors; + +import javax.annotation.Nullable; + +import com.commercetools.api.models.customer.CustomerGroupAssignment; +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.Valid; + +/** + *

Generated after a successful Set CustomerGroupAssignments update action.

+ * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     CustomerGroupAssignmentsSetMessage customerGroupAssignmentsSetMessage = CustomerGroupAssignmentsSetMessage.builder()
+ *             .id("{id}")
+ *             .version(0.3)
+ *             .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
+ *             .lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
+ *             .sequenceNumber(0.3)
+ *             .resource(resourceBuilder -> resourceBuilder)
+ *             .resourceVersion(0.3)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = CustomerGroupAssignmentsSetMessageImpl.class) +public interface CustomerGroupAssignmentsSetMessage extends Message { + + /** + * discriminator value for CustomerGroupAssignmentsSetMessage + */ + String CUSTOMER_GROUP_ASSIGNMENTS_SET = "CustomerGroupAssignmentsSet"; + + /** + *

List of CustomerGroupAssignments that were set during the Set CustomerGroupAssignments update action.

+ * @return customerGroupAssignments + */ + @Valid + @JsonProperty("customerGroupAssignments") + public List getCustomerGroupAssignments(); + + /** + *

List of CustomerGroupAssignments that were set during the Set CustomerGroupAssignments update action.

+ * @param customerGroupAssignments values to be set + */ + + @JsonIgnore + public void setCustomerGroupAssignments(final CustomerGroupAssignment... customerGroupAssignments); + + /** + *

List of CustomerGroupAssignments that were set during the Set CustomerGroupAssignments update action.

+ * @param customerGroupAssignments values to be set + */ + + public void setCustomerGroupAssignments(final List customerGroupAssignments); + + /** + * factory method + * @return instance of CustomerGroupAssignmentsSetMessage + */ + public static CustomerGroupAssignmentsSetMessage of() { + return new CustomerGroupAssignmentsSetMessageImpl(); + } + + /** + * factory method to create a shallow copy CustomerGroupAssignmentsSetMessage + * @param template instance to be copied + * @return copy instance + */ + public static CustomerGroupAssignmentsSetMessage of(final CustomerGroupAssignmentsSetMessage template) { + CustomerGroupAssignmentsSetMessageImpl instance = new CustomerGroupAssignmentsSetMessageImpl(); + instance.setId(template.getId()); + instance.setVersion(template.getVersion()); + instance.setCreatedAt(template.getCreatedAt()); + instance.setLastModifiedAt(template.getLastModifiedAt()); + instance.setLastModifiedBy(template.getLastModifiedBy()); + instance.setCreatedBy(template.getCreatedBy()); + instance.setSequenceNumber(template.getSequenceNumber()); + instance.setResource(template.getResource()); + instance.setResourceVersion(template.getResourceVersion()); + instance.setResourceUserProvidedIdentifiers(template.getResourceUserProvidedIdentifiers()); + instance.setCustomerGroupAssignments(template.getCustomerGroupAssignments()); + return instance; + } + + /** + * factory method to create a deep copy of CustomerGroupAssignmentsSetMessage + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static CustomerGroupAssignmentsSetMessage deepCopy( + @Nullable final CustomerGroupAssignmentsSetMessage template) { + if (template == null) { + return null; + } + CustomerGroupAssignmentsSetMessageImpl instance = new CustomerGroupAssignmentsSetMessageImpl(); + instance.setId(template.getId()); + instance.setVersion(template.getVersion()); + instance.setCreatedAt(template.getCreatedAt()); + instance.setLastModifiedAt(template.getLastModifiedAt()); + instance.setLastModifiedBy( + com.commercetools.api.models.common.LastModifiedBy.deepCopy(template.getLastModifiedBy())); + instance.setCreatedBy(com.commercetools.api.models.common.CreatedBy.deepCopy(template.getCreatedBy())); + instance.setSequenceNumber(template.getSequenceNumber()); + instance.setResource(com.commercetools.api.models.common.Reference.deepCopy(template.getResource())); + instance.setResourceVersion(template.getResourceVersion()); + instance.setResourceUserProvidedIdentifiers(com.commercetools.api.models.message.UserProvidedIdentifiers + .deepCopy(template.getResourceUserProvidedIdentifiers())); + instance.setCustomerGroupAssignments(Optional.ofNullable(template.getCustomerGroupAssignments()) + .map(t -> t.stream() + .map(com.commercetools.api.models.customer.CustomerGroupAssignment::deepCopy) + .collect(Collectors.toList())) + .orElse(null)); + return instance; + } + + /** + * builder factory method for CustomerGroupAssignmentsSetMessage + * @return builder + */ + public static CustomerGroupAssignmentsSetMessageBuilder builder() { + return CustomerGroupAssignmentsSetMessageBuilder.of(); + } + + /** + * create builder for CustomerGroupAssignmentsSetMessage instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CustomerGroupAssignmentsSetMessageBuilder builder(final CustomerGroupAssignmentsSetMessage template) { + return CustomerGroupAssignmentsSetMessageBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withCustomerGroupAssignmentsSetMessage(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentsSetMessageBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentsSetMessageBuilder.java new file mode 100644 index 00000000000..1e4265a3c0d --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentsSetMessageBuilder.java @@ -0,0 +1,515 @@ + +package com.commercetools.api.models.message; + +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * CustomerGroupAssignmentsSetMessageBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     CustomerGroupAssignmentsSetMessage customerGroupAssignmentsSetMessage = CustomerGroupAssignmentsSetMessage.builder()
+ *             .id("{id}")
+ *             .version(0.3)
+ *             .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
+ *             .lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
+ *             .sequenceNumber(0.3)
+ *             .resource(resourceBuilder -> resourceBuilder)
+ *             .resourceVersion(0.3)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CustomerGroupAssignmentsSetMessageBuilder implements Builder { + + private String id; + + private Long version; + + private java.time.ZonedDateTime createdAt; + + private java.time.ZonedDateTime lastModifiedAt; + + @Nullable + private com.commercetools.api.models.common.LastModifiedBy lastModifiedBy; + + @Nullable + private com.commercetools.api.models.common.CreatedBy createdBy; + + private Long sequenceNumber; + + private com.commercetools.api.models.common.Reference resource; + + private Long resourceVersion; + + @Nullable + private com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers; + + @Nullable + private java.util.List customerGroupAssignments; + + /** + *

Unique identifier of the Message. Can be used to track which Messages have been processed.

+ * @param id value to be set + * @return Builder + */ + + public CustomerGroupAssignmentsSetMessageBuilder id(final String id) { + this.id = id; + return this; + } + + /** + *

Version of a resource. In case of Messages, this is always 1.

+ * @param version value to be set + * @return Builder + */ + + public CustomerGroupAssignmentsSetMessageBuilder version(final Long version) { + this.version = version; + return this; + } + + /** + *

Date and time (UTC) the Message was generated.

+ * @param createdAt value to be set + * @return Builder + */ + + public CustomerGroupAssignmentsSetMessageBuilder createdAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + *

Value of createdAt.

+ * @param lastModifiedAt value to be set + * @return Builder + */ + + public CustomerGroupAssignmentsSetMessageBuilder lastModifiedAt(final java.time.ZonedDateTime lastModifiedAt) { + this.lastModifiedAt = lastModifiedAt; + return this; + } + + /** + *

IDs and references that last modified the Message.

+ * @param builder function to build the lastModifiedBy value + * @return Builder + */ + + public CustomerGroupAssignmentsSetMessageBuilder lastModifiedBy( + Function builder) { + this.lastModifiedBy = builder.apply(com.commercetools.api.models.common.LastModifiedByBuilder.of()).build(); + return this; + } + + /** + *

IDs and references that last modified the Message.

+ * @param builder function to build the lastModifiedBy value + * @return Builder + */ + + public CustomerGroupAssignmentsSetMessageBuilder withLastModifiedBy( + Function builder) { + this.lastModifiedBy = builder.apply(com.commercetools.api.models.common.LastModifiedByBuilder.of()); + return this; + } + + /** + *

IDs and references that last modified the Message.

+ * @param lastModifiedBy value to be set + * @return Builder + */ + + public CustomerGroupAssignmentsSetMessageBuilder lastModifiedBy( + @Nullable final com.commercetools.api.models.common.LastModifiedBy lastModifiedBy) { + this.lastModifiedBy = lastModifiedBy; + return this; + } + + /** + *

IDs and references that created the Message.

+ * @param builder function to build the createdBy value + * @return Builder + */ + + public CustomerGroupAssignmentsSetMessageBuilder createdBy( + Function builder) { + this.createdBy = builder.apply(com.commercetools.api.models.common.CreatedByBuilder.of()).build(); + return this; + } + + /** + *

IDs and references that created the Message.

+ * @param builder function to build the createdBy value + * @return Builder + */ + + public CustomerGroupAssignmentsSetMessageBuilder withCreatedBy( + Function builder) { + this.createdBy = builder.apply(com.commercetools.api.models.common.CreatedByBuilder.of()); + return this; + } + + /** + *

IDs and references that created the Message.

+ * @param createdBy value to be set + * @return Builder + */ + + public CustomerGroupAssignmentsSetMessageBuilder createdBy( + @Nullable final com.commercetools.api.models.common.CreatedBy createdBy) { + this.createdBy = createdBy; + return this; + } + + /** + *

Message number in relation to other Messages for a given resource. The sequenceNumber of the next Message for the resource is the successor of the sequenceNumber of the current Message. Meaning, the sequenceNumber of the next Message equals the sequenceNumber of the current Message + 1. sequenceNumber can be used to ensure that Messages are processed in the correct order for a particular resource.

+ * @param sequenceNumber value to be set + * @return Builder + */ + + public CustomerGroupAssignmentsSetMessageBuilder sequenceNumber(final Long sequenceNumber) { + this.sequenceNumber = sequenceNumber; + return this; + } + + /** + *

Reference to the resource on which the change or action was performed.

+ * @param resource value to be set + * @return Builder + */ + + public CustomerGroupAssignmentsSetMessageBuilder resource( + final com.commercetools.api.models.common.Reference resource) { + this.resource = resource; + return this; + } + + /** + *

Reference to the resource on which the change or action was performed.

+ * @param builder function to build the resource value + * @return Builder + */ + + public CustomerGroupAssignmentsSetMessageBuilder resource( + Function> builder) { + this.resource = builder.apply(com.commercetools.api.models.common.ReferenceBuilder.of()).build(); + return this; + } + + /** + *

Version of the resource on which the change or action was performed.

+ * @param resourceVersion value to be set + * @return Builder + */ + + public CustomerGroupAssignmentsSetMessageBuilder resourceVersion(final Long resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + *

User-provided identifiers of the resource, such as key or externalId. Only present if the resource has such identifiers.

+ * @param builder function to build the resourceUserProvidedIdentifiers value + * @return Builder + */ + + public CustomerGroupAssignmentsSetMessageBuilder resourceUserProvidedIdentifiers( + Function builder) { + this.resourceUserProvidedIdentifiers = builder + .apply(com.commercetools.api.models.message.UserProvidedIdentifiersBuilder.of()) + .build(); + return this; + } + + /** + *

User-provided identifiers of the resource, such as key or externalId. Only present if the resource has such identifiers.

+ * @param builder function to build the resourceUserProvidedIdentifiers value + * @return Builder + */ + + public CustomerGroupAssignmentsSetMessageBuilder withResourceUserProvidedIdentifiers( + Function builder) { + this.resourceUserProvidedIdentifiers = builder + .apply(com.commercetools.api.models.message.UserProvidedIdentifiersBuilder.of()); + return this; + } + + /** + *

User-provided identifiers of the resource, such as key or externalId. Only present if the resource has such identifiers.

+ * @param resourceUserProvidedIdentifiers value to be set + * @return Builder + */ + + public CustomerGroupAssignmentsSetMessageBuilder resourceUserProvidedIdentifiers( + @Nullable final com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers) { + this.resourceUserProvidedIdentifiers = resourceUserProvidedIdentifiers; + return this; + } + + /** + *

List of CustomerGroupAssignments that were set during the Set CustomerGroupAssignments update action.

+ * @param customerGroupAssignments value to be set + * @return Builder + */ + + public CustomerGroupAssignmentsSetMessageBuilder customerGroupAssignments( + @Nullable final com.commercetools.api.models.customer.CustomerGroupAssignment... customerGroupAssignments) { + this.customerGroupAssignments = new ArrayList<>(Arrays.asList(customerGroupAssignments)); + return this; + } + + /** + *

List of CustomerGroupAssignments that were set during the Set CustomerGroupAssignments update action.

+ * @param customerGroupAssignments value to be set + * @return Builder + */ + + public CustomerGroupAssignmentsSetMessageBuilder customerGroupAssignments( + @Nullable final java.util.List customerGroupAssignments) { + this.customerGroupAssignments = customerGroupAssignments; + return this; + } + + /** + *

List of CustomerGroupAssignments that were set during the Set CustomerGroupAssignments update action.

+ * @param customerGroupAssignments value to be set + * @return Builder + */ + + public CustomerGroupAssignmentsSetMessageBuilder plusCustomerGroupAssignments( + @Nullable final com.commercetools.api.models.customer.CustomerGroupAssignment... customerGroupAssignments) { + if (this.customerGroupAssignments == null) { + this.customerGroupAssignments = new ArrayList<>(); + } + this.customerGroupAssignments.addAll(Arrays.asList(customerGroupAssignments)); + return this; + } + + /** + *

List of CustomerGroupAssignments that were set during the Set CustomerGroupAssignments update action.

+ * @param builder function to build the customerGroupAssignments value + * @return Builder + */ + + public CustomerGroupAssignmentsSetMessageBuilder plusCustomerGroupAssignments( + Function builder) { + if (this.customerGroupAssignments == null) { + this.customerGroupAssignments = new ArrayList<>(); + } + this.customerGroupAssignments + .add(builder.apply(com.commercetools.api.models.customer.CustomerGroupAssignmentBuilder.of()).build()); + return this; + } + + /** + *

List of CustomerGroupAssignments that were set during the Set CustomerGroupAssignments update action.

+ * @param builder function to build the customerGroupAssignments value + * @return Builder + */ + + public CustomerGroupAssignmentsSetMessageBuilder withCustomerGroupAssignments( + Function builder) { + this.customerGroupAssignments = new ArrayList<>(); + this.customerGroupAssignments + .add(builder.apply(com.commercetools.api.models.customer.CustomerGroupAssignmentBuilder.of()).build()); + return this; + } + + /** + *

List of CustomerGroupAssignments that were set during the Set CustomerGroupAssignments update action.

+ * @param builder function to build the customerGroupAssignments value + * @return Builder + */ + + public CustomerGroupAssignmentsSetMessageBuilder addCustomerGroupAssignments( + Function builder) { + return plusCustomerGroupAssignments( + builder.apply(com.commercetools.api.models.customer.CustomerGroupAssignmentBuilder.of())); + } + + /** + *

List of CustomerGroupAssignments that were set during the Set CustomerGroupAssignments update action.

+ * @param builder function to build the customerGroupAssignments value + * @return Builder + */ + + public CustomerGroupAssignmentsSetMessageBuilder setCustomerGroupAssignments( + Function builder) { + return customerGroupAssignments( + builder.apply(com.commercetools.api.models.customer.CustomerGroupAssignmentBuilder.of())); + } + + /** + *

Unique identifier of the Message. Can be used to track which Messages have been processed.

+ * @return id + */ + + public String getId() { + return this.id; + } + + /** + *

Version of a resource. In case of Messages, this is always 1.

+ * @return version + */ + + public Long getVersion() { + return this.version; + } + + /** + *

Date and time (UTC) the Message was generated.

+ * @return createdAt + */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + /** + *

Value of createdAt.

+ * @return lastModifiedAt + */ + + public java.time.ZonedDateTime getLastModifiedAt() { + return this.lastModifiedAt; + } + + /** + *

IDs and references that last modified the Message.

+ * @return lastModifiedBy + */ + + @Nullable + public com.commercetools.api.models.common.LastModifiedBy getLastModifiedBy() { + return this.lastModifiedBy; + } + + /** + *

IDs and references that created the Message.

+ * @return createdBy + */ + + @Nullable + public com.commercetools.api.models.common.CreatedBy getCreatedBy() { + return this.createdBy; + } + + /** + *

Message number in relation to other Messages for a given resource. The sequenceNumber of the next Message for the resource is the successor of the sequenceNumber of the current Message. Meaning, the sequenceNumber of the next Message equals the sequenceNumber of the current Message + 1. sequenceNumber can be used to ensure that Messages are processed in the correct order for a particular resource.

+ * @return sequenceNumber + */ + + public Long getSequenceNumber() { + return this.sequenceNumber; + } + + /** + *

Reference to the resource on which the change or action was performed.

+ * @return resource + */ + + public com.commercetools.api.models.common.Reference getResource() { + return this.resource; + } + + /** + *

Version of the resource on which the change or action was performed.

+ * @return resourceVersion + */ + + public Long getResourceVersion() { + return this.resourceVersion; + } + + /** + *

User-provided identifiers of the resource, such as key or externalId. Only present if the resource has such identifiers.

+ * @return resourceUserProvidedIdentifiers + */ + + @Nullable + public com.commercetools.api.models.message.UserProvidedIdentifiers getResourceUserProvidedIdentifiers() { + return this.resourceUserProvidedIdentifiers; + } + + /** + *

List of CustomerGroupAssignments that were set during the Set CustomerGroupAssignments update action.

+ * @return customerGroupAssignments + */ + + @Nullable + public java.util.List getCustomerGroupAssignments() { + return this.customerGroupAssignments; + } + + /** + * builds CustomerGroupAssignmentsSetMessage with checking for non-null required values + * @return CustomerGroupAssignmentsSetMessage + */ + public CustomerGroupAssignmentsSetMessage build() { + Objects.requireNonNull(id, CustomerGroupAssignmentsSetMessage.class + ": id is missing"); + Objects.requireNonNull(version, CustomerGroupAssignmentsSetMessage.class + ": version is missing"); + Objects.requireNonNull(createdAt, CustomerGroupAssignmentsSetMessage.class + ": createdAt is missing"); + Objects.requireNonNull(lastModifiedAt, + CustomerGroupAssignmentsSetMessage.class + ": lastModifiedAt is missing"); + Objects.requireNonNull(sequenceNumber, + CustomerGroupAssignmentsSetMessage.class + ": sequenceNumber is missing"); + Objects.requireNonNull(resource, CustomerGroupAssignmentsSetMessage.class + ": resource is missing"); + Objects.requireNonNull(resourceVersion, + CustomerGroupAssignmentsSetMessage.class + ": resourceVersion is missing"); + return new CustomerGroupAssignmentsSetMessageImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, + createdBy, sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, + customerGroupAssignments); + } + + /** + * builds CustomerGroupAssignmentsSetMessage without checking for non-null required values + * @return CustomerGroupAssignmentsSetMessage + */ + public CustomerGroupAssignmentsSetMessage buildUnchecked() { + return new CustomerGroupAssignmentsSetMessageImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, + createdBy, sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, + customerGroupAssignments); + } + + /** + * factory method for an instance of CustomerGroupAssignmentsSetMessageBuilder + * @return builder + */ + public static CustomerGroupAssignmentsSetMessageBuilder of() { + return new CustomerGroupAssignmentsSetMessageBuilder(); + } + + /** + * create builder for CustomerGroupAssignmentsSetMessage instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CustomerGroupAssignmentsSetMessageBuilder of(final CustomerGroupAssignmentsSetMessage template) { + CustomerGroupAssignmentsSetMessageBuilder builder = new CustomerGroupAssignmentsSetMessageBuilder(); + builder.id = template.getId(); + builder.version = template.getVersion(); + builder.createdAt = template.getCreatedAt(); + builder.lastModifiedAt = template.getLastModifiedAt(); + builder.lastModifiedBy = template.getLastModifiedBy(); + builder.createdBy = template.getCreatedBy(); + builder.sequenceNumber = template.getSequenceNumber(); + builder.resource = template.getResource(); + builder.resourceVersion = template.getResourceVersion(); + builder.resourceUserProvidedIdentifiers = template.getResourceUserProvidedIdentifiers(); + builder.customerGroupAssignments = template.getCustomerGroupAssignments(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentsSetMessageImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentsSetMessageImpl.java new file mode 100644 index 00000000000..0adfc23bcc2 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentsSetMessageImpl.java @@ -0,0 +1,303 @@ + +package com.commercetools.api.models.message; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.ModelBase; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +/** + *

Generated after a successful Set CustomerGroupAssignments update action.

+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CustomerGroupAssignmentsSetMessageImpl implements CustomerGroupAssignmentsSetMessage, ModelBase { + + private String id; + + private Long version; + + private java.time.ZonedDateTime createdAt; + + private java.time.ZonedDateTime lastModifiedAt; + + private com.commercetools.api.models.common.LastModifiedBy lastModifiedBy; + + private com.commercetools.api.models.common.CreatedBy createdBy; + + private Long sequenceNumber; + + private com.commercetools.api.models.common.Reference resource; + + private Long resourceVersion; + + private String type; + + private com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers; + + private java.util.List customerGroupAssignments; + + /** + * create instance with all properties + */ + @JsonCreator + CustomerGroupAssignmentsSetMessageImpl(@JsonProperty("id") final String id, + @JsonProperty("version") final Long version, + @JsonProperty("createdAt") final java.time.ZonedDateTime createdAt, + @JsonProperty("lastModifiedAt") final java.time.ZonedDateTime lastModifiedAt, + @JsonProperty("lastModifiedBy") final com.commercetools.api.models.common.LastModifiedBy lastModifiedBy, + @JsonProperty("createdBy") final com.commercetools.api.models.common.CreatedBy createdBy, + @JsonProperty("sequenceNumber") final Long sequenceNumber, + @JsonProperty("resource") final com.commercetools.api.models.common.Reference resource, + @JsonProperty("resourceVersion") final Long resourceVersion, + @JsonProperty("resourceUserProvidedIdentifiers") final com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers, + @JsonProperty("customerGroupAssignments") final java.util.List customerGroupAssignments) { + this.id = id; + this.version = version; + this.createdAt = createdAt; + this.lastModifiedAt = lastModifiedAt; + this.lastModifiedBy = lastModifiedBy; + this.createdBy = createdBy; + this.sequenceNumber = sequenceNumber; + this.resource = resource; + this.resourceVersion = resourceVersion; + this.resourceUserProvidedIdentifiers = resourceUserProvidedIdentifiers; + this.customerGroupAssignments = customerGroupAssignments; + this.type = CUSTOMER_GROUP_ASSIGNMENTS_SET; + } + + /** + * create empty instance + */ + public CustomerGroupAssignmentsSetMessageImpl() { + this.type = CUSTOMER_GROUP_ASSIGNMENTS_SET; + } + + /** + *

Unique identifier of the Message. Can be used to track which Messages have been processed.

+ */ + + public String getId() { + return this.id; + } + + /** + *

Version of a resource. In case of Messages, this is always 1.

+ */ + + public Long getVersion() { + return this.version; + } + + /** + *

Date and time (UTC) the Message was generated.

+ */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + /** + *

Value of createdAt.

+ */ + + public java.time.ZonedDateTime getLastModifiedAt() { + return this.lastModifiedAt; + } + + /** + *

IDs and references that last modified the Message.

+ */ + + public com.commercetools.api.models.common.LastModifiedBy getLastModifiedBy() { + return this.lastModifiedBy; + } + + /** + *

IDs and references that created the Message.

+ */ + + public com.commercetools.api.models.common.CreatedBy getCreatedBy() { + return this.createdBy; + } + + /** + *

Message number in relation to other Messages for a given resource. The sequenceNumber of the next Message for the resource is the successor of the sequenceNumber of the current Message. Meaning, the sequenceNumber of the next Message equals the sequenceNumber of the current Message + 1. sequenceNumber can be used to ensure that Messages are processed in the correct order for a particular resource.

+ */ + + public Long getSequenceNumber() { + return this.sequenceNumber; + } + + /** + *

Reference to the resource on which the change or action was performed.

+ */ + + public com.commercetools.api.models.common.Reference getResource() { + return this.resource; + } + + /** + *

Version of the resource on which the change or action was performed.

+ */ + + public Long getResourceVersion() { + return this.resourceVersion; + } + + /** + *

Message Type of the Message.

+ */ + + public String getType() { + return this.type; + } + + /** + *

User-provided identifiers of the resource, such as key or externalId. Only present if the resource has such identifiers.

+ */ + + public com.commercetools.api.models.message.UserProvidedIdentifiers getResourceUserProvidedIdentifiers() { + return this.resourceUserProvidedIdentifiers; + } + + /** + *

List of CustomerGroupAssignments that were set during the Set CustomerGroupAssignments update action.

+ */ + + public java.util.List getCustomerGroupAssignments() { + return this.customerGroupAssignments; + } + + public void setId(final String id) { + this.id = id; + } + + public void setVersion(final Long version) { + this.version = version; + } + + public void setCreatedAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + } + + public void setLastModifiedAt(final java.time.ZonedDateTime lastModifiedAt) { + this.lastModifiedAt = lastModifiedAt; + } + + public void setLastModifiedBy(final com.commercetools.api.models.common.LastModifiedBy lastModifiedBy) { + this.lastModifiedBy = lastModifiedBy; + } + + public void setCreatedBy(final com.commercetools.api.models.common.CreatedBy createdBy) { + this.createdBy = createdBy; + } + + public void setSequenceNumber(final Long sequenceNumber) { + this.sequenceNumber = sequenceNumber; + } + + public void setResource(final com.commercetools.api.models.common.Reference resource) { + this.resource = resource; + } + + public void setResourceVersion(final Long resourceVersion) { + this.resourceVersion = resourceVersion; + } + + public void setResourceUserProvidedIdentifiers( + final com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers) { + this.resourceUserProvidedIdentifiers = resourceUserProvidedIdentifiers; + } + + public void setCustomerGroupAssignments( + final com.commercetools.api.models.customer.CustomerGroupAssignment... customerGroupAssignments) { + this.customerGroupAssignments = new ArrayList<>(Arrays.asList(customerGroupAssignments)); + } + + public void setCustomerGroupAssignments( + final java.util.List customerGroupAssignments) { + this.customerGroupAssignments = customerGroupAssignments; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + CustomerGroupAssignmentsSetMessageImpl that = (CustomerGroupAssignmentsSetMessageImpl) o; + + return new EqualsBuilder().append(id, that.id) + .append(version, that.version) + .append(createdAt, that.createdAt) + .append(lastModifiedAt, that.lastModifiedAt) + .append(lastModifiedBy, that.lastModifiedBy) + .append(createdBy, that.createdBy) + .append(sequenceNumber, that.sequenceNumber) + .append(resource, that.resource) + .append(resourceVersion, that.resourceVersion) + .append(type, that.type) + .append(resourceUserProvidedIdentifiers, that.resourceUserProvidedIdentifiers) + .append(customerGroupAssignments, that.customerGroupAssignments) + .append(id, that.id) + .append(version, that.version) + .append(createdAt, that.createdAt) + .append(lastModifiedAt, that.lastModifiedAt) + .append(lastModifiedBy, that.lastModifiedBy) + .append(createdBy, that.createdBy) + .append(sequenceNumber, that.sequenceNumber) + .append(resource, that.resource) + .append(resourceVersion, that.resourceVersion) + .append(type, that.type) + .append(resourceUserProvidedIdentifiers, that.resourceUserProvidedIdentifiers) + .append(customerGroupAssignments, that.customerGroupAssignments) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(id) + .append(version) + .append(createdAt) + .append(lastModifiedAt) + .append(lastModifiedBy) + .append(createdBy) + .append(sequenceNumber) + .append(resource) + .append(resourceVersion) + .append(type) + .append(resourceUserProvidedIdentifiers) + .append(customerGroupAssignments) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("id", id) + .append("version", version) + .append("createdAt", createdAt) + .append("lastModifiedAt", lastModifiedAt) + .append("lastModifiedBy", lastModifiedBy) + .append("createdBy", createdBy) + .append("sequenceNumber", sequenceNumber) + .append("resource", resource) + .append("resourceVersion", resourceVersion) + .append("type", type) + .append("resourceUserProvidedIdentifiers", resourceUserProvidedIdentifiers) + .append("customerGroupAssignments", customerGroupAssignments) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentsSetMessagePayload.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentsSetMessagePayload.java new file mode 100644 index 00000000000..5fe1722edf2 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentsSetMessagePayload.java @@ -0,0 +1,144 @@ + +package com.commercetools.api.models.message; + +import java.time.*; +import java.util.*; +import java.util.function.Function; +import java.util.stream.Collectors; + +import javax.annotation.Nullable; + +import com.commercetools.api.models.customer.CustomerGroupAssignment; +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.Valid; + +/** + *

Generated after a successful Set CustomerGroupAssignments update action.

+ * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     CustomerGroupAssignmentsSetMessagePayload customerGroupAssignmentsSetMessagePayload = CustomerGroupAssignmentsSetMessagePayload.builder()
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = CustomerGroupAssignmentsSetMessagePayloadImpl.class) +public interface CustomerGroupAssignmentsSetMessagePayload extends MessagePayload { + + /** + * discriminator value for CustomerGroupAssignmentsSetMessagePayload + */ + String CUSTOMER_GROUP_ASSIGNMENTS_SET = "CustomerGroupAssignmentsSet"; + + /** + *

List of CustomerGroupAssignments that were set during the Set CustomerGroupAssignments update action.

+ * @return customerGroupAssignments + */ + @Valid + @JsonProperty("customerGroupAssignments") + public List getCustomerGroupAssignments(); + + /** + *

List of CustomerGroupAssignments that were set during the Set CustomerGroupAssignments update action.

+ * @param customerGroupAssignments values to be set + */ + + @JsonIgnore + public void setCustomerGroupAssignments(final CustomerGroupAssignment... customerGroupAssignments); + + /** + *

List of CustomerGroupAssignments that were set during the Set CustomerGroupAssignments update action.

+ * @param customerGroupAssignments values to be set + */ + + public void setCustomerGroupAssignments(final List customerGroupAssignments); + + /** + * factory method + * @return instance of CustomerGroupAssignmentsSetMessagePayload + */ + public static CustomerGroupAssignmentsSetMessagePayload of() { + return new CustomerGroupAssignmentsSetMessagePayloadImpl(); + } + + /** + * factory method to create a shallow copy CustomerGroupAssignmentsSetMessagePayload + * @param template instance to be copied + * @return copy instance + */ + public static CustomerGroupAssignmentsSetMessagePayload of( + final CustomerGroupAssignmentsSetMessagePayload template) { + CustomerGroupAssignmentsSetMessagePayloadImpl instance = new CustomerGroupAssignmentsSetMessagePayloadImpl(); + instance.setCustomerGroupAssignments(template.getCustomerGroupAssignments()); + return instance; + } + + /** + * factory method to create a deep copy of CustomerGroupAssignmentsSetMessagePayload + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static CustomerGroupAssignmentsSetMessagePayload deepCopy( + @Nullable final CustomerGroupAssignmentsSetMessagePayload template) { + if (template == null) { + return null; + } + CustomerGroupAssignmentsSetMessagePayloadImpl instance = new CustomerGroupAssignmentsSetMessagePayloadImpl(); + instance.setCustomerGroupAssignments(Optional.ofNullable(template.getCustomerGroupAssignments()) + .map(t -> t.stream() + .map(com.commercetools.api.models.customer.CustomerGroupAssignment::deepCopy) + .collect(Collectors.toList())) + .orElse(null)); + return instance; + } + + /** + * builder factory method for CustomerGroupAssignmentsSetMessagePayload + * @return builder + */ + public static CustomerGroupAssignmentsSetMessagePayloadBuilder builder() { + return CustomerGroupAssignmentsSetMessagePayloadBuilder.of(); + } + + /** + * create builder for CustomerGroupAssignmentsSetMessagePayload instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CustomerGroupAssignmentsSetMessagePayloadBuilder builder( + final CustomerGroupAssignmentsSetMessagePayload template) { + return CustomerGroupAssignmentsSetMessagePayloadBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withCustomerGroupAssignmentsSetMessagePayload( + Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentsSetMessagePayloadBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentsSetMessagePayloadBuilder.java new file mode 100644 index 00000000000..63be00732f1 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentsSetMessagePayloadBuilder.java @@ -0,0 +1,169 @@ + +package com.commercetools.api.models.message; + +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * CustomerGroupAssignmentsSetMessagePayloadBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     CustomerGroupAssignmentsSetMessagePayload customerGroupAssignmentsSetMessagePayload = CustomerGroupAssignmentsSetMessagePayload.builder()
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CustomerGroupAssignmentsSetMessagePayloadBuilder + implements Builder { + + @Nullable + private java.util.List customerGroupAssignments; + + /** + *

List of CustomerGroupAssignments that were set during the Set CustomerGroupAssignments update action.

+ * @param customerGroupAssignments value to be set + * @return Builder + */ + + public CustomerGroupAssignmentsSetMessagePayloadBuilder customerGroupAssignments( + @Nullable final com.commercetools.api.models.customer.CustomerGroupAssignment... customerGroupAssignments) { + this.customerGroupAssignments = new ArrayList<>(Arrays.asList(customerGroupAssignments)); + return this; + } + + /** + *

List of CustomerGroupAssignments that were set during the Set CustomerGroupAssignments update action.

+ * @param customerGroupAssignments value to be set + * @return Builder + */ + + public CustomerGroupAssignmentsSetMessagePayloadBuilder customerGroupAssignments( + @Nullable final java.util.List customerGroupAssignments) { + this.customerGroupAssignments = customerGroupAssignments; + return this; + } + + /** + *

List of CustomerGroupAssignments that were set during the Set CustomerGroupAssignments update action.

+ * @param customerGroupAssignments value to be set + * @return Builder + */ + + public CustomerGroupAssignmentsSetMessagePayloadBuilder plusCustomerGroupAssignments( + @Nullable final com.commercetools.api.models.customer.CustomerGroupAssignment... customerGroupAssignments) { + if (this.customerGroupAssignments == null) { + this.customerGroupAssignments = new ArrayList<>(); + } + this.customerGroupAssignments.addAll(Arrays.asList(customerGroupAssignments)); + return this; + } + + /** + *

List of CustomerGroupAssignments that were set during the Set CustomerGroupAssignments update action.

+ * @param builder function to build the customerGroupAssignments value + * @return Builder + */ + + public CustomerGroupAssignmentsSetMessagePayloadBuilder plusCustomerGroupAssignments( + Function builder) { + if (this.customerGroupAssignments == null) { + this.customerGroupAssignments = new ArrayList<>(); + } + this.customerGroupAssignments + .add(builder.apply(com.commercetools.api.models.customer.CustomerGroupAssignmentBuilder.of()).build()); + return this; + } + + /** + *

List of CustomerGroupAssignments that were set during the Set CustomerGroupAssignments update action.

+ * @param builder function to build the customerGroupAssignments value + * @return Builder + */ + + public CustomerGroupAssignmentsSetMessagePayloadBuilder withCustomerGroupAssignments( + Function builder) { + this.customerGroupAssignments = new ArrayList<>(); + this.customerGroupAssignments + .add(builder.apply(com.commercetools.api.models.customer.CustomerGroupAssignmentBuilder.of()).build()); + return this; + } + + /** + *

List of CustomerGroupAssignments that were set during the Set CustomerGroupAssignments update action.

+ * @param builder function to build the customerGroupAssignments value + * @return Builder + */ + + public CustomerGroupAssignmentsSetMessagePayloadBuilder addCustomerGroupAssignments( + Function builder) { + return plusCustomerGroupAssignments( + builder.apply(com.commercetools.api.models.customer.CustomerGroupAssignmentBuilder.of())); + } + + /** + *

List of CustomerGroupAssignments that were set during the Set CustomerGroupAssignments update action.

+ * @param builder function to build the customerGroupAssignments value + * @return Builder + */ + + public CustomerGroupAssignmentsSetMessagePayloadBuilder setCustomerGroupAssignments( + Function builder) { + return customerGroupAssignments( + builder.apply(com.commercetools.api.models.customer.CustomerGroupAssignmentBuilder.of())); + } + + /** + *

List of CustomerGroupAssignments that were set during the Set CustomerGroupAssignments update action.

+ * @return customerGroupAssignments + */ + + @Nullable + public java.util.List getCustomerGroupAssignments() { + return this.customerGroupAssignments; + } + + /** + * builds CustomerGroupAssignmentsSetMessagePayload with checking for non-null required values + * @return CustomerGroupAssignmentsSetMessagePayload + */ + public CustomerGroupAssignmentsSetMessagePayload build() { + return new CustomerGroupAssignmentsSetMessagePayloadImpl(customerGroupAssignments); + } + + /** + * builds CustomerGroupAssignmentsSetMessagePayload without checking for non-null required values + * @return CustomerGroupAssignmentsSetMessagePayload + */ + public CustomerGroupAssignmentsSetMessagePayload buildUnchecked() { + return new CustomerGroupAssignmentsSetMessagePayloadImpl(customerGroupAssignments); + } + + /** + * factory method for an instance of CustomerGroupAssignmentsSetMessagePayloadBuilder + * @return builder + */ + public static CustomerGroupAssignmentsSetMessagePayloadBuilder of() { + return new CustomerGroupAssignmentsSetMessagePayloadBuilder(); + } + + /** + * create builder for CustomerGroupAssignmentsSetMessagePayload instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CustomerGroupAssignmentsSetMessagePayloadBuilder of( + final CustomerGroupAssignmentsSetMessagePayload template) { + CustomerGroupAssignmentsSetMessagePayloadBuilder builder = new CustomerGroupAssignmentsSetMessagePayloadBuilder(); + builder.customerGroupAssignments = template.getCustomerGroupAssignments(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentsSetMessagePayloadImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentsSetMessagePayloadImpl.java new file mode 100644 index 00000000000..33cde394c69 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentsSetMessagePayloadImpl.java @@ -0,0 +1,102 @@ + +package com.commercetools.api.models.message; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.ModelBase; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +/** + *

Generated after a successful Set CustomerGroupAssignments update action.

+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CustomerGroupAssignmentsSetMessagePayloadImpl + implements CustomerGroupAssignmentsSetMessagePayload, ModelBase { + + private String type; + + private java.util.List customerGroupAssignments; + + /** + * create instance with all properties + */ + @JsonCreator + CustomerGroupAssignmentsSetMessagePayloadImpl( + @JsonProperty("customerGroupAssignments") final java.util.List customerGroupAssignments) { + this.customerGroupAssignments = customerGroupAssignments; + this.type = CUSTOMER_GROUP_ASSIGNMENTS_SET; + } + + /** + * create empty instance + */ + public CustomerGroupAssignmentsSetMessagePayloadImpl() { + this.type = CUSTOMER_GROUP_ASSIGNMENTS_SET; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + *

List of CustomerGroupAssignments that were set during the Set CustomerGroupAssignments update action.

+ */ + + public java.util.List getCustomerGroupAssignments() { + return this.customerGroupAssignments; + } + + public void setCustomerGroupAssignments( + final com.commercetools.api.models.customer.CustomerGroupAssignment... customerGroupAssignments) { + this.customerGroupAssignments = new ArrayList<>(Arrays.asList(customerGroupAssignments)); + } + + public void setCustomerGroupAssignments( + final java.util.List customerGroupAssignments) { + this.customerGroupAssignments = customerGroupAssignments; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + CustomerGroupAssignmentsSetMessagePayloadImpl that = (CustomerGroupAssignmentsSetMessagePayloadImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(customerGroupAssignments, that.customerGroupAssignments) + .append(type, that.type) + .append(customerGroupAssignments, that.customerGroupAssignments) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type).append(customerGroupAssignments).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) + .append("customerGroupAssignments", customerGroupAssignments) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/Message.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/Message.java index 93c69bcb105..90473727203 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/Message.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/Message.java @@ -125,6 +125,9 @@ @JsonSubTypes.Type(value = com.commercetools.api.models.message.CustomerEmailTokenCreatedMessageImpl.class, name = CustomerEmailTokenCreatedMessage.CUSTOMER_EMAIL_TOKEN_CREATED), @JsonSubTypes.Type(value = com.commercetools.api.models.message.CustomerEmailVerifiedMessageImpl.class, name = CustomerEmailVerifiedMessage.CUSTOMER_EMAIL_VERIFIED), @JsonSubTypes.Type(value = com.commercetools.api.models.message.CustomerFirstNameSetMessageImpl.class, name = CustomerFirstNameSetMessage.CUSTOMER_FIRST_NAME_SET), + @JsonSubTypes.Type(value = com.commercetools.api.models.message.CustomerGroupAssignmentAddedMessageImpl.class, name = CustomerGroupAssignmentAddedMessage.CUSTOMER_GROUP_ASSIGNMENT_ADDED), + @JsonSubTypes.Type(value = com.commercetools.api.models.message.CustomerGroupAssignmentRemovedMessageImpl.class, name = CustomerGroupAssignmentRemovedMessage.CUSTOMER_GROUP_ASSIGNMENT_REMOVED), + @JsonSubTypes.Type(value = com.commercetools.api.models.message.CustomerGroupAssignmentsSetMessageImpl.class, name = CustomerGroupAssignmentsSetMessage.CUSTOMER_GROUP_ASSIGNMENTS_SET), @JsonSubTypes.Type(value = com.commercetools.api.models.message.CustomerGroupCustomFieldAddedMessageImpl.class, name = CustomerGroupCustomFieldAddedMessage.CUSTOMER_GROUP_CUSTOM_FIELD_ADDED), @JsonSubTypes.Type(value = com.commercetools.api.models.message.CustomerGroupCustomFieldChangedMessageImpl.class, name = CustomerGroupCustomFieldChangedMessage.CUSTOMER_GROUP_CUSTOM_FIELD_CHANGED), @JsonSubTypes.Type(value = com.commercetools.api.models.message.CustomerGroupCustomFieldRemovedMessageImpl.class, name = CustomerGroupCustomFieldRemovedMessage.CUSTOMER_GROUP_CUSTOM_FIELD_REMOVED), @@ -789,6 +792,18 @@ public static Message deepCopy(@Nullable final Message template) { return com.commercetools.api.models.message.CustomerFirstNameSetMessage .deepCopy((com.commercetools.api.models.message.CustomerFirstNameSetMessage) template); } + if (template instanceof com.commercetools.api.models.message.CustomerGroupAssignmentAddedMessage) { + return com.commercetools.api.models.message.CustomerGroupAssignmentAddedMessage + .deepCopy((com.commercetools.api.models.message.CustomerGroupAssignmentAddedMessage) template); + } + if (template instanceof com.commercetools.api.models.message.CustomerGroupAssignmentRemovedMessage) { + return com.commercetools.api.models.message.CustomerGroupAssignmentRemovedMessage + .deepCopy((com.commercetools.api.models.message.CustomerGroupAssignmentRemovedMessage) template); + } + if (template instanceof com.commercetools.api.models.message.CustomerGroupAssignmentsSetMessage) { + return com.commercetools.api.models.message.CustomerGroupAssignmentsSetMessage + .deepCopy((com.commercetools.api.models.message.CustomerGroupAssignmentsSetMessage) template); + } if (template instanceof com.commercetools.api.models.message.CustomerGroupCustomFieldAddedMessage) { return com.commercetools.api.models.message.CustomerGroupCustomFieldAddedMessage .deepCopy((com.commercetools.api.models.message.CustomerGroupCustomFieldAddedMessage) template); @@ -1913,6 +1928,30 @@ public static com.commercetools.api.models.message.CustomerFirstNameSetMessageBu return com.commercetools.api.models.message.CustomerFirstNameSetMessageBuilder.of(); } + /** + * builder for customerGroupAssignmentAdded subtype + * @return builder + */ + public static com.commercetools.api.models.message.CustomerGroupAssignmentAddedMessageBuilder customerGroupAssignmentAddedBuilder() { + return com.commercetools.api.models.message.CustomerGroupAssignmentAddedMessageBuilder.of(); + } + + /** + * builder for customerGroupAssignmentRemoved subtype + * @return builder + */ + public static com.commercetools.api.models.message.CustomerGroupAssignmentRemovedMessageBuilder customerGroupAssignmentRemovedBuilder() { + return com.commercetools.api.models.message.CustomerGroupAssignmentRemovedMessageBuilder.of(); + } + + /** + * builder for customerGroupAssignmentsSet subtype + * @return builder + */ + public static com.commercetools.api.models.message.CustomerGroupAssignmentsSetMessageBuilder customerGroupAssignmentsSetBuilder() { + return com.commercetools.api.models.message.CustomerGroupAssignmentsSetMessageBuilder.of(); + } + /** * builder for customerGroupCustomFieldAdded subtype * @return builder diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/MessageBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/MessageBuilder.java index 12598410344..066cf9d1cc4 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/MessageBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/MessageBuilder.java @@ -343,6 +343,18 @@ public com.commercetools.api.models.message.CustomerFirstNameSetMessageBuilder c return com.commercetools.api.models.message.CustomerFirstNameSetMessageBuilder.of(); } + public com.commercetools.api.models.message.CustomerGroupAssignmentAddedMessageBuilder customerGroupAssignmentAddedBuilder() { + return com.commercetools.api.models.message.CustomerGroupAssignmentAddedMessageBuilder.of(); + } + + public com.commercetools.api.models.message.CustomerGroupAssignmentRemovedMessageBuilder customerGroupAssignmentRemovedBuilder() { + return com.commercetools.api.models.message.CustomerGroupAssignmentRemovedMessageBuilder.of(); + } + + public com.commercetools.api.models.message.CustomerGroupAssignmentsSetMessageBuilder customerGroupAssignmentsSetBuilder() { + return com.commercetools.api.models.message.CustomerGroupAssignmentsSetMessageBuilder.of(); + } + public com.commercetools.api.models.message.CustomerGroupCustomFieldAddedMessageBuilder customerGroupCustomFieldAddedBuilder() { return com.commercetools.api.models.message.CustomerGroupCustomFieldAddedMessageBuilder.of(); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/MessagePayload.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/MessagePayload.java index 449e56f0c3d..61a60f420e5 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/MessagePayload.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/MessagePayload.java @@ -112,6 +112,9 @@ @JsonSubTypes.Type(value = com.commercetools.api.models.message.CustomerEmailTokenCreatedMessagePayloadImpl.class, name = CustomerEmailTokenCreatedMessagePayload.CUSTOMER_EMAIL_TOKEN_CREATED), @JsonSubTypes.Type(value = com.commercetools.api.models.message.CustomerEmailVerifiedMessagePayloadImpl.class, name = CustomerEmailVerifiedMessagePayload.CUSTOMER_EMAIL_VERIFIED), @JsonSubTypes.Type(value = com.commercetools.api.models.message.CustomerFirstNameSetMessagePayloadImpl.class, name = CustomerFirstNameSetMessagePayload.CUSTOMER_FIRST_NAME_SET), + @JsonSubTypes.Type(value = com.commercetools.api.models.message.CustomerGroupAssignmentAddedMessagePayloadImpl.class, name = CustomerGroupAssignmentAddedMessagePayload.CUSTOMER_GROUP_ASSIGNMENT_ADDED), + @JsonSubTypes.Type(value = com.commercetools.api.models.message.CustomerGroupAssignmentRemovedMessagePayloadImpl.class, name = CustomerGroupAssignmentRemovedMessagePayload.CUSTOMER_GROUP_ASSIGNMENT_REMOVED), + @JsonSubTypes.Type(value = com.commercetools.api.models.message.CustomerGroupAssignmentsSetMessagePayloadImpl.class, name = CustomerGroupAssignmentsSetMessagePayload.CUSTOMER_GROUP_ASSIGNMENTS_SET), @JsonSubTypes.Type(value = com.commercetools.api.models.message.CustomerGroupCustomFieldAddedMessagePayloadImpl.class, name = CustomerGroupCustomFieldAddedMessagePayload.CUSTOMER_GROUP_CUSTOM_FIELD_ADDED), @JsonSubTypes.Type(value = com.commercetools.api.models.message.CustomerGroupCustomFieldChangedMessagePayloadImpl.class, name = CustomerGroupCustomFieldChangedMessagePayload.CUSTOMER_GROUP_CUSTOM_FIELD_CHANGED), @JsonSubTypes.Type(value = com.commercetools.api.models.message.CustomerGroupCustomFieldRemovedMessagePayloadImpl.class, name = CustomerGroupCustomFieldRemovedMessagePayload.CUSTOMER_GROUP_CUSTOM_FIELD_REMOVED), @@ -626,6 +629,18 @@ public static MessagePayload deepCopy(@Nullable final MessagePayload template) { return com.commercetools.api.models.message.CustomerFirstNameSetMessagePayload .deepCopy((com.commercetools.api.models.message.CustomerFirstNameSetMessagePayload) template); } + if (template instanceof com.commercetools.api.models.message.CustomerGroupAssignmentAddedMessagePayload) { + return com.commercetools.api.models.message.CustomerGroupAssignmentAddedMessagePayload.deepCopy( + (com.commercetools.api.models.message.CustomerGroupAssignmentAddedMessagePayload) template); + } + if (template instanceof com.commercetools.api.models.message.CustomerGroupAssignmentRemovedMessagePayload) { + return com.commercetools.api.models.message.CustomerGroupAssignmentRemovedMessagePayload.deepCopy( + (com.commercetools.api.models.message.CustomerGroupAssignmentRemovedMessagePayload) template); + } + if (template instanceof com.commercetools.api.models.message.CustomerGroupAssignmentsSetMessagePayload) { + return com.commercetools.api.models.message.CustomerGroupAssignmentsSetMessagePayload.deepCopy( + (com.commercetools.api.models.message.CustomerGroupAssignmentsSetMessagePayload) template); + } if (template instanceof com.commercetools.api.models.message.CustomerGroupCustomFieldAddedMessagePayload) { return com.commercetools.api.models.message.CustomerGroupCustomFieldAddedMessagePayload.deepCopy( (com.commercetools.api.models.message.CustomerGroupCustomFieldAddedMessagePayload) template); @@ -1742,6 +1757,30 @@ public static com.commercetools.api.models.message.CustomerFirstNameSetMessagePa return com.commercetools.api.models.message.CustomerFirstNameSetMessagePayloadBuilder.of(); } + /** + * builder for customerGroupAssignmentAdded subtype + * @return builder + */ + public static com.commercetools.api.models.message.CustomerGroupAssignmentAddedMessagePayloadBuilder customerGroupAssignmentAddedBuilder() { + return com.commercetools.api.models.message.CustomerGroupAssignmentAddedMessagePayloadBuilder.of(); + } + + /** + * builder for customerGroupAssignmentRemoved subtype + * @return builder + */ + public static com.commercetools.api.models.message.CustomerGroupAssignmentRemovedMessagePayloadBuilder customerGroupAssignmentRemovedBuilder() { + return com.commercetools.api.models.message.CustomerGroupAssignmentRemovedMessagePayloadBuilder.of(); + } + + /** + * builder for customerGroupAssignmentsSet subtype + * @return builder + */ + public static com.commercetools.api.models.message.CustomerGroupAssignmentsSetMessagePayloadBuilder customerGroupAssignmentsSetBuilder() { + return com.commercetools.api.models.message.CustomerGroupAssignmentsSetMessagePayloadBuilder.of(); + } + /** * builder for customerGroupCustomFieldAdded subtype * @return builder diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/MessagePayloadBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/MessagePayloadBuilder.java index 8cc0d17b13f..0ca21017c24 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/MessagePayloadBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/MessagePayloadBuilder.java @@ -343,6 +343,18 @@ public com.commercetools.api.models.message.CustomerFirstNameSetMessagePayloadBu return com.commercetools.api.models.message.CustomerFirstNameSetMessagePayloadBuilder.of(); } + public com.commercetools.api.models.message.CustomerGroupAssignmentAddedMessagePayloadBuilder customerGroupAssignmentAddedBuilder() { + return com.commercetools.api.models.message.CustomerGroupAssignmentAddedMessagePayloadBuilder.of(); + } + + public com.commercetools.api.models.message.CustomerGroupAssignmentRemovedMessagePayloadBuilder customerGroupAssignmentRemovedBuilder() { + return com.commercetools.api.models.message.CustomerGroupAssignmentRemovedMessagePayloadBuilder.of(); + } + + public com.commercetools.api.models.message.CustomerGroupAssignmentsSetMessagePayloadBuilder customerGroupAssignmentsSetBuilder() { + return com.commercetools.api.models.message.CustomerGroupAssignmentsSetMessagePayloadBuilder.of(); + } + public com.commercetools.api.models.message.CustomerGroupCustomFieldAddedMessagePayloadBuilder customerGroupCustomFieldAddedBuilder() { return com.commercetools.api.models.message.CustomerGroupCustomFieldAddedMessagePayloadBuilder.of(); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchProjectionParams.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchProjectionParams.java index 6c7f97c01d9..3e4a717fb67 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchProjectionParams.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchProjectionParams.java @@ -68,6 +68,14 @@ public interface ProductSearchProjectionParams { @JsonProperty("priceCustomerGroup") public String getPriceCustomerGroup(); + /** + *

IDs of existing CustomerGroups used for Product price selection, when using multiple Customer Groups. Can only be used in conjunction with the priceCurrency parameter.

+ * @return priceCustomerGroupAssignments + */ + + @JsonProperty("priceCustomerGroupAssignments") + public List getPriceCustomerGroupAssignments(); + /** *

id of an existing Channel used for Product price selection. Can only be used in conjunction with the priceCurrency parameter.

* @return priceChannel @@ -135,6 +143,21 @@ public interface ProductSearchProjectionParams { public void setPriceCustomerGroup(final String priceCustomerGroup); + /** + *

IDs of existing CustomerGroups used for Product price selection, when using multiple Customer Groups. Can only be used in conjunction with the priceCurrency parameter.

+ * @param priceCustomerGroupAssignments values to be set + */ + + @JsonIgnore + public void setPriceCustomerGroupAssignments(final String... priceCustomerGroupAssignments); + + /** + *

IDs of existing CustomerGroups used for Product price selection, when using multiple Customer Groups. Can only be used in conjunction with the priceCurrency parameter.

+ * @param priceCustomerGroupAssignments values to be set + */ + + public void setPriceCustomerGroupAssignments(final List priceCustomerGroupAssignments); + /** *

id of an existing Channel used for Product price selection. Can only be used in conjunction with the priceCurrency parameter.

* @param priceChannel value to be set @@ -184,6 +207,7 @@ public static ProductSearchProjectionParams of(final ProductSearchProjectionPara instance.setPriceCurrency(template.getPriceCurrency()); instance.setPriceCountry(template.getPriceCountry()); instance.setPriceCustomerGroup(template.getPriceCustomerGroup()); + instance.setPriceCustomerGroupAssignments(template.getPriceCustomerGroupAssignments()); instance.setPriceChannel(template.getPriceChannel()); instance.setLocaleProjection(template.getLocaleProjection()); instance.setStoreProjection(template.getStoreProjection()); @@ -206,6 +230,8 @@ public static ProductSearchProjectionParams deepCopy(@Nullable final ProductSear instance.setPriceCurrency(template.getPriceCurrency()); instance.setPriceCountry(template.getPriceCountry()); instance.setPriceCustomerGroup(template.getPriceCustomerGroup()); + instance.setPriceCustomerGroupAssignments( + Optional.ofNullable(template.getPriceCustomerGroupAssignments()).map(ArrayList::new).orElse(null)); instance.setPriceChannel(template.getPriceChannel()); instance.setLocaleProjection( Optional.ofNullable(template.getLocaleProjection()).map(ArrayList::new).orElse(null)); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchProjectionParamsBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchProjectionParamsBuilder.java index 4c96c9bf1b4..66461ae8d9b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchProjectionParamsBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchProjectionParamsBuilder.java @@ -37,6 +37,9 @@ public class ProductSearchProjectionParamsBuilder implements Builder priceCustomerGroupAssignments; + @Nullable private String priceChannel; @@ -126,6 +129,45 @@ public ProductSearchProjectionParamsBuilder priceCustomerGroup(@Nullable final S return this; } + /** + *

IDs of existing CustomerGroups used for Product price selection, when using multiple Customer Groups. Can only be used in conjunction with the priceCurrency parameter.

+ * @param priceCustomerGroupAssignments value to be set + * @return Builder + */ + + public ProductSearchProjectionParamsBuilder priceCustomerGroupAssignments( + @Nullable final String... priceCustomerGroupAssignments) { + this.priceCustomerGroupAssignments = new ArrayList<>(Arrays.asList(priceCustomerGroupAssignments)); + return this; + } + + /** + *

IDs of existing CustomerGroups used for Product price selection, when using multiple Customer Groups. Can only be used in conjunction with the priceCurrency parameter.

+ * @param priceCustomerGroupAssignments value to be set + * @return Builder + */ + + public ProductSearchProjectionParamsBuilder priceCustomerGroupAssignments( + @Nullable final java.util.List priceCustomerGroupAssignments) { + this.priceCustomerGroupAssignments = priceCustomerGroupAssignments; + return this; + } + + /** + *

IDs of existing CustomerGroups used for Product price selection, when using multiple Customer Groups. Can only be used in conjunction with the priceCurrency parameter.

+ * @param priceCustomerGroupAssignments value to be set + * @return Builder + */ + + public ProductSearchProjectionParamsBuilder plusPriceCustomerGroupAssignments( + @Nullable final String... priceCustomerGroupAssignments) { + if (this.priceCustomerGroupAssignments == null) { + this.priceCustomerGroupAssignments = new ArrayList<>(); + } + this.priceCustomerGroupAssignments.addAll(Arrays.asList(priceCustomerGroupAssignments)); + return this; + } + /** *

id of an existing Channel used for Product price selection. Can only be used in conjunction with the priceCurrency parameter.

* @param priceChannel value to be set @@ -235,6 +277,16 @@ public String getPriceCustomerGroup() { return this.priceCustomerGroup; } + /** + *

IDs of existing CustomerGroups used for Product price selection, when using multiple Customer Groups. Can only be used in conjunction with the priceCurrency parameter.

+ * @return priceCustomerGroupAssignments + */ + + @Nullable + public java.util.List getPriceCustomerGroupAssignments() { + return this.priceCustomerGroupAssignments; + } + /** *

id of an existing Channel used for Product price selection. Can only be used in conjunction with the priceCurrency parameter.

* @return priceChannel @@ -271,7 +323,7 @@ public String getStoreProjection() { */ public ProductSearchProjectionParams build() { return new ProductSearchProjectionParamsImpl(expand, staged, priceCurrency, priceCountry, priceCustomerGroup, - priceChannel, localeProjection, storeProjection); + priceCustomerGroupAssignments, priceChannel, localeProjection, storeProjection); } /** @@ -280,7 +332,7 @@ public ProductSearchProjectionParams build() { */ public ProductSearchProjectionParams buildUnchecked() { return new ProductSearchProjectionParamsImpl(expand, staged, priceCurrency, priceCountry, priceCustomerGroup, - priceChannel, localeProjection, storeProjection); + priceCustomerGroupAssignments, priceChannel, localeProjection, storeProjection); } /** @@ -303,6 +355,7 @@ public static ProductSearchProjectionParamsBuilder of(final ProductSearchProject builder.priceCurrency = template.getPriceCurrency(); builder.priceCountry = template.getPriceCountry(); builder.priceCustomerGroup = template.getPriceCustomerGroup(); + builder.priceCustomerGroupAssignments = template.getPriceCustomerGroupAssignments(); builder.priceChannel = template.getPriceChannel(); builder.localeProjection = template.getLocaleProjection(); builder.storeProjection = template.getStoreProjection(); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchProjectionParamsImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchProjectionParamsImpl.java index bff23d3dec2..edaad4548d9 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchProjectionParamsImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchProjectionParamsImpl.java @@ -32,6 +32,8 @@ public class ProductSearchProjectionParamsImpl implements ProductSearchProjectio private String priceCustomerGroup; + private java.util.List priceCustomerGroupAssignments; + private String priceChannel; private java.util.List localeProjection; @@ -46,6 +48,7 @@ public class ProductSearchProjectionParamsImpl implements ProductSearchProjectio @JsonProperty("staged") final Boolean staged, @JsonProperty("priceCurrency") final String priceCurrency, @JsonProperty("priceCountry") final String priceCountry, @JsonProperty("priceCustomerGroup") final String priceCustomerGroup, + @JsonProperty("priceCustomerGroupAssignments") final java.util.List priceCustomerGroupAssignments, @JsonProperty("priceChannel") final String priceChannel, @JsonProperty("localeProjection") final java.util.List localeProjection, @JsonProperty("storeProjection") final String storeProjection) { @@ -54,6 +57,7 @@ public class ProductSearchProjectionParamsImpl implements ProductSearchProjectio this.priceCurrency = priceCurrency; this.priceCountry = priceCountry; this.priceCustomerGroup = priceCustomerGroup; + this.priceCustomerGroupAssignments = priceCustomerGroupAssignments; this.priceChannel = priceChannel; this.localeProjection = localeProjection; this.storeProjection = storeProjection; @@ -105,6 +109,14 @@ public String getPriceCustomerGroup() { return this.priceCustomerGroup; } + /** + *

IDs of existing CustomerGroups used for Product price selection, when using multiple Customer Groups. Can only be used in conjunction with the priceCurrency parameter.

+ */ + + public java.util.List getPriceCustomerGroupAssignments() { + return this.priceCustomerGroupAssignments; + } + /** *

id of an existing Channel used for Product price selection. Can only be used in conjunction with the priceCurrency parameter.

*/ @@ -153,6 +165,14 @@ public void setPriceCustomerGroup(final String priceCustomerGroup) { this.priceCustomerGroup = priceCustomerGroup; } + public void setPriceCustomerGroupAssignments(final String... priceCustomerGroupAssignments) { + this.priceCustomerGroupAssignments = new ArrayList<>(Arrays.asList(priceCustomerGroupAssignments)); + } + + public void setPriceCustomerGroupAssignments(final java.util.List priceCustomerGroupAssignments) { + this.priceCustomerGroupAssignments = priceCustomerGroupAssignments; + } + public void setPriceChannel(final String priceChannel) { this.priceChannel = priceChannel; } @@ -184,6 +204,7 @@ public boolean equals(Object o) { .append(priceCurrency, that.priceCurrency) .append(priceCountry, that.priceCountry) .append(priceCustomerGroup, that.priceCustomerGroup) + .append(priceCustomerGroupAssignments, that.priceCustomerGroupAssignments) .append(priceChannel, that.priceChannel) .append(localeProjection, that.localeProjection) .append(storeProjection, that.storeProjection) @@ -192,6 +213,7 @@ public boolean equals(Object o) { .append(priceCurrency, that.priceCurrency) .append(priceCountry, that.priceCountry) .append(priceCustomerGroup, that.priceCustomerGroup) + .append(priceCustomerGroupAssignments, that.priceCustomerGroupAssignments) .append(priceChannel, that.priceChannel) .append(localeProjection, that.localeProjection) .append(storeProjection, that.storeProjection) @@ -205,6 +227,7 @@ public int hashCode() { .append(priceCurrency) .append(priceCountry) .append(priceCustomerGroup) + .append(priceCustomerGroupAssignments) .append(priceChannel) .append(localeProjection) .append(storeProjection) @@ -218,6 +241,7 @@ public String toString() { .append("priceCurrency", priceCurrency) .append("priceCountry", priceCountry) .append("priceCustomerGroup", priceCustomerGroup) + .append("priceCustomerGroupAssignments", priceCustomerGroupAssignments) .append("priceChannel", priceChannel) .append("localeProjection", localeProjection) .append("storeProjection", storeProjection) diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/expansion/message/CustomerGroupAssignmentAddedMessageExpansionBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/expansion/message/CustomerGroupAssignmentAddedMessageExpansionBuilderDsl.java new file mode 100644 index 00000000000..fd46b7ec042 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/expansion/message/CustomerGroupAssignmentAddedMessageExpansionBuilderDsl.java @@ -0,0 +1,46 @@ + +package com.commercetools.api.predicates.expansion.message; + +import static com.commercetools.api.predicates.expansion.ExpansionUtil.appendOne; + +import java.util.Collections; +import java.util.List; + +import com.commercetools.api.predicates.expansion.ExpansionDsl; + +public class CustomerGroupAssignmentAddedMessageExpansionBuilderDsl implements ExpansionDsl { + + private final List path; + + private CustomerGroupAssignmentAddedMessageExpansionBuilderDsl(final List path) { + this.path = path; + } + + public static CustomerGroupAssignmentAddedMessageExpansionBuilderDsl of() { + return new CustomerGroupAssignmentAddedMessageExpansionBuilderDsl(Collections.emptyList()); + } + + public static CustomerGroupAssignmentAddedMessageExpansionBuilderDsl of(final List path) { + return new CustomerGroupAssignmentAddedMessageExpansionBuilderDsl(path); + } + + @Override + public List getPath() { + return path; + } + + public com.commercetools.api.predicates.expansion.common.LastModifiedByExpansionBuilderDsl lastModifiedBy() { + return com.commercetools.api.predicates.expansion.common.LastModifiedByExpansionBuilderDsl + .of(appendOne(path, "lastModifiedBy")); + } + + public com.commercetools.api.predicates.expansion.common.CreatedByExpansionBuilderDsl createdBy() { + return com.commercetools.api.predicates.expansion.common.CreatedByExpansionBuilderDsl + .of(appendOne(path, "createdBy")); + } + + public com.commercetools.api.predicates.expansion.common.ReferenceExpansionBuilderDsl resource() { + return com.commercetools.api.predicates.expansion.common.ReferenceExpansionBuilderDsl + .of(appendOne(path, "resource")); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/expansion/message/CustomerGroupAssignmentRemovedMessageExpansionBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/expansion/message/CustomerGroupAssignmentRemovedMessageExpansionBuilderDsl.java new file mode 100644 index 00000000000..5c791b57b23 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/expansion/message/CustomerGroupAssignmentRemovedMessageExpansionBuilderDsl.java @@ -0,0 +1,51 @@ + +package com.commercetools.api.predicates.expansion.message; + +import static com.commercetools.api.predicates.expansion.ExpansionUtil.appendOne; + +import java.util.Collections; +import java.util.List; + +import com.commercetools.api.predicates.expansion.ExpansionDsl; + +public class CustomerGroupAssignmentRemovedMessageExpansionBuilderDsl implements ExpansionDsl { + + private final List path; + + private CustomerGroupAssignmentRemovedMessageExpansionBuilderDsl(final List path) { + this.path = path; + } + + public static CustomerGroupAssignmentRemovedMessageExpansionBuilderDsl of() { + return new CustomerGroupAssignmentRemovedMessageExpansionBuilderDsl(Collections.emptyList()); + } + + public static CustomerGroupAssignmentRemovedMessageExpansionBuilderDsl of(final List path) { + return new CustomerGroupAssignmentRemovedMessageExpansionBuilderDsl(path); + } + + @Override + public List getPath() { + return path; + } + + public com.commercetools.api.predicates.expansion.common.LastModifiedByExpansionBuilderDsl lastModifiedBy() { + return com.commercetools.api.predicates.expansion.common.LastModifiedByExpansionBuilderDsl + .of(appendOne(path, "lastModifiedBy")); + } + + public com.commercetools.api.predicates.expansion.common.CreatedByExpansionBuilderDsl createdBy() { + return com.commercetools.api.predicates.expansion.common.CreatedByExpansionBuilderDsl + .of(appendOne(path, "createdBy")); + } + + public com.commercetools.api.predicates.expansion.common.ReferenceExpansionBuilderDsl resource() { + return com.commercetools.api.predicates.expansion.common.ReferenceExpansionBuilderDsl + .of(appendOne(path, "resource")); + } + + public com.commercetools.api.predicates.expansion.customer_group.CustomerGroupReferenceExpansionBuilderDsl customerGroupAssignment() { + return com.commercetools.api.predicates.expansion.customer_group.CustomerGroupReferenceExpansionBuilderDsl + .of(appendOne(path, "customerGroupAssignment")); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/expansion/message/CustomerGroupAssignmentsSetMessageExpansionBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/expansion/message/CustomerGroupAssignmentsSetMessageExpansionBuilderDsl.java new file mode 100644 index 00000000000..27a510bea28 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/expansion/message/CustomerGroupAssignmentsSetMessageExpansionBuilderDsl.java @@ -0,0 +1,46 @@ + +package com.commercetools.api.predicates.expansion.message; + +import static com.commercetools.api.predicates.expansion.ExpansionUtil.appendOne; + +import java.util.Collections; +import java.util.List; + +import com.commercetools.api.predicates.expansion.ExpansionDsl; + +public class CustomerGroupAssignmentsSetMessageExpansionBuilderDsl implements ExpansionDsl { + + private final List path; + + private CustomerGroupAssignmentsSetMessageExpansionBuilderDsl(final List path) { + this.path = path; + } + + public static CustomerGroupAssignmentsSetMessageExpansionBuilderDsl of() { + return new CustomerGroupAssignmentsSetMessageExpansionBuilderDsl(Collections.emptyList()); + } + + public static CustomerGroupAssignmentsSetMessageExpansionBuilderDsl of(final List path) { + return new CustomerGroupAssignmentsSetMessageExpansionBuilderDsl(path); + } + + @Override + public List getPath() { + return path; + } + + public com.commercetools.api.predicates.expansion.common.LastModifiedByExpansionBuilderDsl lastModifiedBy() { + return com.commercetools.api.predicates.expansion.common.LastModifiedByExpansionBuilderDsl + .of(appendOne(path, "lastModifiedBy")); + } + + public com.commercetools.api.predicates.expansion.common.CreatedByExpansionBuilderDsl createdBy() { + return com.commercetools.api.predicates.expansion.common.CreatedByExpansionBuilderDsl + .of(appendOne(path, "createdBy")); + } + + public com.commercetools.api.predicates.expansion.common.ReferenceExpansionBuilderDsl resource() { + return com.commercetools.api.predicates.expansion.common.ReferenceExpansionBuilderDsl + .of(appendOne(path, "resource")); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/customer/CustomerAddCustomerGroupAssignmentActionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/customer/CustomerAddCustomerGroupAssignmentActionQueryBuilderDsl.java new file mode 100644 index 00000000000..ac885e94e70 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/customer/CustomerAddCustomerGroupAssignmentActionQueryBuilderDsl.java @@ -0,0 +1,31 @@ + +package com.commercetools.api.predicates.query.customer; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class CustomerAddCustomerGroupAssignmentActionQueryBuilderDsl { + public CustomerAddCustomerGroupAssignmentActionQueryBuilderDsl() { + } + + public static CustomerAddCustomerGroupAssignmentActionQueryBuilderDsl of() { + return new CustomerAddCustomerGroupAssignmentActionQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder action() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("action")), + p -> new CombinationQueryPredicate<>(p, CustomerAddCustomerGroupAssignmentActionQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate customerGroupAssignment( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("customerGroupAssignment")) + .inner(fn.apply( + com.commercetools.api.predicates.query.customer.CustomerGroupAssignmentDraftQueryBuilderDsl.of())), + CustomerAddCustomerGroupAssignmentActionQueryBuilderDsl::of); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/customer/CustomerDraftQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/customer/CustomerDraftQueryBuilderDsl.java index 6ae4f05bef5..035e6fb0ea9 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/customer/CustomerDraftQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/customer/CustomerDraftQueryBuilderDsl.java @@ -202,4 +202,19 @@ public StringComparisonPredicateBuilder authentica p -> new CombinationQueryPredicate<>(p, CustomerDraftQueryBuilderDsl::of)); } + public CombinationQueryPredicate customerGroupAssignments( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("customerGroupAssignments")) + .inner(fn.apply( + com.commercetools.api.predicates.query.customer.CustomerGroupAssignmentDraftQueryBuilderDsl.of())), + CustomerDraftQueryBuilderDsl::of); + } + + public CollectionPredicateBuilder customerGroupAssignments() { + return new CollectionPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("customerGroupAssignments")), + p -> new CombinationQueryPredicate<>(p, CustomerDraftQueryBuilderDsl::of)); + } + } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/customer/CustomerGroupAssignmentDraftQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/customer/CustomerGroupAssignmentDraftQueryBuilderDsl.java new file mode 100644 index 00000000000..8e48ba8453c --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/customer/CustomerGroupAssignmentDraftQueryBuilderDsl.java @@ -0,0 +1,26 @@ + +package com.commercetools.api.predicates.query.customer; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class CustomerGroupAssignmentDraftQueryBuilderDsl { + public CustomerGroupAssignmentDraftQueryBuilderDsl() { + } + + public static CustomerGroupAssignmentDraftQueryBuilderDsl of() { + return new CustomerGroupAssignmentDraftQueryBuilderDsl(); + } + + public CombinationQueryPredicate customerGroup( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("customerGroup")) + .inner(fn.apply( + com.commercetools.api.predicates.query.customer_group.CustomerGroupResourceIdentifierQueryBuilderDsl + .of())), + CustomerGroupAssignmentDraftQueryBuilderDsl::of); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/customer/CustomerGroupAssignmentQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/customer/CustomerGroupAssignmentQueryBuilderDsl.java new file mode 100644 index 00000000000..6789d55500f --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/customer/CustomerGroupAssignmentQueryBuilderDsl.java @@ -0,0 +1,25 @@ + +package com.commercetools.api.predicates.query.customer; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class CustomerGroupAssignmentQueryBuilderDsl { + public CustomerGroupAssignmentQueryBuilderDsl() { + } + + public static CustomerGroupAssignmentQueryBuilderDsl of() { + return new CustomerGroupAssignmentQueryBuilderDsl(); + } + + public CombinationQueryPredicate customerGroup( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("customerGroup")) + .inner(fn.apply( + com.commercetools.api.predicates.query.customer_group.CustomerGroupReferenceQueryBuilderDsl.of())), + CustomerGroupAssignmentQueryBuilderDsl::of); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/customer/CustomerQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/customer/CustomerQueryBuilderDsl.java index f44297de876..921b98a2cce 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/customer/CustomerQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/customer/CustomerQueryBuilderDsl.java @@ -218,4 +218,20 @@ public StringComparisonPredicateBuilder authenticationM p -> new CombinationQueryPredicate<>(p, CustomerQueryBuilderDsl::of)); } + public CombinationQueryPredicate customerGroupAssignments( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("customerGroupAssignments")) + .inner(fn.apply( + com.commercetools.api.predicates.query.customer.CustomerGroupAssignmentQueryBuilderDsl.of())), + CustomerQueryBuilderDsl::of); + } + + public CollectionPredicateBuilder customerGroupAssignments() { + return new CollectionPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("customerGroupAssignments")), + p -> new CombinationQueryPredicate<>(p, CustomerQueryBuilderDsl::of)); + } + } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/customer/CustomerRemoveCustomerGroupAssignmentActionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/customer/CustomerRemoveCustomerGroupAssignmentActionQueryBuilderDsl.java new file mode 100644 index 00000000000..f9e03eab2fb --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/customer/CustomerRemoveCustomerGroupAssignmentActionQueryBuilderDsl.java @@ -0,0 +1,32 @@ + +package com.commercetools.api.predicates.query.customer; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class CustomerRemoveCustomerGroupAssignmentActionQueryBuilderDsl { + public CustomerRemoveCustomerGroupAssignmentActionQueryBuilderDsl() { + } + + public static CustomerRemoveCustomerGroupAssignmentActionQueryBuilderDsl of() { + return new CustomerRemoveCustomerGroupAssignmentActionQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder action() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("action")), + p -> new CombinationQueryPredicate<>(p, CustomerRemoveCustomerGroupAssignmentActionQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate customerGroup( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("customerGroup")) + .inner(fn.apply( + com.commercetools.api.predicates.query.customer_group.CustomerGroupResourceIdentifierQueryBuilderDsl + .of())), + CustomerRemoveCustomerGroupAssignmentActionQueryBuilderDsl::of); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/customer/CustomerSetCustomerGroupAssignmentsActionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/customer/CustomerSetCustomerGroupAssignmentsActionQueryBuilderDsl.java new file mode 100644 index 00000000000..7f0905a62a9 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/customer/CustomerSetCustomerGroupAssignmentsActionQueryBuilderDsl.java @@ -0,0 +1,37 @@ + +package com.commercetools.api.predicates.query.customer; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class CustomerSetCustomerGroupAssignmentsActionQueryBuilderDsl { + public CustomerSetCustomerGroupAssignmentsActionQueryBuilderDsl() { + } + + public static CustomerSetCustomerGroupAssignmentsActionQueryBuilderDsl of() { + return new CustomerSetCustomerGroupAssignmentsActionQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder action() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("action")), + p -> new CombinationQueryPredicate<>(p, CustomerSetCustomerGroupAssignmentsActionQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate customerGroupAssignments( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("customerGroupAssignments")) + .inner(fn.apply( + com.commercetools.api.predicates.query.customer.CustomerGroupAssignmentDraftQueryBuilderDsl.of())), + CustomerSetCustomerGroupAssignmentsActionQueryBuilderDsl::of); + } + + public CollectionPredicateBuilder customerGroupAssignments() { + return new CollectionPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("customerGroupAssignments")), + p -> new CombinationQueryPredicate<>(p, CustomerSetCustomerGroupAssignmentsActionQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/customer/CustomerUpdateActionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/customer/CustomerUpdateActionQueryBuilderDsl.java index d8e6a346416..30d5797fbd8 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/customer/CustomerUpdateActionQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/customer/CustomerUpdateActionQueryBuilderDsl.java @@ -34,6 +34,14 @@ public CombinationQueryPredicate asAddBilli CustomerUpdateActionQueryBuilderDsl::of); } + public CombinationQueryPredicate asAddCustomerGroupAssignment( + Function> fn) { + return new CombinationQueryPredicate<>(fn.apply( + com.commercetools.api.predicates.query.customer.CustomerAddCustomerGroupAssignmentActionQueryBuilderDsl + .of()), + CustomerUpdateActionQueryBuilderDsl::of); + } + public CombinationQueryPredicate asAddShippingAddressId( Function> fn) { return new CombinationQueryPredicate<>( @@ -77,6 +85,14 @@ public CombinationQueryPredicate asRemoveBi CustomerUpdateActionQueryBuilderDsl::of); } + public CombinationQueryPredicate asRemoveCustomerGroupAssignment( + Function> fn) { + return new CombinationQueryPredicate<>(fn.apply( + com.commercetools.api.predicates.query.customer.CustomerRemoveCustomerGroupAssignmentActionQueryBuilderDsl + .of()), + CustomerUpdateActionQueryBuilderDsl::of); + } + public CombinationQueryPredicate asRemoveShippingAddressId( Function> fn) { return new CombinationQueryPredicate<>(fn.apply( @@ -142,6 +158,14 @@ public CombinationQueryPredicate asSetCusto CustomerUpdateActionQueryBuilderDsl::of); } + public CombinationQueryPredicate asSetCustomerGroupAssignments( + Function> fn) { + return new CombinationQueryPredicate<>(fn.apply( + com.commercetools.api.predicates.query.customer.CustomerSetCustomerGroupAssignmentsActionQueryBuilderDsl + .of()), + CustomerUpdateActionQueryBuilderDsl::of); + } + public CombinationQueryPredicate asSetCustomerNumber( Function> fn) { return new CombinationQueryPredicate<>( diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerGroupAssignmentAddedMessagePayloadQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerGroupAssignmentAddedMessagePayloadQueryBuilderDsl.java new file mode 100644 index 00000000000..e24d1e0c1fc --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerGroupAssignmentAddedMessagePayloadQueryBuilderDsl.java @@ -0,0 +1,32 @@ + +package com.commercetools.api.predicates.query.message; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class CustomerGroupAssignmentAddedMessagePayloadQueryBuilderDsl { + public CustomerGroupAssignmentAddedMessagePayloadQueryBuilderDsl() { + } + + public static CustomerGroupAssignmentAddedMessagePayloadQueryBuilderDsl of() { + return new CustomerGroupAssignmentAddedMessagePayloadQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder type() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("type")), + p -> new CombinationQueryPredicate<>(p, CustomerGroupAssignmentAddedMessagePayloadQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate customerGroupAssignment( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("customerGroupAssignment")) + .inner(fn.apply( + com.commercetools.api.predicates.query.customer.CustomerGroupAssignmentQueryBuilderDsl.of())), + CustomerGroupAssignmentAddedMessagePayloadQueryBuilderDsl::of); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerGroupAssignmentAddedMessageQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerGroupAssignmentAddedMessageQueryBuilderDsl.java new file mode 100644 index 00000000000..d7d80414f14 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerGroupAssignmentAddedMessageQueryBuilderDsl.java @@ -0,0 +1,104 @@ + +package com.commercetools.api.predicates.query.message; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class CustomerGroupAssignmentAddedMessageQueryBuilderDsl { + public CustomerGroupAssignmentAddedMessageQueryBuilderDsl() { + } + + public static CustomerGroupAssignmentAddedMessageQueryBuilderDsl of() { + return new CustomerGroupAssignmentAddedMessageQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder id() { + return new StringComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("id")), + p -> new CombinationQueryPredicate<>(p, CustomerGroupAssignmentAddedMessageQueryBuilderDsl::of)); + } + + public LongComparisonPredicateBuilder version() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("version")), + p -> new CombinationQueryPredicate<>(p, CustomerGroupAssignmentAddedMessageQueryBuilderDsl::of)); + } + + public DateTimeComparisonPredicateBuilder createdAt() { + return new DateTimeComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("createdAt")), + p -> new CombinationQueryPredicate<>(p, CustomerGroupAssignmentAddedMessageQueryBuilderDsl::of)); + } + + public DateTimeComparisonPredicateBuilder lastModifiedAt() { + return new DateTimeComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("lastModifiedAt")), + p -> new CombinationQueryPredicate<>(p, CustomerGroupAssignmentAddedMessageQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate lastModifiedBy( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("lastModifiedBy")) + .inner(fn.apply(com.commercetools.api.predicates.query.common.LastModifiedByQueryBuilderDsl.of())), + CustomerGroupAssignmentAddedMessageQueryBuilderDsl::of); + } + + public CombinationQueryPredicate createdBy( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("createdBy")) + .inner(fn.apply(com.commercetools.api.predicates.query.common.CreatedByQueryBuilderDsl.of())), + CustomerGroupAssignmentAddedMessageQueryBuilderDsl::of); + } + + public LongComparisonPredicateBuilder sequenceNumber() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("sequenceNumber")), + p -> new CombinationQueryPredicate<>(p, CustomerGroupAssignmentAddedMessageQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate resource( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("resource")) + .inner(fn.apply(com.commercetools.api.predicates.query.common.ReferenceQueryBuilderDsl.of())), + CustomerGroupAssignmentAddedMessageQueryBuilderDsl::of); + } + + public LongComparisonPredicateBuilder resourceVersion() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("resourceVersion")), + p -> new CombinationQueryPredicate<>(p, CustomerGroupAssignmentAddedMessageQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder type() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("type")), + p -> new CombinationQueryPredicate<>(p, CustomerGroupAssignmentAddedMessageQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate resourceUserProvidedIdentifiers( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("resourceUserProvidedIdentifiers")) + .inner(fn.apply( + com.commercetools.api.predicates.query.message.UserProvidedIdentifiersQueryBuilderDsl.of())), + CustomerGroupAssignmentAddedMessageQueryBuilderDsl::of); + } + + public CombinationQueryPredicate customerGroupAssignment( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("customerGroupAssignment")) + .inner(fn.apply( + com.commercetools.api.predicates.query.customer.CustomerGroupAssignmentQueryBuilderDsl.of())), + CustomerGroupAssignmentAddedMessageQueryBuilderDsl::of); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerGroupAssignmentRemovedMessagePayloadQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerGroupAssignmentRemovedMessagePayloadQueryBuilderDsl.java new file mode 100644 index 00000000000..e7112e95439 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerGroupAssignmentRemovedMessagePayloadQueryBuilderDsl.java @@ -0,0 +1,31 @@ + +package com.commercetools.api.predicates.query.message; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class CustomerGroupAssignmentRemovedMessagePayloadQueryBuilderDsl { + public CustomerGroupAssignmentRemovedMessagePayloadQueryBuilderDsl() { + } + + public static CustomerGroupAssignmentRemovedMessagePayloadQueryBuilderDsl of() { + return new CustomerGroupAssignmentRemovedMessagePayloadQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder type() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("type")), + p -> new CombinationQueryPredicate<>(p, CustomerGroupAssignmentRemovedMessagePayloadQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate customerGroupAssignment( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("customerGroupAssignment")) + .inner(fn.apply( + com.commercetools.api.predicates.query.customer_group.CustomerGroupReferenceQueryBuilderDsl.of())), + CustomerGroupAssignmentRemovedMessagePayloadQueryBuilderDsl::of); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerGroupAssignmentRemovedMessageQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerGroupAssignmentRemovedMessageQueryBuilderDsl.java new file mode 100644 index 00000000000..10669606613 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerGroupAssignmentRemovedMessageQueryBuilderDsl.java @@ -0,0 +1,103 @@ + +package com.commercetools.api.predicates.query.message; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class CustomerGroupAssignmentRemovedMessageQueryBuilderDsl { + public CustomerGroupAssignmentRemovedMessageQueryBuilderDsl() { + } + + public static CustomerGroupAssignmentRemovedMessageQueryBuilderDsl of() { + return new CustomerGroupAssignmentRemovedMessageQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder id() { + return new StringComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("id")), + p -> new CombinationQueryPredicate<>(p, CustomerGroupAssignmentRemovedMessageQueryBuilderDsl::of)); + } + + public LongComparisonPredicateBuilder version() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("version")), + p -> new CombinationQueryPredicate<>(p, CustomerGroupAssignmentRemovedMessageQueryBuilderDsl::of)); + } + + public DateTimeComparisonPredicateBuilder createdAt() { + return new DateTimeComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("createdAt")), + p -> new CombinationQueryPredicate<>(p, CustomerGroupAssignmentRemovedMessageQueryBuilderDsl::of)); + } + + public DateTimeComparisonPredicateBuilder lastModifiedAt() { + return new DateTimeComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("lastModifiedAt")), + p -> new CombinationQueryPredicate<>(p, CustomerGroupAssignmentRemovedMessageQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate lastModifiedBy( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("lastModifiedBy")) + .inner(fn.apply(com.commercetools.api.predicates.query.common.LastModifiedByQueryBuilderDsl.of())), + CustomerGroupAssignmentRemovedMessageQueryBuilderDsl::of); + } + + public CombinationQueryPredicate createdBy( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("createdBy")) + .inner(fn.apply(com.commercetools.api.predicates.query.common.CreatedByQueryBuilderDsl.of())), + CustomerGroupAssignmentRemovedMessageQueryBuilderDsl::of); + } + + public LongComparisonPredicateBuilder sequenceNumber() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("sequenceNumber")), + p -> new CombinationQueryPredicate<>(p, CustomerGroupAssignmentRemovedMessageQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate resource( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("resource")) + .inner(fn.apply(com.commercetools.api.predicates.query.common.ReferenceQueryBuilderDsl.of())), + CustomerGroupAssignmentRemovedMessageQueryBuilderDsl::of); + } + + public LongComparisonPredicateBuilder resourceVersion() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("resourceVersion")), + p -> new CombinationQueryPredicate<>(p, CustomerGroupAssignmentRemovedMessageQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder type() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("type")), + p -> new CombinationQueryPredicate<>(p, CustomerGroupAssignmentRemovedMessageQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate resourceUserProvidedIdentifiers( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("resourceUserProvidedIdentifiers")) + .inner(fn.apply( + com.commercetools.api.predicates.query.message.UserProvidedIdentifiersQueryBuilderDsl.of())), + CustomerGroupAssignmentRemovedMessageQueryBuilderDsl::of); + } + + public CombinationQueryPredicate customerGroupAssignment( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("customerGroupAssignment")) + .inner(fn.apply( + com.commercetools.api.predicates.query.customer_group.CustomerGroupReferenceQueryBuilderDsl.of())), + CustomerGroupAssignmentRemovedMessageQueryBuilderDsl::of); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerGroupAssignmentsSetMessagePayloadQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerGroupAssignmentsSetMessagePayloadQueryBuilderDsl.java new file mode 100644 index 00000000000..08c05f46195 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerGroupAssignmentsSetMessagePayloadQueryBuilderDsl.java @@ -0,0 +1,38 @@ + +package com.commercetools.api.predicates.query.message; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class CustomerGroupAssignmentsSetMessagePayloadQueryBuilderDsl { + public CustomerGroupAssignmentsSetMessagePayloadQueryBuilderDsl() { + } + + public static CustomerGroupAssignmentsSetMessagePayloadQueryBuilderDsl of() { + return new CustomerGroupAssignmentsSetMessagePayloadQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder type() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("type")), + p -> new CombinationQueryPredicate<>(p, CustomerGroupAssignmentsSetMessagePayloadQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate customerGroupAssignments( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("customerGroupAssignments")) + .inner(fn.apply( + com.commercetools.api.predicates.query.customer.CustomerGroupAssignmentQueryBuilderDsl.of())), + CustomerGroupAssignmentsSetMessagePayloadQueryBuilderDsl::of); + } + + public CollectionPredicateBuilder customerGroupAssignments() { + return new CollectionPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("customerGroupAssignments")), + p -> new CombinationQueryPredicate<>(p, CustomerGroupAssignmentsSetMessagePayloadQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerGroupAssignmentsSetMessageQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerGroupAssignmentsSetMessageQueryBuilderDsl.java new file mode 100644 index 00000000000..67057b69fc2 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerGroupAssignmentsSetMessageQueryBuilderDsl.java @@ -0,0 +1,110 @@ + +package com.commercetools.api.predicates.query.message; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class CustomerGroupAssignmentsSetMessageQueryBuilderDsl { + public CustomerGroupAssignmentsSetMessageQueryBuilderDsl() { + } + + public static CustomerGroupAssignmentsSetMessageQueryBuilderDsl of() { + return new CustomerGroupAssignmentsSetMessageQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder id() { + return new StringComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("id")), + p -> new CombinationQueryPredicate<>(p, CustomerGroupAssignmentsSetMessageQueryBuilderDsl::of)); + } + + public LongComparisonPredicateBuilder version() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("version")), + p -> new CombinationQueryPredicate<>(p, CustomerGroupAssignmentsSetMessageQueryBuilderDsl::of)); + } + + public DateTimeComparisonPredicateBuilder createdAt() { + return new DateTimeComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("createdAt")), + p -> new CombinationQueryPredicate<>(p, CustomerGroupAssignmentsSetMessageQueryBuilderDsl::of)); + } + + public DateTimeComparisonPredicateBuilder lastModifiedAt() { + return new DateTimeComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("lastModifiedAt")), + p -> new CombinationQueryPredicate<>(p, CustomerGroupAssignmentsSetMessageQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate lastModifiedBy( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("lastModifiedBy")) + .inner(fn.apply(com.commercetools.api.predicates.query.common.LastModifiedByQueryBuilderDsl.of())), + CustomerGroupAssignmentsSetMessageQueryBuilderDsl::of); + } + + public CombinationQueryPredicate createdBy( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("createdBy")) + .inner(fn.apply(com.commercetools.api.predicates.query.common.CreatedByQueryBuilderDsl.of())), + CustomerGroupAssignmentsSetMessageQueryBuilderDsl::of); + } + + public LongComparisonPredicateBuilder sequenceNumber() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("sequenceNumber")), + p -> new CombinationQueryPredicate<>(p, CustomerGroupAssignmentsSetMessageQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate resource( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("resource")) + .inner(fn.apply(com.commercetools.api.predicates.query.common.ReferenceQueryBuilderDsl.of())), + CustomerGroupAssignmentsSetMessageQueryBuilderDsl::of); + } + + public LongComparisonPredicateBuilder resourceVersion() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("resourceVersion")), + p -> new CombinationQueryPredicate<>(p, CustomerGroupAssignmentsSetMessageQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder type() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("type")), + p -> new CombinationQueryPredicate<>(p, CustomerGroupAssignmentsSetMessageQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate resourceUserProvidedIdentifiers( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("resourceUserProvidedIdentifiers")) + .inner(fn.apply( + com.commercetools.api.predicates.query.message.UserProvidedIdentifiersQueryBuilderDsl.of())), + CustomerGroupAssignmentsSetMessageQueryBuilderDsl::of); + } + + public CombinationQueryPredicate customerGroupAssignments( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("customerGroupAssignments")) + .inner(fn.apply( + com.commercetools.api.predicates.query.customer.CustomerGroupAssignmentQueryBuilderDsl.of())), + CustomerGroupAssignmentsSetMessageQueryBuilderDsl::of); + } + + public CollectionPredicateBuilder customerGroupAssignments() { + return new CollectionPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("customerGroupAssignments")), + p -> new CombinationQueryPredicate<>(p, CustomerGroupAssignmentsSetMessageQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/MessagePayloadQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/MessagePayloadQueryBuilderDsl.java index c6abfcb5b9a..2ede0da1d46 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/MessagePayloadQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/MessagePayloadQueryBuilderDsl.java @@ -651,6 +651,30 @@ public CombinationQueryPredicate asCustomerFirstN MessagePayloadQueryBuilderDsl::of); } + public CombinationQueryPredicate asCustomerGroupAssignmentAdded( + Function> fn) { + return new CombinationQueryPredicate<>(fn.apply( + com.commercetools.api.predicates.query.message.CustomerGroupAssignmentAddedMessagePayloadQueryBuilderDsl + .of()), + MessagePayloadQueryBuilderDsl::of); + } + + public CombinationQueryPredicate asCustomerGroupAssignmentRemoved( + Function> fn) { + return new CombinationQueryPredicate<>(fn.apply( + com.commercetools.api.predicates.query.message.CustomerGroupAssignmentRemovedMessagePayloadQueryBuilderDsl + .of()), + MessagePayloadQueryBuilderDsl::of); + } + + public CombinationQueryPredicate asCustomerGroupAssignmentsSet( + Function> fn) { + return new CombinationQueryPredicate<>(fn.apply( + com.commercetools.api.predicates.query.message.CustomerGroupAssignmentsSetMessagePayloadQueryBuilderDsl + .of()), + MessagePayloadQueryBuilderDsl::of); + } + public CombinationQueryPredicate asCustomerGroupCustomFieldAdded( Function> fn) { return new CombinationQueryPredicate<>(fn.apply( diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/MessageQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/MessageQueryBuilderDsl.java index 67e9824e137..9b3fddf75c6 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/MessageQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/MessageQueryBuilderDsl.java @@ -705,6 +705,29 @@ public CombinationQueryPredicate asCustomerFirstNameSet( MessageQueryBuilderDsl::of); } + public CombinationQueryPredicate asCustomerGroupAssignmentAdded( + Function> fn) { + return new CombinationQueryPredicate<>( + fn.apply( + com.commercetools.api.predicates.query.message.CustomerGroupAssignmentAddedMessageQueryBuilderDsl.of()), + MessageQueryBuilderDsl::of); + } + + public CombinationQueryPredicate asCustomerGroupAssignmentRemoved( + Function> fn) { + return new CombinationQueryPredicate<>(fn.apply( + com.commercetools.api.predicates.query.message.CustomerGroupAssignmentRemovedMessageQueryBuilderDsl.of()), + MessageQueryBuilderDsl::of); + } + + public CombinationQueryPredicate asCustomerGroupAssignmentsSet( + Function> fn) { + return new CombinationQueryPredicate<>( + fn.apply( + com.commercetools.api.predicates.query.message.CustomerGroupAssignmentsSetMessageQueryBuilderDsl.of()), + MessageQueryBuilderDsl::of); + } + public CombinationQueryPredicate asCustomerGroupCustomFieldAdded( Function> fn) { return new CombinationQueryPredicate<>(fn.apply( diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchProjectionParamsQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchProjectionParamsQueryBuilderDsl.java index 585a9674edb..506287947ed 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchProjectionParamsQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchProjectionParamsQueryBuilderDsl.java @@ -41,6 +41,12 @@ public StringComparisonPredicateBuilder new CombinationQueryPredicate<>(p, ProductSearchProjectionParamsQueryBuilderDsl::of)); } + public StringCollectionPredicateBuilder priceCustomerGroupAssignments() { + return new StringCollectionPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("priceCustomerGroupAssignments")), + p -> new CombinationQueryPredicate<>(p, ProductSearchProjectionParamsQueryBuilderDsl::of)); + } + public StringComparisonPredicateBuilder priceChannel() { return new StringComparisonPredicateBuilder<>( BinaryQueryPredicate.of().left(new ConstantQueryPredicate("priceChannel")), diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDTest.java index 6d98b75afb5..dfbf472a474 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDTest.java @@ -103,6 +103,16 @@ public static Object[][] requestWithMethodParameters() { .createHttpRequest(), "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") + .createHttpRequest(), + "get", + "test_projectKey/in-store/key=test_storeKey/product-projections/test_ID?priceCustomerGroupAssignments=priceCustomerGroupAssignments", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .inStoreKeyWithStoreKeyValue("test_storeKey") @@ -178,6 +188,12 @@ public static Object[][] executeMethodParameters() { .withId("test_ID") .get() .withPriceCustomerGroup("priceCustomerGroup"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .productProjections() + .withId("test_ID") + .get() + .withPriceCustomerGroupAssignments("priceCustomerGroupAssignments"), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .inStoreKeyWithStoreKeyValue("test_storeKey") .productProjections() diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyTest.java index ed13a4bee8f..059e9110cc1 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyTest.java @@ -104,6 +104,16 @@ public static Object[][] requestWithMethodParameters() { .createHttpRequest(), "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") + .createHttpRequest(), + "get", + "test_projectKey/in-store/key=test_storeKey/product-projections/key=test_key?priceCustomerGroupAssignments=priceCustomerGroupAssignments", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .inStoreKeyWithStoreKeyValue("test_storeKey") @@ -179,6 +189,12 @@ public static Object[][] executeMethodParameters() { .withKey("test_key") .get() .withPriceCustomerGroup("priceCustomerGroup"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .productProjections() + .withKey("test_key") + .get() + .withPriceCustomerGroupAssignments("priceCustomerGroupAssignments"), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .inStoreKeyWithStoreKeyValue("test_storeKey") .productProjections() diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductProjectionsByIDTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductProjectionsByIDTest.java index f20732a8dd6..49f426d6b60 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductProjectionsByIDTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductProjectionsByIDTest.java @@ -96,6 +96,15 @@ public static Object[][] requestWithMethodParameters() { .withPriceCustomerGroup("priceCustomerGroup") .createHttpRequest(), "get", "test_projectKey/product-projections/test_ID?priceCustomerGroup=priceCustomerGroup", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .productProjections() + .withId("test_ID") + .get() + .withPriceCustomerGroupAssignments("priceCustomerGroupAssignments") + .createHttpRequest(), + "get", + "test_projectKey/product-projections/test_ID?priceCustomerGroupAssignments=priceCustomerGroupAssignments", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .productProjections() @@ -163,6 +172,11 @@ public static Object[][] executeMethodParameters() { .withId("test_ID") .get() .withPriceCustomerGroup("priceCustomerGroup"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .productProjections() + .withId("test_ID") + .get() + .withPriceCustomerGroupAssignments("priceCustomerGroupAssignments"), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .productProjections() .withId("test_ID") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductProjectionsKeyByKeyTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductProjectionsKeyByKeyTest.java index af6a018dea5..237ab80bd28 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductProjectionsKeyByKeyTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductProjectionsKeyByKeyTest.java @@ -97,6 +97,15 @@ public static Object[][] requestWithMethodParameters() { .createHttpRequest(), "get", "test_projectKey/product-projections/key=test_key?priceCustomerGroup=priceCustomerGroup", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .productProjections() + .withKey("test_key") + .get() + .withPriceCustomerGroupAssignments("priceCustomerGroupAssignments") + .createHttpRequest(), + "get", + "test_projectKey/product-projections/key=test_key?priceCustomerGroupAssignments=priceCustomerGroupAssignments", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .productProjections() @@ -164,6 +173,11 @@ public static Object[][] executeMethodParameters() { .withKey("test_key") .get() .withPriceCustomerGroup("priceCustomerGroup"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .productProjections() + .withKey("test_key") + .get() + .withPriceCustomerGroupAssignments("priceCustomerGroupAssignments"), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .productProjections() .withKey("test_key") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductProjectionsSearchTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductProjectionsSearchTest.java index 103d41e670e..dbbee8c8a37 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductProjectionsSearchTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductProjectionsSearchTest.java @@ -186,6 +186,15 @@ public static Object[][] requestWithMethodParameters() { .withPriceCustomerGroup("priceCustomerGroup") .createHttpRequest(), "get", "test_projectKey/product-projections/search?priceCustomerGroup=priceCustomerGroup", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .productProjections() + .search() + .get() + .withPriceCustomerGroupAssignments("priceCustomerGroupAssignments") + .createHttpRequest(), + "get", + "test_projectKey/product-projections/search?priceCustomerGroupAssignments=priceCustomerGroupAssignments", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .productProjections() @@ -303,6 +312,11 @@ public static Object[][] executeMethodParameters() { .search() .get() .withPriceCustomerGroup("priceCustomerGroup"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .productProjections() + .search() + .get() + .withPriceCustomerGroupAssignments("priceCustomerGroupAssignments"), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .productProjections() .search() diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductProjectionsTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductProjectionsTest.java index faad79ec580..5eff5e92428 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductProjectionsTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductProjectionsTest.java @@ -90,6 +90,14 @@ public static Object[][] requestWithMethodParameters() { .withPriceCustomerGroup("priceCustomerGroup") .createHttpRequest(), "get", "test_projectKey/product-projections?priceCustomerGroup=priceCustomerGroup", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .productProjections() + .get() + .withPriceCustomerGroupAssignments("priceCustomerGroupAssignments") + .createHttpRequest(), + "get", + "test_projectKey/product-projections?priceCustomerGroupAssignments=priceCustomerGroupAssignments", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .productProjections() @@ -176,6 +184,10 @@ public static Object[][] executeMethodParameters() { .productProjections() .get() .withPriceCustomerGroup("priceCustomerGroup"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .productProjections() + .get() + .withPriceCustomerGroupAssignments("priceCustomerGroupAssignments"), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .productProjections() .get() diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductsByIDTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductsByIDTest.java index 1e5265517ba..9bfe8db7304 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductsByIDTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductsByIDTest.java @@ -88,6 +88,15 @@ public static Object[][] requestWithMethodParameters() { .withPriceCustomerGroup("priceCustomerGroup") .createHttpRequest(), "get", "test_projectKey/products/test_ID?priceCustomerGroup=priceCustomerGroup", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .products() + .withId("test_ID") + .get() + .withPriceCustomerGroupAssignments("priceCustomerGroupAssignments") + .createHttpRequest(), + "get", + "test_projectKey/products/test_ID?priceCustomerGroupAssignments=priceCustomerGroupAssignments", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .products() @@ -136,6 +145,15 @@ public static Object[][] requestWithMethodParameters() { .withPriceCustomerGroup("priceCustomerGroup") .createHttpRequest(), "post", "test_projectKey/products/test_ID?priceCustomerGroup=priceCustomerGroup", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .products() + .withId("test_ID") + .post(com.commercetools.api.models.product.ProductUpdate.of()) + .withPriceCustomerGroupAssignments("priceCustomerGroupAssignments") + .createHttpRequest(), + "post", + "test_projectKey/products/test_ID?priceCustomerGroupAssignments=priceCustomerGroupAssignments", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .products() @@ -179,6 +197,15 @@ public static Object[][] requestWithMethodParameters() { .withPriceCustomerGroup("priceCustomerGroup") .createHttpRequest(), "delete", "test_projectKey/products/test_ID?priceCustomerGroup=priceCustomerGroup", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .products() + .withId("test_ID") + .delete() + .withPriceCustomerGroupAssignments("priceCustomerGroupAssignments") + .createHttpRequest(), + "delete", + "test_projectKey/products/test_ID?priceCustomerGroupAssignments=priceCustomerGroupAssignments", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .products() @@ -224,6 +251,11 @@ public static Object[][] executeMethodParameters() { .withId("test_ID") .get() .withPriceCustomerGroup("priceCustomerGroup"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .products() + .withId("test_ID") + .get() + .withPriceCustomerGroupAssignments("priceCustomerGroupAssignments"), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .products() .withId("test_ID") @@ -251,6 +283,11 @@ public static Object[][] executeMethodParameters() { .withId("test_ID") .post(com.commercetools.api.models.product.ProductUpdate.of()) .withPriceCustomerGroup("priceCustomerGroup"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .products() + .withId("test_ID") + .post(com.commercetools.api.models.product.ProductUpdate.of()) + .withPriceCustomerGroupAssignments("priceCustomerGroupAssignments"), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .products() .withId("test_ID") @@ -280,6 +317,11 @@ public static Object[][] executeMethodParameters() { .withId("test_ID") .delete() .withPriceCustomerGroup("priceCustomerGroup"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .products() + .withId("test_ID") + .delete() + .withPriceCustomerGroupAssignments("priceCustomerGroupAssignments"), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .products() .withId("test_ID") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductsKeyByKeyTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductsKeyByKeyTest.java index 5bee8a068a0..889b7adeb16 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductsKeyByKeyTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductsKeyByKeyTest.java @@ -88,6 +88,15 @@ public static Object[][] requestWithMethodParameters() { .withPriceCustomerGroup("priceCustomerGroup") .createHttpRequest(), "get", "test_projectKey/products/key=test_key?priceCustomerGroup=priceCustomerGroup", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .products() + .withKey("test_key") + .get() + .withPriceCustomerGroupAssignments("priceCustomerGroupAssignments") + .createHttpRequest(), + "get", + "test_projectKey/products/key=test_key?priceCustomerGroupAssignments=priceCustomerGroupAssignments", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .products() @@ -136,6 +145,15 @@ public static Object[][] requestWithMethodParameters() { .withPriceCustomerGroup("priceCustomerGroup") .createHttpRequest(), "post", "test_projectKey/products/key=test_key?priceCustomerGroup=priceCustomerGroup", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .products() + .withKey("test_key") + .post(com.commercetools.api.models.product.ProductUpdate.of()) + .withPriceCustomerGroupAssignments("priceCustomerGroupAssignments") + .createHttpRequest(), + "post", + "test_projectKey/products/key=test_key?priceCustomerGroupAssignments=priceCustomerGroupAssignments", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .products() @@ -179,6 +197,15 @@ public static Object[][] requestWithMethodParameters() { .withPriceCustomerGroup("priceCustomerGroup") .createHttpRequest(), "delete", "test_projectKey/products/key=test_key?priceCustomerGroup=priceCustomerGroup", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .products() + .withKey("test_key") + .delete() + .withPriceCustomerGroupAssignments("priceCustomerGroupAssignments") + .createHttpRequest(), + "delete", + "test_projectKey/products/key=test_key?priceCustomerGroupAssignments=priceCustomerGroupAssignments", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .products() @@ -226,6 +253,11 @@ public static Object[][] executeMethodParameters() { .withKey("test_key") .get() .withPriceCustomerGroup("priceCustomerGroup"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .products() + .withKey("test_key") + .get() + .withPriceCustomerGroupAssignments("priceCustomerGroupAssignments"), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .products() .withKey("test_key") @@ -253,6 +285,11 @@ public static Object[][] executeMethodParameters() { .withKey("test_key") .post(com.commercetools.api.models.product.ProductUpdate.of()) .withPriceCustomerGroup("priceCustomerGroup"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .products() + .withKey("test_key") + .post(com.commercetools.api.models.product.ProductUpdate.of()) + .withPriceCustomerGroupAssignments("priceCustomerGroupAssignments"), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .products() .withKey("test_key") @@ -282,6 +319,11 @@ public static Object[][] executeMethodParameters() { .withKey("test_key") .delete() .withPriceCustomerGroup("priceCustomerGroup"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .products() + .withKey("test_key") + .delete() + .withPriceCustomerGroupAssignments("priceCustomerGroupAssignments"), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .products() .withKey("test_key") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductsTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductsTest.java index e3344760541..42cdfd91f6b 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductsTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductsTest.java @@ -83,6 +83,14 @@ public static Object[][] requestWithMethodParameters() { .withPriceCustomerGroup("priceCustomerGroup") .createHttpRequest(), "get", "test_projectKey/products?priceCustomerGroup=priceCustomerGroup", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .products() + .get() + .withPriceCustomerGroupAssignments("priceCustomerGroupAssignments") + .createHttpRequest(), + "get", + "test_projectKey/products?priceCustomerGroupAssignments=priceCustomerGroupAssignments", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .products() .get() @@ -138,6 +146,14 @@ public static Object[][] requestWithMethodParameters() { .withPriceCustomerGroup("priceCustomerGroup") .createHttpRequest(), "post", "test_projectKey/products?priceCustomerGroup=priceCustomerGroup", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .products() + .post(com.commercetools.api.models.product.ProductDraft.of()) + .withPriceCustomerGroupAssignments("priceCustomerGroupAssignments") + .createHttpRequest(), + "post", + "test_projectKey/products?priceCustomerGroupAssignments=priceCustomerGroupAssignments", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .products() .post(com.commercetools.api.models.product.ProductDraft.of()) @@ -168,6 +184,10 @@ public static Object[][] executeMethodParameters() { .products() .get() .withPriceCustomerGroup("priceCustomerGroup"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .products() + .get() + .withPriceCustomerGroupAssignments("priceCustomerGroupAssignments"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").products().get().withPriceChannel("priceChannel"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").products().get().withExpand("expand"), }, @@ -194,6 +214,10 @@ public static Object[][] executeMethodParameters() { .products() .post(com.commercetools.api.models.product.ProductDraft.of()) .withPriceCustomerGroup("priceCustomerGroup"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .products() + .post(com.commercetools.api.models.product.ProductDraft.of()) + .withPriceCustomerGroupAssignments("priceCustomerGroupAssignments"), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .products() .post(com.commercetools.api.models.product.ProductDraft.of()) diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/customer/CustomerAddCustomerGroupAssignmentActionTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/customer/CustomerAddCustomerGroupAssignmentActionTest.java new file mode 100644 index 00000000000..d98a593faaa --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/customer/CustomerAddCustomerGroupAssignmentActionTest.java @@ -0,0 +1,40 @@ + +package com.commercetools.api.models.customer; + +import com.tngtech.junit.dataprovider.DataProvider; +import com.tngtech.junit.dataprovider.DataProviderExtension; +import com.tngtech.junit.dataprovider.UseDataProvider; +import com.tngtech.junit.dataprovider.UseDataProviderExtension; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.TestTemplate; +import org.junit.jupiter.api.extension.ExtendWith; + +@ExtendWith(UseDataProviderExtension.class) +@ExtendWith(DataProviderExtension.class) +public class CustomerAddCustomerGroupAssignmentActionTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(CustomerAddCustomerGroupAssignmentActionBuilder builder) { + CustomerAddCustomerGroupAssignmentAction customerAddCustomerGroupAssignmentAction = builder.buildUnchecked(); + Assertions.assertThat(customerAddCustomerGroupAssignmentAction) + .isInstanceOf(CustomerAddCustomerGroupAssignmentAction.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { CustomerAddCustomerGroupAssignmentAction.builder() + .customerGroupAssignment( + new com.commercetools.api.models.customer.CustomerGroupAssignmentDraftImpl()) } }; + } + + @Test + public void customerGroupAssignment() { + CustomerAddCustomerGroupAssignmentAction value = CustomerAddCustomerGroupAssignmentAction.of(); + value.setCustomerGroupAssignment(new com.commercetools.api.models.customer.CustomerGroupAssignmentDraftImpl()); + Assertions.assertThat(value.getCustomerGroupAssignment()) + .isEqualTo(new com.commercetools.api.models.customer.CustomerGroupAssignmentDraftImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/customer/CustomerDraftTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/customer/CustomerDraftTest.java index ea940f7e817..af92311fee9 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/customer/CustomerDraftTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/customer/CustomerDraftTest.java @@ -64,7 +64,10 @@ public static Object[][] objectBuilder() { .singletonList(new com.commercetools.api.models.store.StoreResourceIdentifierImpl())) }, new Object[] { CustomerDraft.builder() .authenticationMode( - com.commercetools.api.models.customer.AuthenticationMode.findEnum("Password")) } }; + com.commercetools.api.models.customer.AuthenticationMode.findEnum("Password")) }, + new Object[] { CustomerDraft.builder() + .customerGroupAssignments(Collections.singletonList( + new com.commercetools.api.models.customer.CustomerGroupAssignmentDraftImpl())) } }; } @Test @@ -263,4 +266,14 @@ public void authenticationMode() { Assertions.assertThat(value.getAuthenticationMode()) .isEqualTo(com.commercetools.api.models.customer.AuthenticationMode.findEnum("Password")); } + + @Test + public void customerGroupAssignments() { + CustomerDraft value = CustomerDraft.of(); + value.setCustomerGroupAssignments( + Collections.singletonList(new com.commercetools.api.models.customer.CustomerGroupAssignmentDraftImpl())); + Assertions.assertThat(value.getCustomerGroupAssignments()) + .isEqualTo(Collections + .singletonList(new com.commercetools.api.models.customer.CustomerGroupAssignmentDraftImpl())); + } } diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/customer/CustomerGroupAssignmentDraftTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/customer/CustomerGroupAssignmentDraftTest.java new file mode 100644 index 00000000000..646ea5b0986 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/customer/CustomerGroupAssignmentDraftTest.java @@ -0,0 +1,39 @@ + +package com.commercetools.api.models.customer; + +import com.tngtech.junit.dataprovider.DataProvider; +import com.tngtech.junit.dataprovider.DataProviderExtension; +import com.tngtech.junit.dataprovider.UseDataProvider; +import com.tngtech.junit.dataprovider.UseDataProviderExtension; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.TestTemplate; +import org.junit.jupiter.api.extension.ExtendWith; + +@ExtendWith(UseDataProviderExtension.class) +@ExtendWith(DataProviderExtension.class) +public class CustomerGroupAssignmentDraftTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(CustomerGroupAssignmentDraftBuilder builder) { + CustomerGroupAssignmentDraft customerGroupAssignmentDraft = builder.buildUnchecked(); + Assertions.assertThat(customerGroupAssignmentDraft).isInstanceOf(CustomerGroupAssignmentDraft.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { CustomerGroupAssignmentDraft.builder() + .customerGroup( + new com.commercetools.api.models.customer_group.CustomerGroupResourceIdentifierImpl()) } }; + } + + @Test + public void customerGroup() { + CustomerGroupAssignmentDraft value = CustomerGroupAssignmentDraft.of(); + value.setCustomerGroup(new com.commercetools.api.models.customer_group.CustomerGroupResourceIdentifierImpl()); + Assertions.assertThat(value.getCustomerGroup()) + .isEqualTo(new com.commercetools.api.models.customer_group.CustomerGroupResourceIdentifierImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/customer/CustomerGroupAssignmentTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/customer/CustomerGroupAssignmentTest.java new file mode 100644 index 00000000000..9f52547a370 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/customer/CustomerGroupAssignmentTest.java @@ -0,0 +1,38 @@ + +package com.commercetools.api.models.customer; + +import com.tngtech.junit.dataprovider.DataProvider; +import com.tngtech.junit.dataprovider.DataProviderExtension; +import com.tngtech.junit.dataprovider.UseDataProvider; +import com.tngtech.junit.dataprovider.UseDataProviderExtension; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.TestTemplate; +import org.junit.jupiter.api.extension.ExtendWith; + +@ExtendWith(UseDataProviderExtension.class) +@ExtendWith(DataProviderExtension.class) +public class CustomerGroupAssignmentTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(CustomerGroupAssignmentBuilder builder) { + CustomerGroupAssignment customerGroupAssignment = builder.buildUnchecked(); + Assertions.assertThat(customerGroupAssignment).isInstanceOf(CustomerGroupAssignment.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { CustomerGroupAssignment.builder() + .customerGroup(new com.commercetools.api.models.customer_group.CustomerGroupReferenceImpl()) } }; + } + + @Test + public void customerGroup() { + CustomerGroupAssignment value = CustomerGroupAssignment.of(); + value.setCustomerGroup(new com.commercetools.api.models.customer_group.CustomerGroupReferenceImpl()); + Assertions.assertThat(value.getCustomerGroup()) + .isEqualTo(new com.commercetools.api.models.customer_group.CustomerGroupReferenceImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/customer/CustomerRemoveCustomerGroupAssignmentActionTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/customer/CustomerRemoveCustomerGroupAssignmentActionTest.java new file mode 100644 index 00000000000..4eff7f3183d --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/customer/CustomerRemoveCustomerGroupAssignmentActionTest.java @@ -0,0 +1,41 @@ + +package com.commercetools.api.models.customer; + +import com.tngtech.junit.dataprovider.DataProvider; +import com.tngtech.junit.dataprovider.DataProviderExtension; +import com.tngtech.junit.dataprovider.UseDataProvider; +import com.tngtech.junit.dataprovider.UseDataProviderExtension; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.TestTemplate; +import org.junit.jupiter.api.extension.ExtendWith; + +@ExtendWith(UseDataProviderExtension.class) +@ExtendWith(DataProviderExtension.class) +public class CustomerRemoveCustomerGroupAssignmentActionTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(CustomerRemoveCustomerGroupAssignmentActionBuilder builder) { + CustomerRemoveCustomerGroupAssignmentAction customerRemoveCustomerGroupAssignmentAction = builder + .buildUnchecked(); + Assertions.assertThat(customerRemoveCustomerGroupAssignmentAction) + .isInstanceOf(CustomerRemoveCustomerGroupAssignmentAction.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { CustomerRemoveCustomerGroupAssignmentAction.builder() + .customerGroup( + new com.commercetools.api.models.customer_group.CustomerGroupResourceIdentifierImpl()) } }; + } + + @Test + public void customerGroup() { + CustomerRemoveCustomerGroupAssignmentAction value = CustomerRemoveCustomerGroupAssignmentAction.of(); + value.setCustomerGroup(new com.commercetools.api.models.customer_group.CustomerGroupResourceIdentifierImpl()); + Assertions.assertThat(value.getCustomerGroup()) + .isEqualTo(new com.commercetools.api.models.customer_group.CustomerGroupResourceIdentifierImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/customer/CustomerSetCustomerGroupAssignmentsActionTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/customer/CustomerSetCustomerGroupAssignmentsActionTest.java new file mode 100644 index 00000000000..f353312bff7 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/customer/CustomerSetCustomerGroupAssignmentsActionTest.java @@ -0,0 +1,44 @@ + +package com.commercetools.api.models.customer; + +import java.util.Collections; + +import com.tngtech.junit.dataprovider.DataProvider; +import com.tngtech.junit.dataprovider.DataProviderExtension; +import com.tngtech.junit.dataprovider.UseDataProvider; +import com.tngtech.junit.dataprovider.UseDataProviderExtension; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.TestTemplate; +import org.junit.jupiter.api.extension.ExtendWith; + +@ExtendWith(UseDataProviderExtension.class) +@ExtendWith(DataProviderExtension.class) +public class CustomerSetCustomerGroupAssignmentsActionTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(CustomerSetCustomerGroupAssignmentsActionBuilder builder) { + CustomerSetCustomerGroupAssignmentsAction customerSetCustomerGroupAssignmentsAction = builder.buildUnchecked(); + Assertions.assertThat(customerSetCustomerGroupAssignmentsAction) + .isInstanceOf(CustomerSetCustomerGroupAssignmentsAction.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { CustomerSetCustomerGroupAssignmentsAction.builder() + .customerGroupAssignments(Collections.singletonList( + new com.commercetools.api.models.customer.CustomerGroupAssignmentDraftImpl())) } }; + } + + @Test + public void customerGroupAssignments() { + CustomerSetCustomerGroupAssignmentsAction value = CustomerSetCustomerGroupAssignmentsAction.of(); + value.setCustomerGroupAssignments( + Collections.singletonList(new com.commercetools.api.models.customer.CustomerGroupAssignmentDraftImpl())); + Assertions.assertThat(value.getCustomerGroupAssignments()) + .isEqualTo(Collections + .singletonList(new com.commercetools.api.models.customer.CustomerGroupAssignmentDraftImpl())); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/customer/CustomerTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/customer/CustomerTest.java index 12ffd3d7869..627fc990531 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/customer/CustomerTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/customer/CustomerTest.java @@ -63,7 +63,10 @@ public static Object[][] objectBuilder() { .singletonList(new com.commercetools.api.models.store.StoreKeyReferenceImpl())) }, new Object[] { Customer.builder() .authenticationMode( - com.commercetools.api.models.customer.AuthenticationMode.findEnum("Password")) } }; + com.commercetools.api.models.customer.AuthenticationMode.findEnum("Password")) }, + new Object[] { Customer.builder() + .customerGroupAssignments(Collections.singletonList( + new com.commercetools.api.models.customer.CustomerGroupAssignmentImpl())) } }; } @Test @@ -280,4 +283,14 @@ public void authenticationMode() { Assertions.assertThat(value.getAuthenticationMode()) .isEqualTo(com.commercetools.api.models.customer.AuthenticationMode.findEnum("Password")); } + + @Test + public void customerGroupAssignments() { + Customer value = Customer.of(); + value.setCustomerGroupAssignments( + Collections.singletonList(new com.commercetools.api.models.customer.CustomerGroupAssignmentImpl())); + Assertions.assertThat(value.getCustomerGroupAssignments()) + .isEqualTo( + Collections.singletonList(new com.commercetools.api.models.customer.CustomerGroupAssignmentImpl())); + } } diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentAddedMessagePayloadTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentAddedMessagePayloadTest.java new file mode 100644 index 00000000000..8bb132beab6 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentAddedMessagePayloadTest.java @@ -0,0 +1,40 @@ + +package com.commercetools.api.models.message; + +import com.tngtech.junit.dataprovider.DataProvider; +import com.tngtech.junit.dataprovider.DataProviderExtension; +import com.tngtech.junit.dataprovider.UseDataProvider; +import com.tngtech.junit.dataprovider.UseDataProviderExtension; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.TestTemplate; +import org.junit.jupiter.api.extension.ExtendWith; + +@ExtendWith(UseDataProviderExtension.class) +@ExtendWith(DataProviderExtension.class) +public class CustomerGroupAssignmentAddedMessagePayloadTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(CustomerGroupAssignmentAddedMessagePayloadBuilder builder) { + CustomerGroupAssignmentAddedMessagePayload customerGroupAssignmentAddedMessagePayload = builder + .buildUnchecked(); + Assertions.assertThat(customerGroupAssignmentAddedMessagePayload) + .isInstanceOf(CustomerGroupAssignmentAddedMessagePayload.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { CustomerGroupAssignmentAddedMessagePayload.builder() + .customerGroupAssignment(new com.commercetools.api.models.customer.CustomerGroupAssignmentImpl()) } }; + } + + @Test + public void customerGroupAssignment() { + CustomerGroupAssignmentAddedMessagePayload value = CustomerGroupAssignmentAddedMessagePayload.of(); + value.setCustomerGroupAssignment(new com.commercetools.api.models.customer.CustomerGroupAssignmentImpl()); + Assertions.assertThat(value.getCustomerGroupAssignment()) + .isEqualTo(new com.commercetools.api.models.customer.CustomerGroupAssignmentImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentAddedMessageTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentAddedMessageTest.java new file mode 100644 index 00000000000..0b29f19950c --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentAddedMessageTest.java @@ -0,0 +1,39 @@ + +package com.commercetools.api.models.message; + +import com.tngtech.junit.dataprovider.DataProvider; +import com.tngtech.junit.dataprovider.DataProviderExtension; +import com.tngtech.junit.dataprovider.UseDataProvider; +import com.tngtech.junit.dataprovider.UseDataProviderExtension; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.TestTemplate; +import org.junit.jupiter.api.extension.ExtendWith; + +@ExtendWith(UseDataProviderExtension.class) +@ExtendWith(DataProviderExtension.class) +public class CustomerGroupAssignmentAddedMessageTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(CustomerGroupAssignmentAddedMessageBuilder builder) { + CustomerGroupAssignmentAddedMessage customerGroupAssignmentAddedMessage = builder.buildUnchecked(); + Assertions.assertThat(customerGroupAssignmentAddedMessage) + .isInstanceOf(CustomerGroupAssignmentAddedMessage.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { CustomerGroupAssignmentAddedMessage.builder() + .customerGroupAssignment(new com.commercetools.api.models.customer.CustomerGroupAssignmentImpl()) } }; + } + + @Test + public void customerGroupAssignment() { + CustomerGroupAssignmentAddedMessage value = CustomerGroupAssignmentAddedMessage.of(); + value.setCustomerGroupAssignment(new com.commercetools.api.models.customer.CustomerGroupAssignmentImpl()); + Assertions.assertThat(value.getCustomerGroupAssignment()) + .isEqualTo(new com.commercetools.api.models.customer.CustomerGroupAssignmentImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentRemovedMessagePayloadTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentRemovedMessagePayloadTest.java new file mode 100644 index 00000000000..e48a69dd4f7 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentRemovedMessagePayloadTest.java @@ -0,0 +1,41 @@ + +package com.commercetools.api.models.message; + +import com.tngtech.junit.dataprovider.DataProvider; +import com.tngtech.junit.dataprovider.DataProviderExtension; +import com.tngtech.junit.dataprovider.UseDataProvider; +import com.tngtech.junit.dataprovider.UseDataProviderExtension; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.TestTemplate; +import org.junit.jupiter.api.extension.ExtendWith; + +@ExtendWith(UseDataProviderExtension.class) +@ExtendWith(DataProviderExtension.class) +public class CustomerGroupAssignmentRemovedMessagePayloadTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(CustomerGroupAssignmentRemovedMessagePayloadBuilder builder) { + CustomerGroupAssignmentRemovedMessagePayload customerGroupAssignmentRemovedMessagePayload = builder + .buildUnchecked(); + Assertions.assertThat(customerGroupAssignmentRemovedMessagePayload) + .isInstanceOf(CustomerGroupAssignmentRemovedMessagePayload.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { CustomerGroupAssignmentRemovedMessagePayload.builder() + .customerGroupAssignment( + new com.commercetools.api.models.customer_group.CustomerGroupReferenceImpl()) } }; + } + + @Test + public void customerGroupAssignment() { + CustomerGroupAssignmentRemovedMessagePayload value = CustomerGroupAssignmentRemovedMessagePayload.of(); + value.setCustomerGroupAssignment(new com.commercetools.api.models.customer_group.CustomerGroupReferenceImpl()); + Assertions.assertThat(value.getCustomerGroupAssignment()) + .isEqualTo(new com.commercetools.api.models.customer_group.CustomerGroupReferenceImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentRemovedMessageTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentRemovedMessageTest.java new file mode 100644 index 00000000000..3adfe8e7767 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentRemovedMessageTest.java @@ -0,0 +1,40 @@ + +package com.commercetools.api.models.message; + +import com.tngtech.junit.dataprovider.DataProvider; +import com.tngtech.junit.dataprovider.DataProviderExtension; +import com.tngtech.junit.dataprovider.UseDataProvider; +import com.tngtech.junit.dataprovider.UseDataProviderExtension; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.TestTemplate; +import org.junit.jupiter.api.extension.ExtendWith; + +@ExtendWith(UseDataProviderExtension.class) +@ExtendWith(DataProviderExtension.class) +public class CustomerGroupAssignmentRemovedMessageTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(CustomerGroupAssignmentRemovedMessageBuilder builder) { + CustomerGroupAssignmentRemovedMessage customerGroupAssignmentRemovedMessage = builder.buildUnchecked(); + Assertions.assertThat(customerGroupAssignmentRemovedMessage) + .isInstanceOf(CustomerGroupAssignmentRemovedMessage.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { CustomerGroupAssignmentRemovedMessage.builder() + .customerGroupAssignment( + new com.commercetools.api.models.customer_group.CustomerGroupReferenceImpl()) } }; + } + + @Test + public void customerGroupAssignment() { + CustomerGroupAssignmentRemovedMessage value = CustomerGroupAssignmentRemovedMessage.of(); + value.setCustomerGroupAssignment(new com.commercetools.api.models.customer_group.CustomerGroupReferenceImpl()); + Assertions.assertThat(value.getCustomerGroupAssignment()) + .isEqualTo(new com.commercetools.api.models.customer_group.CustomerGroupReferenceImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentsSetMessagePayloadTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentsSetMessagePayloadTest.java new file mode 100644 index 00000000000..88d2f2dc37f --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentsSetMessagePayloadTest.java @@ -0,0 +1,44 @@ + +package com.commercetools.api.models.message; + +import java.util.Collections; + +import com.tngtech.junit.dataprovider.DataProvider; +import com.tngtech.junit.dataprovider.DataProviderExtension; +import com.tngtech.junit.dataprovider.UseDataProvider; +import com.tngtech.junit.dataprovider.UseDataProviderExtension; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.TestTemplate; +import org.junit.jupiter.api.extension.ExtendWith; + +@ExtendWith(UseDataProviderExtension.class) +@ExtendWith(DataProviderExtension.class) +public class CustomerGroupAssignmentsSetMessagePayloadTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(CustomerGroupAssignmentsSetMessagePayloadBuilder builder) { + CustomerGroupAssignmentsSetMessagePayload customerGroupAssignmentsSetMessagePayload = builder.buildUnchecked(); + Assertions.assertThat(customerGroupAssignmentsSetMessagePayload) + .isInstanceOf(CustomerGroupAssignmentsSetMessagePayload.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { CustomerGroupAssignmentsSetMessagePayload.builder() + .customerGroupAssignments(Collections + .singletonList(new com.commercetools.api.models.customer.CustomerGroupAssignmentImpl())) } }; + } + + @Test + public void customerGroupAssignments() { + CustomerGroupAssignmentsSetMessagePayload value = CustomerGroupAssignmentsSetMessagePayload.of(); + value.setCustomerGroupAssignments( + Collections.singletonList(new com.commercetools.api.models.customer.CustomerGroupAssignmentImpl())); + Assertions.assertThat(value.getCustomerGroupAssignments()) + .isEqualTo( + Collections.singletonList(new com.commercetools.api.models.customer.CustomerGroupAssignmentImpl())); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentsSetMessageTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentsSetMessageTest.java new file mode 100644 index 00000000000..0880dda985f --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentsSetMessageTest.java @@ -0,0 +1,44 @@ + +package com.commercetools.api.models.message; + +import java.util.Collections; + +import com.tngtech.junit.dataprovider.DataProvider; +import com.tngtech.junit.dataprovider.DataProviderExtension; +import com.tngtech.junit.dataprovider.UseDataProvider; +import com.tngtech.junit.dataprovider.UseDataProviderExtension; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.TestTemplate; +import org.junit.jupiter.api.extension.ExtendWith; + +@ExtendWith(UseDataProviderExtension.class) +@ExtendWith(DataProviderExtension.class) +public class CustomerGroupAssignmentsSetMessageTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(CustomerGroupAssignmentsSetMessageBuilder builder) { + CustomerGroupAssignmentsSetMessage customerGroupAssignmentsSetMessage = builder.buildUnchecked(); + Assertions.assertThat(customerGroupAssignmentsSetMessage) + .isInstanceOf(CustomerGroupAssignmentsSetMessage.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { CustomerGroupAssignmentsSetMessage.builder() + .customerGroupAssignments(Collections + .singletonList(new com.commercetools.api.models.customer.CustomerGroupAssignmentImpl())) } }; + } + + @Test + public void customerGroupAssignments() { + CustomerGroupAssignmentsSetMessage value = CustomerGroupAssignmentsSetMessage.of(); + value.setCustomerGroupAssignments( + Collections.singletonList(new com.commercetools.api.models.customer.CustomerGroupAssignmentImpl())); + Assertions.assertThat(value.getCustomerGroupAssignments()) + .isEqualTo( + Collections.singletonList(new com.commercetools.api.models.customer.CustomerGroupAssignmentImpl())); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchProjectionParamsTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchProjectionParamsTest.java index 3e730c6cdd3..8dbc3e68c11 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchProjectionParamsTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchProjectionParamsTest.java @@ -32,6 +32,8 @@ public static Object[][] objectBuilder() { new Object[] { ProductSearchProjectionParams.builder().priceCurrency("priceCurrency") }, new Object[] { ProductSearchProjectionParams.builder().priceCountry("priceCountry") }, new Object[] { ProductSearchProjectionParams.builder().priceCustomerGroup("priceCustomerGroup") }, + new Object[] { ProductSearchProjectionParams.builder() + .priceCustomerGroupAssignments(Collections.singletonList("priceCustomerGroupAssignments")) }, new Object[] { ProductSearchProjectionParams.builder().priceChannel("priceChannel") }, new Object[] { ProductSearchProjectionParams.builder() .localeProjection(Collections.singletonList("localeProjection")) }, @@ -73,6 +75,14 @@ public void priceCustomerGroup() { Assertions.assertThat(value.getPriceCustomerGroup()).isEqualTo("priceCustomerGroup"); } + @Test + public void priceCustomerGroupAssignments() { + ProductSearchProjectionParams value = ProductSearchProjectionParams.of(); + value.setPriceCustomerGroupAssignments(Collections.singletonList("priceCustomerGroupAssignments")); + Assertions.assertThat(value.getPriceCustomerGroupAssignments()) + .isEqualTo(Collections.singletonList("priceCustomerGroupAssignments")); + } + @Test public void priceChannel() { ProductSearchProjectionParams value = ProductSearchProjectionParams.of(); diff --git a/references.txt b/references.txt index 81c11416b0e..852af004e81 100644 --- a/references.txt +++ b/references.txt @@ -370,3 +370,4 @@ b71e64cba7a81b26a5892daca52a9715fd32c05f 159b6f682f761a18daea978cdb2760e7713e0000 f9fa3e30e9bc44b50bdaa5be496b94b37e607a0e 3a34fc63e5128798a8c1c3e426f4775a075d9d62 +43ad4f042715181e849f92df49576374a9438b93