From 9b49f2e4cca9cb49f42c85c588acc3b3b19e3b48 Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Fri, 20 Dec 2024 09:37:18 +0000 Subject: [PATCH 01/18] build(codegen): updating SDK --- changes.md | 51 +--- .../main/resources/graphql/schema.graphqls | 24 ++ ...ProjectKeyBusinessUnitsRequestBuilder.java | 8 + .../ByProjectKeyBusinessUnitsSearchHead.java | 109 ++++++++ ...yBusinessUnitsSearchIndexingStatusGet.java | 112 ++++++++ ...itsSearchIndexingStatusRequestBuilder.java | 23 ++ .../ByProjectKeyBusinessUnitsSearchPost.java | 130 +++++++++ ...ojectKeyBusinessUnitsSearchPostString.java | 129 +++++++++ ...tKeyBusinessUnitsSearchRequestBuilder.java | 39 +++ .../BusinessUnitIndexingProgress.java | 158 +++++++++++ .../BusinessUnitIndexingProgressBuilder.java | 132 +++++++++ .../BusinessUnitIndexingProgressImpl.java | 117 ++++++++ .../BusinessUnitPagedSearchResponse.java | 191 +++++++++++++ ...usinessUnitPagedSearchResponseBuilder.java | 242 ++++++++++++++++ .../BusinessUnitPagedSearchResponseImpl.java | 141 ++++++++++ ...inessUnitSearchIndexingStatusResponse.java | 197 +++++++++++++ ...itSearchIndexingStatusResponseBuilder.java | 218 +++++++++++++++ ...sUnitSearchIndexingStatusResponseImpl.java | 162 +++++++++++ .../BusinessUnitSearchRequest.java | 187 +++++++++++++ .../BusinessUnitSearchRequestBuilder.java | 263 ++++++++++++++++++ .../BusinessUnitSearchRequestImpl.java | 139 +++++++++ .../BusinessUnitSearchResult.java | 140 ++++++++++ .../BusinessUnitSearchResultBuilder.java | 107 +++++++ .../BusinessUnitSearchResultImpl.java | 98 +++++++ .../project/BusinessUnitIndexingStatus.java | 131 +++++++++ .../project/BusinessUnitSearchStatus.java | 115 ++++++++ ...tChangeBusinessUnitSearchStatusAction.java | 131 +++++++++ ...BusinessUnitSearchStatusActionBuilder.java | 85 ++++++ ...ngeBusinessUnitSearchStatusActionImpl.java | 96 +++++++ .../models/project/ProjectUpdateAction.java | 17 +- .../project/ProjectUpdateActionBuilder.java | 4 + .../project/SearchIndexingConfiguration.java | 18 ++ .../SearchIndexingConfigurationBuilder.java | 57 +++- .../SearchIndexingConfigurationImpl.java | 23 +- ...ssUnitIndexingProgressQueryBuilderDsl.java | 32 +++ ...nitPagedSearchResponseQueryBuilderDsl.java | 47 ++++ ...IndexingStatusResponseQueryBuilderDsl.java | 50 ++++ ...inessUnitSearchRequestQueryBuilderDsl.java | 50 ++++ ...sinessUnitSearchResultQueryBuilderDsl.java | 25 ++ ...UnitSearchStatusActionQueryBuilderDsl.java | 26 ++ .../ProjectUpdateActionQueryBuilderDsl.java | 8 + ...hIndexingConfigurationQueryBuilderDsl.java | 10 + ...BusinessUnitsSearchIndexingStatusTest.java | 81 ++++++ .../ByProjectKeyBusinessUnitsSearchTest.java | 86 ++++++ .../BusinessUnitIndexingProgressTest.java | 52 ++++ .../BusinessUnitPagedSearchResponseTest.java | 67 +++++ ...sUnitSearchIndexingStatusResponseTest.java | 81 ++++++ .../BusinessUnitSearchRequestTest.java | 66 +++++ .../BusinessUnitSearchResultTest.java | 44 +++ ...ngeBusinessUnitSearchStatusActionTest.java | 40 +++ .../SearchIndexingConfigurationTest.java | 12 +- references.txt | 1 + 52 files changed, 4529 insertions(+), 43 deletions(-) create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyBusinessUnitsSearchHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyBusinessUnitsSearchIndexingStatusGet.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyBusinessUnitsSearchIndexingStatusRequestBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyBusinessUnitsSearchPost.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyBusinessUnitsSearchPostString.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyBusinessUnitsSearchRequestBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitIndexingProgress.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitIndexingProgressBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitIndexingProgressImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitPagedSearchResponse.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitPagedSearchResponseBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitPagedSearchResponseImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitSearchIndexingStatusResponse.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitSearchIndexingStatusResponseBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitSearchIndexingStatusResponseImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitSearchRequest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitSearchRequestBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitSearchRequestImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitSearchResult.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitSearchResultBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitSearchResultImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/BusinessUnitIndexingStatus.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/BusinessUnitSearchStatus.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/ProjectChangeBusinessUnitSearchStatusAction.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/ProjectChangeBusinessUnitSearchStatusActionBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/ProjectChangeBusinessUnitSearchStatusActionImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/business_unit_search/BusinessUnitIndexingProgressQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/business_unit_search/BusinessUnitPagedSearchResponseQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/business_unit_search/BusinessUnitSearchIndexingStatusResponseQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/business_unit_search/BusinessUnitSearchRequestQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/business_unit_search/BusinessUnitSearchResultQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/project/ProjectChangeBusinessUnitSearchStatusActionQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyBusinessUnitsSearchIndexingStatusTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyBusinessUnitsSearchTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitIndexingProgressTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitPagedSearchResponseTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitSearchIndexingStatusResponseTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitSearchRequestTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitSearchResultTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/project/ProjectChangeBusinessUnitSearchStatusActionTest.java diff --git a/changes.md b/changes.md index 630717f7ed1..9fa5dc98a07 100644 --- a/changes.md +++ b/changes.md @@ -3,60 +3,37 @@
Added Resource(s) -- added resource `/{projectKey}/channels/key={key}` +- added resource `/{projectKey}/business-units/search` +- added resource `/{projectKey}/business-units/search/indexing-status`
Added Method(s) -- added method `apiRoot.withProjectKey().channels().withKey().get()` -- added method `apiRoot.withProjectKey().channels().withKey().head()` -- added method `apiRoot.withProjectKey().channels().withKey().post()` -- added method `apiRoot.withProjectKey().channels().withKey().delete()` +- added method `apiRoot.withProjectKey().businessUnits().search().post()` +- added method `apiRoot.withProjectKey().businessUnits().search().head()` +- added method `apiRoot.withProjectKey().businessUnits().searchIndexingStatus().get()`
Added Type(s) -- added type `CartDiscountPatternTarget` -- added type `CountOnCustomLineItemUnits` -- added type `CountOnLineItemUnits` -- added type `PatternComponent` -- added type `ShoppingListLineItemAddedMessage` -- added type `ShoppingListLineItemRemovedMessage` -- added type `ShoppingListMessage` -- added type `ShoppingListLineItemAddedMessagePayload` -- added type `ShoppingListLineItemRemovedMessagePayload` -- added type `ShoppingListMessagePayload` -
- - -
-Added Enum(s) - -- added enum `Canceled` to type `ShipmentState` -- added enum `shopping-list` to type `MessageSubscriptionResourceTypeId` +- added type `BusinessUnitIndexingProgress` +- added type `BusinessUnitIndexingStatus` +- added type `BusinessUnitPagedSearchResponse` +- added type `BusinessUnitSearchIndexingStatusResponse` +- added type `BusinessUnitSearchRequest` +- added type `BusinessUnitSearchResult` +- added type `BusinessUnitSearchStatus` +- added type `ProjectChangeBusinessUnitSearchStatusAction`
Added Property(s) -- added property `applicationMode` to type `CartDiscountValueFixed` -- added property `applicationMode` to type `CartDiscountValueFixedDraft` -- added property `custom` to type `CartSetCustomShippingMethodAction` -- added property `custom` to type `StagedOrderSetCustomShippingMethodAction` -- added property `custom` to type `StagedOrderSetShippingAddressAndCustomShippingMethodAction` -
- -**History changes** - -
-Added Type(s) - -- added type `ChangeTargetPatternChangeValue` -- added type `PatternComponent` +- added property `businessUnits` to type `SearchIndexingConfiguration`
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 997e47714c2..921eca3aec1 100644 --- a/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls +++ b/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls @@ -1596,6 +1596,19 @@ type BusinessUnitQueryResult { results: [BusinessUnit!]! } +"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" +type BusinessUnitSearchConfiguration { + status: BusinessUnitSearchStatus! + lastModifiedAt: DateTime! + lastModifiedBy: Initiator +} + +"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" +enum BusinessUnitSearchStatus { + Activated + Deactivated +} + type BusinessUnitShippingAddressAdded implements MessagePayload { address: Address! type: String! @@ -2626,6 +2639,11 @@ input ChangeProductTailoringAssetOrder { assetOrder: [String!]! } +"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" +input ChangeProjectSettingsBusinessUnitSearchStatus { + status: BusinessUnitSearchStatus! +} + input ChangeProjectSettingsCartsConfiguration { cartsConfiguration: CartsConfigurationInput! } @@ -9114,6 +9132,9 @@ input ProjectSettingsUpdateAction { "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" setMyBusinessUnitAssociateRoleOnCreation: SetProjectSettingsMyBusinessUnitAssociateRoleOnCreation + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" + changeBusinessUnitSearchStatus: ChangeProjectSettingsBusinessUnitSearchStatus changeProductSearchIndexingEnabled: ChangeProjectSettingsProductSearchIndexingEnabled } @@ -10507,6 +10528,9 @@ type SearchIndexingConfiguration { products: SearchIndexingConfigurationValues orders: OrderSearchConfiguration customers: CustomerSearchConfiguration + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" + businessUnits: BusinessUnitSearchConfiguration } type SearchIndexingConfigurationValues { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyBusinessUnitsRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyBusinessUnitsRequestBuilder.java index 598345a7c2c..3a6509113f3 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyBusinessUnitsRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyBusinessUnitsRequestBuilder.java @@ -48,4 +48,12 @@ public ByProjectKeyBusinessUnitsByIDRequestBuilder withId(String ID) { return new ByProjectKeyBusinessUnitsByIDRequestBuilder(apiHttpClient, projectKey, ID); } + public ByProjectKeyBusinessUnitsSearchRequestBuilder search() { + return new ByProjectKeyBusinessUnitsSearchRequestBuilder(apiHttpClient, projectKey); + } + + public ByProjectKeyBusinessUnitsSearchIndexingStatusRequestBuilder searchIndexingStatus() { + return new ByProjectKeyBusinessUnitsSearchIndexingStatusRequestBuilder(apiHttpClient, projectKey); + } + } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyBusinessUnitsSearchHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyBusinessUnitsSearchHead.java new file mode 100644 index 00000000000..b8a00463f67 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyBusinessUnitsSearchHead.java @@ -0,0 +1,109 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks whether a search index of Business Units exists for a Project. Returns a 200 OK if an index exists; otherwise, returns a 409 Conflict.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .businessUnits()
+ *            .search()
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyBusinessUnitsSearchHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + + public ByProjectKeyBusinessUnitsSearchHead(final ApiHttpClient apiHttpClient, String projectKey) { + super(apiHttpClient); + this.projectKey = projectKey; + } + + public ByProjectKeyBusinessUnitsSearchHead(ByProjectKeyBusinessUnitsSearchHead t) { + super(t); + this.projectKey = t.projectKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/business-units/search", encodePathParam(this.projectKey)); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyBusinessUnitsSearchHead that = (ByProjectKeyBusinessUnitsSearchHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).toHashCode(); + } + + @Override + protected ByProjectKeyBusinessUnitsSearchHead copy() { + return new ByProjectKeyBusinessUnitsSearchHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyBusinessUnitsSearchIndexingStatusGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyBusinessUnitsSearchIndexingStatusGet.java new file mode 100644 index 00000000000..c362c3734c7 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyBusinessUnitsSearchIndexingStatusGet.java @@ -0,0 +1,112 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Returns the indexing status of the Business Unit Search for a Project.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .businessUnits()
+ *            .searchIndexingStatus()
+ *            .get()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyBusinessUnitsSearchIndexingStatusGet extends + TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + + public ByProjectKeyBusinessUnitsSearchIndexingStatusGet(final ApiHttpClient apiHttpClient, String projectKey) { + super(apiHttpClient); + this.projectKey = projectKey; + } + + public ByProjectKeyBusinessUnitsSearchIndexingStatusGet(ByProjectKeyBusinessUnitsSearchIndexingStatusGet t) { + super(t); + this.projectKey = t.projectKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/business-units/search/indexing-status", + encodePathParam(this.projectKey)); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.GET, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking( + final ApiHttpClient client, final Duration timeout) { + return executeBlocking(client, timeout, + com.commercetools.api.models.business_unit_search.BusinessUnitSearchIndexingStatusResponse.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, + com.commercetools.api.models.business_unit_search.BusinessUnitSearchIndexingStatusResponse.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyBusinessUnitsSearchIndexingStatusGet that = (ByProjectKeyBusinessUnitsSearchIndexingStatusGet) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).toHashCode(); + } + + @Override + protected ByProjectKeyBusinessUnitsSearchIndexingStatusGet copy() { + return new ByProjectKeyBusinessUnitsSearchIndexingStatusGet(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyBusinessUnitsSearchIndexingStatusRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyBusinessUnitsSearchIndexingStatusRequestBuilder.java new file mode 100644 index 00000000000..36642153734 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyBusinessUnitsSearchIndexingStatusRequestBuilder.java @@ -0,0 +1,23 @@ + +package com.commercetools.api.client; + +import io.vrap.rmf.base.client.ApiHttpClient; +import io.vrap.rmf.base.client.utils.Generated; + +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyBusinessUnitsSearchIndexingStatusRequestBuilder { + + private final ApiHttpClient apiHttpClient; + private final String projectKey; + + public ByProjectKeyBusinessUnitsSearchIndexingStatusRequestBuilder(final ApiHttpClient apiHttpClient, + final String projectKey) { + this.apiHttpClient = apiHttpClient; + this.projectKey = projectKey; + } + + public ByProjectKeyBusinessUnitsSearchIndexingStatusGet get() { + return new ByProjectKeyBusinessUnitsSearchIndexingStatusGet(apiHttpClient, projectKey); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyBusinessUnitsSearchPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyBusinessUnitsSearchPost.java new file mode 100644 index 00000000000..840255e684d --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyBusinessUnitsSearchPost.java @@ -0,0 +1,130 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

If the initial indexing is in progress or the feature is inactive, A SearchNotReady error is returned. If inactive, you can reactivate it.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .businessUnits()
+ *            .search()
+ *            .post(null)
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyBusinessUnitsSearchPost extends + TypeBodyApiMethod + implements com.commercetools.api.client.ErrorableTrait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + + private com.commercetools.api.models.business_unit_search.BusinessUnitSearchRequest businessUnitSearchRequest; + + public ByProjectKeyBusinessUnitsSearchPost(final ApiHttpClient apiHttpClient, String projectKey, + com.commercetools.api.models.business_unit_search.BusinessUnitSearchRequest businessUnitSearchRequest) { + super(apiHttpClient); + this.projectKey = projectKey; + this.businessUnitSearchRequest = businessUnitSearchRequest; + } + + public ByProjectKeyBusinessUnitsSearchPost(ByProjectKeyBusinessUnitsSearchPost t) { + super(t); + this.projectKey = t.projectKey; + this.businessUnitSearchRequest = t.businessUnitSearchRequest; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/business-units/search", encodePathParam(this.projectKey)); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.POST, URI.create(httpRequestPath), getHeaders(), + io.vrap.rmf.base.client.utils.json.JsonUtils.executing( + () -> apiHttpClient().getSerializerService().toJsonByteArray(businessUnitSearchRequest))); + + } + + @Override + public ApiHttpResponse executeBlocking( + final ApiHttpClient client, final Duration timeout) { + return executeBlocking(client, timeout, + com.commercetools.api.models.business_unit_search.BusinessUnitPagedSearchResponse.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.commercetools.api.models.business_unit_search.BusinessUnitPagedSearchResponse.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public com.commercetools.api.models.business_unit_search.BusinessUnitSearchRequest getBody() { + return businessUnitSearchRequest; + } + + public ByProjectKeyBusinessUnitsSearchPost withBody( + com.commercetools.api.models.business_unit_search.BusinessUnitSearchRequest businessUnitSearchRequest) { + ByProjectKeyBusinessUnitsSearchPost t = copy(); + t.businessUnitSearchRequest = businessUnitSearchRequest; + return t; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyBusinessUnitsSearchPost that = (ByProjectKeyBusinessUnitsSearchPost) o; + + return new EqualsBuilder().append(projectKey, that.projectKey) + .append(businessUnitSearchRequest, that.businessUnitSearchRequest) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(businessUnitSearchRequest).toHashCode(); + } + + @Override + protected ByProjectKeyBusinessUnitsSearchPost copy() { + return new ByProjectKeyBusinessUnitsSearchPost(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyBusinessUnitsSearchPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyBusinessUnitsSearchPostString.java new file mode 100644 index 00000000000..9ed09b88964 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyBusinessUnitsSearchPostString.java @@ -0,0 +1,129 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.nio.charset.StandardCharsets; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

If the initial indexing is in progress or the feature is inactive, A SearchNotReady error is returned. If inactive, you can reactivate it.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .businessUnits()
+ *            .search()
+ *            .post("")
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyBusinessUnitsSearchPostString extends + StringBodyApiMethod + implements com.commercetools.api.client.ErrorableTrait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + + private String businessUnitSearchRequest; + + public ByProjectKeyBusinessUnitsSearchPostString(final ApiHttpClient apiHttpClient, String projectKey, + String businessUnitSearchRequest) { + super(apiHttpClient); + this.projectKey = projectKey; + this.businessUnitSearchRequest = businessUnitSearchRequest; + } + + public ByProjectKeyBusinessUnitsSearchPostString(ByProjectKeyBusinessUnitsSearchPostString t) { + super(t); + this.projectKey = t.projectKey; + this.businessUnitSearchRequest = t.businessUnitSearchRequest; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/business-units/search", this.projectKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.POST, URI.create(httpRequestPath), getHeaders(), + businessUnitSearchRequest.getBytes(StandardCharsets.UTF_8)); + + } + + @Override + public ApiHttpResponse executeBlocking( + final ApiHttpClient client, final Duration timeout) { + return executeBlocking(client, timeout, + com.commercetools.api.models.business_unit_search.BusinessUnitPagedSearchResponse.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.commercetools.api.models.business_unit_search.BusinessUnitPagedSearchResponse.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public String getBody() { + return businessUnitSearchRequest; + } + + public ByProjectKeyBusinessUnitsSearchPostString withBody(String businessUnitSearchRequest) { + ByProjectKeyBusinessUnitsSearchPostString t = copy(); + t.businessUnitSearchRequest = businessUnitSearchRequest; + return t; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyBusinessUnitsSearchPostString that = (ByProjectKeyBusinessUnitsSearchPostString) o; + + return new EqualsBuilder().append(projectKey, that.projectKey) + .append(businessUnitSearchRequest, that.businessUnitSearchRequest) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(businessUnitSearchRequest).toHashCode(); + } + + @Override + protected ByProjectKeyBusinessUnitsSearchPostString copy() { + return new ByProjectKeyBusinessUnitsSearchPostString(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyBusinessUnitsSearchRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyBusinessUnitsSearchRequestBuilder.java new file mode 100644 index 00000000000..91aed8f6a32 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyBusinessUnitsSearchRequestBuilder.java @@ -0,0 +1,39 @@ + +package com.commercetools.api.client; + +import java.util.function.UnaryOperator; + +import io.vrap.rmf.base.client.ApiHttpClient; +import io.vrap.rmf.base.client.utils.Generated; + +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyBusinessUnitsSearchRequestBuilder { + + private final ApiHttpClient apiHttpClient; + private final String projectKey; + + public ByProjectKeyBusinessUnitsSearchRequestBuilder(final ApiHttpClient apiHttpClient, final String projectKey) { + this.apiHttpClient = apiHttpClient; + this.projectKey = projectKey; + } + + public ByProjectKeyBusinessUnitsSearchPost post( + com.commercetools.api.models.business_unit_search.BusinessUnitSearchRequest businessUnitSearchRequest) { + return new ByProjectKeyBusinessUnitsSearchPost(apiHttpClient, projectKey, businessUnitSearchRequest); + } + + public ByProjectKeyBusinessUnitsSearchPostString post(final String businessUnitSearchRequest) { + return new ByProjectKeyBusinessUnitsSearchPostString(apiHttpClient, projectKey, businessUnitSearchRequest); + } + + public ByProjectKeyBusinessUnitsSearchPost post( + UnaryOperator op) { + return post( + op.apply(com.commercetools.api.models.business_unit_search.BusinessUnitSearchRequestBuilder.of()).build()); + } + + public ByProjectKeyBusinessUnitsSearchHead head() { + return new ByProjectKeyBusinessUnitsSearchHead(apiHttpClient, projectKey); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitIndexingProgress.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitIndexingProgress.java new file mode 100644 index 00000000000..f6b754e5593 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitIndexingProgress.java @@ -0,0 +1,158 @@ + +package com.commercetools.api.models.business_unit_search; + +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.constraints.NotNull; + +/** + * BusinessUnitIndexingProgress + * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     BusinessUnitIndexingProgress businessUnitIndexingProgress = BusinessUnitIndexingProgress.builder()
+ *             .indexed(0.3)
+ *             .failed(0.3)
+ *             .estimatedTotal(0.3)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = BusinessUnitIndexingProgressImpl.class) +public interface BusinessUnitIndexingProgress { + + /** + *

The number of Business Units successfully indexed.

+ * @return indexed + */ + @NotNull + @JsonProperty("indexed") + public Integer getIndexed(); + + /** + *

The number of Business Units that failed to be indexed.

+ * @return failed + */ + @NotNull + @JsonProperty("failed") + public Integer getFailed(); + + /** + *

The estimated total number of Business Units to be indexed.

+ * @return estimatedTotal + */ + @NotNull + @JsonProperty("estimatedTotal") + public Integer getEstimatedTotal(); + + /** + *

The number of Business Units successfully indexed.

+ * @param indexed value to be set + */ + + public void setIndexed(final Integer indexed); + + /** + *

The number of Business Units that failed to be indexed.

+ * @param failed value to be set + */ + + public void setFailed(final Integer failed); + + /** + *

The estimated total number of Business Units to be indexed.

+ * @param estimatedTotal value to be set + */ + + public void setEstimatedTotal(final Integer estimatedTotal); + + /** + * factory method + * @return instance of BusinessUnitIndexingProgress + */ + public static BusinessUnitIndexingProgress of() { + return new BusinessUnitIndexingProgressImpl(); + } + + /** + * factory method to create a shallow copy BusinessUnitIndexingProgress + * @param template instance to be copied + * @return copy instance + */ + public static BusinessUnitIndexingProgress of(final BusinessUnitIndexingProgress template) { + BusinessUnitIndexingProgressImpl instance = new BusinessUnitIndexingProgressImpl(); + instance.setIndexed(template.getIndexed()); + instance.setFailed(template.getFailed()); + instance.setEstimatedTotal(template.getEstimatedTotal()); + return instance; + } + + /** + * factory method to create a deep copy of BusinessUnitIndexingProgress + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static BusinessUnitIndexingProgress deepCopy(@Nullable final BusinessUnitIndexingProgress template) { + if (template == null) { + return null; + } + BusinessUnitIndexingProgressImpl instance = new BusinessUnitIndexingProgressImpl(); + instance.setIndexed(template.getIndexed()); + instance.setFailed(template.getFailed()); + instance.setEstimatedTotal(template.getEstimatedTotal()); + return instance; + } + + /** + * builder factory method for BusinessUnitIndexingProgress + * @return builder + */ + public static BusinessUnitIndexingProgressBuilder builder() { + return BusinessUnitIndexingProgressBuilder.of(); + } + + /** + * create builder for BusinessUnitIndexingProgress instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static BusinessUnitIndexingProgressBuilder builder(final BusinessUnitIndexingProgress template) { + return BusinessUnitIndexingProgressBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withBusinessUnitIndexingProgress(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/business_unit_search/BusinessUnitIndexingProgressBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitIndexingProgressBuilder.java new file mode 100644 index 00000000000..9281eea8d21 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitIndexingProgressBuilder.java @@ -0,0 +1,132 @@ + +package com.commercetools.api.models.business_unit_search; + +import java.util.*; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * BusinessUnitIndexingProgressBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     BusinessUnitIndexingProgress businessUnitIndexingProgress = BusinessUnitIndexingProgress.builder()
+ *             .indexed(0.3)
+ *             .failed(0.3)
+ *             .estimatedTotal(0.3)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class BusinessUnitIndexingProgressBuilder implements Builder { + + private Integer indexed; + + private Integer failed; + + private Integer estimatedTotal; + + /** + *

The number of Business Units successfully indexed.

+ * @param indexed value to be set + * @return Builder + */ + + public BusinessUnitIndexingProgressBuilder indexed(final Integer indexed) { + this.indexed = indexed; + return this; + } + + /** + *

The number of Business Units that failed to be indexed.

+ * @param failed value to be set + * @return Builder + */ + + public BusinessUnitIndexingProgressBuilder failed(final Integer failed) { + this.failed = failed; + return this; + } + + /** + *

The estimated total number of Business Units to be indexed.

+ * @param estimatedTotal value to be set + * @return Builder + */ + + public BusinessUnitIndexingProgressBuilder estimatedTotal(final Integer estimatedTotal) { + this.estimatedTotal = estimatedTotal; + return this; + } + + /** + *

The number of Business Units successfully indexed.

+ * @return indexed + */ + + public Integer getIndexed() { + return this.indexed; + } + + /** + *

The number of Business Units that failed to be indexed.

+ * @return failed + */ + + public Integer getFailed() { + return this.failed; + } + + /** + *

The estimated total number of Business Units to be indexed.

+ * @return estimatedTotal + */ + + public Integer getEstimatedTotal() { + return this.estimatedTotal; + } + + /** + * builds BusinessUnitIndexingProgress with checking for non-null required values + * @return BusinessUnitIndexingProgress + */ + public BusinessUnitIndexingProgress build() { + Objects.requireNonNull(indexed, BusinessUnitIndexingProgress.class + ": indexed is missing"); + Objects.requireNonNull(failed, BusinessUnitIndexingProgress.class + ": failed is missing"); + Objects.requireNonNull(estimatedTotal, BusinessUnitIndexingProgress.class + ": estimatedTotal is missing"); + return new BusinessUnitIndexingProgressImpl(indexed, failed, estimatedTotal); + } + + /** + * builds BusinessUnitIndexingProgress without checking for non-null required values + * @return BusinessUnitIndexingProgress + */ + public BusinessUnitIndexingProgress buildUnchecked() { + return new BusinessUnitIndexingProgressImpl(indexed, failed, estimatedTotal); + } + + /** + * factory method for an instance of BusinessUnitIndexingProgressBuilder + * @return builder + */ + public static BusinessUnitIndexingProgressBuilder of() { + return new BusinessUnitIndexingProgressBuilder(); + } + + /** + * create builder for BusinessUnitIndexingProgress instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static BusinessUnitIndexingProgressBuilder of(final BusinessUnitIndexingProgress template) { + BusinessUnitIndexingProgressBuilder builder = new BusinessUnitIndexingProgressBuilder(); + builder.indexed = template.getIndexed(); + builder.failed = template.getFailed(); + builder.estimatedTotal = template.getEstimatedTotal(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitIndexingProgressImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitIndexingProgressImpl.java new file mode 100644 index 00000000000..fb8ab6fde6b --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitIndexingProgressImpl.java @@ -0,0 +1,117 @@ + +package com.commercetools.api.models.business_unit_search; + +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; + +/** + * BusinessUnitIndexingProgress + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class BusinessUnitIndexingProgressImpl implements BusinessUnitIndexingProgress, ModelBase { + + private Integer indexed; + + private Integer failed; + + private Integer estimatedTotal; + + /** + * create instance with all properties + */ + @JsonCreator + BusinessUnitIndexingProgressImpl(@JsonProperty("indexed") final Integer indexed, + @JsonProperty("failed") final Integer failed, + @JsonProperty("estimatedTotal") final Integer estimatedTotal) { + this.indexed = indexed; + this.failed = failed; + this.estimatedTotal = estimatedTotal; + } + + /** + * create empty instance + */ + public BusinessUnitIndexingProgressImpl() { + } + + /** + *

The number of Business Units successfully indexed.

+ */ + + public Integer getIndexed() { + return this.indexed; + } + + /** + *

The number of Business Units that failed to be indexed.

+ */ + + public Integer getFailed() { + return this.failed; + } + + /** + *

The estimated total number of Business Units to be indexed.

+ */ + + public Integer getEstimatedTotal() { + return this.estimatedTotal; + } + + public void setIndexed(final Integer indexed) { + this.indexed = indexed; + } + + public void setFailed(final Integer failed) { + this.failed = failed; + } + + public void setEstimatedTotal(final Integer estimatedTotal) { + this.estimatedTotal = estimatedTotal; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + BusinessUnitIndexingProgressImpl that = (BusinessUnitIndexingProgressImpl) o; + + return new EqualsBuilder().append(indexed, that.indexed) + .append(failed, that.failed) + .append(estimatedTotal, that.estimatedTotal) + .append(indexed, that.indexed) + .append(failed, that.failed) + .append(estimatedTotal, that.estimatedTotal) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(indexed).append(failed).append(estimatedTotal).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("indexed", indexed) + .append("failed", failed) + .append("estimatedTotal", estimatedTotal) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitPagedSearchResponse.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitPagedSearchResponse.java new file mode 100644 index 00000000000..0f9b4c511fc --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitPagedSearchResponse.java @@ -0,0 +1,191 @@ + +package com.commercetools.api.models.business_unit_search; + +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; + +/** + * BusinessUnitPagedSearchResponse + * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     BusinessUnitPagedSearchResponse businessUnitPagedSearchResponse = BusinessUnitPagedSearchResponse.builder()
+ *             .total(0.3)
+ *             .limit(0.3)
+ *             .offset(0.3)
+ *             .plusResults(resultsBuilder -> resultsBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = BusinessUnitPagedSearchResponseImpl.class) +public interface BusinessUnitPagedSearchResponse { + + /** + *

Total number of results matching the query.

+ * @return total + */ + @NotNull + @JsonProperty("total") + public Long getTotal(); + + /** + *

Number of results requested.

+ * @return limit + */ + @NotNull + @JsonProperty("limit") + public Integer getLimit(); + + /** + *

Number of elements skipped.

+ * @return offset + */ + @NotNull + @JsonProperty("offset") + public Integer getOffset(); + + /** + *

Search result containing the Business Units matching the search query.

+ * @return results + */ + @NotNull + @Valid + @JsonProperty("results") + public List getResults(); + + /** + *

Total number of results matching the query.

+ * @param total value to be set + */ + + public void setTotal(final Long total); + + /** + *

Number of results requested.

+ * @param limit value to be set + */ + + public void setLimit(final Integer limit); + + /** + *

Number of elements skipped.

+ * @param offset value to be set + */ + + public void setOffset(final Integer offset); + + /** + *

Search result containing the Business Units matching the search query.

+ * @param results values to be set + */ + + @JsonIgnore + public void setResults(final BusinessUnitSearchResult... results); + + /** + *

Search result containing the Business Units matching the search query.

+ * @param results values to be set + */ + + public void setResults(final List results); + + /** + * factory method + * @return instance of BusinessUnitPagedSearchResponse + */ + public static BusinessUnitPagedSearchResponse of() { + return new BusinessUnitPagedSearchResponseImpl(); + } + + /** + * factory method to create a shallow copy BusinessUnitPagedSearchResponse + * @param template instance to be copied + * @return copy instance + */ + public static BusinessUnitPagedSearchResponse of(final BusinessUnitPagedSearchResponse template) { + BusinessUnitPagedSearchResponseImpl instance = new BusinessUnitPagedSearchResponseImpl(); + instance.setTotal(template.getTotal()); + instance.setLimit(template.getLimit()); + instance.setOffset(template.getOffset()); + instance.setResults(template.getResults()); + return instance; + } + + /** + * factory method to create a deep copy of BusinessUnitPagedSearchResponse + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static BusinessUnitPagedSearchResponse deepCopy(@Nullable final BusinessUnitPagedSearchResponse template) { + if (template == null) { + return null; + } + BusinessUnitPagedSearchResponseImpl instance = new BusinessUnitPagedSearchResponseImpl(); + instance.setTotal(template.getTotal()); + instance.setLimit(template.getLimit()); + instance.setOffset(template.getOffset()); + instance.setResults(Optional.ofNullable(template.getResults()) + .map(t -> t.stream() + .map(com.commercetools.api.models.business_unit_search.BusinessUnitSearchResult::deepCopy) + .collect(Collectors.toList())) + .orElse(null)); + return instance; + } + + /** + * builder factory method for BusinessUnitPagedSearchResponse + * @return builder + */ + public static BusinessUnitPagedSearchResponseBuilder builder() { + return BusinessUnitPagedSearchResponseBuilder.of(); + } + + /** + * create builder for BusinessUnitPagedSearchResponse instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static BusinessUnitPagedSearchResponseBuilder builder(final BusinessUnitPagedSearchResponse template) { + return BusinessUnitPagedSearchResponseBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withBusinessUnitPagedSearchResponse(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/business_unit_search/BusinessUnitPagedSearchResponseBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitPagedSearchResponseBuilder.java new file mode 100644 index 00000000000..8396862c65e --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitPagedSearchResponseBuilder.java @@ -0,0 +1,242 @@ + +package com.commercetools.api.models.business_unit_search; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * BusinessUnitPagedSearchResponseBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     BusinessUnitPagedSearchResponse businessUnitPagedSearchResponse = BusinessUnitPagedSearchResponse.builder()
+ *             .total(0.3)
+ *             .limit(0.3)
+ *             .offset(0.3)
+ *             .plusResults(resultsBuilder -> resultsBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class BusinessUnitPagedSearchResponseBuilder implements Builder { + + private Long total; + + private Integer limit; + + private Integer offset; + + private java.util.List results; + + /** + *

Total number of results matching the query.

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

Number of results requested.

+ * @param limit value to be set + * @return Builder + */ + + public BusinessUnitPagedSearchResponseBuilder limit(final Integer limit) { + this.limit = limit; + return this; + } + + /** + *

Number of elements skipped.

+ * @param offset value to be set + * @return Builder + */ + + public BusinessUnitPagedSearchResponseBuilder offset(final Integer offset) { + this.offset = offset; + return this; + } + + /** + *

Search result containing the Business Units matching the search query.

+ * @param results value to be set + * @return Builder + */ + + public BusinessUnitPagedSearchResponseBuilder results( + final com.commercetools.api.models.business_unit_search.BusinessUnitSearchResult... results) { + this.results = new ArrayList<>(Arrays.asList(results)); + return this; + } + + /** + *

Search result containing the Business Units matching the search query.

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

Search result containing the Business Units matching the search query.

+ * @param results value to be set + * @return Builder + */ + + public BusinessUnitPagedSearchResponseBuilder plusResults( + final com.commercetools.api.models.business_unit_search.BusinessUnitSearchResult... results) { + if (this.results == null) { + this.results = new ArrayList<>(); + } + this.results.addAll(Arrays.asList(results)); + return this; + } + + /** + *

Search result containing the Business Units matching the search query.

+ * @param builder function to build the results value + * @return Builder + */ + + public BusinessUnitPagedSearchResponseBuilder plusResults( + Function builder) { + if (this.results == null) { + this.results = new ArrayList<>(); + } + this.results.add( + builder.apply(com.commercetools.api.models.business_unit_search.BusinessUnitSearchResultBuilder.of()) + .build()); + return this; + } + + /** + *

Search result containing the Business Units matching the search query.

+ * @param builder function to build the results value + * @return Builder + */ + + public BusinessUnitPagedSearchResponseBuilder withResults( + Function builder) { + this.results = new ArrayList<>(); + this.results.add( + builder.apply(com.commercetools.api.models.business_unit_search.BusinessUnitSearchResultBuilder.of()) + .build()); + return this; + } + + /** + *

Search result containing the Business Units matching the search query.

+ * @param builder function to build the results value + * @return Builder + */ + + public BusinessUnitPagedSearchResponseBuilder addResults( + Function builder) { + return plusResults( + builder.apply(com.commercetools.api.models.business_unit_search.BusinessUnitSearchResultBuilder.of())); + } + + /** + *

Search result containing the Business Units matching the search query.

+ * @param builder function to build the results value + * @return Builder + */ + + public BusinessUnitPagedSearchResponseBuilder setResults( + Function builder) { + return results( + builder.apply(com.commercetools.api.models.business_unit_search.BusinessUnitSearchResultBuilder.of())); + } + + /** + *

Total number of results matching the query.

+ * @return total + */ + + public Long getTotal() { + return this.total; + } + + /** + *

Number of results requested.

+ * @return limit + */ + + public Integer getLimit() { + return this.limit; + } + + /** + *

Number of elements skipped.

+ * @return offset + */ + + public Integer getOffset() { + return this.offset; + } + + /** + *

Search result containing the Business Units matching the search query.

+ * @return results + */ + + public java.util.List getResults() { + return this.results; + } + + /** + * builds BusinessUnitPagedSearchResponse with checking for non-null required values + * @return BusinessUnitPagedSearchResponse + */ + public BusinessUnitPagedSearchResponse build() { + Objects.requireNonNull(total, BusinessUnitPagedSearchResponse.class + ": total is missing"); + Objects.requireNonNull(limit, BusinessUnitPagedSearchResponse.class + ": limit is missing"); + Objects.requireNonNull(offset, BusinessUnitPagedSearchResponse.class + ": offset is missing"); + Objects.requireNonNull(results, BusinessUnitPagedSearchResponse.class + ": results is missing"); + return new BusinessUnitPagedSearchResponseImpl(total, limit, offset, results); + } + + /** + * builds BusinessUnitPagedSearchResponse without checking for non-null required values + * @return BusinessUnitPagedSearchResponse + */ + public BusinessUnitPagedSearchResponse buildUnchecked() { + return new BusinessUnitPagedSearchResponseImpl(total, limit, offset, results); + } + + /** + * factory method for an instance of BusinessUnitPagedSearchResponseBuilder + * @return builder + */ + public static BusinessUnitPagedSearchResponseBuilder of() { + return new BusinessUnitPagedSearchResponseBuilder(); + } + + /** + * create builder for BusinessUnitPagedSearchResponse instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static BusinessUnitPagedSearchResponseBuilder of(final BusinessUnitPagedSearchResponse template) { + BusinessUnitPagedSearchResponseBuilder builder = new BusinessUnitPagedSearchResponseBuilder(); + builder.total = template.getTotal(); + builder.limit = template.getLimit(); + builder.offset = template.getOffset(); + builder.results = template.getResults(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitPagedSearchResponseImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitPagedSearchResponseImpl.java new file mode 100644 index 00000000000..0a758abfda6 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitPagedSearchResponseImpl.java @@ -0,0 +1,141 @@ + +package com.commercetools.api.models.business_unit_search; + +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; + +/** + * BusinessUnitPagedSearchResponse + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class BusinessUnitPagedSearchResponseImpl implements BusinessUnitPagedSearchResponse, ModelBase { + + private Long total; + + private Integer limit; + + private Integer offset; + + private java.util.List results; + + /** + * create instance with all properties + */ + @JsonCreator + BusinessUnitPagedSearchResponseImpl(@JsonProperty("total") final Long total, + @JsonProperty("limit") final Integer limit, @JsonProperty("offset") final Integer offset, + @JsonProperty("results") final java.util.List results) { + this.total = total; + this.limit = limit; + this.offset = offset; + this.results = results; + } + + /** + * create empty instance + */ + public BusinessUnitPagedSearchResponseImpl() { + } + + /** + *

Total number of results matching the query.

+ */ + + public Long getTotal() { + return this.total; + } + + /** + *

Number of results requested.

+ */ + + public Integer getLimit() { + return this.limit; + } + + /** + *

Number of elements skipped.

+ */ + + public Integer getOffset() { + return this.offset; + } + + /** + *

Search result containing the Business Units matching the search query.

+ */ + + public java.util.List getResults() { + return this.results; + } + + public void setTotal(final Long total) { + this.total = total; + } + + public void setLimit(final Integer limit) { + this.limit = limit; + } + + public void setOffset(final Integer offset) { + this.offset = offset; + } + + public void setResults( + final com.commercetools.api.models.business_unit_search.BusinessUnitSearchResult... results) { + this.results = new ArrayList<>(Arrays.asList(results)); + } + + public void setResults( + final java.util.List results) { + this.results = results; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + BusinessUnitPagedSearchResponseImpl that = (BusinessUnitPagedSearchResponseImpl) o; + + return new EqualsBuilder().append(total, that.total) + .append(limit, that.limit) + .append(offset, that.offset) + .append(results, that.results) + .append(total, that.total) + .append(limit, that.limit) + .append(offset, that.offset) + .append(results, that.results) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(total).append(limit).append(offset).append(results).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("total", total) + .append("limit", limit) + .append("offset", offset) + .append("results", results) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitSearchIndexingStatusResponse.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitSearchIndexingStatusResponse.java new file mode 100644 index 00000000000..9b317fbedfa --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitSearchIndexingStatusResponse.java @@ -0,0 +1,197 @@ + +package com.commercetools.api.models.business_unit_search; + +import java.time.*; +import java.time.ZonedDateTime; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.commercetools.api.models.project.BusinessUnitIndexingStatus; +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; + +/** + * BusinessUnitSearchIndexingStatusResponse + * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     BusinessUnitSearchIndexingStatusResponse businessUnitSearchIndexingStatusResponse = BusinessUnitSearchIndexingStatusResponse.builder()
+ *             .status(BusinessUnitIndexingStatus.SCHEDULED)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = BusinessUnitSearchIndexingStatusResponseImpl.class) +public interface BusinessUnitSearchIndexingStatusResponse { + + /** + *

Current status of indexing the Business Unit Search.

+ * @return status + */ + @NotNull + @JsonProperty("status") + public BusinessUnitIndexingStatus getStatus(); + + /** + *

Progress of indexing. Only available when indexing is in progress.

+ * @return states + */ + @Valid + @JsonProperty("states") + public BusinessUnitIndexingProgress getStates(); + + /** + *

Date and time (UTC) when the last indexing started.

+ * @return startedAt + */ + + @JsonProperty("startedAt") + public ZonedDateTime getStartedAt(); + + /** + *

Time when the status was last modified.

+ * @return lastModifiedAt + */ + + @JsonProperty("lastModifiedAt") + public ZonedDateTime getLastModifiedAt(); + + /** + *

Indicates how many times the system tried to start indexing after failed attempts. The counter is set to null after an indexing finished successfully.

+ * @return retryCount + */ + + @JsonProperty("retryCount") + public Integer getRetryCount(); + + /** + *

Current status of indexing the Business Unit Search.

+ * @param status value to be set + */ + + public void setStatus(final BusinessUnitIndexingStatus status); + + /** + *

Progress of indexing. Only available when indexing is in progress.

+ * @param states value to be set + */ + + public void setStates(final BusinessUnitIndexingProgress states); + + /** + *

Date and time (UTC) when the last indexing started.

+ * @param startedAt value to be set + */ + + public void setStartedAt(final ZonedDateTime startedAt); + + /** + *

Time when the status was last modified.

+ * @param lastModifiedAt value to be set + */ + + public void setLastModifiedAt(final ZonedDateTime lastModifiedAt); + + /** + *

Indicates how many times the system tried to start indexing after failed attempts. The counter is set to null after an indexing finished successfully.

+ * @param retryCount value to be set + */ + + public void setRetryCount(final Integer retryCount); + + /** + * factory method + * @return instance of BusinessUnitSearchIndexingStatusResponse + */ + public static BusinessUnitSearchIndexingStatusResponse of() { + return new BusinessUnitSearchIndexingStatusResponseImpl(); + } + + /** + * factory method to create a shallow copy BusinessUnitSearchIndexingStatusResponse + * @param template instance to be copied + * @return copy instance + */ + public static BusinessUnitSearchIndexingStatusResponse of(final BusinessUnitSearchIndexingStatusResponse template) { + BusinessUnitSearchIndexingStatusResponseImpl instance = new BusinessUnitSearchIndexingStatusResponseImpl(); + instance.setStatus(template.getStatus()); + instance.setStates(template.getStates()); + instance.setStartedAt(template.getStartedAt()); + instance.setLastModifiedAt(template.getLastModifiedAt()); + instance.setRetryCount(template.getRetryCount()); + return instance; + } + + /** + * factory method to create a deep copy of BusinessUnitSearchIndexingStatusResponse + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static BusinessUnitSearchIndexingStatusResponse deepCopy( + @Nullable final BusinessUnitSearchIndexingStatusResponse template) { + if (template == null) { + return null; + } + BusinessUnitSearchIndexingStatusResponseImpl instance = new BusinessUnitSearchIndexingStatusResponseImpl(); + instance.setStatus(template.getStatus()); + instance.setStates(com.commercetools.api.models.business_unit_search.BusinessUnitIndexingProgress + .deepCopy(template.getStates())); + instance.setStartedAt(template.getStartedAt()); + instance.setLastModifiedAt(template.getLastModifiedAt()); + instance.setRetryCount(template.getRetryCount()); + return instance; + } + + /** + * builder factory method for BusinessUnitSearchIndexingStatusResponse + * @return builder + */ + public static BusinessUnitSearchIndexingStatusResponseBuilder builder() { + return BusinessUnitSearchIndexingStatusResponseBuilder.of(); + } + + /** + * create builder for BusinessUnitSearchIndexingStatusResponse instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static BusinessUnitSearchIndexingStatusResponseBuilder builder( + final BusinessUnitSearchIndexingStatusResponse template) { + return BusinessUnitSearchIndexingStatusResponseBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withBusinessUnitSearchIndexingStatusResponse( + 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/business_unit_search/BusinessUnitSearchIndexingStatusResponseBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitSearchIndexingStatusResponseBuilder.java new file mode 100644 index 00000000000..0b9a08dae22 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitSearchIndexingStatusResponseBuilder.java @@ -0,0 +1,218 @@ + +package com.commercetools.api.models.business_unit_search; + +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; + +/** + * BusinessUnitSearchIndexingStatusResponseBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     BusinessUnitSearchIndexingStatusResponse businessUnitSearchIndexingStatusResponse = BusinessUnitSearchIndexingStatusResponse.builder()
+ *             .status(BusinessUnitIndexingStatus.SCHEDULED)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class BusinessUnitSearchIndexingStatusResponseBuilder + implements Builder { + + private com.commercetools.api.models.project.BusinessUnitIndexingStatus status; + + @Nullable + private com.commercetools.api.models.business_unit_search.BusinessUnitIndexingProgress states; + + @Nullable + private java.time.ZonedDateTime startedAt; + + @Nullable + private java.time.ZonedDateTime lastModifiedAt; + + @Nullable + private Integer retryCount; + + /** + *

Current status of indexing the Business Unit Search.

+ * @param status value to be set + * @return Builder + */ + + public BusinessUnitSearchIndexingStatusResponseBuilder status( + final com.commercetools.api.models.project.BusinessUnitIndexingStatus status) { + this.status = status; + return this; + } + + /** + *

Progress of indexing. Only available when indexing is in progress.

+ * @param builder function to build the states value + * @return Builder + */ + + public BusinessUnitSearchIndexingStatusResponseBuilder states( + Function builder) { + this.states = builder + .apply(com.commercetools.api.models.business_unit_search.BusinessUnitIndexingProgressBuilder.of()) + .build(); + return this; + } + + /** + *

Progress of indexing. Only available when indexing is in progress.

+ * @param builder function to build the states value + * @return Builder + */ + + public BusinessUnitSearchIndexingStatusResponseBuilder withStates( + Function builder) { + this.states = builder + .apply(com.commercetools.api.models.business_unit_search.BusinessUnitIndexingProgressBuilder.of()); + return this; + } + + /** + *

Progress of indexing. Only available when indexing is in progress.

+ * @param states value to be set + * @return Builder + */ + + public BusinessUnitSearchIndexingStatusResponseBuilder states( + @Nullable final com.commercetools.api.models.business_unit_search.BusinessUnitIndexingProgress states) { + this.states = states; + return this; + } + + /** + *

Date and time (UTC) when the last indexing started.

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

Time when the status was last modified.

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

Indicates how many times the system tried to start indexing after failed attempts. The counter is set to null after an indexing finished successfully.

+ * @param retryCount value to be set + * @return Builder + */ + + public BusinessUnitSearchIndexingStatusResponseBuilder retryCount(@Nullable final Integer retryCount) { + this.retryCount = retryCount; + return this; + } + + /** + *

Current status of indexing the Business Unit Search.

+ * @return status + */ + + public com.commercetools.api.models.project.BusinessUnitIndexingStatus getStatus() { + return this.status; + } + + /** + *

Progress of indexing. Only available when indexing is in progress.

+ * @return states + */ + + @Nullable + public com.commercetools.api.models.business_unit_search.BusinessUnitIndexingProgress getStates() { + return this.states; + } + + /** + *

Date and time (UTC) when the last indexing started.

+ * @return startedAt + */ + + @Nullable + public java.time.ZonedDateTime getStartedAt() { + return this.startedAt; + } + + /** + *

Time when the status was last modified.

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

Indicates how many times the system tried to start indexing after failed attempts. The counter is set to null after an indexing finished successfully.

+ * @return retryCount + */ + + @Nullable + public Integer getRetryCount() { + return this.retryCount; + } + + /** + * builds BusinessUnitSearchIndexingStatusResponse with checking for non-null required values + * @return BusinessUnitSearchIndexingStatusResponse + */ + public BusinessUnitSearchIndexingStatusResponse build() { + Objects.requireNonNull(status, BusinessUnitSearchIndexingStatusResponse.class + ": status is missing"); + return new BusinessUnitSearchIndexingStatusResponseImpl(status, states, startedAt, lastModifiedAt, retryCount); + } + + /** + * builds BusinessUnitSearchIndexingStatusResponse without checking for non-null required values + * @return BusinessUnitSearchIndexingStatusResponse + */ + public BusinessUnitSearchIndexingStatusResponse buildUnchecked() { + return new BusinessUnitSearchIndexingStatusResponseImpl(status, states, startedAt, lastModifiedAt, retryCount); + } + + /** + * factory method for an instance of BusinessUnitSearchIndexingStatusResponseBuilder + * @return builder + */ + public static BusinessUnitSearchIndexingStatusResponseBuilder of() { + return new BusinessUnitSearchIndexingStatusResponseBuilder(); + } + + /** + * create builder for BusinessUnitSearchIndexingStatusResponse instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static BusinessUnitSearchIndexingStatusResponseBuilder of( + final BusinessUnitSearchIndexingStatusResponse template) { + BusinessUnitSearchIndexingStatusResponseBuilder builder = new BusinessUnitSearchIndexingStatusResponseBuilder(); + builder.status = template.getStatus(); + builder.states = template.getStates(); + builder.startedAt = template.getStartedAt(); + builder.lastModifiedAt = template.getLastModifiedAt(); + builder.retryCount = template.getRetryCount(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitSearchIndexingStatusResponseImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitSearchIndexingStatusResponseImpl.java new file mode 100644 index 00000000000..e235338f527 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitSearchIndexingStatusResponseImpl.java @@ -0,0 +1,162 @@ + +package com.commercetools.api.models.business_unit_search; + +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; + +/** + * BusinessUnitSearchIndexingStatusResponse + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class BusinessUnitSearchIndexingStatusResponseImpl + implements BusinessUnitSearchIndexingStatusResponse, ModelBase { + + private com.commercetools.api.models.project.BusinessUnitIndexingStatus status; + + private com.commercetools.api.models.business_unit_search.BusinessUnitIndexingProgress states; + + private java.time.ZonedDateTime startedAt; + + private java.time.ZonedDateTime lastModifiedAt; + + private Integer retryCount; + + /** + * create instance with all properties + */ + @JsonCreator + BusinessUnitSearchIndexingStatusResponseImpl( + @JsonProperty("status") final com.commercetools.api.models.project.BusinessUnitIndexingStatus status, + @JsonProperty("states") final com.commercetools.api.models.business_unit_search.BusinessUnitIndexingProgress states, + @JsonProperty("startedAt") final java.time.ZonedDateTime startedAt, + @JsonProperty("lastModifiedAt") final java.time.ZonedDateTime lastModifiedAt, + @JsonProperty("retryCount") final Integer retryCount) { + this.status = status; + this.states = states; + this.startedAt = startedAt; + this.lastModifiedAt = lastModifiedAt; + this.retryCount = retryCount; + } + + /** + * create empty instance + */ + public BusinessUnitSearchIndexingStatusResponseImpl() { + } + + /** + *

Current status of indexing the Business Unit Search.

+ */ + + public com.commercetools.api.models.project.BusinessUnitIndexingStatus getStatus() { + return this.status; + } + + /** + *

Progress of indexing. Only available when indexing is in progress.

+ */ + + public com.commercetools.api.models.business_unit_search.BusinessUnitIndexingProgress getStates() { + return this.states; + } + + /** + *

Date and time (UTC) when the last indexing started.

+ */ + + public java.time.ZonedDateTime getStartedAt() { + return this.startedAt; + } + + /** + *

Time when the status was last modified.

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

Indicates how many times the system tried to start indexing after failed attempts. The counter is set to null after an indexing finished successfully.

+ */ + + public Integer getRetryCount() { + return this.retryCount; + } + + public void setStatus(final com.commercetools.api.models.project.BusinessUnitIndexingStatus status) { + this.status = status; + } + + public void setStates(final com.commercetools.api.models.business_unit_search.BusinessUnitIndexingProgress states) { + this.states = states; + } + + public void setStartedAt(final java.time.ZonedDateTime startedAt) { + this.startedAt = startedAt; + } + + public void setLastModifiedAt(final java.time.ZonedDateTime lastModifiedAt) { + this.lastModifiedAt = lastModifiedAt; + } + + public void setRetryCount(final Integer retryCount) { + this.retryCount = retryCount; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + BusinessUnitSearchIndexingStatusResponseImpl that = (BusinessUnitSearchIndexingStatusResponseImpl) o; + + return new EqualsBuilder().append(status, that.status) + .append(states, that.states) + .append(startedAt, that.startedAt) + .append(lastModifiedAt, that.lastModifiedAt) + .append(retryCount, that.retryCount) + .append(status, that.status) + .append(states, that.states) + .append(startedAt, that.startedAt) + .append(lastModifiedAt, that.lastModifiedAt) + .append(retryCount, that.retryCount) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(status) + .append(states) + .append(startedAt) + .append(lastModifiedAt) + .append(retryCount) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("status", status) + .append("states", states) + .append("startedAt", startedAt) + .append("lastModifiedAt", lastModifiedAt) + .append("retryCount", retryCount) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitSearchRequest.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitSearchRequest.java new file mode 100644 index 00000000000..22d2b1e740e --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitSearchRequest.java @@ -0,0 +1,187 @@ + +package com.commercetools.api.models.business_unit_search; + +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.search.SearchQuery; +import com.commercetools.api.models.search.SearchSorting; +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.Valid; + +/** + * BusinessUnitSearchRequest + * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     BusinessUnitSearchRequest businessUnitSearchRequest = BusinessUnitSearchRequest.builder()
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = BusinessUnitSearchRequestImpl.class) +public interface BusinessUnitSearchRequest { + + /** + *

The Business Unit Search query.

+ * @return query + */ + @Valid + @JsonProperty("query") + public SearchQuery getQuery(); + + /** + *

Controls how results to your query are sorted. If not provided, the results are sorted by relevance in descending order.

+ * @return sort + */ + @Valid + @JsonProperty("sort") + public List getSort(); + + /** + *

The maximum number of search results to be returned.

+ * @return limit + */ + + @JsonProperty("limit") + public Integer getLimit(); + + /** + *

The number of search results to be skipped in the response for pagination.

+ * @return offset + */ + + @JsonProperty("offset") + public Integer getOffset(); + + /** + *

The Business Unit Search query.

+ * @param query value to be set + */ + + public void setQuery(final SearchQuery query); + + /** + *

Controls how results to your query are sorted. If not provided, the results are sorted by relevance in descending order.

+ * @param sort values to be set + */ + + @JsonIgnore + public void setSort(final SearchSorting... sort); + + /** + *

Controls how results to your query are sorted. If not provided, the results are sorted by relevance in descending order.

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

The maximum number of search results to be returned.

+ * @param limit value to be set + */ + + public void setLimit(final Integer limit); + + /** + *

The number of search results to be skipped in the response for pagination.

+ * @param offset value to be set + */ + + public void setOffset(final Integer offset); + + /** + * factory method + * @return instance of BusinessUnitSearchRequest + */ + public static BusinessUnitSearchRequest of() { + return new BusinessUnitSearchRequestImpl(); + } + + /** + * factory method to create a shallow copy BusinessUnitSearchRequest + * @param template instance to be copied + * @return copy instance + */ + public static BusinessUnitSearchRequest of(final BusinessUnitSearchRequest template) { + BusinessUnitSearchRequestImpl instance = new BusinessUnitSearchRequestImpl(); + instance.setQuery(template.getQuery()); + instance.setSort(template.getSort()); + instance.setLimit(template.getLimit()); + instance.setOffset(template.getOffset()); + return instance; + } + + /** + * factory method to create a deep copy of BusinessUnitSearchRequest + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static BusinessUnitSearchRequest deepCopy(@Nullable final BusinessUnitSearchRequest template) { + if (template == null) { + return null; + } + BusinessUnitSearchRequestImpl instance = new BusinessUnitSearchRequestImpl(); + instance.setQuery(com.commercetools.api.models.search.SearchQuery.deepCopy(template.getQuery())); + instance.setSort(Optional.ofNullable(template.getSort()) + .map(t -> t.stream() + .map(com.commercetools.api.models.search.SearchSorting::deepCopy) + .collect(Collectors.toList())) + .orElse(null)); + instance.setLimit(template.getLimit()); + instance.setOffset(template.getOffset()); + return instance; + } + + /** + * builder factory method for BusinessUnitSearchRequest + * @return builder + */ + public static BusinessUnitSearchRequestBuilder builder() { + return BusinessUnitSearchRequestBuilder.of(); + } + + /** + * create builder for BusinessUnitSearchRequest instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static BusinessUnitSearchRequestBuilder builder(final BusinessUnitSearchRequest template) { + return BusinessUnitSearchRequestBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withBusinessUnitSearchRequest(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/business_unit_search/BusinessUnitSearchRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitSearchRequestBuilder.java new file mode 100644 index 00000000000..c9633a2da11 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitSearchRequestBuilder.java @@ -0,0 +1,263 @@ + +package com.commercetools.api.models.business_unit_search; + +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; + +/** + * BusinessUnitSearchRequestBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     BusinessUnitSearchRequest businessUnitSearchRequest = BusinessUnitSearchRequest.builder()
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class BusinessUnitSearchRequestBuilder implements Builder { + + @Nullable + private com.commercetools.api.models.search.SearchQuery query; + + @Nullable + private java.util.List sort; + + @Nullable + private Integer limit; + + @Nullable + private Integer offset; + + /** + *

The Business Unit Search query.

+ * @param builder function to build the query value + * @return Builder + */ + + public BusinessUnitSearchRequestBuilder query( + Function builder) { + this.query = builder.apply(com.commercetools.api.models.search.SearchQueryBuilder.of()).build(); + return this; + } + + /** + *

The Business Unit Search query.

+ * @param builder function to build the query value + * @return Builder + */ + + public BusinessUnitSearchRequestBuilder withQuery( + Function builder) { + this.query = builder.apply(com.commercetools.api.models.search.SearchQueryBuilder.of()); + return this; + } + + /** + *

The Business Unit Search query.

+ * @param query value to be set + * @return Builder + */ + + public BusinessUnitSearchRequestBuilder query( + @Nullable final com.commercetools.api.models.search.SearchQuery query) { + this.query = query; + return this; + } + + /** + *

Controls how results to your query are sorted. If not provided, the results are sorted by relevance in descending order.

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

Controls how results to your query are sorted. If not provided, the results are sorted by relevance in descending order.

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

Controls how results to your query are sorted. If not provided, the results are sorted by relevance in descending order.

+ * @param sort value to be set + * @return Builder + */ + + public BusinessUnitSearchRequestBuilder plusSort( + @Nullable final com.commercetools.api.models.search.SearchSorting... sort) { + if (this.sort == null) { + this.sort = new ArrayList<>(); + } + this.sort.addAll(Arrays.asList(sort)); + return this; + } + + /** + *

Controls how results to your query are sorted. If not provided, the results are sorted by relevance in descending order.

+ * @param builder function to build the sort value + * @return Builder + */ + + public BusinessUnitSearchRequestBuilder plusSort( + Function builder) { + if (this.sort == null) { + this.sort = new ArrayList<>(); + } + this.sort.add(builder.apply(com.commercetools.api.models.search.SearchSortingBuilder.of()).build()); + return this; + } + + /** + *

Controls how results to your query are sorted. If not provided, the results are sorted by relevance in descending order.

+ * @param builder function to build the sort value + * @return Builder + */ + + public BusinessUnitSearchRequestBuilder withSort( + Function builder) { + this.sort = new ArrayList<>(); + this.sort.add(builder.apply(com.commercetools.api.models.search.SearchSortingBuilder.of()).build()); + return this; + } + + /** + *

Controls how results to your query are sorted. If not provided, the results are sorted by relevance in descending order.

+ * @param builder function to build the sort value + * @return Builder + */ + + public BusinessUnitSearchRequestBuilder addSort( + Function builder) { + return plusSort(builder.apply(com.commercetools.api.models.search.SearchSortingBuilder.of())); + } + + /** + *

Controls how results to your query are sorted. If not provided, the results are sorted by relevance in descending order.

+ * @param builder function to build the sort value + * @return Builder + */ + + public BusinessUnitSearchRequestBuilder setSort( + Function builder) { + return sort(builder.apply(com.commercetools.api.models.search.SearchSortingBuilder.of())); + } + + /** + *

The maximum number of search results to be returned.

+ * @param limit value to be set + * @return Builder + */ + + public BusinessUnitSearchRequestBuilder limit(@Nullable final Integer limit) { + this.limit = limit; + return this; + } + + /** + *

The number of search results to be skipped in the response for pagination.

+ * @param offset value to be set + * @return Builder + */ + + public BusinessUnitSearchRequestBuilder offset(@Nullable final Integer offset) { + this.offset = offset; + return this; + } + + /** + *

The Business Unit Search query.

+ * @return query + */ + + @Nullable + public com.commercetools.api.models.search.SearchQuery getQuery() { + return this.query; + } + + /** + *

Controls how results to your query are sorted. If not provided, the results are sorted by relevance in descending order.

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

The maximum number of search results to be returned.

+ * @return limit + */ + + @Nullable + public Integer getLimit() { + return this.limit; + } + + /** + *

The number of search results to be skipped in the response for pagination.

+ * @return offset + */ + + @Nullable + public Integer getOffset() { + return this.offset; + } + + /** + * builds BusinessUnitSearchRequest with checking for non-null required values + * @return BusinessUnitSearchRequest + */ + public BusinessUnitSearchRequest build() { + return new BusinessUnitSearchRequestImpl(query, sort, limit, offset); + } + + /** + * builds BusinessUnitSearchRequest without checking for non-null required values + * @return BusinessUnitSearchRequest + */ + public BusinessUnitSearchRequest buildUnchecked() { + return new BusinessUnitSearchRequestImpl(query, sort, limit, offset); + } + + /** + * factory method for an instance of BusinessUnitSearchRequestBuilder + * @return builder + */ + public static BusinessUnitSearchRequestBuilder of() { + return new BusinessUnitSearchRequestBuilder(); + } + + /** + * create builder for BusinessUnitSearchRequest instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static BusinessUnitSearchRequestBuilder of(final BusinessUnitSearchRequest template) { + BusinessUnitSearchRequestBuilder builder = new BusinessUnitSearchRequestBuilder(); + builder.query = template.getQuery(); + builder.sort = template.getSort(); + builder.limit = template.getLimit(); + builder.offset = template.getOffset(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitSearchRequestImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitSearchRequestImpl.java new file mode 100644 index 00000000000..ef9c91c90a3 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitSearchRequestImpl.java @@ -0,0 +1,139 @@ + +package com.commercetools.api.models.business_unit_search; + +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; + +/** + * BusinessUnitSearchRequest + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class BusinessUnitSearchRequestImpl implements BusinessUnitSearchRequest, ModelBase { + + private com.commercetools.api.models.search.SearchQuery query; + + private java.util.List sort; + + private Integer limit; + + private Integer offset; + + /** + * create instance with all properties + */ + @JsonCreator + BusinessUnitSearchRequestImpl(@JsonProperty("query") final com.commercetools.api.models.search.SearchQuery query, + @JsonProperty("sort") final java.util.List sort, + @JsonProperty("limit") final Integer limit, @JsonProperty("offset") final Integer offset) { + this.query = query; + this.sort = sort; + this.limit = limit; + this.offset = offset; + } + + /** + * create empty instance + */ + public BusinessUnitSearchRequestImpl() { + } + + /** + *

The Business Unit Search query.

+ */ + + public com.commercetools.api.models.search.SearchQuery getQuery() { + return this.query; + } + + /** + *

Controls how results to your query are sorted. If not provided, the results are sorted by relevance in descending order.

+ */ + + public java.util.List getSort() { + return this.sort; + } + + /** + *

The maximum number of search results to be returned.

+ */ + + public Integer getLimit() { + return this.limit; + } + + /** + *

The number of search results to be skipped in the response for pagination.

+ */ + + public Integer getOffset() { + return this.offset; + } + + public void setQuery(final com.commercetools.api.models.search.SearchQuery query) { + this.query = query; + } + + public void setSort(final com.commercetools.api.models.search.SearchSorting... sort) { + this.sort = new ArrayList<>(Arrays.asList(sort)); + } + + public void setSort(final java.util.List sort) { + this.sort = sort; + } + + public void setLimit(final Integer limit) { + this.limit = limit; + } + + public void setOffset(final Integer offset) { + this.offset = offset; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + BusinessUnitSearchRequestImpl that = (BusinessUnitSearchRequestImpl) o; + + return new EqualsBuilder().append(query, that.query) + .append(sort, that.sort) + .append(limit, that.limit) + .append(offset, that.offset) + .append(query, that.query) + .append(sort, that.sort) + .append(limit, that.limit) + .append(offset, that.offset) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(query).append(sort).append(limit).append(offset).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("query", query) + .append("sort", sort) + .append("limit", limit) + .append("offset", offset) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitSearchResult.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitSearchResult.java new file mode 100644 index 00000000000..98851d9f9ce --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitSearchResult.java @@ -0,0 +1,140 @@ + +package com.commercetools.api.models.business_unit_search; + +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.constraints.NotNull; + +/** + * BusinessUnitSearchResult + * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     BusinessUnitSearchResult businessUnitSearchResult = BusinessUnitSearchResult.builder()
+ *             .id("{id}")
+ *             .relevance(0.3)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = BusinessUnitSearchResultImpl.class) +public interface BusinessUnitSearchResult { + + /** + *

id of the BusinessUnit matching the search query.

+ * @return id + */ + @NotNull + @JsonProperty("id") + public String getId(); + + /** + *

How closely this customer matches the search query.

+ * @return relevance + */ + @NotNull + @JsonProperty("relevance") + public Double getRelevance(); + + /** + *

id of the BusinessUnit matching the search query.

+ * @param id value to be set + */ + + public void setId(final String id); + + /** + *

How closely this customer matches the search query.

+ * @param relevance value to be set + */ + + public void setRelevance(final Double relevance); + + /** + * factory method + * @return instance of BusinessUnitSearchResult + */ + public static BusinessUnitSearchResult of() { + return new BusinessUnitSearchResultImpl(); + } + + /** + * factory method to create a shallow copy BusinessUnitSearchResult + * @param template instance to be copied + * @return copy instance + */ + public static BusinessUnitSearchResult of(final BusinessUnitSearchResult template) { + BusinessUnitSearchResultImpl instance = new BusinessUnitSearchResultImpl(); + instance.setId(template.getId()); + instance.setRelevance(template.getRelevance()); + return instance; + } + + /** + * factory method to create a deep copy of BusinessUnitSearchResult + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static BusinessUnitSearchResult deepCopy(@Nullable final BusinessUnitSearchResult template) { + if (template == null) { + return null; + } + BusinessUnitSearchResultImpl instance = new BusinessUnitSearchResultImpl(); + instance.setId(template.getId()); + instance.setRelevance(template.getRelevance()); + return instance; + } + + /** + * builder factory method for BusinessUnitSearchResult + * @return builder + */ + public static BusinessUnitSearchResultBuilder builder() { + return BusinessUnitSearchResultBuilder.of(); + } + + /** + * create builder for BusinessUnitSearchResult instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static BusinessUnitSearchResultBuilder builder(final BusinessUnitSearchResult template) { + return BusinessUnitSearchResultBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withBusinessUnitSearchResult(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/business_unit_search/BusinessUnitSearchResultBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitSearchResultBuilder.java new file mode 100644 index 00000000000..24f1dade860 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitSearchResultBuilder.java @@ -0,0 +1,107 @@ + +package com.commercetools.api.models.business_unit_search; + +import java.util.*; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * BusinessUnitSearchResultBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     BusinessUnitSearchResult businessUnitSearchResult = BusinessUnitSearchResult.builder()
+ *             .id("{id}")
+ *             .relevance(0.3)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class BusinessUnitSearchResultBuilder implements Builder { + + private String id; + + private Double relevance; + + /** + *

id of the BusinessUnit matching the search query.

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

How closely this customer matches the search query.

+ * @param relevance value to be set + * @return Builder + */ + + public BusinessUnitSearchResultBuilder relevance(final Double relevance) { + this.relevance = relevance; + return this; + } + + /** + *

id of the BusinessUnit matching the search query.

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

How closely this customer matches the search query.

+ * @return relevance + */ + + public Double getRelevance() { + return this.relevance; + } + + /** + * builds BusinessUnitSearchResult with checking for non-null required values + * @return BusinessUnitSearchResult + */ + public BusinessUnitSearchResult build() { + Objects.requireNonNull(id, BusinessUnitSearchResult.class + ": id is missing"); + Objects.requireNonNull(relevance, BusinessUnitSearchResult.class + ": relevance is missing"); + return new BusinessUnitSearchResultImpl(id, relevance); + } + + /** + * builds BusinessUnitSearchResult without checking for non-null required values + * @return BusinessUnitSearchResult + */ + public BusinessUnitSearchResult buildUnchecked() { + return new BusinessUnitSearchResultImpl(id, relevance); + } + + /** + * factory method for an instance of BusinessUnitSearchResultBuilder + * @return builder + */ + public static BusinessUnitSearchResultBuilder of() { + return new BusinessUnitSearchResultBuilder(); + } + + /** + * create builder for BusinessUnitSearchResult instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static BusinessUnitSearchResultBuilder of(final BusinessUnitSearchResult template) { + BusinessUnitSearchResultBuilder builder = new BusinessUnitSearchResultBuilder(); + builder.id = template.getId(); + builder.relevance = template.getRelevance(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitSearchResultImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitSearchResultImpl.java new file mode 100644 index 00000000000..79141a1be0a --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitSearchResultImpl.java @@ -0,0 +1,98 @@ + +package com.commercetools.api.models.business_unit_search; + +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; + +/** + * BusinessUnitSearchResult + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class BusinessUnitSearchResultImpl implements BusinessUnitSearchResult, ModelBase { + + private String id; + + private Double relevance; + + /** + * create instance with all properties + */ + @JsonCreator + BusinessUnitSearchResultImpl(@JsonProperty("id") final String id, + @JsonProperty("relevance") final Double relevance) { + this.id = id; + this.relevance = relevance; + } + + /** + * create empty instance + */ + public BusinessUnitSearchResultImpl() { + } + + /** + *

id of the BusinessUnit matching the search query.

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

How closely this customer matches the search query.

+ */ + + public Double getRelevance() { + return this.relevance; + } + + public void setId(final String id) { + this.id = id; + } + + public void setRelevance(final Double relevance) { + this.relevance = relevance; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + BusinessUnitSearchResultImpl that = (BusinessUnitSearchResultImpl) o; + + return new EqualsBuilder().append(id, that.id) + .append(relevance, that.relevance) + .append(id, that.id) + .append(relevance, that.relevance) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(id).append(relevance).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("id", id) + .append("relevance", relevance) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/BusinessUnitIndexingStatus.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/BusinessUnitIndexingStatus.java new file mode 100644 index 00000000000..4ff4e739a77 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/BusinessUnitIndexingStatus.java @@ -0,0 +1,131 @@ + +package com.commercetools.api.models.project; + +import java.util.Arrays; +import java.util.Optional; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +import io.vrap.rmf.base.client.JsonEnum; +import io.vrap.rmf.base.client.utils.Generated; + +/** + *

The current indexing status of Business Unit Search.

+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public interface BusinessUnitIndexingStatus extends JsonEnum { + + /** +

Indexing is scheduled.

*/ + BusinessUnitIndexingStatus SCHEDULED = BusinessUnitIndexingStatusEnum.SCHEDULED; + /** +

Indexing is in progress.

*/ + BusinessUnitIndexingStatus INDEXING = BusinessUnitIndexingStatusEnum.INDEXING; + /** +

Indexing is complete and the Search Business Units endpoint returns up-to-date results.

*/ + BusinessUnitIndexingStatus READY = BusinessUnitIndexingStatusEnum.READY; + /** +

Indexing failed due to an internal error.

*/ + BusinessUnitIndexingStatus FAILED = BusinessUnitIndexingStatusEnum.FAILED; + + /** + * possible values of BusinessUnitIndexingStatus + */ + enum BusinessUnitIndexingStatusEnum implements BusinessUnitIndexingStatus { + /** + * Scheduled + */ + SCHEDULED("Scheduled"), + + /** + * Indexing + */ + INDEXING("Indexing"), + + /** + * Ready + */ + READY("Ready"), + + /** + * Failed + */ + FAILED("Failed"); + private final String jsonName; + + private BusinessUnitIndexingStatusEnum(final String jsonName) { + this.jsonName = jsonName; + } + + public String getJsonName() { + return jsonName; + } + + public String toString() { + return jsonName; + } + } + + /** + * the JSON value + * @return json value + */ + @JsonValue + String getJsonName(); + + /** + * the enum value + * @return name + */ + String name(); + + /** + * convert value to string + * @return string representation + */ + String toString(); + + /** + * factory method for a enum value of BusinessUnitIndexingStatus + * if no enum has been found an anonymous instance will be created + * @param value the enum value to be wrapped + * @return enum instance + */ + @JsonCreator + public static BusinessUnitIndexingStatus findEnum(String value) { + return findEnumViaJsonName(value).orElse(new BusinessUnitIndexingStatus() { + @Override + public String getJsonName() { + return value; + } + + @Override + public String name() { + return value.toUpperCase(); + } + + public String toString() { + return value; + } + }); + } + + /** + * method to find enum using the JSON value + * @param jsonName the json value to be wrapped + * @return optional of enum instance + */ + public static Optional findEnumViaJsonName(String jsonName) { + return Arrays.stream(values()).filter(t -> t.getJsonName().equals(jsonName)).findFirst(); + } + + /** + * possible enum values + * @return array of possible enum values + */ + public static BusinessUnitIndexingStatus[] values() { + return BusinessUnitIndexingStatusEnum.values(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/BusinessUnitSearchStatus.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/BusinessUnitSearchStatus.java new file mode 100644 index 00000000000..2dfce59c0bb --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/BusinessUnitSearchStatus.java @@ -0,0 +1,115 @@ + +package com.commercetools.api.models.project; + +import java.util.Arrays; +import java.util.Optional; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +import io.vrap.rmf.base.client.JsonEnum; +import io.vrap.rmf.base.client.utils.Generated; + +/** + *

Specifies the status of the Business Unit Search index. You can change the status using the Change Business Unit Search Status update action.

+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public interface BusinessUnitSearchStatus extends JsonEnum { + + /** +

indicates that the Business Unit Search feature is fully operational.

*/ + BusinessUnitSearchStatus ACTIVATED = BusinessUnitSearchStatusEnum.ACTIVATED; + /** +

indicates that the Business Unit Search feature is currently not active.

*/ + BusinessUnitSearchStatus DEACTIVATED = BusinessUnitSearchStatusEnum.DEACTIVATED; + + /** + * possible values of BusinessUnitSearchStatus + */ + enum BusinessUnitSearchStatusEnum implements BusinessUnitSearchStatus { + /** + * Activated + */ + ACTIVATED("Activated"), + + /** + * Deactivated + */ + DEACTIVATED("Deactivated"); + private final String jsonName; + + private BusinessUnitSearchStatusEnum(final String jsonName) { + this.jsonName = jsonName; + } + + public String getJsonName() { + return jsonName; + } + + public String toString() { + return jsonName; + } + } + + /** + * the JSON value + * @return json value + */ + @JsonValue + String getJsonName(); + + /** + * the enum value + * @return name + */ + String name(); + + /** + * convert value to string + * @return string representation + */ + String toString(); + + /** + * factory method for a enum value of BusinessUnitSearchStatus + * if no enum has been found an anonymous instance will be created + * @param value the enum value to be wrapped + * @return enum instance + */ + @JsonCreator + public static BusinessUnitSearchStatus findEnum(String value) { + return findEnumViaJsonName(value).orElse(new BusinessUnitSearchStatus() { + @Override + public String getJsonName() { + return value; + } + + @Override + public String name() { + return value.toUpperCase(); + } + + public String toString() { + return value; + } + }); + } + + /** + * method to find enum using the JSON value + * @param jsonName the json value to be wrapped + * @return optional of enum instance + */ + public static Optional findEnumViaJsonName(String jsonName) { + return Arrays.stream(values()).filter(t -> t.getJsonName().equals(jsonName)).findFirst(); + } + + /** + * possible enum values + * @return array of possible enum values + */ + public static BusinessUnitSearchStatus[] values() { + return BusinessUnitSearchStatusEnum.values(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/ProjectChangeBusinessUnitSearchStatusAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/ProjectChangeBusinessUnitSearchStatusAction.java new file mode 100644 index 00000000000..120643707c0 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/ProjectChangeBusinessUnitSearchStatusAction.java @@ -0,0 +1,131 @@ + +package com.commercetools.api.models.project; + +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.constraints.NotNull; + +/** + * ProjectChangeBusinessUnitSearchStatusAction + * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProjectChangeBusinessUnitSearchStatusAction projectChangeBusinessUnitSearchStatusAction = ProjectChangeBusinessUnitSearchStatusAction.builder()
+ *             .status(BusinessUnitSearchStatus.ACTIVATED)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ProjectChangeBusinessUnitSearchStatusActionImpl.class) +public interface ProjectChangeBusinessUnitSearchStatusAction extends ProjectUpdateAction { + + /** + * discriminator value for ProjectChangeBusinessUnitSearchStatusAction + */ + String CHANGE_BUSINESS_UNIT_SEARCH_STATUS = "changeBusinessUnitSearchStatus"; + + /** + *

Activates or deactivates the Search Business Units feature. Activation will trigger building a search index for the Business Units in the Project.

+ * @return status + */ + @NotNull + @JsonProperty("status") + public BusinessUnitSearchStatus getStatus(); + + /** + *

Activates or deactivates the Search Business Units feature. Activation will trigger building a search index for the Business Units in the Project.

+ * @param status value to be set + */ + + public void setStatus(final BusinessUnitSearchStatus status); + + /** + * factory method + * @return instance of ProjectChangeBusinessUnitSearchStatusAction + */ + public static ProjectChangeBusinessUnitSearchStatusAction of() { + return new ProjectChangeBusinessUnitSearchStatusActionImpl(); + } + + /** + * factory method to create a shallow copy ProjectChangeBusinessUnitSearchStatusAction + * @param template instance to be copied + * @return copy instance + */ + public static ProjectChangeBusinessUnitSearchStatusAction of( + final ProjectChangeBusinessUnitSearchStatusAction template) { + ProjectChangeBusinessUnitSearchStatusActionImpl instance = new ProjectChangeBusinessUnitSearchStatusActionImpl(); + instance.setStatus(template.getStatus()); + return instance; + } + + /** + * factory method to create a deep copy of ProjectChangeBusinessUnitSearchStatusAction + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ProjectChangeBusinessUnitSearchStatusAction deepCopy( + @Nullable final ProjectChangeBusinessUnitSearchStatusAction template) { + if (template == null) { + return null; + } + ProjectChangeBusinessUnitSearchStatusActionImpl instance = new ProjectChangeBusinessUnitSearchStatusActionImpl(); + instance.setStatus(template.getStatus()); + return instance; + } + + /** + * builder factory method for ProjectChangeBusinessUnitSearchStatusAction + * @return builder + */ + public static ProjectChangeBusinessUnitSearchStatusActionBuilder builder() { + return ProjectChangeBusinessUnitSearchStatusActionBuilder.of(); + } + + /** + * create builder for ProjectChangeBusinessUnitSearchStatusAction instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProjectChangeBusinessUnitSearchStatusActionBuilder builder( + final ProjectChangeBusinessUnitSearchStatusAction template) { + return ProjectChangeBusinessUnitSearchStatusActionBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withProjectChangeBusinessUnitSearchStatusAction( + 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/project/ProjectChangeBusinessUnitSearchStatusActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/ProjectChangeBusinessUnitSearchStatusActionBuilder.java new file mode 100644 index 00000000000..9d56cb0da64 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/ProjectChangeBusinessUnitSearchStatusActionBuilder.java @@ -0,0 +1,85 @@ + +package com.commercetools.api.models.project; + +import java.util.*; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProjectChangeBusinessUnitSearchStatusActionBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProjectChangeBusinessUnitSearchStatusAction projectChangeBusinessUnitSearchStatusAction = ProjectChangeBusinessUnitSearchStatusAction.builder()
+ *             .status(BusinessUnitSearchStatus.ACTIVATED)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProjectChangeBusinessUnitSearchStatusActionBuilder + implements Builder { + + private com.commercetools.api.models.project.BusinessUnitSearchStatus status; + + /** + *

Activates or deactivates the Search Business Units feature. Activation will trigger building a search index for the Business Units in the Project.

+ * @param status value to be set + * @return Builder + */ + + public ProjectChangeBusinessUnitSearchStatusActionBuilder status( + final com.commercetools.api.models.project.BusinessUnitSearchStatus status) { + this.status = status; + return this; + } + + /** + *

Activates or deactivates the Search Business Units feature. Activation will trigger building a search index for the Business Units in the Project.

+ * @return status + */ + + public com.commercetools.api.models.project.BusinessUnitSearchStatus getStatus() { + return this.status; + } + + /** + * builds ProjectChangeBusinessUnitSearchStatusAction with checking for non-null required values + * @return ProjectChangeBusinessUnitSearchStatusAction + */ + public ProjectChangeBusinessUnitSearchStatusAction build() { + Objects.requireNonNull(status, ProjectChangeBusinessUnitSearchStatusAction.class + ": status is missing"); + return new ProjectChangeBusinessUnitSearchStatusActionImpl(status); + } + + /** + * builds ProjectChangeBusinessUnitSearchStatusAction without checking for non-null required values + * @return ProjectChangeBusinessUnitSearchStatusAction + */ + public ProjectChangeBusinessUnitSearchStatusAction buildUnchecked() { + return new ProjectChangeBusinessUnitSearchStatusActionImpl(status); + } + + /** + * factory method for an instance of ProjectChangeBusinessUnitSearchStatusActionBuilder + * @return builder + */ + public static ProjectChangeBusinessUnitSearchStatusActionBuilder of() { + return new ProjectChangeBusinessUnitSearchStatusActionBuilder(); + } + + /** + * create builder for ProjectChangeBusinessUnitSearchStatusAction instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProjectChangeBusinessUnitSearchStatusActionBuilder of( + final ProjectChangeBusinessUnitSearchStatusAction template) { + ProjectChangeBusinessUnitSearchStatusActionBuilder builder = new ProjectChangeBusinessUnitSearchStatusActionBuilder(); + builder.status = template.getStatus(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/ProjectChangeBusinessUnitSearchStatusActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/ProjectChangeBusinessUnitSearchStatusActionImpl.java new file mode 100644 index 00000000000..0446f6741c4 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/ProjectChangeBusinessUnitSearchStatusActionImpl.java @@ -0,0 +1,96 @@ + +package com.commercetools.api.models.project; + +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; + +/** + * ProjectChangeBusinessUnitSearchStatusAction + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProjectChangeBusinessUnitSearchStatusActionImpl + implements ProjectChangeBusinessUnitSearchStatusAction, ModelBase { + + private String action; + + private com.commercetools.api.models.project.BusinessUnitSearchStatus status; + + /** + * create instance with all properties + */ + @JsonCreator + ProjectChangeBusinessUnitSearchStatusActionImpl( + @JsonProperty("status") final com.commercetools.api.models.project.BusinessUnitSearchStatus status) { + this.status = status; + this.action = CHANGE_BUSINESS_UNIT_SEARCH_STATUS; + } + + /** + * create empty instance + */ + public ProjectChangeBusinessUnitSearchStatusActionImpl() { + this.action = CHANGE_BUSINESS_UNIT_SEARCH_STATUS; + } + + /** + * + */ + + public String getAction() { + return this.action; + } + + /** + *

Activates or deactivates the Search Business Units feature. Activation will trigger building a search index for the Business Units in the Project.

+ */ + + public com.commercetools.api.models.project.BusinessUnitSearchStatus getStatus() { + return this.status; + } + + public void setStatus(final com.commercetools.api.models.project.BusinessUnitSearchStatus status) { + this.status = status; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ProjectChangeBusinessUnitSearchStatusActionImpl that = (ProjectChangeBusinessUnitSearchStatusActionImpl) o; + + return new EqualsBuilder().append(action, that.action) + .append(status, that.status) + .append(action, that.action) + .append(status, that.status) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(action).append(status).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("action", action) + .append("status", status) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/ProjectUpdateAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/ProjectUpdateAction.java index c4ca967541d..cb18d94c326 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/ProjectUpdateAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/ProjectUpdateAction.java @@ -21,13 +21,14 @@ * Example to create a subtype instance using the builder pattern *
*

- *     ProjectUpdateAction projectUpdateAction = ProjectUpdateAction.changeMyBusinessUnitStatusOnCreationBuilder()
- *             status(BusinessUnitConfigurationStatus.ACTIVE)
+ *     ProjectUpdateAction projectUpdateAction = ProjectUpdateAction.changeBusinessUnitSearchStatusBuilder()
+ *             status(BusinessUnitSearchStatus.ACTIVATED)
  *             .build()
  * 
*
*/ @JsonSubTypes({ + @JsonSubTypes.Type(value = com.commercetools.api.models.project.ProjectChangeBusinessUnitSearchStatusActionImpl.class, name = ProjectChangeBusinessUnitSearchStatusAction.CHANGE_BUSINESS_UNIT_SEARCH_STATUS), @JsonSubTypes.Type(value = com.commercetools.api.models.project.ProjectChangeBusinessUnitStatusOnCreationActionImpl.class, name = ProjectChangeBusinessUnitStatusOnCreationAction.CHANGE_MY_BUSINESS_UNIT_STATUS_ON_CREATION), @JsonSubTypes.Type(value = com.commercetools.api.models.project.ProjectChangeCartsConfigurationActionImpl.class, name = ProjectChangeCartsConfigurationAction.CHANGE_CARTS_CONFIGURATION), @JsonSubTypes.Type(value = com.commercetools.api.models.project.ProjectChangeCountriesActionImpl.class, name = ProjectChangeCountriesAction.CHANGE_COUNTRIES), @@ -66,6 +67,10 @@ public static ProjectUpdateAction deepCopy(@Nullable final ProjectUpdateAction t if (template == null) { return null; } + if (template instanceof com.commercetools.api.models.project.ProjectChangeBusinessUnitSearchStatusAction) { + return com.commercetools.api.models.project.ProjectChangeBusinessUnitSearchStatusAction.deepCopy( + (com.commercetools.api.models.project.ProjectChangeBusinessUnitSearchStatusAction) template); + } if (template instanceof com.commercetools.api.models.project.ProjectChangeBusinessUnitStatusOnCreationAction) { return com.commercetools.api.models.project.ProjectChangeBusinessUnitStatusOnCreationAction.deepCopy( (com.commercetools.api.models.project.ProjectChangeBusinessUnitStatusOnCreationAction) template); @@ -130,6 +135,14 @@ public static ProjectUpdateAction deepCopy(@Nullable final ProjectUpdateAction t return instance; } + /** + * builder for changeBusinessUnitSearchStatus subtype + * @return builder + */ + public static com.commercetools.api.models.project.ProjectChangeBusinessUnitSearchStatusActionBuilder changeBusinessUnitSearchStatusBuilder() { + return com.commercetools.api.models.project.ProjectChangeBusinessUnitSearchStatusActionBuilder.of(); + } + /** * builder for changeMyBusinessUnitStatusOnCreation subtype * @return builder diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/ProjectUpdateActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/ProjectUpdateActionBuilder.java index 77ec6db845b..9cfad068e57 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/ProjectUpdateActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/ProjectUpdateActionBuilder.java @@ -11,6 +11,10 @@ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class ProjectUpdateActionBuilder { + public com.commercetools.api.models.project.ProjectChangeBusinessUnitSearchStatusActionBuilder changeBusinessUnitSearchStatusBuilder() { + return com.commercetools.api.models.project.ProjectChangeBusinessUnitSearchStatusActionBuilder.of(); + } + public com.commercetools.api.models.project.ProjectChangeBusinessUnitStatusOnCreationActionBuilder changeMyBusinessUnitStatusOnCreationBuilder() { return com.commercetools.api.models.project.ProjectChangeBusinessUnitStatusOnCreationActionBuilder.of(); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/SearchIndexingConfiguration.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/SearchIndexingConfiguration.java index 9111be8fecc..2307cbbd040 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/SearchIndexingConfiguration.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/SearchIndexingConfiguration.java @@ -62,6 +62,14 @@ public interface SearchIndexingConfiguration { @JsonProperty("customers") public SearchIndexingConfigurationValues getCustomers(); + /** + *

Configuration for the Business Unit Search feature.

+ * @return businessUnits + */ + @Valid + @JsonProperty("businessUnits") + public SearchIndexingConfigurationValues getBusinessUnits(); + /** *

Configuration for the Product Projection Search and Product Suggestions endpoints.

* @param products value to be set @@ -90,6 +98,13 @@ public interface SearchIndexingConfiguration { public void setCustomers(final SearchIndexingConfigurationValues customers); + /** + *

Configuration for the Business Unit Search feature.

+ * @param businessUnits value to be set + */ + + public void setBusinessUnits(final SearchIndexingConfigurationValues businessUnits); + /** * factory method * @return instance of SearchIndexingConfiguration @@ -109,6 +124,7 @@ public static SearchIndexingConfiguration of(final SearchIndexingConfiguration t instance.setProductsSearch(template.getProductsSearch()); instance.setOrders(template.getOrders()); instance.setCustomers(template.getCustomers()); + instance.setBusinessUnits(template.getBusinessUnits()); return instance; } @@ -131,6 +147,8 @@ public static SearchIndexingConfiguration deepCopy(@Nullable final SearchIndexin com.commercetools.api.models.project.SearchIndexingConfigurationValues.deepCopy(template.getOrders())); instance.setCustomers( com.commercetools.api.models.project.SearchIndexingConfigurationValues.deepCopy(template.getCustomers())); + instance.setBusinessUnits(com.commercetools.api.models.project.SearchIndexingConfigurationValues + .deepCopy(template.getBusinessUnits())); return instance; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/SearchIndexingConfigurationBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/SearchIndexingConfigurationBuilder.java index b1564bf7d4e..2d236ed5faf 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/SearchIndexingConfigurationBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/SearchIndexingConfigurationBuilder.java @@ -35,6 +35,9 @@ public class SearchIndexingConfigurationBuilder implements BuilderConfiguration for the Product Projection Search and Product Suggestions endpoints.

* @param builder function to build the products value @@ -189,6 +192,45 @@ public SearchIndexingConfigurationBuilder customers( return this; } + /** + *

Configuration for the Business Unit Search feature.

+ * @param builder function to build the businessUnits value + * @return Builder + */ + + public SearchIndexingConfigurationBuilder businessUnits( + Function builder) { + this.businessUnits = builder + .apply(com.commercetools.api.models.project.SearchIndexingConfigurationValuesBuilder.of()) + .build(); + return this; + } + + /** + *

Configuration for the Business Unit Search feature.

+ * @param builder function to build the businessUnits value + * @return Builder + */ + + public SearchIndexingConfigurationBuilder withBusinessUnits( + Function builder) { + this.businessUnits = builder + .apply(com.commercetools.api.models.project.SearchIndexingConfigurationValuesBuilder.of()); + return this; + } + + /** + *

Configuration for the Business Unit Search feature.

+ * @param businessUnits value to be set + * @return Builder + */ + + public SearchIndexingConfigurationBuilder businessUnits( + @Nullable final com.commercetools.api.models.project.SearchIndexingConfigurationValues businessUnits) { + this.businessUnits = businessUnits; + return this; + } + /** *

Configuration for the Product Projection Search and Product Suggestions endpoints.

* @return products @@ -229,12 +271,22 @@ public com.commercetools.api.models.project.SearchIndexingConfigurationValues ge return this.customers; } + /** + *

Configuration for the Business Unit Search feature.

+ * @return businessUnits + */ + + @Nullable + public com.commercetools.api.models.project.SearchIndexingConfigurationValues getBusinessUnits() { + return this.businessUnits; + } + /** * builds SearchIndexingConfiguration with checking for non-null required values * @return SearchIndexingConfiguration */ public SearchIndexingConfiguration build() { - return new SearchIndexingConfigurationImpl(products, productsSearch, orders, customers); + return new SearchIndexingConfigurationImpl(products, productsSearch, orders, customers, businessUnits); } /** @@ -242,7 +294,7 @@ public SearchIndexingConfiguration build() { * @return SearchIndexingConfiguration */ public SearchIndexingConfiguration buildUnchecked() { - return new SearchIndexingConfigurationImpl(products, productsSearch, orders, customers); + return new SearchIndexingConfigurationImpl(products, productsSearch, orders, customers, businessUnits); } /** @@ -264,6 +316,7 @@ public static SearchIndexingConfigurationBuilder of(final SearchIndexingConfigur builder.productsSearch = template.getProductsSearch(); builder.orders = template.getOrders(); builder.customers = template.getCustomers(); + builder.businessUnits = template.getBusinessUnits(); return builder; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/SearchIndexingConfigurationImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/SearchIndexingConfigurationImpl.java index 6d12b103a1b..c00cd972cae 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/SearchIndexingConfigurationImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/SearchIndexingConfigurationImpl.java @@ -30,6 +30,8 @@ public class SearchIndexingConfigurationImpl implements SearchIndexingConfigurat private com.commercetools.api.models.project.SearchIndexingConfigurationValues customers; + private com.commercetools.api.models.project.SearchIndexingConfigurationValues businessUnits; + /** * create instance with all properties */ @@ -38,11 +40,13 @@ public class SearchIndexingConfigurationImpl implements SearchIndexingConfigurat @JsonProperty("products") final com.commercetools.api.models.project.SearchIndexingConfigurationValues products, @JsonProperty("productsSearch") final com.commercetools.api.models.project.SearchIndexingConfigurationValues productsSearch, @JsonProperty("orders") final com.commercetools.api.models.project.SearchIndexingConfigurationValues orders, - @JsonProperty("customers") final com.commercetools.api.models.project.SearchIndexingConfigurationValues customers) { + @JsonProperty("customers") final com.commercetools.api.models.project.SearchIndexingConfigurationValues customers, + @JsonProperty("businessUnits") final com.commercetools.api.models.project.SearchIndexingConfigurationValues businessUnits) { this.products = products; this.productsSearch = productsSearch; this.orders = orders; this.customers = customers; + this.businessUnits = businessUnits; } /** @@ -83,6 +87,14 @@ public com.commercetools.api.models.project.SearchIndexingConfigurationValues ge return this.customers; } + /** + *

Configuration for the Business Unit Search feature.

+ */ + + public com.commercetools.api.models.project.SearchIndexingConfigurationValues getBusinessUnits() { + return this.businessUnits; + } + public void setProducts(final com.commercetools.api.models.project.SearchIndexingConfigurationValues products) { this.products = products; } @@ -100,6 +112,11 @@ public void setCustomers(final com.commercetools.api.models.project.SearchIndexi this.customers = customers; } + public void setBusinessUnits( + final com.commercetools.api.models.project.SearchIndexingConfigurationValues businessUnits) { + this.businessUnits = businessUnits; + } + @Override public boolean equals(Object o) { if (this == o) @@ -114,10 +131,12 @@ public boolean equals(Object o) { .append(productsSearch, that.productsSearch) .append(orders, that.orders) .append(customers, that.customers) + .append(businessUnits, that.businessUnits) .append(products, that.products) .append(productsSearch, that.productsSearch) .append(orders, that.orders) .append(customers, that.customers) + .append(businessUnits, that.businessUnits) .isEquals(); } @@ -127,6 +146,7 @@ public int hashCode() { .append(productsSearch) .append(orders) .append(customers) + .append(businessUnits) .toHashCode(); } @@ -136,6 +156,7 @@ public String toString() { .append("productsSearch", productsSearch) .append("orders", orders) .append("customers", customers) + .append("businessUnits", businessUnits) .build(); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/business_unit_search/BusinessUnitIndexingProgressQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/business_unit_search/BusinessUnitIndexingProgressQueryBuilderDsl.java new file mode 100644 index 00000000000..ae3a64987db --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/business_unit_search/BusinessUnitIndexingProgressQueryBuilderDsl.java @@ -0,0 +1,32 @@ + +package com.commercetools.api.predicates.query.business_unit_search; + +import com.commercetools.api.predicates.query.*; + +public class BusinessUnitIndexingProgressQueryBuilderDsl { + public BusinessUnitIndexingProgressQueryBuilderDsl() { + } + + public static BusinessUnitIndexingProgressQueryBuilderDsl of() { + return new BusinessUnitIndexingProgressQueryBuilderDsl(); + } + + public LongComparisonPredicateBuilder indexed() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("indexed")), + p -> new CombinationQueryPredicate<>(p, BusinessUnitIndexingProgressQueryBuilderDsl::of)); + } + + public LongComparisonPredicateBuilder failed() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("failed")), + p -> new CombinationQueryPredicate<>(p, BusinessUnitIndexingProgressQueryBuilderDsl::of)); + } + + public LongComparisonPredicateBuilder estimatedTotal() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("estimatedTotal")), + p -> new CombinationQueryPredicate<>(p, BusinessUnitIndexingProgressQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/business_unit_search/BusinessUnitPagedSearchResponseQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/business_unit_search/BusinessUnitPagedSearchResponseQueryBuilderDsl.java new file mode 100644 index 00000000000..b0c7501a667 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/business_unit_search/BusinessUnitPagedSearchResponseQueryBuilderDsl.java @@ -0,0 +1,47 @@ + +package com.commercetools.api.predicates.query.business_unit_search; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class BusinessUnitPagedSearchResponseQueryBuilderDsl { + public BusinessUnitPagedSearchResponseQueryBuilderDsl() { + } + + public static BusinessUnitPagedSearchResponseQueryBuilderDsl of() { + return new BusinessUnitPagedSearchResponseQueryBuilderDsl(); + } + + public LongComparisonPredicateBuilder total() { + return new LongComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("total")), + p -> new CombinationQueryPredicate<>(p, BusinessUnitPagedSearchResponseQueryBuilderDsl::of)); + } + + public LongComparisonPredicateBuilder limit() { + return new LongComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("limit")), + p -> new CombinationQueryPredicate<>(p, BusinessUnitPagedSearchResponseQueryBuilderDsl::of)); + } + + public LongComparisonPredicateBuilder offset() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("offset")), + p -> new CombinationQueryPredicate<>(p, BusinessUnitPagedSearchResponseQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate results( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("results")) + .inner(fn.apply( + com.commercetools.api.predicates.query.business_unit_search.BusinessUnitSearchResultQueryBuilderDsl + .of())), + BusinessUnitPagedSearchResponseQueryBuilderDsl::of); + } + + public CollectionPredicateBuilder results() { + return new CollectionPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("results")), + p -> new CombinationQueryPredicate<>(p, BusinessUnitPagedSearchResponseQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/business_unit_search/BusinessUnitSearchIndexingStatusResponseQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/business_unit_search/BusinessUnitSearchIndexingStatusResponseQueryBuilderDsl.java new file mode 100644 index 00000000000..894443dd5c5 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/business_unit_search/BusinessUnitSearchIndexingStatusResponseQueryBuilderDsl.java @@ -0,0 +1,50 @@ + +package com.commercetools.api.predicates.query.business_unit_search; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class BusinessUnitSearchIndexingStatusResponseQueryBuilderDsl { + public BusinessUnitSearchIndexingStatusResponseQueryBuilderDsl() { + } + + public static BusinessUnitSearchIndexingStatusResponseQueryBuilderDsl of() { + return new BusinessUnitSearchIndexingStatusResponseQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder status() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("status")), + p -> new CombinationQueryPredicate<>(p, BusinessUnitSearchIndexingStatusResponseQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate states( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("states")) + .inner(fn.apply( + com.commercetools.api.predicates.query.business_unit_search.BusinessUnitIndexingProgressQueryBuilderDsl + .of())), + BusinessUnitSearchIndexingStatusResponseQueryBuilderDsl::of); + } + + public DateTimeComparisonPredicateBuilder startedAt() { + return new DateTimeComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("startedAt")), + p -> new CombinationQueryPredicate<>(p, BusinessUnitSearchIndexingStatusResponseQueryBuilderDsl::of)); + } + + public DateTimeComparisonPredicateBuilder lastModifiedAt() { + return new DateTimeComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("lastModifiedAt")), + p -> new CombinationQueryPredicate<>(p, BusinessUnitSearchIndexingStatusResponseQueryBuilderDsl::of)); + } + + public LongComparisonPredicateBuilder retryCount() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("retryCount")), + p -> new CombinationQueryPredicate<>(p, BusinessUnitSearchIndexingStatusResponseQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/business_unit_search/BusinessUnitSearchRequestQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/business_unit_search/BusinessUnitSearchRequestQueryBuilderDsl.java new file mode 100644 index 00000000000..a9cdae4d89f --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/business_unit_search/BusinessUnitSearchRequestQueryBuilderDsl.java @@ -0,0 +1,50 @@ + +package com.commercetools.api.predicates.query.business_unit_search; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class BusinessUnitSearchRequestQueryBuilderDsl { + public BusinessUnitSearchRequestQueryBuilderDsl() { + } + + public static BusinessUnitSearchRequestQueryBuilderDsl of() { + return new BusinessUnitSearchRequestQueryBuilderDsl(); + } + + public CombinationQueryPredicate query( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("query")) + .inner(fn.apply(com.commercetools.api.predicates.query.search.SearchQueryQueryBuilderDsl.of())), + BusinessUnitSearchRequestQueryBuilderDsl::of); + } + + public CombinationQueryPredicate sort( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("sort")) + .inner(fn.apply(com.commercetools.api.predicates.query.search.SearchSortingQueryBuilderDsl.of())), + BusinessUnitSearchRequestQueryBuilderDsl::of); + } + + public CollectionPredicateBuilder sort() { + return new CollectionPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("sort")), + p -> new CombinationQueryPredicate<>(p, BusinessUnitSearchRequestQueryBuilderDsl::of)); + } + + public LongComparisonPredicateBuilder limit() { + return new LongComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("limit")), + p -> new CombinationQueryPredicate<>(p, BusinessUnitSearchRequestQueryBuilderDsl::of)); + } + + public LongComparisonPredicateBuilder offset() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("offset")), + p -> new CombinationQueryPredicate<>(p, BusinessUnitSearchRequestQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/business_unit_search/BusinessUnitSearchResultQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/business_unit_search/BusinessUnitSearchResultQueryBuilderDsl.java new file mode 100644 index 00000000000..b06407e92b8 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/business_unit_search/BusinessUnitSearchResultQueryBuilderDsl.java @@ -0,0 +1,25 @@ + +package com.commercetools.api.predicates.query.business_unit_search; + +import com.commercetools.api.predicates.query.*; + +public class BusinessUnitSearchResultQueryBuilderDsl { + public BusinessUnitSearchResultQueryBuilderDsl() { + } + + public static BusinessUnitSearchResultQueryBuilderDsl of() { + return new BusinessUnitSearchResultQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder id() { + return new StringComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("id")), + p -> new CombinationQueryPredicate<>(p, BusinessUnitSearchResultQueryBuilderDsl::of)); + } + + public DoubleComparisonPredicateBuilder relevance() { + return new DoubleComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("relevance")), + p -> new CombinationQueryPredicate<>(p, BusinessUnitSearchResultQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/project/ProjectChangeBusinessUnitSearchStatusActionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/project/ProjectChangeBusinessUnitSearchStatusActionQueryBuilderDsl.java new file mode 100644 index 00000000000..78ba1a213fe --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/project/ProjectChangeBusinessUnitSearchStatusActionQueryBuilderDsl.java @@ -0,0 +1,26 @@ + +package com.commercetools.api.predicates.query.project; + +import com.commercetools.api.predicates.query.*; + +public class ProjectChangeBusinessUnitSearchStatusActionQueryBuilderDsl { + public ProjectChangeBusinessUnitSearchStatusActionQueryBuilderDsl() { + } + + public static ProjectChangeBusinessUnitSearchStatusActionQueryBuilderDsl of() { + return new ProjectChangeBusinessUnitSearchStatusActionQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder action() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("action")), + p -> new CombinationQueryPredicate<>(p, ProjectChangeBusinessUnitSearchStatusActionQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder status() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("status")), + p -> new CombinationQueryPredicate<>(p, ProjectChangeBusinessUnitSearchStatusActionQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/project/ProjectUpdateActionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/project/ProjectUpdateActionQueryBuilderDsl.java index 4ddd787870c..244f2adc25c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/project/ProjectUpdateActionQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/project/ProjectUpdateActionQueryBuilderDsl.java @@ -19,6 +19,14 @@ public StringComparisonPredicateBuilder acti p -> new CombinationQueryPredicate<>(p, ProjectUpdateActionQueryBuilderDsl::of)); } + public CombinationQueryPredicate asChangeBusinessUnitSearchStatus( + Function> fn) { + return new CombinationQueryPredicate<>(fn.apply( + com.commercetools.api.predicates.query.project.ProjectChangeBusinessUnitSearchStatusActionQueryBuilderDsl + .of()), + ProjectUpdateActionQueryBuilderDsl::of); + } + public CombinationQueryPredicate asChangeMyBusinessUnitStatusOnCreation( 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/project/SearchIndexingConfigurationQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/project/SearchIndexingConfigurationQueryBuilderDsl.java index ad24c28c4c8..32fc1f90e7e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/project/SearchIndexingConfigurationQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/project/SearchIndexingConfigurationQueryBuilderDsl.java @@ -53,4 +53,14 @@ public CombinationQueryPredicate cus SearchIndexingConfigurationQueryBuilderDsl::of); } + public CombinationQueryPredicate businessUnits( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("businessUnits")) + .inner(fn.apply( + com.commercetools.api.predicates.query.project.SearchIndexingConfigurationValuesQueryBuilderDsl + .of())), + SearchIndexingConfigurationQueryBuilderDsl::of); + } + } diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyBusinessUnitsSearchIndexingStatusTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyBusinessUnitsSearchIndexingStatusTest.java new file mode 100644 index 00000000000..5e23a6afa28 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyBusinessUnitsSearchIndexingStatusTest.java @@ -0,0 +1,81 @@ + +package com.commercetools.api.client.resource; + +import java.nio.charset.StandardCharsets; +import java.util.concurrent.CompletableFuture; + +import com.commercetools.api.client.ApiRoot; +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 io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.ApiHttpClient; +import io.vrap.rmf.base.client.ApiHttpRequest; +import io.vrap.rmf.base.client.VrapHttpClient; +import io.vrap.rmf.base.client.error.ApiClientException; +import io.vrap.rmf.base.client.error.ApiServerException; +import io.vrap.rmf.base.client.utils.Generated; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.TestTemplate; +import org.junit.jupiter.api.extension.ExtendWith; +import org.mockito.Mockito; + +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@ExtendWith(UseDataProviderExtension.class) +@ExtendWith(DataProviderExtension.class) +public class ByProjectKeyBusinessUnitsSearchIndexingStatusTest { + private final VrapHttpClient httpClientMock = Mockito.mock(VrapHttpClient.class); + private final String projectKey = "test_projectKey"; + private final static ApiRoot apiRoot = ApiRoot.of(); + private final ApiHttpClient client = ClientBuilder.of(httpClientMock).defaultClient("").build(); + + @TestTemplate + @UseDataProvider("requestWithMethodParameters") + public void withMethods(ApiHttpRequest request, String httpMethod, String uri) { + Assertions.assertThat(httpMethod).isEqualTo(request.getMethod().name().toLowerCase()); + Assertions.assertThat(uri).isEqualTo(request.getUri().toString()); + } + + @TestTemplate + @UseDataProvider("executeMethodParameters") + public void executeServerException(HttpRequestCommand httpRequest) throws Exception { + Mockito.when(httpClientMock.execute(Mockito.any())) + .thenReturn(CompletableFuture.completedFuture( + new ApiHttpResponse<>(500, null, "".getBytes(StandardCharsets.UTF_8), "Oops!"))); + + Assertions.assertThatThrownBy(() -> client.execute(httpRequest).toCompletableFuture().get()) + .hasCauseInstanceOf(ApiServerException.class); + } + + @TestTemplate + @UseDataProvider("executeMethodParameters") + public void executeClientException(HttpRequestCommand httpRequest) throws Exception { + Mockito.when(httpClientMock.execute(Mockito.any())) + .thenReturn(CompletableFuture.completedFuture( + new ApiHttpResponse<>(400, null, "".getBytes(StandardCharsets.UTF_8), "Oops!"))); + + Assertions.assertThatThrownBy(() -> client.execute(httpRequest).toCompletableFuture().get()) + .hasCauseInstanceOf(ApiClientException.class); + } + + @DataProvider + public static Object[][] requestWithMethodParameters() { + return new Object[][] { + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .businessUnits() + .searchIndexingStatus() + .get() + .createHttpRequest(), + "get", "test_projectKey/business-units/search/indexing-status", } }; + } + + @DataProvider + public static Object[][] executeMethodParameters() { + return new Object[][] { new Object[] { + apiRoot.withProjectKey("test_projectKey").businessUnits().searchIndexingStatus().get(), } }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyBusinessUnitsSearchTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyBusinessUnitsSearchTest.java new file mode 100644 index 00000000000..9e0b3c59f26 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyBusinessUnitsSearchTest.java @@ -0,0 +1,86 @@ + +package com.commercetools.api.client.resource; + +import java.nio.charset.StandardCharsets; +import java.util.concurrent.CompletableFuture; + +import com.commercetools.api.client.ApiRoot; +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 io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.ApiHttpClient; +import io.vrap.rmf.base.client.ApiHttpRequest; +import io.vrap.rmf.base.client.VrapHttpClient; +import io.vrap.rmf.base.client.error.ApiClientException; +import io.vrap.rmf.base.client.error.ApiServerException; +import io.vrap.rmf.base.client.utils.Generated; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.TestTemplate; +import org.junit.jupiter.api.extension.ExtendWith; +import org.mockito.Mockito; + +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@ExtendWith(UseDataProviderExtension.class) +@ExtendWith(DataProviderExtension.class) +public class ByProjectKeyBusinessUnitsSearchTest { + private final VrapHttpClient httpClientMock = Mockito.mock(VrapHttpClient.class); + private final String projectKey = "test_projectKey"; + private final static ApiRoot apiRoot = ApiRoot.of(); + private final ApiHttpClient client = ClientBuilder.of(httpClientMock).defaultClient("").build(); + + @TestTemplate + @UseDataProvider("requestWithMethodParameters") + public void withMethods(ApiHttpRequest request, String httpMethod, String uri) { + Assertions.assertThat(httpMethod).isEqualTo(request.getMethod().name().toLowerCase()); + Assertions.assertThat(uri).isEqualTo(request.getUri().toString()); + } + + @TestTemplate + @UseDataProvider("executeMethodParameters") + public void executeServerException(HttpRequestCommand httpRequest) throws Exception { + Mockito.when(httpClientMock.execute(Mockito.any())) + .thenReturn(CompletableFuture.completedFuture( + new ApiHttpResponse<>(500, null, "".getBytes(StandardCharsets.UTF_8), "Oops!"))); + + Assertions.assertThatThrownBy(() -> client.execute(httpRequest).toCompletableFuture().get()) + .hasCauseInstanceOf(ApiServerException.class); + } + + @TestTemplate + @UseDataProvider("executeMethodParameters") + public void executeClientException(HttpRequestCommand httpRequest) throws Exception { + Mockito.when(httpClientMock.execute(Mockito.any())) + .thenReturn(CompletableFuture.completedFuture( + new ApiHttpResponse<>(400, null, "".getBytes(StandardCharsets.UTF_8), "Oops!"))); + + Assertions.assertThatThrownBy(() -> client.execute(httpRequest).toCompletableFuture().get()) + .hasCauseInstanceOf(ApiClientException.class); + } + + @DataProvider + public static Object[][] requestWithMethodParameters() { + return new Object[][] { + new Object[] { apiRoot.withProjectKey("test_projectKey") + .businessUnits() + .search() + .post(com.commercetools.api.models.business_unit_search.BusinessUnitSearchRequest.of()) + .createHttpRequest(), "post", "test_projectKey/business-units/search", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey").businessUnits().search().head().createHttpRequest(), + "head", "test_projectKey/business-units/search", } }; + } + + @DataProvider + public static Object[][] executeMethodParameters() { + return new Object[][] { + new Object[] { apiRoot.withProjectKey("test_projectKey") + .businessUnits() + .search() + .post(com.commercetools.api.models.business_unit_search.BusinessUnitSearchRequest.of()), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").businessUnits().search().head(), } }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitIndexingProgressTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitIndexingProgressTest.java new file mode 100644 index 00000000000..696ae138bbb --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitIndexingProgressTest.java @@ -0,0 +1,52 @@ + +package com.commercetools.api.models.business_unit_search; + +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 BusinessUnitIndexingProgressTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(BusinessUnitIndexingProgressBuilder builder) { + BusinessUnitIndexingProgress businessUnitIndexingProgress = builder.buildUnchecked(); + Assertions.assertThat(businessUnitIndexingProgress).isInstanceOf(BusinessUnitIndexingProgress.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { BusinessUnitIndexingProgress.builder().indexed(4) }, + new Object[] { BusinessUnitIndexingProgress.builder().failed(9) }, + new Object[] { BusinessUnitIndexingProgress.builder().estimatedTotal(9) } }; + } + + @Test + public void indexed() { + BusinessUnitIndexingProgress value = BusinessUnitIndexingProgress.of(); + value.setIndexed(4); + Assertions.assertThat(value.getIndexed()).isEqualTo(4); + } + + @Test + public void failed() { + BusinessUnitIndexingProgress value = BusinessUnitIndexingProgress.of(); + value.setFailed(9); + Assertions.assertThat(value.getFailed()).isEqualTo(9); + } + + @Test + public void estimatedTotal() { + BusinessUnitIndexingProgress value = BusinessUnitIndexingProgress.of(); + value.setEstimatedTotal(9); + Assertions.assertThat(value.getEstimatedTotal()).isEqualTo(9); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitPagedSearchResponseTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitPagedSearchResponseTest.java new file mode 100644 index 00000000000..61163641c2d --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitPagedSearchResponseTest.java @@ -0,0 +1,67 @@ + +package com.commercetools.api.models.business_unit_search; + +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 BusinessUnitPagedSearchResponseTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(BusinessUnitPagedSearchResponseBuilder builder) { + BusinessUnitPagedSearchResponse businessUnitPagedSearchResponse = builder.buildUnchecked(); + Assertions.assertThat(businessUnitPagedSearchResponse).isInstanceOf(BusinessUnitPagedSearchResponse.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { BusinessUnitPagedSearchResponse.builder().total(1L) }, + new Object[] { BusinessUnitPagedSearchResponse.builder().limit(7) }, + new Object[] { BusinessUnitPagedSearchResponse.builder().offset(3) }, + new Object[] { BusinessUnitPagedSearchResponse.builder() + .results(Collections.singletonList( + new com.commercetools.api.models.business_unit_search.BusinessUnitSearchResultImpl())) } }; + } + + @Test + public void total() { + BusinessUnitPagedSearchResponse value = BusinessUnitPagedSearchResponse.of(); + value.setTotal(1L); + Assertions.assertThat(value.getTotal()).isEqualTo(1L); + } + + @Test + public void limit() { + BusinessUnitPagedSearchResponse value = BusinessUnitPagedSearchResponse.of(); + value.setLimit(7); + Assertions.assertThat(value.getLimit()).isEqualTo(7); + } + + @Test + public void offset() { + BusinessUnitPagedSearchResponse value = BusinessUnitPagedSearchResponse.of(); + value.setOffset(3); + Assertions.assertThat(value.getOffset()).isEqualTo(3); + } + + @Test + public void results() { + BusinessUnitPagedSearchResponse value = BusinessUnitPagedSearchResponse.of(); + value.setResults(Collections + .singletonList(new com.commercetools.api.models.business_unit_search.BusinessUnitSearchResultImpl())); + Assertions.assertThat(value.getResults()) + .isEqualTo(Collections.singletonList( + new com.commercetools.api.models.business_unit_search.BusinessUnitSearchResultImpl())); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitSearchIndexingStatusResponseTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitSearchIndexingStatusResponseTest.java new file mode 100644 index 00000000000..77980b268e2 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitSearchIndexingStatusResponseTest.java @@ -0,0 +1,81 @@ + +package com.commercetools.api.models.business_unit_search; + +import java.time.ZonedDateTime; + +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 BusinessUnitSearchIndexingStatusResponseTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(BusinessUnitSearchIndexingStatusResponseBuilder builder) { + BusinessUnitSearchIndexingStatusResponse businessUnitSearchIndexingStatusResponse = builder.buildUnchecked(); + Assertions.assertThat(businessUnitSearchIndexingStatusResponse) + .isInstanceOf(BusinessUnitSearchIndexingStatusResponse.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { + new Object[] { + BusinessUnitSearchIndexingStatusResponse.builder() + .status(com.commercetools.api.models.project.BusinessUnitIndexingStatus + .findEnum("Scheduled")) }, + new Object[] { BusinessUnitSearchIndexingStatusResponse.builder() + .states( + new com.commercetools.api.models.business_unit_search.BusinessUnitIndexingProgressImpl()) }, + new Object[] { BusinessUnitSearchIndexingStatusResponse.builder() + .startedAt(ZonedDateTime.parse("2023-06-01T12:00Z")) }, + new Object[] { BusinessUnitSearchIndexingStatusResponse.builder() + .lastModifiedAt(ZonedDateTime.parse("2023-06-01T12:00Z")) }, + new Object[] { BusinessUnitSearchIndexingStatusResponse.builder().retryCount(7) } }; + } + + @Test + public void status() { + BusinessUnitSearchIndexingStatusResponse value = BusinessUnitSearchIndexingStatusResponse.of(); + value.setStatus(com.commercetools.api.models.project.BusinessUnitIndexingStatus.findEnum("Scheduled")); + Assertions.assertThat(value.getStatus()) + .isEqualTo(com.commercetools.api.models.project.BusinessUnitIndexingStatus.findEnum("Scheduled")); + } + + @Test + public void states() { + BusinessUnitSearchIndexingStatusResponse value = BusinessUnitSearchIndexingStatusResponse.of(); + value.setStates(new com.commercetools.api.models.business_unit_search.BusinessUnitIndexingProgressImpl()); + Assertions.assertThat(value.getStates()) + .isEqualTo(new com.commercetools.api.models.business_unit_search.BusinessUnitIndexingProgressImpl()); + } + + @Test + public void startedAt() { + BusinessUnitSearchIndexingStatusResponse value = BusinessUnitSearchIndexingStatusResponse.of(); + value.setStartedAt(ZonedDateTime.parse("2023-06-01T12:00Z")); + Assertions.assertThat(value.getStartedAt()).isEqualTo(ZonedDateTime.parse("2023-06-01T12:00Z")); + } + + @Test + public void lastModifiedAt() { + BusinessUnitSearchIndexingStatusResponse value = BusinessUnitSearchIndexingStatusResponse.of(); + value.setLastModifiedAt(ZonedDateTime.parse("2023-06-01T12:00Z")); + Assertions.assertThat(value.getLastModifiedAt()).isEqualTo(ZonedDateTime.parse("2023-06-01T12:00Z")); + } + + @Test + public void retryCount() { + BusinessUnitSearchIndexingStatusResponse value = BusinessUnitSearchIndexingStatusResponse.of(); + value.setRetryCount(7); + Assertions.assertThat(value.getRetryCount()).isEqualTo(7); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitSearchRequestTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitSearchRequestTest.java new file mode 100644 index 00000000000..977c4cb7541 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitSearchRequestTest.java @@ -0,0 +1,66 @@ + +package com.commercetools.api.models.business_unit_search; + +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 BusinessUnitSearchRequestTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(BusinessUnitSearchRequestBuilder builder) { + BusinessUnitSearchRequest businessUnitSearchRequest = builder.buildUnchecked(); + Assertions.assertThat(businessUnitSearchRequest).isInstanceOf(BusinessUnitSearchRequest.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { + new Object[] { BusinessUnitSearchRequest.builder() + .query(new com.commercetools.api.models.search.SearchQueryImpl()) }, + new Object[] { BusinessUnitSearchRequest.builder() + .sort(Collections.singletonList(new com.commercetools.api.models.search.SearchSortingImpl())) }, + new Object[] { BusinessUnitSearchRequest.builder().limit(7) }, + new Object[] { BusinessUnitSearchRequest.builder().offset(3) } }; + } + + @Test + public void query() { + BusinessUnitSearchRequest value = BusinessUnitSearchRequest.of(); + value.setQuery(new com.commercetools.api.models.search.SearchQueryImpl()); + Assertions.assertThat(value.getQuery()).isEqualTo(new com.commercetools.api.models.search.SearchQueryImpl()); + } + + @Test + public void sort() { + BusinessUnitSearchRequest value = BusinessUnitSearchRequest.of(); + value.setSort(Collections.singletonList(new com.commercetools.api.models.search.SearchSortingImpl())); + Assertions.assertThat(value.getSort()) + .isEqualTo(Collections.singletonList(new com.commercetools.api.models.search.SearchSortingImpl())); + } + + @Test + public void limit() { + BusinessUnitSearchRequest value = BusinessUnitSearchRequest.of(); + value.setLimit(7); + Assertions.assertThat(value.getLimit()).isEqualTo(7); + } + + @Test + public void offset() { + BusinessUnitSearchRequest value = BusinessUnitSearchRequest.of(); + value.setOffset(3); + Assertions.assertThat(value.getOffset()).isEqualTo(3); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitSearchResultTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitSearchResultTest.java new file mode 100644 index 00000000000..eaaa6d2caad --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/business_unit_search/BusinessUnitSearchResultTest.java @@ -0,0 +1,44 @@ + +package com.commercetools.api.models.business_unit_search; + +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 BusinessUnitSearchResultTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(BusinessUnitSearchResultBuilder builder) { + BusinessUnitSearchResult businessUnitSearchResult = builder.buildUnchecked(); + Assertions.assertThat(businessUnitSearchResult).isInstanceOf(BusinessUnitSearchResult.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { BusinessUnitSearchResult.builder().id("id") }, + new Object[] { BusinessUnitSearchResult.builder().relevance(0.5586561) } }; + } + + @Test + public void id() { + BusinessUnitSearchResult value = BusinessUnitSearchResult.of(); + value.setId("id"); + Assertions.assertThat(value.getId()).isEqualTo("id"); + } + + @Test + public void relevance() { + BusinessUnitSearchResult value = BusinessUnitSearchResult.of(); + value.setRelevance(0.5586561); + Assertions.assertThat(value.getRelevance()).isEqualTo(0.5586561); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/project/ProjectChangeBusinessUnitSearchStatusActionTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/project/ProjectChangeBusinessUnitSearchStatusActionTest.java new file mode 100644 index 00000000000..64bfe94db30 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/project/ProjectChangeBusinessUnitSearchStatusActionTest.java @@ -0,0 +1,40 @@ + +package com.commercetools.api.models.project; + +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 ProjectChangeBusinessUnitSearchStatusActionTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(ProjectChangeBusinessUnitSearchStatusActionBuilder builder) { + ProjectChangeBusinessUnitSearchStatusAction projectChangeBusinessUnitSearchStatusAction = builder + .buildUnchecked(); + Assertions.assertThat(projectChangeBusinessUnitSearchStatusAction) + .isInstanceOf(ProjectChangeBusinessUnitSearchStatusAction.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { ProjectChangeBusinessUnitSearchStatusAction.builder() + .status(com.commercetools.api.models.project.BusinessUnitSearchStatus.findEnum("Activated")) } }; + } + + @Test + public void status() { + ProjectChangeBusinessUnitSearchStatusAction value = ProjectChangeBusinessUnitSearchStatusAction.of(); + value.setStatus(com.commercetools.api.models.project.BusinessUnitSearchStatus.findEnum("Activated")); + Assertions.assertThat(value.getStatus()) + .isEqualTo(com.commercetools.api.models.project.BusinessUnitSearchStatus.findEnum("Activated")); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/project/SearchIndexingConfigurationTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/project/SearchIndexingConfigurationTest.java index f47d695c3df..b728fe6c530 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/project/SearchIndexingConfigurationTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/project/SearchIndexingConfigurationTest.java @@ -33,7 +33,9 @@ public static Object[][] objectBuilder() { new Object[] { SearchIndexingConfiguration.builder() .orders(new com.commercetools.api.models.project.SearchIndexingConfigurationValuesImpl()) }, new Object[] { SearchIndexingConfiguration.builder() - .customers( + .customers(new com.commercetools.api.models.project.SearchIndexingConfigurationValuesImpl()) }, + new Object[] { SearchIndexingConfiguration.builder() + .businessUnits( new com.commercetools.api.models.project.SearchIndexingConfigurationValuesImpl()) } }; } @@ -68,4 +70,12 @@ public void customers() { Assertions.assertThat(value.getCustomers()) .isEqualTo(new com.commercetools.api.models.project.SearchIndexingConfigurationValuesImpl()); } + + @Test + public void businessUnits() { + SearchIndexingConfiguration value = SearchIndexingConfiguration.of(); + value.setBusinessUnits(new com.commercetools.api.models.project.SearchIndexingConfigurationValuesImpl()); + Assertions.assertThat(value.getBusinessUnits()) + .isEqualTo(new com.commercetools.api.models.project.SearchIndexingConfigurationValuesImpl()); + } } diff --git a/references.txt b/references.txt index 8baf171044d..befcc103291 100644 --- a/references.txt +++ b/references.txt @@ -348,3 +348,4 @@ f4f3c42381257c319000e05bd5b61074d18b0a5f 62496134db5ebaf04225ce024b1f5ed3f2c79557 55ee33c4d18af345c4e89be226286c56c187a878 d0ab34123535479eb53d2400ca18fdfab0f9bf4c +e5666d7956fd6de53e41f965b052896d2a2ddd9b From c24d4dbc1d46a56ed9ee3475c11157b26734e21b Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Fri, 20 Dec 2024 13:31:53 +0000 Subject: [PATCH 02/18] build(codegen): updating SDK --- changes.md | 22 +- .../models/search/SearchExactExpression.java | 6 +- .../search/SearchExactExpressionBuilder.java | 14 +- .../search/SearchExactExpressionImpl.java | 8 +- .../api/models/search/SearchExactValue.java | 185 +++++++++++++ .../search/SearchExactValueBuilder.java | 260 ++++++++++++++++++ .../models/search/SearchExactValueImpl.java | 203 ++++++++++++++ .../search/SearchQueryExpressionValue.java | 4 + .../SearchExactExpressionQueryBuilderDsl.java | 9 +- .../SearchExactValueQueryBuilderDsl.java | 56 ++++ ...chQueryExpressionValueQueryBuilderDsl.java | 7 + .../search/SearchExactExpressionTest.java | 9 +- .../models/search/SearchExactValueTest.java | 62 +++++ references.txt | 1 + 14 files changed, 816 insertions(+), 30 deletions(-) create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/search/SearchExactValue.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/search/SearchExactValueBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/search/SearchExactValueImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/search/SearchExactValueQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/search/SearchExactValueTest.java diff --git a/changes.md b/changes.md index 9fa5dc98a07..98d26bd9c0d 100644 --- a/changes.md +++ b/changes.md @@ -1,5 +1,19 @@ **Api changes** +
+Changed Property(s) + +- :warning: changed property `exact` of type `SearchExactExpression` from type `SearchAnyValue` to `SearchExactValue` +
+ + +
+Added Property(s) + +- added property `businessUnits` to type `SearchIndexingConfiguration` +
+ +
Added Resource(s) @@ -28,12 +42,6 @@ - added type `BusinessUnitSearchResult` - added type `BusinessUnitSearchStatus` - added type `ProjectChangeBusinessUnitSearchStatusAction` -
- - -
-Added Property(s) - -- added property `businessUnits` to type `SearchIndexingConfiguration` +- added type `SearchExactValue`
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/search/SearchExactExpression.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/search/SearchExactExpression.java index 0db900f3c53..1e3a0fed448 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/search/SearchExactExpression.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/search/SearchExactExpression.java @@ -39,14 +39,14 @@ public interface SearchExactExpression extends SearchQueryExpression { @NotNull @Valid @JsonProperty("exact") - public SearchAnyValue getExact(); + public SearchExactValue getExact(); /** * set exact * @param exact value to be set */ - public void setExact(final SearchAnyValue exact); + public void setExact(final SearchExactValue exact); /** * factory method @@ -78,7 +78,7 @@ public static SearchExactExpression deepCopy(@Nullable final SearchExactExpressi return null; } SearchExactExpressionImpl instance = new SearchExactExpressionImpl(); - instance.setExact(com.commercetools.api.models.search.SearchAnyValue.deepCopy(template.getExact())); + instance.setExact(com.commercetools.api.models.search.SearchExactValue.deepCopy(template.getExact())); return instance; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/search/SearchExactExpressionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/search/SearchExactExpressionBuilder.java index a16283580fd..69e61c10cc9 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/search/SearchExactExpressionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/search/SearchExactExpressionBuilder.java @@ -22,7 +22,7 @@ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class SearchExactExpressionBuilder implements Builder { - private com.commercetools.api.models.search.SearchAnyValue exact; + private com.commercetools.api.models.search.SearchExactValue exact; /** * set the value to the exact using the builder function @@ -31,8 +31,8 @@ public class SearchExactExpressionBuilder implements Builder builder) { - this.exact = builder.apply(com.commercetools.api.models.search.SearchAnyValueBuilder.of()).build(); + Function builder) { + this.exact = builder.apply(com.commercetools.api.models.search.SearchExactValueBuilder.of()).build(); return this; } @@ -43,8 +43,8 @@ public SearchExactExpressionBuilder exact( */ public SearchExactExpressionBuilder withExact( - Function builder) { - this.exact = builder.apply(com.commercetools.api.models.search.SearchAnyValueBuilder.of()); + Function builder) { + this.exact = builder.apply(com.commercetools.api.models.search.SearchExactValueBuilder.of()); return this; } @@ -54,7 +54,7 @@ public SearchExactExpressionBuilder withExact( * @return Builder */ - public SearchExactExpressionBuilder exact(final com.commercetools.api.models.search.SearchAnyValue exact) { + public SearchExactExpressionBuilder exact(final com.commercetools.api.models.search.SearchExactValue exact) { this.exact = exact; return this; } @@ -64,7 +64,7 @@ public SearchExactExpressionBuilder exact(final com.commercetools.api.models.sea * @return exact */ - public com.commercetools.api.models.search.SearchAnyValue getExact() { + public com.commercetools.api.models.search.SearchExactValue getExact() { return this.exact; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/search/SearchExactExpressionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/search/SearchExactExpressionImpl.java index f85b3efdf40..f378561d07a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/search/SearchExactExpressionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/search/SearchExactExpressionImpl.java @@ -22,13 +22,13 @@ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class SearchExactExpressionImpl implements SearchExactExpression, ModelBase { - private com.commercetools.api.models.search.SearchAnyValue exact; + private com.commercetools.api.models.search.SearchExactValue exact; /** * create instance with all properties */ @JsonCreator - SearchExactExpressionImpl(@JsonProperty("exact") final com.commercetools.api.models.search.SearchAnyValue exact) { + SearchExactExpressionImpl(@JsonProperty("exact") final com.commercetools.api.models.search.SearchExactValue exact) { this.exact = exact; } @@ -42,11 +42,11 @@ public SearchExactExpressionImpl() { * */ - public com.commercetools.api.models.search.SearchAnyValue getExact() { + public com.commercetools.api.models.search.SearchExactValue getExact() { return this.exact; } - public void setExact(final com.commercetools.api.models.search.SearchAnyValue exact) { + public void setExact(final com.commercetools.api.models.search.SearchExactValue exact) { this.exact = exact; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/search/SearchExactValue.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/search/SearchExactValue.java new file mode 100644 index 00000000000..53a5b984652 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/search/SearchExactValue.java @@ -0,0 +1,185 @@ + +package com.commercetools.api.models.search; + +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; + +/** + * SearchExactValue + * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     SearchExactValue searchExactValue = SearchExactValue.builder()
+ *             .field("{field}")
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = SearchExactValueImpl.class) +public interface SearchExactValue extends SearchQueryExpressionValue { + + /** + * + * @return value + */ + + @JsonProperty("value") + public Object getValue(); + + /** + * + * @return values + */ + + @JsonProperty("values") + public List getValues(); + + /** + *

String value specifying linguistic and regional preferences using the IETF language tag format, as described in BCP 47. The format combines language, script, and region using hyphen-separated subtags. For example: en, en-US, zh-Hans-SG.

+ * @return language + */ + + @JsonProperty("language") + public String getLanguage(); + + /** + * + * @return caseInsensitive + */ + + @JsonProperty("caseInsensitive") + public Boolean getCaseInsensitive(); + + /** + * set value + * @param value value to be set + */ + + public void setValue(final Object value); + + /** + * set values + * @param values values to be set + */ + + @JsonIgnore + public void setValues(final Object... values); + + /** + * set values + * @param values values to be set + */ + + public void setValues(final List values); + + /** + *

String value specifying linguistic and regional preferences using the IETF language tag format, as described in BCP 47. The format combines language, script, and region using hyphen-separated subtags. For example: en, en-US, zh-Hans-SG.

+ * @param language value to be set + */ + + public void setLanguage(final String language); + + /** + * set caseInsensitive + * @param caseInsensitive value to be set + */ + + public void setCaseInsensitive(final Boolean caseInsensitive); + + /** + * factory method + * @return instance of SearchExactValue + */ + public static SearchExactValue of() { + return new SearchExactValueImpl(); + } + + /** + * factory method to create a shallow copy SearchExactValue + * @param template instance to be copied + * @return copy instance + */ + public static SearchExactValue of(final SearchExactValue template) { + SearchExactValueImpl instance = new SearchExactValueImpl(); + instance.setField(template.getField()); + instance.setBoost(template.getBoost()); + instance.setFieldType(template.getFieldType()); + instance.setValue(template.getValue()); + instance.setValues(template.getValues()); + instance.setLanguage(template.getLanguage()); + instance.setCaseInsensitive(template.getCaseInsensitive()); + return instance; + } + + /** + * factory method to create a deep copy of SearchExactValue + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static SearchExactValue deepCopy(@Nullable final SearchExactValue template) { + if (template == null) { + return null; + } + SearchExactValueImpl instance = new SearchExactValueImpl(); + instance.setField(template.getField()); + instance.setBoost(template.getBoost()); + instance.setFieldType(template.getFieldType()); + instance.setValue(template.getValue()); + instance.setValues(Optional.ofNullable(template.getValues()).map(ArrayList::new).orElse(null)); + instance.setLanguage(template.getLanguage()); + instance.setCaseInsensitive(template.getCaseInsensitive()); + return instance; + } + + /** + * builder factory method for SearchExactValue + * @return builder + */ + public static SearchExactValueBuilder builder() { + return SearchExactValueBuilder.of(); + } + + /** + * create builder for SearchExactValue instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static SearchExactValueBuilder builder(final SearchExactValue template) { + return SearchExactValueBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withSearchExactValue(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/search/SearchExactValueBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/search/SearchExactValueBuilder.java new file mode 100644 index 00000000000..ce2076ec2f3 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/search/SearchExactValueBuilder.java @@ -0,0 +1,260 @@ + +package com.commercetools.api.models.search; + +import java.util.*; + +import javax.annotation.Nullable; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * SearchExactValueBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     SearchExactValue searchExactValue = SearchExactValue.builder()
+ *             .field("{field}")
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class SearchExactValueBuilder implements Builder { + + private String field; + + @Nullable + private Double boost; + + @Nullable + private com.commercetools.api.models.search.SearchFieldType fieldType; + + @Nullable + private java.lang.Object value; + + @Nullable + private java.util.List values; + + @Nullable + private String language; + + @Nullable + private Boolean caseInsensitive; + + /** + * set the value to the field + * @param field value to be set + * @return Builder + */ + + public SearchExactValueBuilder field(final String field) { + this.field = field; + return this; + } + + /** + * set the value to the boost + * @param boost value to be set + * @return Builder + */ + + public SearchExactValueBuilder boost(@Nullable final Double boost) { + this.boost = boost; + return this; + } + + /** + *

Possible values for the fieldType property on query expressions indicating the data type of the field.

+ * @param fieldType value to be set + * @return Builder + */ + + public SearchExactValueBuilder fieldType( + @Nullable final com.commercetools.api.models.search.SearchFieldType fieldType) { + this.fieldType = fieldType; + return this; + } + + /** + * set the value to the value + * @param value value to be set + * @return Builder + */ + + public SearchExactValueBuilder value(@Nullable final java.lang.Object value) { + this.value = value; + return this; + } + + /** + * set values to the values + * @param values value to be set + * @return Builder + */ + + public SearchExactValueBuilder values(@Nullable final java.lang.Object... values) { + this.values = new ArrayList<>(Arrays.asList(values)); + return this; + } + + /** + * set value to the values + * @param values value to be set + * @return Builder + */ + + public SearchExactValueBuilder values(@Nullable final java.util.List values) { + this.values = values; + return this; + } + + /** + * add values to the values + * @param values value to be set + * @return Builder + */ + + public SearchExactValueBuilder plusValues(@Nullable final java.lang.Object... values) { + if (this.values == null) { + this.values = new ArrayList<>(); + } + this.values.addAll(Arrays.asList(values)); + return this; + } + + /** + *

String value specifying linguistic and regional preferences using the IETF language tag format, as described in BCP 47. The format combines language, script, and region using hyphen-separated subtags. For example: en, en-US, zh-Hans-SG.

+ * @param language value to be set + * @return Builder + */ + + public SearchExactValueBuilder language(@Nullable final String language) { + this.language = language; + return this; + } + + /** + * set the value to the caseInsensitive + * @param caseInsensitive value to be set + * @return Builder + */ + + public SearchExactValueBuilder caseInsensitive(@Nullable final Boolean caseInsensitive) { + this.caseInsensitive = caseInsensitive; + return this; + } + + /** + * value of field} + * @return field + */ + + public String getField() { + return this.field; + } + + /** + * value of boost} + * @return boost + */ + + @Nullable + public Double getBoost() { + return this.boost; + } + + /** + *

Possible values for the fieldType property on query expressions indicating the data type of the field.

+ * @return fieldType + */ + + @Nullable + public com.commercetools.api.models.search.SearchFieldType getFieldType() { + return this.fieldType; + } + + /** + * value of value} + * @return value + */ + + @Nullable + public java.lang.Object getValue() { + return this.value; + } + + /** + * value of values} + * @return values + */ + + @Nullable + public java.util.List getValues() { + return this.values; + } + + /** + *

String value specifying linguistic and regional preferences using the IETF language tag format, as described in BCP 47. The format combines language, script, and region using hyphen-separated subtags. For example: en, en-US, zh-Hans-SG.

+ * @return language + */ + + @Nullable + public String getLanguage() { + return this.language; + } + + /** + * value of caseInsensitive} + * @return caseInsensitive + */ + + @Nullable + public Boolean getCaseInsensitive() { + return this.caseInsensitive; + } + + /** + * builds SearchExactValue with checking for non-null required values + * @return SearchExactValue + */ + public SearchExactValue build() { + Objects.requireNonNull(field, SearchExactValue.class + ": field is missing"); + return new SearchExactValueImpl(field, boost, fieldType, value, values, language, caseInsensitive); + } + + /** + * builds SearchExactValue without checking for non-null required values + * @return SearchExactValue + */ + public SearchExactValue buildUnchecked() { + return new SearchExactValueImpl(field, boost, fieldType, value, values, language, caseInsensitive); + } + + /** + * factory method for an instance of SearchExactValueBuilder + * @return builder + */ + public static SearchExactValueBuilder of() { + return new SearchExactValueBuilder(); + } + + /** + * create builder for SearchExactValue instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static SearchExactValueBuilder of(final SearchExactValue template) { + SearchExactValueBuilder builder = new SearchExactValueBuilder(); + builder.field = template.getField(); + builder.boost = template.getBoost(); + builder.fieldType = template.getFieldType(); + builder.value = template.getValue(); + builder.values = template.getValues(); + builder.language = template.getLanguage(); + builder.caseInsensitive = template.getCaseInsensitive(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/search/SearchExactValueImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/search/SearchExactValueImpl.java new file mode 100644 index 00000000000..d6466c7a14e --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/search/SearchExactValueImpl.java @@ -0,0 +1,203 @@ + +package com.commercetools.api.models.search; + +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; + +/** + * SearchExactValue + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class SearchExactValueImpl implements SearchExactValue, ModelBase { + + private String field; + + private Double boost; + + private com.commercetools.api.models.search.SearchFieldType fieldType; + + private java.lang.Object value; + + private java.util.List values; + + private String language; + + private Boolean caseInsensitive; + + /** + * create instance with all properties + */ + @JsonCreator + SearchExactValueImpl(@JsonProperty("field") final String field, @JsonProperty("boost") final Double boost, + @JsonProperty("fieldType") final com.commercetools.api.models.search.SearchFieldType fieldType, + @JsonProperty("value") final java.lang.Object value, + @JsonProperty("values") final java.util.List values, + @JsonProperty("language") final String language, + @JsonProperty("caseInsensitive") final Boolean caseInsensitive) { + this.field = field; + this.boost = boost; + this.fieldType = fieldType; + this.value = value; + this.values = values; + this.language = language; + this.caseInsensitive = caseInsensitive; + } + + /** + * create empty instance + */ + public SearchExactValueImpl() { + } + + /** + * + */ + + public String getField() { + return this.field; + } + + /** + * + */ + + public Double getBoost() { + return this.boost; + } + + /** + *

Possible values for the fieldType property on query expressions indicating the data type of the field.

+ */ + + public com.commercetools.api.models.search.SearchFieldType getFieldType() { + return this.fieldType; + } + + /** + * + */ + + public java.lang.Object getValue() { + return this.value; + } + + /** + * + */ + + public java.util.List getValues() { + return this.values; + } + + /** + *

String value specifying linguistic and regional preferences using the IETF language tag format, as described in BCP 47. The format combines language, script, and region using hyphen-separated subtags. For example: en, en-US, zh-Hans-SG.

+ */ + + public String getLanguage() { + return this.language; + } + + /** + * + */ + + public Boolean getCaseInsensitive() { + return this.caseInsensitive; + } + + public void setField(final String field) { + this.field = field; + } + + public void setBoost(final Double boost) { + this.boost = boost; + } + + public void setFieldType(final com.commercetools.api.models.search.SearchFieldType fieldType) { + this.fieldType = fieldType; + } + + public void setValue(final java.lang.Object value) { + this.value = value; + } + + public void setValues(final java.lang.Object... values) { + this.values = new ArrayList<>(Arrays.asList(values)); + } + + public void setValues(final java.util.List values) { + this.values = values; + } + + public void setLanguage(final String language) { + this.language = language; + } + + public void setCaseInsensitive(final Boolean caseInsensitive) { + this.caseInsensitive = caseInsensitive; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + SearchExactValueImpl that = (SearchExactValueImpl) o; + + return new EqualsBuilder().append(field, that.field) + .append(boost, that.boost) + .append(fieldType, that.fieldType) + .append(value, that.value) + .append(values, that.values) + .append(language, that.language) + .append(caseInsensitive, that.caseInsensitive) + .append(field, that.field) + .append(boost, that.boost) + .append(fieldType, that.fieldType) + .append(value, that.value) + .append(values, that.values) + .append(language, that.language) + .append(caseInsensitive, that.caseInsensitive) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(field) + .append(boost) + .append(fieldType) + .append(value) + .append(values) + .append(language) + .append(caseInsensitive) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("field", field) + .append("boost", boost) + .append("fieldType", fieldType) + .append("value", value) + .append("values", values) + .append("language", language) + .append("caseInsensitive", caseInsensitive) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/search/SearchQueryExpressionValue.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/search/SearchQueryExpressionValue.java index 8ad6cdc2e74..fc91c89f980 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/search/SearchQueryExpressionValue.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/search/SearchQueryExpressionValue.java @@ -119,6 +119,10 @@ public static SearchQueryExpressionValue deepCopy(@Nullable final SearchQueryExp return com.commercetools.api.models.search.SearchDateTimeRangeValue .deepCopy((com.commercetools.api.models.search.SearchDateTimeRangeValue) template); } + if (template instanceof com.commercetools.api.models.search.SearchExactValue) { + return com.commercetools.api.models.search.SearchExactValue + .deepCopy((com.commercetools.api.models.search.SearchExactValue) template); + } if (template instanceof com.commercetools.api.models.search.SearchExistsValue) { return com.commercetools.api.models.search.SearchExistsValue .deepCopy((com.commercetools.api.models.search.SearchExistsValue) template); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/search/SearchExactExpressionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/search/SearchExactExpressionQueryBuilderDsl.java index f2fb51a7c44..f9846a221cf 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/search/SearchExactExpressionQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/search/SearchExactExpressionQueryBuilderDsl.java @@ -14,11 +14,10 @@ public static SearchExactExpressionQueryBuilderDsl of() { } public CombinationQueryPredicate exact( - Function> fn) { - return new CombinationQueryPredicate<>( - ContainerQueryPredicate.of() - .parent(ConstantQueryPredicate.of().constant("exact")) - .inner(fn.apply(com.commercetools.api.predicates.query.search.SearchAnyValueQueryBuilderDsl.of())), + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("exact")) + .inner(fn.apply(com.commercetools.api.predicates.query.search.SearchExactValueQueryBuilderDsl.of())), SearchExactExpressionQueryBuilderDsl::of); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/search/SearchExactValueQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/search/SearchExactValueQueryBuilderDsl.java new file mode 100644 index 00000000000..a3b862f0ccf --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/search/SearchExactValueQueryBuilderDsl.java @@ -0,0 +1,56 @@ + +package com.commercetools.api.predicates.query.search; + +import com.commercetools.api.predicates.query.*; + +public class SearchExactValueQueryBuilderDsl { + public SearchExactValueQueryBuilderDsl() { + } + + public static SearchExactValueQueryBuilderDsl of() { + return new SearchExactValueQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder field() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("field")), + p -> new CombinationQueryPredicate<>(p, SearchExactValueQueryBuilderDsl::of)); + } + + public DoubleComparisonPredicateBuilder boost() { + return new DoubleComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("boost")), + p -> new CombinationQueryPredicate<>(p, SearchExactValueQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder fieldType() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("fieldType")), + p -> new CombinationQueryPredicate<>(p, SearchExactValueQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder value() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("value")), + p -> new CombinationQueryPredicate<>(p, SearchExactValueQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder values() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("values")), + p -> new CombinationQueryPredicate<>(p, SearchExactValueQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder language() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("language")), + p -> new CombinationQueryPredicate<>(p, SearchExactValueQueryBuilderDsl::of)); + } + + public BooleanComparisonPredicateBuilder caseInsensitive() { + return new BooleanComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("caseInsensitive")), + p -> new CombinationQueryPredicate<>(p, SearchExactValueQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/search/SearchQueryExpressionValueQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/search/SearchQueryExpressionValueQueryBuilderDsl.java index 09ea61df092..bbc555dac4e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/search/SearchQueryExpressionValueQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/search/SearchQueryExpressionValueQueryBuilderDsl.java @@ -52,6 +52,13 @@ public CombinationQueryPredicate asSe SearchQueryExpressionValueQueryBuilderDsl::of); } + public CombinationQueryPredicate asSearchExactValue( + Function> fn) { + return new CombinationQueryPredicate<>( + fn.apply(com.commercetools.api.predicates.query.search.SearchExactValueQueryBuilderDsl.of()), + SearchQueryExpressionValueQueryBuilderDsl::of); + } + public CombinationQueryPredicate asSearchExistsValue( Function> fn) { return new CombinationQueryPredicate<>( diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/search/SearchExactExpressionTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/search/SearchExactExpressionTest.java index 13bf73e63ef..714e5d8f679 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/search/SearchExactExpressionTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/search/SearchExactExpressionTest.java @@ -24,14 +24,15 @@ public void buildUnchecked(SearchExactExpressionBuilder builder) { @DataProvider public static Object[][] objectBuilder() { - return new Object[][] { new Object[] { - SearchExactExpression.builder().exact(new com.commercetools.api.models.search.SearchAnyValueImpl()) } }; + return new Object[][] { new Object[] { SearchExactExpression.builder() + .exact(new com.commercetools.api.models.search.SearchExactValueImpl()) } }; } @Test public void exact() { SearchExactExpression value = SearchExactExpression.of(); - value.setExact(new com.commercetools.api.models.search.SearchAnyValueImpl()); - Assertions.assertThat(value.getExact()).isEqualTo(new com.commercetools.api.models.search.SearchAnyValueImpl()); + value.setExact(new com.commercetools.api.models.search.SearchExactValueImpl()); + Assertions.assertThat(value.getExact()) + .isEqualTo(new com.commercetools.api.models.search.SearchExactValueImpl()); } } diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/search/SearchExactValueTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/search/SearchExactValueTest.java new file mode 100644 index 00000000000..a4c166ccf02 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/search/SearchExactValueTest.java @@ -0,0 +1,62 @@ + +package com.commercetools.api.models.search; + +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 SearchExactValueTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(SearchExactValueBuilder builder) { + SearchExactValue searchExactValue = builder.buildUnchecked(); + Assertions.assertThat(searchExactValue).isInstanceOf(SearchExactValue.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { SearchExactValue.builder().value("value") }, + new Object[] { SearchExactValue.builder().values(Collections.singletonList("values")) }, + new Object[] { SearchExactValue.builder().language("language") }, + new Object[] { SearchExactValue.builder().caseInsensitive(true) } }; + } + + @Test + public void value() { + SearchExactValue value = SearchExactValue.of(); + value.setValue("value"); + Assertions.assertThat(value.getValue()).isEqualTo("value"); + } + + @Test + public void values() { + SearchExactValue value = SearchExactValue.of(); + value.setValues(Collections.singletonList("values")); + Assertions.assertThat(value.getValues()).isEqualTo(Collections.singletonList("values")); + } + + @Test + public void language() { + SearchExactValue value = SearchExactValue.of(); + value.setLanguage("language"); + Assertions.assertThat(value.getLanguage()).isEqualTo("language"); + } + + @Test + public void caseInsensitive() { + SearchExactValue value = SearchExactValue.of(); + value.setCaseInsensitive(true); + Assertions.assertThat(value.getCaseInsensitive()).isEqualTo(true); + } +} diff --git a/references.txt b/references.txt index befcc103291..a7544267735 100644 --- a/references.txt +++ b/references.txt @@ -349,3 +349,4 @@ f4f3c42381257c319000e05bd5b61074d18b0a5f 55ee33c4d18af345c4e89be226286c56c187a878 d0ab34123535479eb53d2400ca18fdfab0f9bf4c e5666d7956fd6de53e41f965b052896d2a2ddd9b +98343f9a365a2f9d4db86190003d00b8682c71d9 From 7bbcd471cbca7cded1caf4ff490ee385807e4c1e Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Fri, 20 Dec 2024 14:38:51 +0000 Subject: [PATCH 03/18] build(codegen): updating SDK --- .../src/main/resources/graphql/schema.graphqls | 6 ++++++ references.txt | 1 + 2 files changed, 7 insertions(+) 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 921eca3aec1..c3d0bff6ac2 100644 --- a/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls +++ b/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls @@ -7186,6 +7186,12 @@ type OrderShippingRateInputSet implements MessagePayload & OrderMessagePayload { type: String! } +type OrderShippingUpdated implements MessagePayload & OrderMessagePayload { + current: Shipping! + updated: Shipping! + type: String! +} + enum OrderState { Cancelled Complete diff --git a/references.txt b/references.txt index a7544267735..91378754d31 100644 --- a/references.txt +++ b/references.txt @@ -350,3 +350,4 @@ f4f3c42381257c319000e05bd5b61074d18b0a5f d0ab34123535479eb53d2400ca18fdfab0f9bf4c e5666d7956fd6de53e41f965b052896d2a2ddd9b 98343f9a365a2f9d4db86190003d00b8682c71d9 +f8b69ab19d6be2bcc6732deee0647bd8494c15f1 From 6dbae6a1f17ca8003bbff2207679a6d3da92aeb1 Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Mon, 23 Dec 2024 10:22:24 +0000 Subject: [PATCH 04/18] build(codegen): updating SDK --- .../api/models/product_type/AttributeDefinition.java | 4 ++-- .../models/product_type/AttributeDefinitionBuilder.java | 4 ++-- .../api/models/product_type/AttributeDefinitionDraft.java | 8 ++++---- .../product_type/AttributeDefinitionDraftBuilder.java | 8 ++++---- .../models/product_type/AttributeDefinitionDraftImpl.java | 4 ++-- .../api/models/product_type/AttributeDefinitionImpl.java | 2 +- .../ProductTypeChangeAttributeNameAction.java | 4 ++-- .../ProductTypeChangeAttributeNameActionBuilder.java | 4 ++-- .../ProductTypeChangeAttributeNameActionImpl.java | 2 +- references.txt | 1 + 10 files changed, 21 insertions(+), 20 deletions(-) diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/AttributeDefinition.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/AttributeDefinition.java index bf69de90e2c..6e9d9aa2905 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/AttributeDefinition.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/AttributeDefinition.java @@ -98,7 +98,7 @@ public interface AttributeDefinition { public TextInputHint getInputHint(); /** - *

If true, the Attribute's values are available for the Product Projections Search API for use in full-text search queries, filters, and facets.

+ *

If true, the Attribute's values are available in the Product Projection Search or the Product Search API for use in full-text search queries, filters, and facets.

*

Which exact features are available with this flag depends on the specific AttributeType. The maximum size of a searchable field is restricted by the Field content size limit. This constraint is enforced at both Product creation and Product update. If the length of the input exceeds the maximum size, an InvalidField error is returned.

* @return isSearchable */ @@ -156,7 +156,7 @@ public interface AttributeDefinition { public void setInputHint(final TextInputHint inputHint); /** - *

If true, the Attribute's values are available for the Product Projections Search API for use in full-text search queries, filters, and facets.

+ *

If true, the Attribute's values are available in the Product Projection Search or the Product Search API for use in full-text search queries, filters, and facets.

*

Which exact features are available with this flag depends on the specific AttributeType. The maximum size of a searchable field is restricted by the Field content size limit. This constraint is enforced at both Product creation and Product update. If the length of the input exceeds the maximum size, an InvalidField error is returned.

* @param isSearchable value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/AttributeDefinitionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/AttributeDefinitionBuilder.java index 7f12d5bf214..b694d4ad696 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/AttributeDefinitionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/AttributeDefinitionBuilder.java @@ -188,7 +188,7 @@ public AttributeDefinitionBuilder inputHint( } /** - *

If true, the Attribute's values are available for the Product Projections Search API for use in full-text search queries, filters, and facets.

+ *

If true, the Attribute's values are available in the Product Projection Search or the Product Search API for use in full-text search queries, filters, and facets.

*

Which exact features are available with this flag depends on the specific AttributeType. The maximum size of a searchable field is restricted by the Field content size limit. This constraint is enforced at both Product creation and Product update. If the length of the input exceeds the maximum size, an InvalidField error is returned.

* @param isSearchable value to be set * @return Builder @@ -264,7 +264,7 @@ public com.commercetools.api.models.product_type.TextInputHint getInputHint() { } /** - *

If true, the Attribute's values are available for the Product Projections Search API for use in full-text search queries, filters, and facets.

+ *

If true, the Attribute's values are available in the Product Projection Search or the Product Search API for use in full-text search queries, filters, and facets.

*

Which exact features are available with this flag depends on the specific AttributeType. The maximum size of a searchable field is restricted by the Field content size limit. This constraint is enforced at both Product creation and Product update. If the length of the input exceeds the maximum size, an InvalidField error is returned.

* @return isSearchable */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/AttributeDefinitionDraft.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/AttributeDefinitionDraft.java index d2604648e58..6ee72694df3 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/AttributeDefinitionDraft.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/AttributeDefinitionDraft.java @@ -47,7 +47,7 @@ public interface AttributeDefinitionDraft extends io.vrap.rmf.base.client.Draft< public AttributeType getType(); /** - *

User-defined name of the Attribute that is unique with the Project.

+ *

User-defined name of the Attribute that is unique to the Project.

*

When using the same name for an Attribute in multiple ProductTypes, all fields of the AttributeDefinition of this Attribute must be the same across the ProductTypes, else an AttributeDefinitionAlreadyExists error is returned. An exception to this are the values of an enum or lenum Type and sets thereof.

* @return name */ @@ -97,7 +97,7 @@ public interface AttributeDefinitionDraft extends io.vrap.rmf.base.client.Draft< public TextInputHint getInputHint(); /** - *

Set to true if the Attribute's values should be available in the Product Projections Search API and can be used in full-text search queries, filters, and facets. Which exact features are available with this flag depends on the specific AttributeType. The maximum size of a searchable field is restricted by the Field content size limit. This constraint is enforced at both Product creation and Product update. If the length of the input exceeds the maximum size, an InvalidField error is returned.

+ *

Set to true if the Attribute's values should be available in the Product Projection Search or the Product Search API and can be used in full-text search queries, filters, and facets. Which exact features are available with this flag depends on the specific AttributeType. The maximum size of a searchable field is restricted by the Field content size limit. This constraint is enforced at both Product creation and Product update. If the length of the input exceeds the maximum size, an InvalidField error is returned.

* @return isSearchable */ @@ -113,7 +113,7 @@ public interface AttributeDefinitionDraft extends io.vrap.rmf.base.client.Draft< public void setType(final AttributeType type); /** - *

User-defined name of the Attribute that is unique with the Project.

+ *

User-defined name of the Attribute that is unique to the Project.

*

When using the same name for an Attribute in multiple ProductTypes, all fields of the AttributeDefinition of this Attribute must be the same across the ProductTypes, else an AttributeDefinitionAlreadyExists error is returned. An exception to this are the values of an enum or lenum Type and sets thereof.

* @param name value to be set */ @@ -156,7 +156,7 @@ public interface AttributeDefinitionDraft extends io.vrap.rmf.base.client.Draft< public void setInputHint(final TextInputHint inputHint); /** - *

Set to true if the Attribute's values should be available in the Product Projections Search API and can be used in full-text search queries, filters, and facets. Which exact features are available with this flag depends on the specific AttributeType. The maximum size of a searchable field is restricted by the Field content size limit. This constraint is enforced at both Product creation and Product update. If the length of the input exceeds the maximum size, an InvalidField error is returned.

+ *

Set to true if the Attribute's values should be available in the Product Projection Search or the Product Search API and can be used in full-text search queries, filters, and facets. Which exact features are available with this flag depends on the specific AttributeType. The maximum size of a searchable field is restricted by the Field content size limit. This constraint is enforced at both Product creation and Product update. If the length of the input exceeds the maximum size, an InvalidField error is returned.

* @param isSearchable value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/AttributeDefinitionDraftBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/AttributeDefinitionDraftBuilder.java index bc2cbe8df8d..34e9d12c5c4 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/AttributeDefinitionDraftBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/AttributeDefinitionDraftBuilder.java @@ -73,7 +73,7 @@ public AttributeDefinitionDraftBuilder type( } /** - *

User-defined name of the Attribute that is unique with the Project.

+ *

User-defined name of the Attribute that is unique to the Project.

*

When using the same name for an Attribute in multiple ProductTypes, all fields of the AttributeDefinition of this Attribute must be the same across the ProductTypes, else an AttributeDefinitionAlreadyExists error is returned. An exception to this are the values of an enum or lenum Type and sets thereof.

* @param name value to be set * @return Builder @@ -191,7 +191,7 @@ public AttributeDefinitionDraftBuilder inputHint( } /** - *

Set to true if the Attribute's values should be available in the Product Projections Search API and can be used in full-text search queries, filters, and facets. Which exact features are available with this flag depends on the specific AttributeType. The maximum size of a searchable field is restricted by the Field content size limit. This constraint is enforced at both Product creation and Product update. If the length of the input exceeds the maximum size, an InvalidField error is returned.

+ *

Set to true if the Attribute's values should be available in the Product Projection Search or the Product Search API and can be used in full-text search queries, filters, and facets. Which exact features are available with this flag depends on the specific AttributeType. The maximum size of a searchable field is restricted by the Field content size limit. This constraint is enforced at both Product creation and Product update. If the length of the input exceeds the maximum size, an InvalidField error is returned.

* @param isSearchable value to be set * @return Builder */ @@ -212,7 +212,7 @@ public com.commercetools.api.models.product_type.AttributeType getType() { } /** - *

User-defined name of the Attribute that is unique with the Project.

+ *

User-defined name of the Attribute that is unique to the Project.

*

When using the same name for an Attribute in multiple ProductTypes, all fields of the AttributeDefinition of this Attribute must be the same across the ProductTypes, else an AttributeDefinitionAlreadyExists error is returned. An exception to this are the values of an enum or lenum Type and sets thereof.

* @return name */ @@ -270,7 +270,7 @@ public com.commercetools.api.models.product_type.TextInputHint getInputHint() { } /** - *

Set to true if the Attribute's values should be available in the Product Projections Search API and can be used in full-text search queries, filters, and facets. Which exact features are available with this flag depends on the specific AttributeType. The maximum size of a searchable field is restricted by the Field content size limit. This constraint is enforced at both Product creation and Product update. If the length of the input exceeds the maximum size, an InvalidField error is returned.

+ *

Set to true if the Attribute's values should be available in the Product Projection Search or the Product Search API and can be used in full-text search queries, filters, and facets. Which exact features are available with this flag depends on the specific AttributeType. The maximum size of a searchable field is restricted by the Field content size limit. This constraint is enforced at both Product creation and Product update. If the length of the input exceeds the maximum size, an InvalidField error is returned.

* @return isSearchable */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/AttributeDefinitionDraftImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/AttributeDefinitionDraftImpl.java index d3fccd5d713..bbb39ddc6da 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/AttributeDefinitionDraftImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/AttributeDefinitionDraftImpl.java @@ -77,7 +77,7 @@ public com.commercetools.api.models.product_type.AttributeType getType() { } /** - *

User-defined name of the Attribute that is unique with the Project.

+ *

User-defined name of the Attribute that is unique to the Project.

*

When using the same name for an Attribute in multiple ProductTypes, all fields of the AttributeDefinition of this Attribute must be the same across the ProductTypes, else an AttributeDefinitionAlreadyExists error is returned. An exception to this are the values of an enum or lenum Type and sets thereof.

*/ @@ -126,7 +126,7 @@ public com.commercetools.api.models.product_type.TextInputHint getInputHint() { } /** - *

Set to true if the Attribute's values should be available in the Product Projections Search API and can be used in full-text search queries, filters, and facets. Which exact features are available with this flag depends on the specific AttributeType. The maximum size of a searchable field is restricted by the Field content size limit. This constraint is enforced at both Product creation and Product update. If the length of the input exceeds the maximum size, an InvalidField error is returned.

+ *

Set to true if the Attribute's values should be available in the Product Projection Search or the Product Search API and can be used in full-text search queries, filters, and facets. Which exact features are available with this flag depends on the specific AttributeType. The maximum size of a searchable field is restricted by the Field content size limit. This constraint is enforced at both Product creation and Product update. If the length of the input exceeds the maximum size, an InvalidField error is returned.

*/ public Boolean getIsSearchable() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/AttributeDefinitionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/AttributeDefinitionImpl.java index 7eb48f3a42b..37c6d946c7e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/AttributeDefinitionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/AttributeDefinitionImpl.java @@ -123,7 +123,7 @@ public com.commercetools.api.models.product_type.TextInputHint getInputHint() { } /** - *

If true, the Attribute's values are available for the Product Projections Search API for use in full-text search queries, filters, and facets.

+ *

If true, the Attribute's values are available in the Product Projection Search or the Product Search API for use in full-text search queries, filters, and facets.

*

Which exact features are available with this flag depends on the specific AttributeType. The maximum size of a searchable field is restricted by the Field content size limit. This constraint is enforced at both Product creation and Product update. If the length of the input exceeds the maximum size, an InvalidField error is returned.

*/ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/ProductTypeChangeAttributeNameAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/ProductTypeChangeAttributeNameAction.java index 42594f1468d..cac987b1314 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/ProductTypeChangeAttributeNameAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/ProductTypeChangeAttributeNameAction.java @@ -47,7 +47,7 @@ public interface ProductTypeChangeAttributeNameAction extends ProductTypeUpdateA public String getAttributeName(); /** - *

New user-defined name of the Attribute that is unique with the Project.

+ *

New user-defined name of the Attribute that is unique to the Project.

*

When using the same name for an Attribute in two or more ProductTypes, all fields of the AttributeDefinition of this Attribute must be the same across the ProductTypes. If not, an AttributeDefinitionAlreadyExists error is returned. An exception to this are the values of an enum or lenum type and sets thereof.

* @return newAttributeName */ @@ -63,7 +63,7 @@ public interface ProductTypeChangeAttributeNameAction extends ProductTypeUpdateA public void setAttributeName(final String attributeName); /** - *

New user-defined name of the Attribute that is unique with the Project.

+ *

New user-defined name of the Attribute that is unique to the Project.

*

When using the same name for an Attribute in two or more ProductTypes, all fields of the AttributeDefinition of this Attribute must be the same across the ProductTypes. If not, an AttributeDefinitionAlreadyExists error is returned. An exception to this are the values of an enum or lenum type and sets thereof.

* @param newAttributeName value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/ProductTypeChangeAttributeNameActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/ProductTypeChangeAttributeNameActionBuilder.java index d4c30329c9e..bfc23b3bf8a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/ProductTypeChangeAttributeNameActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/ProductTypeChangeAttributeNameActionBuilder.java @@ -38,7 +38,7 @@ public ProductTypeChangeAttributeNameActionBuilder attributeName(final String at } /** - *

New user-defined name of the Attribute that is unique with the Project.

+ *

New user-defined name of the Attribute that is unique to the Project.

*

When using the same name for an Attribute in two or more ProductTypes, all fields of the AttributeDefinition of this Attribute must be the same across the ProductTypes. If not, an AttributeDefinitionAlreadyExists error is returned. An exception to this are the values of an enum or lenum type and sets thereof.

* @param newAttributeName value to be set * @return Builder @@ -59,7 +59,7 @@ public String getAttributeName() { } /** - *

New user-defined name of the Attribute that is unique with the Project.

+ *

New user-defined name of the Attribute that is unique to the Project.

*

When using the same name for an Attribute in two or more ProductTypes, all fields of the AttributeDefinition of this Attribute must be the same across the ProductTypes. If not, an AttributeDefinitionAlreadyExists error is returned. An exception to this are the values of an enum or lenum type and sets thereof.

* @return newAttributeName */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/ProductTypeChangeAttributeNameActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/ProductTypeChangeAttributeNameActionImpl.java index 520d3797cc5..05e0aa89f61 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/ProductTypeChangeAttributeNameActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/ProductTypeChangeAttributeNameActionImpl.java @@ -64,7 +64,7 @@ public String getAttributeName() { } /** - *

New user-defined name of the Attribute that is unique with the Project.

+ *

New user-defined name of the Attribute that is unique to the Project.

*

When using the same name for an Attribute in two or more ProductTypes, all fields of the AttributeDefinition of this Attribute must be the same across the ProductTypes. If not, an AttributeDefinitionAlreadyExists error is returned. An exception to this are the values of an enum or lenum type and sets thereof.

*/ diff --git a/references.txt b/references.txt index 91378754d31..880781fd192 100644 --- a/references.txt +++ b/references.txt @@ -351,3 +351,4 @@ d0ab34123535479eb53d2400ca18fdfab0f9bf4c e5666d7956fd6de53e41f965b052896d2a2ddd9b 98343f9a365a2f9d4db86190003d00b8682c71d9 f8b69ab19d6be2bcc6732deee0647bd8494c15f1 +e8f731a742ca2997342b1b5f98121d86c8189a3b From 61424ec3a303e0a0606d14a27fc52c7c6662d39e Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Thu, 2 Jan 2025 08:59:27 +0000 Subject: [PATCH 05/18] build(codegen): updating SDK --- .../history/models/change_history/ModifiedBy.java | 4 ++-- .../history/models/change_history/ModifiedByBuilder.java | 4 ++-- .../history/models/change_history/ModifiedByImpl.java | 2 +- .../commercetools/history/models/change_history/Source.java | 2 +- references.txt | 1 + 5 files changed, 7 insertions(+), 6 deletions(-) diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/ModifiedBy.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/ModifiedBy.java index dcfddf7f786..60687939a80 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/ModifiedBy.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/ModifiedBy.java @@ -35,7 +35,7 @@ public interface ModifiedBy { /** - *

true if the change was made using the Merchant Center or ImpEx.

+ *

true if the change was made using the Merchant Center.

* @return isPlatformClient */ @NotNull @@ -99,7 +99,7 @@ public interface ModifiedBy { public Reference getAssociate(); /** - *

true if the change was made using the Merchant Center or ImpEx.

+ *

true if the change was made using the Merchant Center.

* @param isPlatformClient value to be set */ diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/ModifiedByBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/ModifiedByBuilder.java index 12bcd3f5195..3b039640ae0 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/ModifiedByBuilder.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/ModifiedByBuilder.java @@ -45,7 +45,7 @@ public class ModifiedByBuilder implements Builder { private com.commercetools.history.models.common.Reference associate; /** - *

true if the change was made using the Merchant Center or ImpEx.

+ *

true if the change was made using the Merchant Center.

* @param isPlatformClient value to be set * @return Builder */ @@ -180,7 +180,7 @@ public ModifiedByBuilder associate(@Nullable final com.commercetools.history.mod } /** - *

true if the change was made using the Merchant Center or ImpEx.

+ *

true if the change was made using the Merchant Center.

* @return isPlatformClient */ diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/ModifiedByImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/ModifiedByImpl.java index e5865c48f9f..8b1d34c815e 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/ModifiedByImpl.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/ModifiedByImpl.java @@ -61,7 +61,7 @@ public ModifiedByImpl() { } /** - *

true if the change was made using the Merchant Center or ImpEx.

+ *

true if the change was made using the Merchant Center.

*/ public Boolean getIsPlatformClient() { diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/Source.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/Source.java index bf8b19c2c9c..4311dd0eb69 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/Source.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/Source.java @@ -20,7 +20,7 @@ public interface Source extends JsonEnum {

The change was made through the Merchant Center.

*/ Source MERCHANT_CENTER = SourceEnum.MERCHANT_CENTER; /** -

The change was made through ImpEx.

*/ +

The change was made through the now-decommissioned ImpEx tool.

*/ Source IMP_EX = SourceEnum.IMP_EX; /**

The change was made through an API Client.

*/ diff --git a/references.txt b/references.txt index 880781fd192..d46a0574e3b 100644 --- a/references.txt +++ b/references.txt @@ -352,3 +352,4 @@ e5666d7956fd6de53e41f965b052896d2a2ddd9b 98343f9a365a2f9d4db86190003d00b8682c71d9 f8b69ab19d6be2bcc6732deee0647bd8494c15f1 e8f731a742ca2997342b1b5f98121d86c8189a3b +473d2c6f1a9e9da0d2a42408ccf11f27a838f8b5 From 3b9ffb6888a7f71c9a572cbef8d5f6e06135c9e3 Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Thu, 2 Jan 2025 14:32:41 +0000 Subject: [PATCH 06/18] build(codegen): updating SDK --- changes.md | 27 ++ .../client/ByProjectKeyGraphqlPost.java | 126 ++++++++ .../client/ByProjectKeyGraphqlPostString.java | 125 ++++++++ .../ByProjectKeyGraphqlRequestBuilder.java | 33 +++ .../client/ByProjectKeyRequestBuilder.java | 4 + .../models/error/GraphQLErrorObject.java | 94 ++++++ .../error/GraphQLErrorObjectBuilder.java | 22 ++ .../models/error/GraphQLErrorObjectImpl.java | 98 +++++++ .../history/models/graph_ql/GraphQLError.java | 201 +++++++++++++ .../models/graph_ql/GraphQLErrorBuilder.java | 277 ++++++++++++++++++ .../models/graph_ql/GraphQLErrorImpl.java | 149 ++++++++++ .../models/graph_ql/GraphQLErrorLocation.java | 140 +++++++++ .../graph_ql/GraphQLErrorLocationBuilder.java | 107 +++++++ .../graph_ql/GraphQLErrorLocationImpl.java | 97 ++++++ .../models/graph_ql/GraphQLRequest.java | 158 ++++++++++ .../graph_ql/GraphQLRequestBuilder.java | 161 ++++++++++ .../models/graph_ql/GraphQLRequestImpl.java | 117 ++++++++ .../models/graph_ql/GraphQLResponse.java | 151 ++++++++++ .../graph_ql/GraphQLResponseBuilder.java | 188 ++++++++++++ .../models/graph_ql/GraphQLResponseImpl.java | 102 +++++++ .../models/graph_ql/GraphQLVariablesMap.java | 123 ++++++++ .../graph_ql/GraphQLVariablesMapBuilder.java | 95 ++++++ .../graph_ql/GraphQLVariablesMapImpl.java | 80 +++++ .../resource/ByProjectKeyGraphqlTest.java | 78 +++++ .../graph_ql/GraphQLErrorLocationTest.java | 44 +++ .../models/graph_ql/GraphQLErrorTest.java | 69 +++++ .../models/graph_ql/GraphQLRequestTest.java | 54 ++++ .../models/graph_ql/GraphQLResponseTest.java | 49 ++++ .../graph_ql/GraphQLVariablesMapTest.java | 13 + references.txt | 1 + 30 files changed, 2983 insertions(+) create mode 100644 commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/client/ByProjectKeyGraphqlPost.java create mode 100644 commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/client/ByProjectKeyGraphqlPostString.java create mode 100644 commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/client/ByProjectKeyGraphqlRequestBuilder.java create mode 100644 commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/error/GraphQLErrorObject.java create mode 100644 commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/error/GraphQLErrorObjectBuilder.java create mode 100644 commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/error/GraphQLErrorObjectImpl.java create mode 100644 commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLError.java create mode 100644 commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLErrorBuilder.java create mode 100644 commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLErrorImpl.java create mode 100644 commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLErrorLocation.java create mode 100644 commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLErrorLocationBuilder.java create mode 100644 commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLErrorLocationImpl.java create mode 100644 commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLRequest.java create mode 100644 commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLRequestBuilder.java create mode 100644 commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLRequestImpl.java create mode 100644 commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLResponse.java create mode 100644 commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLResponseBuilder.java create mode 100644 commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLResponseImpl.java create mode 100644 commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLVariablesMap.java create mode 100644 commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLVariablesMapBuilder.java create mode 100644 commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLVariablesMapImpl.java create mode 100644 commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/client/resource/ByProjectKeyGraphqlTest.java create mode 100644 commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/graph_ql/GraphQLErrorLocationTest.java create mode 100644 commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/graph_ql/GraphQLErrorTest.java create mode 100644 commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/graph_ql/GraphQLRequestTest.java create mode 100644 commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/graph_ql/GraphQLResponseTest.java create mode 100644 commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/graph_ql/GraphQLVariablesMapTest.java diff --git a/changes.md b/changes.md index 98d26bd9c0d..42244cf42cb 100644 --- a/changes.md +++ b/changes.md @@ -45,3 +45,30 @@ - added type `SearchExactValue` +**History changes** + +
+Added Resource(s) + +- added resource `/{projectKey}/graphql` +
+ + +
+Added Method(s) + +- added method `apiRoot.withProjectKeyValue().graphql().post()` +
+ + +
+Added Type(s) + +- added type `GraphQLRequest` +- added type `GraphQLResponse` +- added type `GraphQLError` +- added type `GraphQLErrorLocation` +- added type `GraphQLVariablesMap` +- added type `GraphQLErrorObject` +
+ diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/client/ByProjectKeyGraphqlPost.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/client/ByProjectKeyGraphqlPost.java new file mode 100644 index 00000000000..20dcfaa646e --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/client/ByProjectKeyGraphqlPost.java @@ -0,0 +1,126 @@ + +package com.commercetools.history.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Execute a GraphQL request.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKeyValue("{projectKey}")
+ *            .graphql()
+ *            .post(null)
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyGraphqlPost extends + TypeBodyApiMethod { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + + private com.commercetools.history.models.graph_ql.GraphQLRequest graphQLRequest; + + public ByProjectKeyGraphqlPost(final ApiHttpClient apiHttpClient, String projectKey, + com.commercetools.history.models.graph_ql.GraphQLRequest graphQLRequest) { + super(apiHttpClient); + this.projectKey = projectKey; + this.graphQLRequest = graphQLRequest; + } + + public ByProjectKeyGraphqlPost(ByProjectKeyGraphqlPost t) { + super(t); + this.projectKey = t.projectKey; + this.graphQLRequest = t.graphQLRequest; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/graphql", encodePathParam(this.projectKey)); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.POST, URI.create(httpRequestPath), getHeaders(), + io.vrap.rmf.base.client.utils.json.JsonUtils + .executing(() -> apiHttpClient().getSerializerService().toJsonByteArray(graphQLRequest))); + + } + + @Override + public ApiHttpResponse executeBlocking( + final ApiHttpClient client, final Duration timeout) { + return executeBlocking(client, timeout, com.commercetools.history.models.graph_ql.GraphQLResponse.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.commercetools.history.models.graph_ql.GraphQLResponse.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public com.commercetools.history.models.graph_ql.GraphQLRequest getBody() { + return graphQLRequest; + } + + public ByProjectKeyGraphqlPost withBody(com.commercetools.history.models.graph_ql.GraphQLRequest graphQLRequest) { + ByProjectKeyGraphqlPost t = copy(); + t.graphQLRequest = graphQLRequest; + return t; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyGraphqlPost that = (ByProjectKeyGraphqlPost) o; + + return new EqualsBuilder().append(projectKey, that.projectKey) + .append(graphQLRequest, that.graphQLRequest) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(graphQLRequest).toHashCode(); + } + + @Override + protected ByProjectKeyGraphqlPost copy() { + return new ByProjectKeyGraphqlPost(this); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/client/ByProjectKeyGraphqlPostString.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/client/ByProjectKeyGraphqlPostString.java new file mode 100644 index 00000000000..b40ff96ed36 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/client/ByProjectKeyGraphqlPostString.java @@ -0,0 +1,125 @@ + +package com.commercetools.history.client; + +import java.net.URI; +import java.nio.charset.StandardCharsets; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Execute a GraphQL request.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKeyValue("{projectKey}")
+ *            .graphql()
+ *            .post("")
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyGraphqlPostString extends + StringBodyApiMethod { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + + private String graphQLRequest; + + public ByProjectKeyGraphqlPostString(final ApiHttpClient apiHttpClient, String projectKey, String graphQLRequest) { + super(apiHttpClient); + this.projectKey = projectKey; + this.graphQLRequest = graphQLRequest; + } + + public ByProjectKeyGraphqlPostString(ByProjectKeyGraphqlPostString t) { + super(t); + this.projectKey = t.projectKey; + this.graphQLRequest = t.graphQLRequest; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/graphql", this.projectKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.POST, URI.create(httpRequestPath), getHeaders(), + graphQLRequest.getBytes(StandardCharsets.UTF_8)); + + } + + @Override + public ApiHttpResponse executeBlocking( + final ApiHttpClient client, final Duration timeout) { + return executeBlocking(client, timeout, com.commercetools.history.models.graph_ql.GraphQLResponse.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.commercetools.history.models.graph_ql.GraphQLResponse.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public String getBody() { + return graphQLRequest; + } + + public ByProjectKeyGraphqlPostString withBody(String graphQLRequest) { + ByProjectKeyGraphqlPostString t = copy(); + t.graphQLRequest = graphQLRequest; + return t; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyGraphqlPostString that = (ByProjectKeyGraphqlPostString) o; + + return new EqualsBuilder().append(projectKey, that.projectKey) + .append(graphQLRequest, that.graphQLRequest) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(graphQLRequest).toHashCode(); + } + + @Override + protected ByProjectKeyGraphqlPostString copy() { + return new ByProjectKeyGraphqlPostString(this); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/client/ByProjectKeyGraphqlRequestBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/client/ByProjectKeyGraphqlRequestBuilder.java new file mode 100644 index 00000000000..1d5c2ff0803 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/client/ByProjectKeyGraphqlRequestBuilder.java @@ -0,0 +1,33 @@ + +package com.commercetools.history.client; + +import java.util.function.UnaryOperator; + +import io.vrap.rmf.base.client.ApiHttpClient; +import io.vrap.rmf.base.client.utils.Generated; + +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyGraphqlRequestBuilder { + + private final ApiHttpClient apiHttpClient; + private final String projectKey; + + public ByProjectKeyGraphqlRequestBuilder(final ApiHttpClient apiHttpClient, final String projectKey) { + this.apiHttpClient = apiHttpClient; + this.projectKey = projectKey; + } + + public ByProjectKeyGraphqlPost post(com.commercetools.history.models.graph_ql.GraphQLRequest graphQLRequest) { + return new ByProjectKeyGraphqlPost(apiHttpClient, projectKey, graphQLRequest); + } + + public ByProjectKeyGraphqlPostString post(final String graphQLRequest) { + return new ByProjectKeyGraphqlPostString(apiHttpClient, projectKey, graphQLRequest); + } + + public ByProjectKeyGraphqlPost post( + UnaryOperator op) { + return post(op.apply(com.commercetools.history.models.graph_ql.GraphQLRequestBuilder.of()).build()); + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/client/ByProjectKeyRequestBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/client/ByProjectKeyRequestBuilder.java index 4968a7bcfec..6f05979e515 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/client/ByProjectKeyRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/client/ByProjectKeyRequestBuilder.java @@ -19,6 +19,10 @@ public ByProjectKeyGet get() { return new ByProjectKeyGet(apiHttpClient, projectKey); } + public ByProjectKeyGraphqlRequestBuilder graphql() { + return new ByProjectKeyGraphqlRequestBuilder(apiHttpClient, projectKey); + } + public ByProjectKeyByResourceTypeRequestBuilder withResourceTypeValue(String resourceType) { return new ByProjectKeyByResourceTypeRequestBuilder(apiHttpClient, projectKey, resourceType); } diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/error/GraphQLErrorObject.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/error/GraphQLErrorObject.java new file mode 100644 index 00000000000..0202b59701e --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/error/GraphQLErrorObject.java @@ -0,0 +1,94 @@ + +package com.commercetools.history.models.error; + +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.constraints.NotNull; + +/** + *

Represents a single error.

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

+ *     GraphQLErrorObject graphQLErrorObject = GraphQLErrorObject.builder()
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public interface GraphQLErrorObject { + + /** + *

One of the error codes that is listed on the Errors page.

+ * @return code + */ + @NotNull + @JsonProperty("code") + public String getCode(); + + /** + *

Error-specific additional fields.

+ * @return map of the pattern property values + */ + @NotNull + @JsonAnyGetter + public Map values(); + + /** + *

Error-specific additional fields.

+ * @param key property name + * @param value property value + */ + + @JsonAnySetter + public void setValue(String key, Object value); + + /** + * factory method to create a deep copy of GraphQLErrorObject + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static GraphQLErrorObject deepCopy(@Nullable final GraphQLErrorObject template) { + if (template == null) { + return null; + } + GraphQLErrorObjectImpl instance = new GraphQLErrorObjectImpl(); + Optional.ofNullable(template.values()).ifPresent(t -> t.forEach(instance::setValue)); + return instance; + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withGraphQLErrorObject(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-history/src/main/java-generated/com/commercetools/history/models/error/GraphQLErrorObjectBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/error/GraphQLErrorObjectBuilder.java new file mode 100644 index 00000000000..97c01877248 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/error/GraphQLErrorObjectBuilder.java @@ -0,0 +1,22 @@ + +package com.commercetools.history.models.error; + +import java.util.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + * GraphQLErrorObjectBuilder + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class GraphQLErrorObjectBuilder { + + /** + * factory method for an instance of GraphQLErrorObjectBuilder + * @return builder + */ + public static GraphQLErrorObjectBuilder of() { + return new GraphQLErrorObjectBuilder(); + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/error/GraphQLErrorObjectImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/error/GraphQLErrorObjectImpl.java new file mode 100644 index 00000000000..5e06401dcf7 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/error/GraphQLErrorObjectImpl.java @@ -0,0 +1,98 @@ + +package com.commercetools.history.models.error; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonAnySetter; +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 a single error.

+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class GraphQLErrorObjectImpl implements GraphQLErrorObject, ModelBase { + + private String code; + + private Map values; + + /** + * create instance with all properties + */ + @JsonCreator + GraphQLErrorObjectImpl(@JsonProperty("code") final String code, + @JsonAnySetter @JsonProperty("values") final Map values) { + this.code = code; + this.values = values; + } + + /** + * create empty instance + */ + public GraphQLErrorObjectImpl() { + } + + /** + *

One of the error codes that is listed on the Errors page.

+ */ + + public String getCode() { + return this.code; + } + + /** + *

Error-specific additional fields.

+ */ + + public Map values() { + return values; + } + + public void setValue(String key, java.lang.Object value) { + if (values == null) { + values = new HashMap<>(); + } + values.put(key, value); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + GraphQLErrorObjectImpl that = (GraphQLErrorObjectImpl) o; + + return new EqualsBuilder().append(code, that.code) + .append(values, that.values) + .append(code, that.code) + .append(values, that.values) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(code).append(values).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("code", code) + .append("values", values) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLError.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLError.java new file mode 100644 index 00000000000..d197aca65db --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLError.java @@ -0,0 +1,201 @@ + +package com.commercetools.history.models.graph_ql; + +import java.time.*; +import java.util.*; +import java.util.function.Function; +import java.util.stream.Collectors; + +import javax.annotation.Nullable; + +import com.commercetools.history.models.error.GraphQLErrorObject; +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; + +/** + *

Contains an error message, the location of the code that caused the error, and other information to help you correct the error.

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

+ *     GraphQLError graphQLError = GraphQLError.builder()
+ *             .message("{message}")
+ *             .plusLocations(locationsBuilder -> locationsBuilder)
+ *             .extensions(extensionsBuilder -> extensionsBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = GraphQLErrorImpl.class) +public interface GraphQLError { + + /** + *

Detailed description of the error explaining the root cause of the problem and suggesting how to correct the error.

+ * @return message + */ + @NotNull + @JsonProperty("message") + public String getMessage(); + + /** + *

Location within your query where the error occurred.

+ * @return locations + */ + @NotNull + @Valid + @JsonProperty("locations") + public List getLocations(); + + /** + *

Query fields listed in order from the root of the query response up to the field in which the error occurred. path is displayed in the response only if an error is associated with a particular field in the query result.

+ * @return path + */ + + @JsonProperty("path") + public List getPath(); + + /** + *

Dictionary with additional information where applicable.

+ * @return extensions + */ + @NotNull + @Valid + @JsonProperty("extensions") + public GraphQLErrorObject getExtensions(); + + /** + *

Detailed description of the error explaining the root cause of the problem and suggesting how to correct the error.

+ * @param message value to be set + */ + + public void setMessage(final String message); + + /** + *

Location within your query where the error occurred.

+ * @param locations values to be set + */ + + @JsonIgnore + public void setLocations(final GraphQLErrorLocation... locations); + + /** + *

Location within your query where the error occurred.

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

Query fields listed in order from the root of the query response up to the field in which the error occurred. path is displayed in the response only if an error is associated with a particular field in the query result.

+ * @param path values to be set + */ + + @JsonIgnore + public void setPath(final Object... path); + + /** + *

Query fields listed in order from the root of the query response up to the field in which the error occurred. path is displayed in the response only if an error is associated with a particular field in the query result.

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

Dictionary with additional information where applicable.

+ * @param extensions value to be set + */ + + public void setExtensions(final GraphQLErrorObject extensions); + + /** + * factory method + * @return instance of GraphQLError + */ + public static GraphQLError of() { + return new GraphQLErrorImpl(); + } + + /** + * factory method to create a shallow copy GraphQLError + * @param template instance to be copied + * @return copy instance + */ + public static GraphQLError of(final GraphQLError template) { + GraphQLErrorImpl instance = new GraphQLErrorImpl(); + instance.setMessage(template.getMessage()); + instance.setLocations(template.getLocations()); + instance.setPath(template.getPath()); + instance.setExtensions(template.getExtensions()); + return instance; + } + + /** + * factory method to create a deep copy of GraphQLError + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static GraphQLError deepCopy(@Nullable final GraphQLError template) { + if (template == null) { + return null; + } + GraphQLErrorImpl instance = new GraphQLErrorImpl(); + instance.setMessage(template.getMessage()); + instance.setLocations(Optional.ofNullable(template.getLocations()) + .map(t -> t.stream() + .map(com.commercetools.history.models.graph_ql.GraphQLErrorLocation::deepCopy) + .collect(Collectors.toList())) + .orElse(null)); + instance.setPath(Optional.ofNullable(template.getPath()).map(ArrayList::new).orElse(null)); + instance.setExtensions( + com.commercetools.history.models.error.GraphQLErrorObject.deepCopy(template.getExtensions())); + return instance; + } + + /** + * builder factory method for GraphQLError + * @return builder + */ + public static GraphQLErrorBuilder builder() { + return GraphQLErrorBuilder.of(); + } + + /** + * create builder for GraphQLError instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static GraphQLErrorBuilder builder(final GraphQLError template) { + return GraphQLErrorBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withGraphQLError(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-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLErrorBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLErrorBuilder.java new file mode 100644 index 00000000000..4fc95316498 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLErrorBuilder.java @@ -0,0 +1,277 @@ + +package com.commercetools.history.models.graph_ql; + +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; + +/** + * GraphQLErrorBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     GraphQLError graphQLError = GraphQLError.builder()
+ *             .message("{message}")
+ *             .plusLocations(locationsBuilder -> locationsBuilder)
+ *             .extensions(extensionsBuilder -> extensionsBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class GraphQLErrorBuilder implements Builder { + + private String message; + + private java.util.List locations; + + @Nullable + private java.util.List path; + + private com.commercetools.history.models.error.GraphQLErrorObject extensions; + + /** + *

Detailed description of the error explaining the root cause of the problem and suggesting how to correct the error.

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

Location within your query where the error occurred.

+ * @param locations value to be set + * @return Builder + */ + + public GraphQLErrorBuilder locations( + final com.commercetools.history.models.graph_ql.GraphQLErrorLocation... locations) { + this.locations = new ArrayList<>(Arrays.asList(locations)); + return this; + } + + /** + *

Location within your query where the error occurred.

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

Location within your query where the error occurred.

+ * @param locations value to be set + * @return Builder + */ + + public GraphQLErrorBuilder plusLocations( + final com.commercetools.history.models.graph_ql.GraphQLErrorLocation... locations) { + if (this.locations == null) { + this.locations = new ArrayList<>(); + } + this.locations.addAll(Arrays.asList(locations)); + return this; + } + + /** + *

Location within your query where the error occurred.

+ * @param builder function to build the locations value + * @return Builder + */ + + public GraphQLErrorBuilder plusLocations( + Function builder) { + if (this.locations == null) { + this.locations = new ArrayList<>(); + } + this.locations + .add(builder.apply(com.commercetools.history.models.graph_ql.GraphQLErrorLocationBuilder.of()).build()); + return this; + } + + /** + *

Location within your query where the error occurred.

+ * @param builder function to build the locations value + * @return Builder + */ + + public GraphQLErrorBuilder withLocations( + Function builder) { + this.locations = new ArrayList<>(); + this.locations + .add(builder.apply(com.commercetools.history.models.graph_ql.GraphQLErrorLocationBuilder.of()).build()); + return this; + } + + /** + *

Location within your query where the error occurred.

+ * @param builder function to build the locations value + * @return Builder + */ + + public GraphQLErrorBuilder addLocations( + Function builder) { + return plusLocations(builder.apply(com.commercetools.history.models.graph_ql.GraphQLErrorLocationBuilder.of())); + } + + /** + *

Location within your query where the error occurred.

+ * @param builder function to build the locations value + * @return Builder + */ + + public GraphQLErrorBuilder setLocations( + Function builder) { + return locations(builder.apply(com.commercetools.history.models.graph_ql.GraphQLErrorLocationBuilder.of())); + } + + /** + *

Query fields listed in order from the root of the query response up to the field in which the error occurred. path is displayed in the response only if an error is associated with a particular field in the query result.

+ * @param path value to be set + * @return Builder + */ + + public GraphQLErrorBuilder path(@Nullable final java.lang.Object... path) { + this.path = new ArrayList<>(Arrays.asList(path)); + return this; + } + + /** + *

Query fields listed in order from the root of the query response up to the field in which the error occurred. path is displayed in the response only if an error is associated with a particular field in the query result.

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

Query fields listed in order from the root of the query response up to the field in which the error occurred. path is displayed in the response only if an error is associated with a particular field in the query result.

+ * @param path value to be set + * @return Builder + */ + + public GraphQLErrorBuilder plusPath(@Nullable final java.lang.Object... path) { + if (this.path == null) { + this.path = new ArrayList<>(); + } + this.path.addAll(Arrays.asList(path)); + return this; + } + + /** + *

Dictionary with additional information where applicable.

+ * @param extensions value to be set + * @return Builder + */ + + public GraphQLErrorBuilder extensions(final com.commercetools.history.models.error.GraphQLErrorObject extensions) { + this.extensions = extensions; + return this; + } + + /** + *

Dictionary with additional information where applicable.

+ * @param builder function to build the extensions value + * @return Builder + */ + + public GraphQLErrorBuilder extensions( + Function> builder) { + this.extensions = builder.apply(com.commercetools.history.models.error.GraphQLErrorObjectBuilder.of()).build(); + return this; + } + + /** + *

Detailed description of the error explaining the root cause of the problem and suggesting how to correct the error.

+ * @return message + */ + + public String getMessage() { + return this.message; + } + + /** + *

Location within your query where the error occurred.

+ * @return locations + */ + + public java.util.List getLocations() { + return this.locations; + } + + /** + *

Query fields listed in order from the root of the query response up to the field in which the error occurred. path is displayed in the response only if an error is associated with a particular field in the query result.

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

Dictionary with additional information where applicable.

+ * @return extensions + */ + + public com.commercetools.history.models.error.GraphQLErrorObject getExtensions() { + return this.extensions; + } + + /** + * builds GraphQLError with checking for non-null required values + * @return GraphQLError + */ + public GraphQLError build() { + Objects.requireNonNull(message, GraphQLError.class + ": message is missing"); + Objects.requireNonNull(locations, GraphQLError.class + ": locations is missing"); + Objects.requireNonNull(extensions, GraphQLError.class + ": extensions is missing"); + return new GraphQLErrorImpl(message, locations, path, extensions); + } + + /** + * builds GraphQLError without checking for non-null required values + * @return GraphQLError + */ + public GraphQLError buildUnchecked() { + return new GraphQLErrorImpl(message, locations, path, extensions); + } + + /** + * factory method for an instance of GraphQLErrorBuilder + * @return builder + */ + public static GraphQLErrorBuilder of() { + return new GraphQLErrorBuilder(); + } + + /** + * create builder for GraphQLError instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static GraphQLErrorBuilder of(final GraphQLError template) { + GraphQLErrorBuilder builder = new GraphQLErrorBuilder(); + builder.message = template.getMessage(); + builder.locations = template.getLocations(); + builder.path = template.getPath(); + builder.extensions = template.getExtensions(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLErrorImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLErrorImpl.java new file mode 100644 index 00000000000..a40e15b0400 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLErrorImpl.java @@ -0,0 +1,149 @@ + +package com.commercetools.history.models.graph_ql; + +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; + +/** + *

Contains an error message, the location of the code that caused the error, and other information to help you correct the error.

+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class GraphQLErrorImpl implements GraphQLError, ModelBase { + + private String message; + + private java.util.List locations; + + private java.util.List path; + + private com.commercetools.history.models.error.GraphQLErrorObject extensions; + + /** + * create instance with all properties + */ + @JsonCreator + GraphQLErrorImpl(@JsonProperty("message") final String message, + @JsonProperty("locations") final java.util.List locations, + @JsonProperty("path") final java.util.List path, + @JsonProperty("extensions") final com.commercetools.history.models.error.GraphQLErrorObject extensions) { + this.message = message; + this.locations = locations; + this.path = path; + this.extensions = extensions; + } + + /** + * create empty instance + */ + public GraphQLErrorImpl() { + } + + /** + *

Detailed description of the error explaining the root cause of the problem and suggesting how to correct the error.

+ */ + + public String getMessage() { + return this.message; + } + + /** + *

Location within your query where the error occurred.

+ */ + + public java.util.List getLocations() { + return this.locations; + } + + /** + *

Query fields listed in order from the root of the query response up to the field in which the error occurred. path is displayed in the response only if an error is associated with a particular field in the query result.

+ */ + + public java.util.List getPath() { + return this.path; + } + + /** + *

Dictionary with additional information where applicable.

+ */ + + public com.commercetools.history.models.error.GraphQLErrorObject getExtensions() { + return this.extensions; + } + + public void setMessage(final String message) { + this.message = message; + } + + public void setLocations(final com.commercetools.history.models.graph_ql.GraphQLErrorLocation... locations) { + this.locations = new ArrayList<>(Arrays.asList(locations)); + } + + public void setLocations( + final java.util.List locations) { + this.locations = locations; + } + + public void setPath(final java.lang.Object... path) { + this.path = new ArrayList<>(Arrays.asList(path)); + } + + public void setPath(final java.util.List path) { + this.path = path; + } + + public void setExtensions(final com.commercetools.history.models.error.GraphQLErrorObject extensions) { + this.extensions = extensions; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + GraphQLErrorImpl that = (GraphQLErrorImpl) o; + + return new EqualsBuilder().append(message, that.message) + .append(locations, that.locations) + .append(path, that.path) + .append(extensions, that.extensions) + .append(message, that.message) + .append(locations, that.locations) + .append(path, that.path) + .append(extensions, that.extensions) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(message) + .append(locations) + .append(path) + .append(extensions) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("message", message) + .append("locations", locations) + .append("path", path) + .append("extensions", extensions) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLErrorLocation.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLErrorLocation.java new file mode 100644 index 00000000000..f1c7982681c --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLErrorLocation.java @@ -0,0 +1,140 @@ + +package com.commercetools.history.models.graph_ql; + +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.constraints.NotNull; + +/** + *

Represents the location within your query where the error occurred.

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

+ *     GraphQLErrorLocation graphQLErrorLocation = GraphQLErrorLocation.builder()
+ *             .line(0.3)
+ *             .column(0.3)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = GraphQLErrorLocationImpl.class) +public interface GraphQLErrorLocation { + + /** + *

Line number of the query where the error occurred.

+ * @return line + */ + @NotNull + @JsonProperty("line") + public Long getLine(); + + /** + *

Position in line where the error occurred.

+ * @return column + */ + @NotNull + @JsonProperty("column") + public Long getColumn(); + + /** + *

Line number of the query where the error occurred.

+ * @param line value to be set + */ + + public void setLine(final Long line); + + /** + *

Position in line where the error occurred.

+ * @param column value to be set + */ + + public void setColumn(final Long column); + + /** + * factory method + * @return instance of GraphQLErrorLocation + */ + public static GraphQLErrorLocation of() { + return new GraphQLErrorLocationImpl(); + } + + /** + * factory method to create a shallow copy GraphQLErrorLocation + * @param template instance to be copied + * @return copy instance + */ + public static GraphQLErrorLocation of(final GraphQLErrorLocation template) { + GraphQLErrorLocationImpl instance = new GraphQLErrorLocationImpl(); + instance.setLine(template.getLine()); + instance.setColumn(template.getColumn()); + return instance; + } + + /** + * factory method to create a deep copy of GraphQLErrorLocation + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static GraphQLErrorLocation deepCopy(@Nullable final GraphQLErrorLocation template) { + if (template == null) { + return null; + } + GraphQLErrorLocationImpl instance = new GraphQLErrorLocationImpl(); + instance.setLine(template.getLine()); + instance.setColumn(template.getColumn()); + return instance; + } + + /** + * builder factory method for GraphQLErrorLocation + * @return builder + */ + public static GraphQLErrorLocationBuilder builder() { + return GraphQLErrorLocationBuilder.of(); + } + + /** + * create builder for GraphQLErrorLocation instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static GraphQLErrorLocationBuilder builder(final GraphQLErrorLocation template) { + return GraphQLErrorLocationBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withGraphQLErrorLocation(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-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLErrorLocationBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLErrorLocationBuilder.java new file mode 100644 index 00000000000..1f35a9d166e --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLErrorLocationBuilder.java @@ -0,0 +1,107 @@ + +package com.commercetools.history.models.graph_ql; + +import java.util.*; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * GraphQLErrorLocationBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     GraphQLErrorLocation graphQLErrorLocation = GraphQLErrorLocation.builder()
+ *             .line(0.3)
+ *             .column(0.3)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class GraphQLErrorLocationBuilder implements Builder { + + private Long line; + + private Long column; + + /** + *

Line number of the query where the error occurred.

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

Position in line where the error occurred.

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

Line number of the query where the error occurred.

+ * @return line + */ + + public Long getLine() { + return this.line; + } + + /** + *

Position in line where the error occurred.

+ * @return column + */ + + public Long getColumn() { + return this.column; + } + + /** + * builds GraphQLErrorLocation with checking for non-null required values + * @return GraphQLErrorLocation + */ + public GraphQLErrorLocation build() { + Objects.requireNonNull(line, GraphQLErrorLocation.class + ": line is missing"); + Objects.requireNonNull(column, GraphQLErrorLocation.class + ": column is missing"); + return new GraphQLErrorLocationImpl(line, column); + } + + /** + * builds GraphQLErrorLocation without checking for non-null required values + * @return GraphQLErrorLocation + */ + public GraphQLErrorLocation buildUnchecked() { + return new GraphQLErrorLocationImpl(line, column); + } + + /** + * factory method for an instance of GraphQLErrorLocationBuilder + * @return builder + */ + public static GraphQLErrorLocationBuilder of() { + return new GraphQLErrorLocationBuilder(); + } + + /** + * create builder for GraphQLErrorLocation instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static GraphQLErrorLocationBuilder of(final GraphQLErrorLocation template) { + GraphQLErrorLocationBuilder builder = new GraphQLErrorLocationBuilder(); + builder.line = template.getLine(); + builder.column = template.getColumn(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLErrorLocationImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLErrorLocationImpl.java new file mode 100644 index 00000000000..e3ca04c0d10 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLErrorLocationImpl.java @@ -0,0 +1,97 @@ + +package com.commercetools.history.models.graph_ql; + +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 the location within your query where the error occurred.

+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class GraphQLErrorLocationImpl implements GraphQLErrorLocation, ModelBase { + + private Long line; + + private Long column; + + /** + * create instance with all properties + */ + @JsonCreator + GraphQLErrorLocationImpl(@JsonProperty("line") final Long line, @JsonProperty("column") final Long column) { + this.line = line; + this.column = column; + } + + /** + * create empty instance + */ + public GraphQLErrorLocationImpl() { + } + + /** + *

Line number of the query where the error occurred.

+ */ + + public Long getLine() { + return this.line; + } + + /** + *

Position in line where the error occurred.

+ */ + + public Long getColumn() { + return this.column; + } + + public void setLine(final Long line) { + this.line = line; + } + + public void setColumn(final Long column) { + this.column = column; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + GraphQLErrorLocationImpl that = (GraphQLErrorLocationImpl) o; + + return new EqualsBuilder().append(line, that.line) + .append(column, that.column) + .append(line, that.line) + .append(column, that.column) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(line).append(column).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("line", line) + .append("column", column) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLRequest.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLRequest.java new file mode 100644 index 00000000000..882804c02a4 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLRequest.java @@ -0,0 +1,158 @@ + +package com.commercetools.history.models.graph_ql; + +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; + +/** + *

The query, operation name, and variables that are sent to the GraphQL API.

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

+ *     GraphQLRequest graphQLRequest = GraphQLRequest.builder()
+ *             .query("{query}")
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = GraphQLRequestImpl.class) +public interface GraphQLRequest { + + /** + *

String representation of the Source Text of the Document that is specified in the Language section of the GraphQL specification.

+ * @return query + */ + @NotNull + @JsonProperty("query") + public String getQuery(); + + /** + *

Name of the operation, if you defined several operations in query.

+ * @return operationName + */ + + @JsonProperty("operationName") + public String getOperationName(); + + /** + *

JSON object that contains key-value pairs in which the keys are variable names and the values are variable values.

+ * @return variables + */ + @Valid + @JsonProperty("variables") + public GraphQLVariablesMap getVariables(); + + /** + *

String representation of the Source Text of the Document that is specified in the Language section of the GraphQL specification.

+ * @param query value to be set + */ + + public void setQuery(final String query); + + /** + *

Name of the operation, if you defined several operations in query.

+ * @param operationName value to be set + */ + + public void setOperationName(final String operationName); + + /** + *

JSON object that contains key-value pairs in which the keys are variable names and the values are variable values.

+ * @param variables value to be set + */ + + public void setVariables(final GraphQLVariablesMap variables); + + /** + * factory method + * @return instance of GraphQLRequest + */ + public static GraphQLRequest of() { + return new GraphQLRequestImpl(); + } + + /** + * factory method to create a shallow copy GraphQLRequest + * @param template instance to be copied + * @return copy instance + */ + public static GraphQLRequest of(final GraphQLRequest template) { + GraphQLRequestImpl instance = new GraphQLRequestImpl(); + instance.setQuery(template.getQuery()); + instance.setOperationName(template.getOperationName()); + instance.setVariables(template.getVariables()); + return instance; + } + + /** + * factory method to create a deep copy of GraphQLRequest + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static GraphQLRequest deepCopy(@Nullable final GraphQLRequest template) { + if (template == null) { + return null; + } + GraphQLRequestImpl instance = new GraphQLRequestImpl(); + instance.setQuery(template.getQuery()); + instance.setOperationName(template.getOperationName()); + instance.setVariables( + com.commercetools.history.models.graph_ql.GraphQLVariablesMap.deepCopy(template.getVariables())); + return instance; + } + + /** + * builder factory method for GraphQLRequest + * @return builder + */ + public static GraphQLRequestBuilder builder() { + return GraphQLRequestBuilder.of(); + } + + /** + * create builder for GraphQLRequest instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static GraphQLRequestBuilder builder(final GraphQLRequest template) { + return GraphQLRequestBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withGraphQLRequest(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-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLRequestBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLRequestBuilder.java new file mode 100644 index 00000000000..bc1c309aded --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLRequestBuilder.java @@ -0,0 +1,161 @@ + +package com.commercetools.history.models.graph_ql; + +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; + +/** + * GraphQLRequestBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     GraphQLRequest graphQLRequest = GraphQLRequest.builder()
+ *             .query("{query}")
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class GraphQLRequestBuilder implements Builder { + + private String query; + + @Nullable + private String operationName; + + @Nullable + private com.commercetools.history.models.graph_ql.GraphQLVariablesMap variables; + + /** + *

String representation of the Source Text of the Document that is specified in the Language section of the GraphQL specification.

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

Name of the operation, if you defined several operations in query.

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

JSON object that contains key-value pairs in which the keys are variable names and the values are variable values.

+ * @param builder function to build the variables value + * @return Builder + */ + + public GraphQLRequestBuilder variables( + Function builder) { + this.variables = builder.apply(com.commercetools.history.models.graph_ql.GraphQLVariablesMapBuilder.of()) + .build(); + return this; + } + + /** + *

JSON object that contains key-value pairs in which the keys are variable names and the values are variable values.

+ * @param builder function to build the variables value + * @return Builder + */ + + public GraphQLRequestBuilder withVariables( + Function builder) { + this.variables = builder.apply(com.commercetools.history.models.graph_ql.GraphQLVariablesMapBuilder.of()); + return this; + } + + /** + *

JSON object that contains key-value pairs in which the keys are variable names and the values are variable values.

+ * @param variables value to be set + * @return Builder + */ + + public GraphQLRequestBuilder variables( + @Nullable final com.commercetools.history.models.graph_ql.GraphQLVariablesMap variables) { + this.variables = variables; + return this; + } + + /** + *

String representation of the Source Text of the Document that is specified in the Language section of the GraphQL specification.

+ * @return query + */ + + public String getQuery() { + return this.query; + } + + /** + *

Name of the operation, if you defined several operations in query.

+ * @return operationName + */ + + @Nullable + public String getOperationName() { + return this.operationName; + } + + /** + *

JSON object that contains key-value pairs in which the keys are variable names and the values are variable values.

+ * @return variables + */ + + @Nullable + public com.commercetools.history.models.graph_ql.GraphQLVariablesMap getVariables() { + return this.variables; + } + + /** + * builds GraphQLRequest with checking for non-null required values + * @return GraphQLRequest + */ + public GraphQLRequest build() { + Objects.requireNonNull(query, GraphQLRequest.class + ": query is missing"); + return new GraphQLRequestImpl(query, operationName, variables); + } + + /** + * builds GraphQLRequest without checking for non-null required values + * @return GraphQLRequest + */ + public GraphQLRequest buildUnchecked() { + return new GraphQLRequestImpl(query, operationName, variables); + } + + /** + * factory method for an instance of GraphQLRequestBuilder + * @return builder + */ + public static GraphQLRequestBuilder of() { + return new GraphQLRequestBuilder(); + } + + /** + * create builder for GraphQLRequest instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static GraphQLRequestBuilder of(final GraphQLRequest template) { + GraphQLRequestBuilder builder = new GraphQLRequestBuilder(); + builder.query = template.getQuery(); + builder.operationName = template.getOperationName(); + builder.variables = template.getVariables(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLRequestImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLRequestImpl.java new file mode 100644 index 00000000000..9f66e45162e --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLRequestImpl.java @@ -0,0 +1,117 @@ + +package com.commercetools.history.models.graph_ql; + +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; + +/** + *

The query, operation name, and variables that are sent to the GraphQL API.

+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class GraphQLRequestImpl implements GraphQLRequest, ModelBase { + + private String query; + + private String operationName; + + private com.commercetools.history.models.graph_ql.GraphQLVariablesMap variables; + + /** + * create instance with all properties + */ + @JsonCreator + GraphQLRequestImpl(@JsonProperty("query") final String query, + @JsonProperty("operationName") final String operationName, + @JsonProperty("variables") final com.commercetools.history.models.graph_ql.GraphQLVariablesMap variables) { + this.query = query; + this.operationName = operationName; + this.variables = variables; + } + + /** + * create empty instance + */ + public GraphQLRequestImpl() { + } + + /** + *

String representation of the Source Text of the Document that is specified in the Language section of the GraphQL specification.

+ */ + + public String getQuery() { + return this.query; + } + + /** + *

Name of the operation, if you defined several operations in query.

+ */ + + public String getOperationName() { + return this.operationName; + } + + /** + *

JSON object that contains key-value pairs in which the keys are variable names and the values are variable values.

+ */ + + public com.commercetools.history.models.graph_ql.GraphQLVariablesMap getVariables() { + return this.variables; + } + + public void setQuery(final String query) { + this.query = query; + } + + public void setOperationName(final String operationName) { + this.operationName = operationName; + } + + public void setVariables(final com.commercetools.history.models.graph_ql.GraphQLVariablesMap variables) { + this.variables = variables; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + GraphQLRequestImpl that = (GraphQLRequestImpl) o; + + return new EqualsBuilder().append(query, that.query) + .append(operationName, that.operationName) + .append(variables, that.variables) + .append(query, that.query) + .append(operationName, that.operationName) + .append(variables, that.variables) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(query).append(operationName).append(variables).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("query", query) + .append("operationName", operationName) + .append("variables", variables) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLResponse.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLResponse.java new file mode 100644 index 00000000000..fc3d8f556ab --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLResponse.java @@ -0,0 +1,151 @@ + +package com.commercetools.history.models.graph_ql; + +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; + +/** + *

error is present in the response only if the GraphQL query was unsuccessful.

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

+ *     GraphQLResponse graphQLResponse = GraphQLResponse.builder()
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = GraphQLResponseImpl.class) +public interface GraphQLResponse { + + /** + *

JSON object that contains the results of a GraphQL query.

+ * @return data + */ + + @JsonProperty("data") + public Object getData(); + + /** + *

Errors that the GraphQL query returns.

+ * @return errors + */ + @Valid + @JsonProperty("errors") + public List getErrors(); + + /** + *

JSON object that contains the results of a GraphQL query.

+ * @param data value to be set + */ + + public void setData(final Object data); + + /** + *

Errors that the GraphQL query returns.

+ * @param errors values to be set + */ + + @JsonIgnore + public void setErrors(final GraphQLError... errors); + + /** + *

Errors that the GraphQL query returns.

+ * @param errors values to be set + */ + + public void setErrors(final List errors); + + /** + * factory method + * @return instance of GraphQLResponse + */ + public static GraphQLResponse of() { + return new GraphQLResponseImpl(); + } + + /** + * factory method to create a shallow copy GraphQLResponse + * @param template instance to be copied + * @return copy instance + */ + public static GraphQLResponse of(final GraphQLResponse template) { + GraphQLResponseImpl instance = new GraphQLResponseImpl(); + instance.setData(template.getData()); + instance.setErrors(template.getErrors()); + return instance; + } + + /** + * factory method to create a deep copy of GraphQLResponse + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static GraphQLResponse deepCopy(@Nullable final GraphQLResponse template) { + if (template == null) { + return null; + } + GraphQLResponseImpl instance = new GraphQLResponseImpl(); + instance.setData(template.getData()); + instance.setErrors(Optional.ofNullable(template.getErrors()) + .map(t -> t.stream() + .map(com.commercetools.history.models.graph_ql.GraphQLError::deepCopy) + .collect(Collectors.toList())) + .orElse(null)); + return instance; + } + + /** + * builder factory method for GraphQLResponse + * @return builder + */ + public static GraphQLResponseBuilder builder() { + return GraphQLResponseBuilder.of(); + } + + /** + * create builder for GraphQLResponse instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static GraphQLResponseBuilder builder(final GraphQLResponse template) { + return GraphQLResponseBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withGraphQLResponse(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-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLResponseBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLResponseBuilder.java new file mode 100644 index 00000000000..ceedfecd819 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLResponseBuilder.java @@ -0,0 +1,188 @@ + +package com.commercetools.history.models.graph_ql; + +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; + +/** + * GraphQLResponseBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     GraphQLResponse graphQLResponse = GraphQLResponse.builder()
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class GraphQLResponseBuilder implements Builder { + + @Nullable + private java.lang.Object data; + + @Nullable + private java.util.List errors; + + /** + *

JSON object that contains the results of a GraphQL query.

+ * @param data value to be set + * @return Builder + */ + + public GraphQLResponseBuilder data(@Nullable final java.lang.Object data) { + this.data = data; + return this; + } + + /** + *

Errors that the GraphQL query returns.

+ * @param errors value to be set + * @return Builder + */ + + public GraphQLResponseBuilder errors( + @Nullable final com.commercetools.history.models.graph_ql.GraphQLError... errors) { + this.errors = new ArrayList<>(Arrays.asList(errors)); + return this; + } + + /** + *

Errors that the GraphQL query returns.

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

Errors that the GraphQL query returns.

+ * @param errors value to be set + * @return Builder + */ + + public GraphQLResponseBuilder plusErrors( + @Nullable final com.commercetools.history.models.graph_ql.GraphQLError... errors) { + if (this.errors == null) { + this.errors = new ArrayList<>(); + } + this.errors.addAll(Arrays.asList(errors)); + return this; + } + + /** + *

Errors that the GraphQL query returns.

+ * @param builder function to build the errors value + * @return Builder + */ + + public GraphQLResponseBuilder plusErrors( + Function builder) { + if (this.errors == null) { + this.errors = new ArrayList<>(); + } + this.errors.add(builder.apply(com.commercetools.history.models.graph_ql.GraphQLErrorBuilder.of()).build()); + return this; + } + + /** + *

Errors that the GraphQL query returns.

+ * @param builder function to build the errors value + * @return Builder + */ + + public GraphQLResponseBuilder withErrors( + Function builder) { + this.errors = new ArrayList<>(); + this.errors.add(builder.apply(com.commercetools.history.models.graph_ql.GraphQLErrorBuilder.of()).build()); + return this; + } + + /** + *

Errors that the GraphQL query returns.

+ * @param builder function to build the errors value + * @return Builder + */ + + public GraphQLResponseBuilder addErrors( + Function builder) { + return plusErrors(builder.apply(com.commercetools.history.models.graph_ql.GraphQLErrorBuilder.of())); + } + + /** + *

Errors that the GraphQL query returns.

+ * @param builder function to build the errors value + * @return Builder + */ + + public GraphQLResponseBuilder setErrors( + Function builder) { + return errors(builder.apply(com.commercetools.history.models.graph_ql.GraphQLErrorBuilder.of())); + } + + /** + *

JSON object that contains the results of a GraphQL query.

+ * @return data + */ + + @Nullable + public java.lang.Object getData() { + return this.data; + } + + /** + *

Errors that the GraphQL query returns.

+ * @return errors + */ + + @Nullable + public java.util.List getErrors() { + return this.errors; + } + + /** + * builds GraphQLResponse with checking for non-null required values + * @return GraphQLResponse + */ + public GraphQLResponse build() { + return new GraphQLResponseImpl(data, errors); + } + + /** + * builds GraphQLResponse without checking for non-null required values + * @return GraphQLResponse + */ + public GraphQLResponse buildUnchecked() { + return new GraphQLResponseImpl(data, errors); + } + + /** + * factory method for an instance of GraphQLResponseBuilder + * @return builder + */ + public static GraphQLResponseBuilder of() { + return new GraphQLResponseBuilder(); + } + + /** + * create builder for GraphQLResponse instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static GraphQLResponseBuilder of(final GraphQLResponse template) { + GraphQLResponseBuilder builder = new GraphQLResponseBuilder(); + builder.data = template.getData(); + builder.errors = template.getErrors(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLResponseImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLResponseImpl.java new file mode 100644 index 00000000000..3daa037c42e --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLResponseImpl.java @@ -0,0 +1,102 @@ + +package com.commercetools.history.models.graph_ql; + +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; + +/** + *

error is present in the response only if the GraphQL query was unsuccessful.

+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class GraphQLResponseImpl implements GraphQLResponse, ModelBase { + + private java.lang.Object data; + + private java.util.List errors; + + /** + * create instance with all properties + */ + @JsonCreator + GraphQLResponseImpl(@JsonProperty("data") final java.lang.Object data, + @JsonProperty("errors") final java.util.List errors) { + this.data = data; + this.errors = errors; + } + + /** + * create empty instance + */ + public GraphQLResponseImpl() { + } + + /** + *

JSON object that contains the results of a GraphQL query.

+ */ + + public java.lang.Object getData() { + return this.data; + } + + /** + *

Errors that the GraphQL query returns.

+ */ + + public java.util.List getErrors() { + return this.errors; + } + + public void setData(final java.lang.Object data) { + this.data = data; + } + + public void setErrors(final com.commercetools.history.models.graph_ql.GraphQLError... errors) { + this.errors = new ArrayList<>(Arrays.asList(errors)); + } + + public void setErrors(final java.util.List errors) { + this.errors = errors; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + GraphQLResponseImpl that = (GraphQLResponseImpl) o; + + return new EqualsBuilder().append(data, that.data) + .append(errors, that.errors) + .append(data, that.data) + .append(errors, that.errors) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(data).append(errors).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("data", data) + .append("errors", errors) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLVariablesMap.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLVariablesMap.java new file mode 100644 index 00000000000..a2502da804c --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLVariablesMap.java @@ -0,0 +1,123 @@ + +package com.commercetools.history.models.graph_ql; + +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.constraints.NotNull; + +/** + *

The variables that the GraphQL query uses.

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

+ *     GraphQLVariablesMap graphQLVariablesMap = GraphQLVariablesMap.builder()
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = GraphQLVariablesMapImpl.class) +public interface GraphQLVariablesMap { + + /** + *

JSON object that contains key-value pairs in which the keys are variable names and the values are variable values.

+ * @return map of the pattern property values + */ + @NotNull + @JsonAnyGetter + public Map values(); + + /** + *

JSON object that contains key-value pairs in which the keys are variable names and the values are variable values.

+ * @param key property name + * @param value property value + */ + + @JsonAnySetter + public void setValue(String key, Object value); + + /** + * factory method + * @return instance of GraphQLVariablesMap + */ + public static GraphQLVariablesMap of() { + return new GraphQLVariablesMapImpl(); + } + + /** + * factory method to create a shallow copy GraphQLVariablesMap + * @param template instance to be copied + * @return copy instance + */ + public static GraphQLVariablesMap of(final GraphQLVariablesMap template) { + GraphQLVariablesMapImpl instance = new GraphQLVariablesMapImpl(); + Optional.ofNullable(template.values()).ifPresent(t -> t.forEach(instance::setValue)); + return instance; + } + + /** + * factory method to create a deep copy of GraphQLVariablesMap + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static GraphQLVariablesMap deepCopy(@Nullable final GraphQLVariablesMap template) { + if (template == null) { + return null; + } + GraphQLVariablesMapImpl instance = new GraphQLVariablesMapImpl(); + Optional.ofNullable(template.values()).ifPresent(t -> t.forEach(instance::setValue)); + return instance; + } + + /** + * builder factory method for GraphQLVariablesMap + * @return builder + */ + public static GraphQLVariablesMapBuilder builder() { + return GraphQLVariablesMapBuilder.of(); + } + + /** + * create builder for GraphQLVariablesMap instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static GraphQLVariablesMapBuilder builder(final GraphQLVariablesMap template) { + return GraphQLVariablesMapBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withGraphQLVariablesMap(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-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLVariablesMapBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLVariablesMapBuilder.java new file mode 100644 index 00000000000..239ee4fd2d4 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLVariablesMapBuilder.java @@ -0,0 +1,95 @@ + +package com.commercetools.history.models.graph_ql; + +import java.util.*; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * GraphQLVariablesMapBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     GraphQLVariablesMap graphQLVariablesMap = GraphQLVariablesMap.builder()
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class GraphQLVariablesMapBuilder implements Builder { + + private Map values = new HashMap<>(); + + /** + *

JSON object that contains key-value pairs in which the keys are variable names and the values are variable values.

+ * @param values properties to be set + * @return Builder + */ + + public GraphQLVariablesMapBuilder values(final Map values) { + this.values = values; + return this; + } + + /** + *

JSON object that contains key-value pairs in which the keys are variable names and the values are variable values.

+ * @param key property name + * @param value property value + * @return Builder + */ + + public GraphQLVariablesMapBuilder addValue(final String key, final java.lang.Object value) { + if (this.values == null) { + values = new HashMap<>(); + } + values.put(key, value); + return this; + } + + /** + *

JSON object that contains key-value pairs in which the keys are variable names and the values are variable values.

+ * @return pattern properties + */ + + public Map getValues() { + return this.values; + } + + /** + * builds GraphQLVariablesMap with checking for non-null required values + * @return GraphQLVariablesMap + */ + public GraphQLVariablesMap build() { + return new GraphQLVariablesMapImpl(values); + } + + /** + * builds GraphQLVariablesMap without checking for non-null required values + * @return GraphQLVariablesMap + */ + public GraphQLVariablesMap buildUnchecked() { + return new GraphQLVariablesMapImpl(values); + } + + /** + * factory method for an instance of GraphQLVariablesMapBuilder + * @return builder + */ + public static GraphQLVariablesMapBuilder of() { + return new GraphQLVariablesMapBuilder(); + } + + /** + * create builder for GraphQLVariablesMap instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static GraphQLVariablesMapBuilder of(final GraphQLVariablesMap template) { + GraphQLVariablesMapBuilder builder = new GraphQLVariablesMapBuilder(); + builder.values = template.values(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLVariablesMapImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLVariablesMapImpl.java new file mode 100644 index 00000000000..8de8e065fb3 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLVariablesMapImpl.java @@ -0,0 +1,80 @@ + +package com.commercetools.history.models.graph_ql; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonAnySetter; +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; + +/** + *

The variables that the GraphQL query uses.

+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class GraphQLVariablesMapImpl implements GraphQLVariablesMap, ModelBase { + + private Map values; + + /** + * create instance with all properties + */ + @JsonCreator + GraphQLVariablesMapImpl(@JsonAnySetter @JsonProperty("values") final Map values) { + this.values = values; + } + + /** + * create empty instance + */ + public GraphQLVariablesMapImpl() { + } + + /** + *

JSON object that contains key-value pairs in which the keys are variable names and the values are variable values.

+ */ + + public Map values() { + return values; + } + + public void setValue(String key, java.lang.Object value) { + if (values == null) { + values = new HashMap<>(); + } + values.put(key, value); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + GraphQLVariablesMapImpl that = (GraphQLVariablesMapImpl) o; + + return new EqualsBuilder().append(values, that.values).append(values, that.values).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(values).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("values", values).build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/client/resource/ByProjectKeyGraphqlTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/client/resource/ByProjectKeyGraphqlTest.java new file mode 100644 index 00000000000..8b8a0cfba83 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/client/resource/ByProjectKeyGraphqlTest.java @@ -0,0 +1,78 @@ + +package com.commercetools.history.client.resource; + +import java.nio.charset.StandardCharsets; +import java.util.concurrent.CompletableFuture; + +import com.commercetools.history.client.ApiRoot; +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 io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.ApiHttpClient; +import io.vrap.rmf.base.client.ApiHttpRequest; +import io.vrap.rmf.base.client.VrapHttpClient; +import io.vrap.rmf.base.client.error.ApiClientException; +import io.vrap.rmf.base.client.error.ApiServerException; +import io.vrap.rmf.base.client.utils.Generated; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.TestTemplate; +import org.junit.jupiter.api.extension.ExtendWith; +import org.mockito.Mockito; + +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@ExtendWith(UseDataProviderExtension.class) +@ExtendWith(DataProviderExtension.class) +public class ByProjectKeyGraphqlTest { + private final VrapHttpClient httpClientMock = Mockito.mock(VrapHttpClient.class); + private final String projectKey = "test_projectKey"; + private final static ApiRoot apiRoot = ApiRoot.of(); + private final ApiHttpClient client = ClientBuilder.of(httpClientMock).defaultClient("").build(); + + @TestTemplate + @UseDataProvider("requestWithMethodParameters") + public void withMethods(ApiHttpRequest request, String httpMethod, String uri) { + Assertions.assertThat(httpMethod).isEqualTo(request.getMethod().name().toLowerCase()); + Assertions.assertThat(uri).isEqualTo(request.getUri().toString()); + } + + @TestTemplate + @UseDataProvider("executeMethodParameters") + public void executeServerException(HttpRequestCommand httpRequest) throws Exception { + Mockito.when(httpClientMock.execute(Mockito.any())) + .thenReturn(CompletableFuture.completedFuture( + new ApiHttpResponse<>(500, null, "".getBytes(StandardCharsets.UTF_8), "Oops!"))); + + Assertions.assertThatThrownBy(() -> client.execute(httpRequest).toCompletableFuture().get()) + .hasCauseInstanceOf(ApiServerException.class); + } + + @TestTemplate + @UseDataProvider("executeMethodParameters") + public void executeClientException(HttpRequestCommand httpRequest) throws Exception { + Mockito.when(httpClientMock.execute(Mockito.any())) + .thenReturn(CompletableFuture.completedFuture( + new ApiHttpResponse<>(400, null, "".getBytes(StandardCharsets.UTF_8), "Oops!"))); + + Assertions.assertThatThrownBy(() -> client.execute(httpRequest).toCompletableFuture().get()) + .hasCauseInstanceOf(ApiClientException.class); + } + + @DataProvider + public static Object[][] requestWithMethodParameters() { + return new Object[][] { new Object[] { apiRoot.withProjectKeyValue("test_projectKey") + .graphql() + .post(com.commercetools.history.models.graph_ql.GraphQLRequest.of()) + .createHttpRequest(), "post", "test_projectKey/graphql", } }; + } + + @DataProvider + public static Object[][] executeMethodParameters() { + return new Object[][] { new Object[] { apiRoot.withProjectKeyValue("test_projectKey") + .graphql() + .post(com.commercetools.history.models.graph_ql.GraphQLRequest.of()), } }; + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/graph_ql/GraphQLErrorLocationTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/graph_ql/GraphQLErrorLocationTest.java new file mode 100644 index 00000000000..17714e56dbb --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/graph_ql/GraphQLErrorLocationTest.java @@ -0,0 +1,44 @@ + +package com.commercetools.history.models.graph_ql; + +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 GraphQLErrorLocationTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(GraphQLErrorLocationBuilder builder) { + GraphQLErrorLocation graphQLErrorLocation = builder.buildUnchecked(); + Assertions.assertThat(graphQLErrorLocation).isInstanceOf(GraphQLErrorLocation.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { GraphQLErrorLocation.builder().line(6L) }, + new Object[] { GraphQLErrorLocation.builder().column(2L) } }; + } + + @Test + public void line() { + GraphQLErrorLocation value = GraphQLErrorLocation.of(); + value.setLine(6L); + Assertions.assertThat(value.getLine()).isEqualTo(6L); + } + + @Test + public void column() { + GraphQLErrorLocation value = GraphQLErrorLocation.of(); + value.setColumn(2L); + Assertions.assertThat(value.getColumn()).isEqualTo(2L); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/graph_ql/GraphQLErrorTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/graph_ql/GraphQLErrorTest.java new file mode 100644 index 00000000000..dfd63a8b3be --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/graph_ql/GraphQLErrorTest.java @@ -0,0 +1,69 @@ + +package com.commercetools.history.models.graph_ql; + +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 GraphQLErrorTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(GraphQLErrorBuilder builder) { + GraphQLError graphQLError = builder.buildUnchecked(); + Assertions.assertThat(graphQLError).isInstanceOf(GraphQLError.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { GraphQLError.builder().message("message") }, + new Object[] { GraphQLError.builder() + .locations(Collections.singletonList( + new com.commercetools.history.models.graph_ql.GraphQLErrorLocationImpl())) }, + new Object[] { GraphQLError.builder().path(Collections.singletonList("path")) }, + new Object[] { GraphQLError.builder() + .extensions(new com.commercetools.history.models.error.GraphQLErrorObjectImpl()) } }; + } + + @Test + public void message() { + GraphQLError value = GraphQLError.of(); + value.setMessage("message"); + Assertions.assertThat(value.getMessage()).isEqualTo("message"); + } + + @Test + public void locations() { + GraphQLError value = GraphQLError.of(); + value.setLocations( + Collections.singletonList(new com.commercetools.history.models.graph_ql.GraphQLErrorLocationImpl())); + Assertions.assertThat(value.getLocations()) + .isEqualTo(Collections + .singletonList(new com.commercetools.history.models.graph_ql.GraphQLErrorLocationImpl())); + } + + @Test + public void path() { + GraphQLError value = GraphQLError.of(); + value.setPath(Collections.singletonList("path")); + Assertions.assertThat(value.getPath()).isEqualTo(Collections.singletonList("path")); + } + + @Test + public void extensions() { + GraphQLError value = GraphQLError.of(); + value.setExtensions(new com.commercetools.history.models.error.GraphQLErrorObjectImpl()); + Assertions.assertThat(value.getExtensions()) + .isEqualTo(new com.commercetools.history.models.error.GraphQLErrorObjectImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/graph_ql/GraphQLRequestTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/graph_ql/GraphQLRequestTest.java new file mode 100644 index 00000000000..565ad41dea2 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/graph_ql/GraphQLRequestTest.java @@ -0,0 +1,54 @@ + +package com.commercetools.history.models.graph_ql; + +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 GraphQLRequestTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(GraphQLRequestBuilder builder) { + GraphQLRequest graphQLRequest = builder.buildUnchecked(); + Assertions.assertThat(graphQLRequest).isInstanceOf(GraphQLRequest.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { GraphQLRequest.builder().query("query") }, + new Object[] { GraphQLRequest.builder().operationName("operationName") }, + new Object[] { GraphQLRequest.builder() + .variables(new com.commercetools.history.models.graph_ql.GraphQLVariablesMapImpl()) } }; + } + + @Test + public void query() { + GraphQLRequest value = GraphQLRequest.of(); + value.setQuery("query"); + Assertions.assertThat(value.getQuery()).isEqualTo("query"); + } + + @Test + public void operationName() { + GraphQLRequest value = GraphQLRequest.of(); + value.setOperationName("operationName"); + Assertions.assertThat(value.getOperationName()).isEqualTo("operationName"); + } + + @Test + public void variables() { + GraphQLRequest value = GraphQLRequest.of(); + value.setVariables(new com.commercetools.history.models.graph_ql.GraphQLVariablesMapImpl()); + Assertions.assertThat(value.getVariables()) + .isEqualTo(new com.commercetools.history.models.graph_ql.GraphQLVariablesMapImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/graph_ql/GraphQLResponseTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/graph_ql/GraphQLResponseTest.java new file mode 100644 index 00000000000..edc29ad0199 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/graph_ql/GraphQLResponseTest.java @@ -0,0 +1,49 @@ + +package com.commercetools.history.models.graph_ql; + +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 GraphQLResponseTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(GraphQLResponseBuilder builder) { + GraphQLResponse graphQLResponse = builder.buildUnchecked(); + Assertions.assertThat(graphQLResponse).isInstanceOf(GraphQLResponse.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { GraphQLResponse.builder().data("data") }, + new Object[] { GraphQLResponse.builder() + .errors(Collections + .singletonList(new com.commercetools.history.models.graph_ql.GraphQLErrorImpl())) } }; + } + + @Test + public void data() { + GraphQLResponse value = GraphQLResponse.of(); + value.setData("data"); + Assertions.assertThat(value.getData()).isEqualTo("data"); + } + + @Test + public void errors() { + GraphQLResponse value = GraphQLResponse.of(); + value.setErrors(Collections.singletonList(new com.commercetools.history.models.graph_ql.GraphQLErrorImpl())); + Assertions.assertThat(value.getErrors()) + .isEqualTo(Collections.singletonList(new com.commercetools.history.models.graph_ql.GraphQLErrorImpl())); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/graph_ql/GraphQLVariablesMapTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/graph_ql/GraphQLVariablesMapTest.java new file mode 100644 index 00000000000..d007b332019 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/graph_ql/GraphQLVariablesMapTest.java @@ -0,0 +1,13 @@ + +package com.commercetools.history.models.graph_ql; + +import com.tngtech.junit.dataprovider.DataProviderExtension; +import com.tngtech.junit.dataprovider.UseDataProviderExtension; + +import org.junit.jupiter.api.extension.ExtendWith; + +@ExtendWith(UseDataProviderExtension.class) +@ExtendWith(DataProviderExtension.class) +public class GraphQLVariablesMapTest { + +} diff --git a/references.txt b/references.txt index d46a0574e3b..a44e5499437 100644 --- a/references.txt +++ b/references.txt @@ -353,3 +353,4 @@ e5666d7956fd6de53e41f965b052896d2a2ddd9b f8b69ab19d6be2bcc6732deee0647bd8494c15f1 e8f731a742ca2997342b1b5f98121d86c8189a3b 473d2c6f1a9e9da0d2a42408ccf11f27a838f8b5 +b7b82f5a701908239fcf39781bcbfa80823c9fa0 From 3f3157516ff9008746eed3e6aa125d176819a09c Mon Sep 17 00:00:00 2001 From: lojzatran Date: Mon, 6 Jan 2025 10:49:56 +0100 Subject: [PATCH 07/18] Fix failing test --- .../com/commercetools/history/client/ProjectApiRoot.java | 5 +++++ .../commercetools/history/client/ProjectScopedApiRoot.java | 2 ++ 2 files changed, 7 insertions(+) diff --git a/commercetools/commercetools-sdk-java-history/src/main/java/com/commercetools/history/client/ProjectApiRoot.java b/commercetools/commercetools-sdk-java-history/src/main/java/com/commercetools/history/client/ProjectApiRoot.java index 78bb024e6e6..c28ebb5c16c 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java/com/commercetools/history/client/ProjectApiRoot.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java/com/commercetools/history/client/ProjectApiRoot.java @@ -42,6 +42,11 @@ public ByProjectKeyByResourceTypeRequestBuilder withResourceTypeValue(String res return with().withResourceTypeValue(resourceType); } + @Override + public ByProjectKeyGraphqlRequestBuilder graphql() { + return with().graphql(); + } + @Override public void close() { if (apiHttpClient == null) { diff --git a/commercetools/commercetools-sdk-java-history/src/main/java/com/commercetools/history/client/ProjectScopedApiRoot.java b/commercetools/commercetools-sdk-java-history/src/main/java/com/commercetools/history/client/ProjectScopedApiRoot.java index eda84288bd6..6a884bc3b24 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java/com/commercetools/history/client/ProjectScopedApiRoot.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java/com/commercetools/history/client/ProjectScopedApiRoot.java @@ -7,4 +7,6 @@ public interface ProjectScopedApiRoot { ByProjectKeyGet get(); ByProjectKeyByResourceTypeRequestBuilder withResourceTypeValue(String resourceType); + + ByProjectKeyGraphqlRequestBuilder graphql(); } From 37b96b621c8cdb183d09a499f997d1308f26cbc6 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 6 Jan 2025 11:35:14 +0100 Subject: [PATCH 08/18] Bump cross-spawn from 7.0.3 to 7.0.6 (#758) Bumps [cross-spawn](https://github.com/moxystudio/node-cross-spawn) from 7.0.3 to 7.0.6. - [Changelog](https://github.com/moxystudio/node-cross-spawn/blob/master/CHANGELOG.md) - [Commits](https://github.com/moxystudio/node-cross-spawn/compare/v7.0.3...v7.0.6) --- updated-dependencies: - dependency-name: cross-spawn dependency-type: indirect ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Lam Tran --- .yarn/install-state.gz | Bin 0 -> 26407 bytes yarn.lock | 6 +++--- 2 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 .yarn/install-state.gz diff --git a/.yarn/install-state.gz b/.yarn/install-state.gz new file mode 100644 index 0000000000000000000000000000000000000000..a1c8209875a29f059cee22d892707e8d0f68b348 GIT binary patch literal 26407 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 GgaH5tdcuAH literal 0 HcmV?d00001 diff --git a/yarn.lock b/yarn.lock index 32e9beadbec..624cbd5e51c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -85,13 +85,13 @@ __metadata: linkType: soft "cross-spawn@npm:^7.0.3": - version: 7.0.3 - resolution: "cross-spawn@npm:7.0.3" + version: 7.0.6 + resolution: "cross-spawn@npm:7.0.6" dependencies: path-key: "npm:^3.1.0" shebang-command: "npm:^2.0.0" which: "npm:^2.0.1" - checksum: 10c0/5738c312387081c98d69c98e105b6327b069197f864a60593245d64c8089c8a0a744e16349281210d56835bb9274130d825a78b2ad6853ca13cfbeffc0c31750 + checksum: 10c0/053ea8b2135caff68a9e81470e845613e374e7309a47731e81639de3eaeb90c3d01af0e0b44d2ab9d50b43467223b88567dfeb3262db942dc063b9976718ffc1 languageName: node linkType: hard From 471a580741dc9fb797397daec6e3edb6acdb1d36 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 6 Jan 2025 14:46:56 +0100 Subject: [PATCH 09/18] fix(deps): update all dependencies (#666) --- .github/workflows/benchmark.yml | 2 +- .github/workflows/ci.yml | 9 +- .github/workflows/codeql.yml | 8 +- .github/workflows/create-pr.yml | 2 +- .github/workflows/docs.yml | 2 +- .github/workflows/release-snapshot.yml | 2 +- .github/workflows/release.yml | 4 +- .github/workflows/scorecard.yml | 8 +- build.gradle | 6 +- .../build.gradle | 2 +- .../commercetools-graphql-api/build.gradle | 4 +- .../build.gradle | 4 +- .../build.gradle | 2 +- .../build.gradle | 2 +- .../commercetools-okhttp-client3/build.gradle | 2 +- .../commercetools-okhttp-client4/build.gradle | 2 +- .../build.gradle | 4 +- common-plugins/build.gradle | 4 +- common-plugins/javaparser/build.gradle | 2 +- gradle-scripts/extensions.gradle | 26 +-- gradle/wrapper/gradle-wrapper.properties | 2 +- package.json | 6 +- yarn.lock | 198 +++++++++--------- 23 files changed, 153 insertions(+), 150 deletions(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 23969e55dca..b7bb44aceb7 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -16,7 +16,7 @@ jobs: - name: Checkout uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4 - - uses: gradle/wrapper-validation-action@216d1ad2b3710bf005dc39237337b9673fd8fcd5 # v3.3.2 + - uses: gradle/wrapper-validation-action@f9c9c575b8b21b6485636a91ffecd10e558c62f6 # v3.5.0 - name: Setup Java uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fa32568bd83..ddfd72e9266 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,7 +44,7 @@ jobs: # https://help.github.com/en/actions/reference/events-that-trigger-workflows#triggering-new-workflows-using-a-personal-access-token # https://github.community/t/action-does-not-trigger-another-on-push-tag-action/17148/8 token: ${{ steps.generate_github_token.outputs.token }} - - uses: gradle/wrapper-validation-action@216d1ad2b3710bf005dc39237337b9673fd8fcd5 # v3.3.2 + - uses: gradle/wrapper-validation-action@f9c9c575b8b21b6485636a91ffecd10e558c62f6 # v3.5.0 - name: Setup Java uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4 @@ -111,6 +111,7 @@ jobs: run: git push origin - name: Run integration tests for PR +# ignore renovate branches as they are retriggered with every new commit to main branch if: (github.event_name == 'pull_request' && !startsWith(github.head_ref, 'renovate/')) || github.event_name == 'merge_group' run: ./gradlew clean build publishMavenPublicationToMavenLocal runMainMethodThreadLeakTest runMainMethodMemoryLeakTest writeVersionToExamples env: @@ -139,7 +140,7 @@ jobs: run: ./gradlew codeCoverageReport - name: Send code coverage report to Codecov.io - uses: codecov/codecov-action@125fc84a9a348dbcf27191600683ec096ec9021c # v4.4.1 + uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0 with: token: ${{ secrets.CODECOV_TOKEN }} docs: @@ -161,7 +162,7 @@ jobs: with: token: ${{ steps.generate_github_token.outputs.token }} - - uses: gradle/wrapper-validation-action@216d1ad2b3710bf005dc39237337b9673fd8fcd5 # v3.3.2 + - uses: gradle/wrapper-validation-action@f9c9c575b8b21b6485636a91ffecd10e558c62f6 # v3.5.0 - name: Setup Java uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4 @@ -189,6 +190,6 @@ jobs: uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4 - name: Generate and submit dependency graph if: github.event_name == 'workflow_dispatch' || github.event_name == 'push' && github.ref == 'refs/heads/main' - uses: gradle/actions/dependency-submission@db19848a5fa7950289d3668fb053140cf3028d43 # v3.3.2 + uses: gradle/actions/dependency-submission@d9c87d481d55275bb5441eef3fe0e46805f9ef70 # v3.5.0 with: github-token: ${{ steps.generate_github_token.outputs.token }} diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 8bbee077ed3..a6c01734568 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -50,11 +50,11 @@ jobs: - name: Checkout repository uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4 - - uses: gradle/wrapper-validation-action@216d1ad2b3710bf005dc39237337b9673fd8fcd5 # v3.3.2 + - uses: gradle/wrapper-validation-action@f9c9c575b8b21b6485636a91ffecd10e558c62f6 # v3.5.0 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@2e230e8fe0ad3a14a340ad0815ddb96d599d2aff # v3.25.8 + uses: github/codeql-action/init@48ab28a6f5dbc2a99bf1e0131198dd8f1df78169 # v3.28.0 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. @@ -68,7 +68,7 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild - uses: github/codeql-action/autobuild@2e230e8fe0ad3a14a340ad0815ddb96d599d2aff # v3.25.8 + uses: github/codeql-action/autobuild@48ab28a6f5dbc2a99bf1e0131198dd8f1df78169 # v3.28.0 # ℹ️ Command-line programs to run using the OS shell. # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun @@ -81,6 +81,6 @@ jobs: # ./location_of_script_within_repo/buildscript.sh - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@2e230e8fe0ad3a14a340ad0815ddb96d599d2aff # v3.25.8 + uses: github/codeql-action/analyze@48ab28a6f5dbc2a99bf1e0131198dd8f1df78169 # v3.28.0 with: category: "/language:${{matrix.language}}" diff --git a/.github/workflows/create-pr.yml b/.github/workflows/create-pr.yml index ff532e432f1..d837984e7ea 100644 --- a/.github/workflows/create-pr.yml +++ b/.github/workflows/create-pr.yml @@ -36,7 +36,7 @@ jobs: with: token: ${{ steps.generate_github_token.outputs.token }} - - uses: gradle/wrapper-validation-action@216d1ad2b3710bf005dc39237337b9673fd8fcd5 # v3.3.2 + - uses: gradle/wrapper-validation-action@f9c9c575b8b21b6485636a91ffecd10e558c62f6 # v3.5.0 - uses: jenschude/auto-create-pr-action@a5369414c74963e6ec065dab49066d3711b8c1db # v0.3.2 if: github.ref_name == 'gen-sdk-updates' diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 91dc76873b2..245eb527e8c 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -54,7 +54,7 @@ jobs: distribution: 'temurin' java-version: '17' - - uses: gradle/wrapper-validation-action@216d1ad2b3710bf005dc39237337b9673fd8fcd5 # v3.3.2 + - uses: gradle/wrapper-validation-action@f9c9c575b8b21b6485636a91ffecd10e558c62f6 # v3.5.0 - name: Setup Graphviz uses: ts-graphviz/setup-graphviz@b1de5da23ed0a6d14e0aeee8ed52fdd87af2363c # v2.0.2 diff --git a/.github/workflows/release-snapshot.yml b/.github/workflows/release-snapshot.yml index 55209967cd9..a29fbde3718 100644 --- a/.github/workflows/release-snapshot.yml +++ b/.github/workflows/release-snapshot.yml @@ -26,7 +26,7 @@ jobs: with: token: ${{ steps.generate_github_token.outputs.token }} - - uses: gradle/wrapper-validation-action@216d1ad2b3710bf005dc39237337b9673fd8fcd5 # v3.3.2 + - uses: gradle/wrapper-validation-action@f9c9c575b8b21b6485636a91ffecd10e558c62f6 # v3.5.0 - name: Setup Java uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d2cc4d52de9..b7cdd17f949 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,7 +19,7 @@ jobs: - name: Checkout uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4 - - uses: gradle/wrapper-validation-action@216d1ad2b3710bf005dc39237337b9673fd8fcd5 # v3.3.2 + - uses: gradle/wrapper-validation-action@f9c9c575b8b21b6485636a91ffecd10e558c62f6 # v3.5.0 - name: Setup Java uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4 @@ -75,7 +75,7 @@ jobs: ref: main token: ${{ steps.generate_github_token.outputs.token }} - - uses: gradle/wrapper-validation-action@216d1ad2b3710bf005dc39237337b9673fd8fcd5 # v3.3.2 + - uses: gradle/wrapper-validation-action@f9c9c575b8b21b6485636a91ffecd10e558c62f6 # v3.5.0 - run: ./gradlew -Pversion=$REF_NAME writeVersionToExamples writeVersionToReadme setVersion nextMinorVersion snapshotVersion env: diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml index 8e9bad25282..afcfe97139c 100644 --- a/.github/workflows/scorecard.yml +++ b/.github/workflows/scorecard.yml @@ -32,12 +32,12 @@ jobs: steps: - name: "Checkout code" - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: persist-credentials: false - name: "Run analysis" - uses: ossf/scorecard-action@dc50aa9510b46c811795eb24b2f1ba02a914e534 # v2.3.3 + uses: ossf/scorecard-action@62b2cac7ed8198b15735ed49ab1e5cf35480ba46 # v2.4.0 with: results_file: results.sarif results_format: sarif @@ -59,7 +59,7 @@ jobs: # Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF # format to the repository Actions tab. - name: "Upload artifact" - uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3 + uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0 with: name: SARIF file path: results.sarif @@ -67,6 +67,6 @@ jobs: # Upload the results to GitHub's code scanning dashboard. - name: "Upload to code-scanning" - uses: github/codeql-action/upload-sarif@2e230e8fe0ad3a14a340ad0815ddb96d599d2aff # v3.25.8 + uses: github/codeql-action/upload-sarif@48ab28a6f5dbc2a99bf1e0131198dd8f1df78169 # v3.28.0 with: sarif_file: results.sarif diff --git a/build.gradle b/build.gradle index da6cea26a67..41dec0e1d3e 100644 --- a/build.gradle +++ b/build.gradle @@ -17,7 +17,7 @@ plugins { id 'io.github.gradle-nexus.publish-plugin' version '1.3.0' id 'com.github.jk1.dependency-license-report' version '2.0' - id "me.champeau.jmh" version "0.6.8" + id "me.champeau.jmh" version "0.7.2" id "jacoco" id "versioning" @@ -66,13 +66,13 @@ allprojects { configurations { taglet { - resolutionStrategy.force("net.sourceforge.plantuml:plantuml:1.2024.5") + resolutionStrategy.force("net.sourceforge.plantuml:plantuml:1.2024.8") } } dependencies { taglet 'com.commercetools.build.taglets:commercetools-taglets:3.6.3' - taglet 'com.google.guava:guava:33.2.1-jre' + taglet 'com.google.guava:guava:33.4.0-jre' taglet 'org.jdrupes.taglets:plantuml-taglet:3.1.0' } } diff --git a/commercetools/commercetools-async-http-client/build.gradle b/commercetools/commercetools-async-http-client/build.gradle index 16fde402437..4fe1b758fd2 100644 --- a/commercetools/commercetools-async-http-client/build.gradle +++ b/commercetools/commercetools-async-http-client/build.gradle @@ -1,7 +1,7 @@ dependencies { api project(":rmf:rmf-java-base") - api "org.asynchttpclient:async-http-client:2.12.3" + api "org.asynchttpclient:async-http-client:2.12.4" api commons.io version commons.io_version api "io.netty:netty-codec-http:${netty.version}" api "io.netty:netty-codec-socks:${netty.version}" diff --git a/commercetools/commercetools-graphql-api/build.gradle b/commercetools/commercetools-graphql-api/build.gradle index 4d526103fe4..76788d807f0 100644 --- a/commercetools/commercetools-graphql-api/build.gradle +++ b/commercetools/commercetools-graphql-api/build.gradle @@ -1,7 +1,7 @@ import com.commercetools.sdk.plugins.GraphQLPlugin plugins { - id "com.netflix.dgs.codegen" version "6.2.1" + id "com.netflix.dgs.codegen" version "6.3.0" } apply plugin:'com.netflix.dgs.codegen' @@ -16,7 +16,7 @@ dependencies { api jackson_core.databind api jackson_core.core api jackson_core.datatype - api 'com.netflix.graphql.dgs.codegen:graphql-dgs-codegen-shared-core:6.2.1' + api 'com.netflix.graphql.dgs.codegen:graphql-dgs-codegen-shared-core:6.3.0' } diff --git a/commercetools/commercetools-monitoring-datadog/build.gradle b/commercetools/commercetools-monitoring-datadog/build.gradle index fb386ce6cab..8d88532c187 100644 --- a/commercetools/commercetools-monitoring-datadog/build.gradle +++ b/commercetools/commercetools-monitoring-datadog/build.gradle @@ -1,7 +1,7 @@ dependencies { api project(":rmf:rmf-java-base") - implementation "com.datadoghq:java-dogstatsd-client:4.4.2" - implementation "com.datadoghq:datadog-api-client:2.25.0" + implementation "com.datadoghq:java-dogstatsd-client:4.4.3" + implementation "com.datadoghq:datadog-api-client:2.31.0" testImplementation project(":commercetools:commercetools-sdk-java-api") } diff --git a/commercetools/commercetools-monitoring-newrelic/build.gradle b/commercetools/commercetools-monitoring-newrelic/build.gradle index 56c7b906475..3134e7c20c1 100644 --- a/commercetools/commercetools-monitoring-newrelic/build.gradle +++ b/commercetools/commercetools-monitoring-newrelic/build.gradle @@ -1,7 +1,7 @@ dependencies { api project(":rmf:rmf-java-base") - implementation 'com.newrelic.agent.java:newrelic-api:8.12.0' + implementation 'com.newrelic.agent.java:newrelic-api:8.17.0' testImplementation project(":commercetools:commercetools-sdk-java-api") } diff --git a/commercetools/commercetools-monitoring-opentelemetry/build.gradle b/commercetools/commercetools-monitoring-opentelemetry/build.gradle index b8171cbc952..5582527940f 100644 --- a/commercetools/commercetools-monitoring-opentelemetry/build.gradle +++ b/commercetools/commercetools-monitoring-opentelemetry/build.gradle @@ -1,7 +1,7 @@ dependencies { api project(":rmf:rmf-java-base") - implementation 'io.opentelemetry:opentelemetry-api:1.38.0' + implementation 'io.opentelemetry:opentelemetry-api:1.45.0' testImplementation project(":commercetools:commercetools-sdk-java-api") } diff --git a/commercetools/commercetools-okhttp-client3/build.gradle b/commercetools/commercetools-okhttp-client3/build.gradle index c08ac3cb6c7..51b09e7baa1 100644 --- a/commercetools/commercetools-okhttp-client3/build.gradle +++ b/commercetools/commercetools-okhttp-client3/build.gradle @@ -12,7 +12,7 @@ jmh { dependencies { api project(":rmf:rmf-java-base") - implementation "com.squareup.okio:okio:3.9.0" + implementation "com.squareup.okio:okio:3.9.1" api "com.squareup.okhttp3:okhttp:3.14.9" version { strictly "[3.0,4.0[" prefer "3.14.9" diff --git a/commercetools/commercetools-okhttp-client4/build.gradle b/commercetools/commercetools-okhttp-client4/build.gradle index 91851dee307..e52aba05bff 100644 --- a/commercetools/commercetools-okhttp-client4/build.gradle +++ b/commercetools/commercetools-okhttp-client4/build.gradle @@ -15,7 +15,7 @@ dependencies { strictly '[4.0,5.0[' prefer "4.10.0" } - implementation "com.squareup.okio:okio:3.9.0" + implementation "com.squareup.okio:okio:3.9.1" implementation javax.validation } diff --git a/commercetools/commercetools-reactornetty-client/build.gradle b/commercetools/commercetools-reactornetty-client/build.gradle index d8b56b74df6..91407439de5 100644 --- a/commercetools/commercetools-reactornetty-client/build.gradle +++ b/commercetools/commercetools-reactornetty-client/build.gradle @@ -2,8 +2,8 @@ dependencies { api project(":rmf:rmf-java-base") - api "io.projectreactor.netty:reactor-netty-http:1.1.19" - api "io.projectreactor.netty:reactor-netty-core:1.1.19" + api "io.projectreactor.netty:reactor-netty-http:1.2.1" + api "io.projectreactor.netty:reactor-netty-core:1.2.1" implementation javax.validation } diff --git a/common-plugins/build.gradle b/common-plugins/build.gradle index 0e14c577b39..d15766bf956 100644 --- a/common-plugins/build.gradle +++ b/common-plugins/build.gradle @@ -1,7 +1,7 @@ plugins { id 'java-gradle-plugin' id 'idea' - id 'org.jetbrains.kotlin.jvm' version "2.0.0" + id 'org.jetbrains.kotlin.jvm' version "2.1.0" } repositories { @@ -32,5 +32,5 @@ dependencies { implementation project(path: ':javaparser', configuration: 'shadow') implementation "com.google.code.gson:gson:2.11.0" implementation 'com.squareup:javapoet:1.13.0' - implementation 'com.google.guava:guava:33.3.1-jre' + implementation 'com.google.guava:guava:33.4.0-jre' } diff --git a/common-plugins/javaparser/build.gradle b/common-plugins/javaparser/build.gradle index 71738bf427f..936ab63569e 100644 --- a/common-plugins/javaparser/build.gradle +++ b/common-plugins/javaparser/build.gradle @@ -15,5 +15,5 @@ shadowJar { } dependencies { - implementation 'com.github.javaparser:javaparser-core:3.26.2' + implementation 'com.github.javaparser:javaparser-core:3.26.3' } diff --git a/gradle-scripts/extensions.gradle b/gradle-scripts/extensions.gradle index 02225ef97ab..4dacc16e522 100644 --- a/gradle-scripts/extensions.gradle +++ b/gradle-scripts/extensions.gradle @@ -13,9 +13,9 @@ ext { version: '4.1.109.Final' ] commons = [ - text: 'org.apache.commons:commons-text:1.12.0', - lang3: 'org.apache.commons:commons-lang3:3.14.0', - io: 'commons-io:commons-io:2.16.1', + text: 'org.apache.commons:commons-text:1.13.0', + lang3: 'org.apache.commons:commons-lang3:3.17.0', + io: 'commons-io:commons-io:2.18.0', io_version: { strictly '[2.8.0,)' prefer '2.11.0' @@ -23,7 +23,7 @@ ext { ] slf4j = [ - api: 'org.slf4j:slf4j-api:2.0.13', + api: 'org.slf4j:slf4j-api:2.0.16', ] logback = [ @@ -31,10 +31,10 @@ ext { ] jackson_core = [ - annotations: 'com.fasterxml.jackson.core:jackson-annotations:2.18.1', - databind: 'com.fasterxml.jackson.core:jackson-databind:2.18.1', - core: 'com.fasterxml.jackson.core:jackson-core:2.18.1', - datatype: 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.18.1', + annotations: 'com.fasterxml.jackson.core:jackson-annotations:2.18.2', + databind: 'com.fasterxml.jackson.core:jackson-databind:2.18.2', + core: 'com.fasterxml.jackson.core:jackson-core:2.18.2', + datatype: 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.18.2', ] google = [ @@ -46,7 +46,7 @@ ext { java: 'com.graphql-java:graphql-java:19.11' ] awaitility = [ - awaitility: 'org.awaitility:awaitility:4.2.1', + awaitility: 'org.awaitility:awaitility:4.2.2', ] javax = [ @@ -54,15 +54,15 @@ ext { ] junit = [ - junit: 'org.junit.jupiter:junit-jupiter:5.10.2', + junit: 'org.junit.jupiter:junit-jupiter:5.11.4', dataprovider: 'com.tngtech.junit.dataprovider:junit-jupiter-dataprovider:2.10', - jsonassert: 'org.skyscreamer:jsonassert:1.5.1', - assertj: 'org.assertj:assertj-core:3.26.0' + jsonassert: 'org.skyscreamer:jsonassert:1.5.3', + assertj: 'org.assertj:assertj-core:3.27.2' ] mockito = [ inline: 'org.mockito:mockito-inline:5.2.0', - junit: 'org.mockito:mockito-junit-jupiter:5.12.0', + junit: 'org.mockito:mockito-junit-jupiter:5.15.2', ] failsafe = [ diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index df97d72b8b9..cea7a793a84 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-bin.zip networkTimeout=10000 validateDistributionUrl=true zipStoreBase=GRADLE_USER_HOME diff --git a/package.json b/package.json index b0ade09c064..f1668c312bf 100644 --- a/package.json +++ b/package.json @@ -9,10 +9,10 @@ "node": ">=14.15", "npm": ">=5" }, - "packageManager": "yarn@4.2.2", + "packageManager": "yarn@4.6.0", "dependencies": { - "husky": "9.0.11", - "lint-staged": "15.2.5" + "husky": "9.1.7", + "lint-staged": "15.3.0" }, "scripts": { "postinstall": "husky install", diff --git a/yarn.lock b/yarn.lock index 624cbd5e51c..1c192c9e83b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5,10 +5,12 @@ __metadata: version: 8 cacheKey: 10c0 -"ansi-escapes@npm:^6.2.0": - version: 6.2.1 - resolution: "ansi-escapes@npm:6.2.1" - checksum: 10c0/a2c6f58b044be5f69662ee17073229b492daa2425a7fd99a665db6c22eab6e4ab42752807def7281c1c7acfed48f87f2362dda892f08c2c437f1b39c6b033103 +"ansi-escapes@npm:^7.0.0": + version: 7.0.0 + resolution: "ansi-escapes@npm:7.0.0" + dependencies: + environment: "npm:^1.0.0" + checksum: 10c0/86e51e36fabef18c9c004af0a280573e828900641cea35134a124d2715e0c5a473494ab4ce396614505da77638ae290ff72dd8002d9747d2ee53f5d6bbe336be languageName: node linkType: hard @@ -35,19 +37,19 @@ __metadata: languageName: node linkType: hard -"chalk@npm:~5.3.0": - version: 5.3.0 - resolution: "chalk@npm:5.3.0" - checksum: 10c0/8297d436b2c0f95801103ff2ef67268d362021b8210daf8ddbe349695333eb3610a71122172ff3b0272f1ef2cf7cc2c41fdaa4715f52e49ffe04c56340feed09 +"chalk@npm:~5.4.1": + version: 5.4.1 + resolution: "chalk@npm:5.4.1" + checksum: 10c0/b23e88132c702f4855ca6d25cb5538b1114343e41472d5263ee8a37cccfccd9c4216d111e1097c6a27830407a1dc81fecdf2a56f2c63033d4dbbd88c10b0dcef languageName: node linkType: hard -"cli-cursor@npm:^4.0.0": - version: 4.0.0 - resolution: "cli-cursor@npm:4.0.0" +"cli-cursor@npm:^5.0.0": + version: 5.0.0 + resolution: "cli-cursor@npm:5.0.0" dependencies: - restore-cursor: "npm:^4.0.0" - checksum: 10c0/e776e8c3c6727300d0539b0d25160b2bb56aed1a63942753ba1826b012f337a6f4b7ace3548402e4f2f13b5e16bfd751be672c44b203205e7eca8be94afec42c + restore-cursor: "npm:^5.0.0" + checksum: 10c0/7ec62f69b79f6734ab209a3e4dbdc8af7422d44d360a7cb1efa8a0887bbe466a6e625650c466fe4359aee44dbe2dc0b6994b583d40a05d0808a5cb193641d220 languageName: node linkType: hard @@ -79,8 +81,8 @@ __metadata: version: 0.0.0-use.local resolution: "commercetools-sdk-java-v2@workspace:." dependencies: - husky: "npm:9.0.11" - lint-staged: "npm:15.2.5" + husky: "npm:9.1.7" + lint-staged: "npm:15.3.0" languageName: unknown linkType: soft @@ -95,15 +97,15 @@ __metadata: languageName: node linkType: hard -"debug@npm:~4.3.4": - version: 4.3.5 - resolution: "debug@npm:4.3.5" +"debug@npm:~4.4.0": + version: 4.4.0 + resolution: "debug@npm:4.4.0" dependencies: - ms: "npm:2.1.2" + ms: "npm:^2.1.3" peerDependenciesMeta: supports-color: optional: true - checksum: 10c0/082c375a2bdc4f4469c99f325ff458adad62a3fc2c482d59923c260cb08152f34e2659f72b3767db8bb2f21ca81a60a42d1019605a412132d7b9f59363a005cc + checksum: 10c0/db94f1a182bf886f57b4755f85b3a74c39b5114b9377b7ab375dc2cfa3454f09490cc6c30f829df3fc8042bc8b8995f6567ce5cd96f3bc3688bd24027197d9de languageName: node linkType: hard @@ -114,6 +116,13 @@ __metadata: languageName: node linkType: hard +"environment@npm:^1.0.0": + version: 1.1.0 + resolution: "environment@npm:1.1.0" + checksum: 10c0/fb26434b0b581ab397039e51ff3c92b34924a98b2039dcb47e41b7bca577b9dbf134a8eadb364415c74464b682e2d3afe1a4c0eb9873dc44ea814c5d3103331d + languageName: node + linkType: hard + "eventemitter3@npm:^5.0.1": version: 5.0.1 resolution: "eventemitter3@npm:5.0.1" @@ -168,12 +177,12 @@ __metadata: languageName: node linkType: hard -"husky@npm:9.0.11": - version: 9.0.11 - resolution: "husky@npm:9.0.11" +"husky@npm:9.1.7": + version: 9.1.7 + resolution: "husky@npm:9.1.7" bin: - husky: bin.mjs - checksum: 10c0/2c787dcf74a837fc9a4fea7da907509d4bd9a289f4ea10ecc9d86279e4d4542b0f5f6443a619bccae19e265f2677172cc2b86aae5c932a35a330cc227d914605 + husky: bin.js + checksum: 10c0/35bb110a71086c48906aa7cd3ed4913fb913823715359d65e32e0b964cb1e255593b0ae8014a5005c66a68e6fa66c38dcfa8056dbbdfb8b0187c0ffe7ee3a58f languageName: node linkType: hard @@ -214,57 +223,57 @@ __metadata: languageName: node linkType: hard -"lilconfig@npm:~3.1.1": - version: 3.1.1 - resolution: "lilconfig@npm:3.1.1" - checksum: 10c0/311b559794546894e3fe176663427326026c1c644145be9e8041c58e268aa9328799b8dfe7e4dd8c6a4ae305feae95a1c9e007db3569f35b42b6e1bc8274754c +"lilconfig@npm:~3.1.3": + version: 3.1.3 + resolution: "lilconfig@npm:3.1.3" + checksum: 10c0/f5604e7240c5c275743561442fbc5abf2a84ad94da0f5adc71d25e31fa8483048de3dcedcb7a44112a942fed305fd75841cdf6c9681c7f640c63f1049e9a5dcc languageName: node linkType: hard -"lint-staged@npm:15.2.5": - version: 15.2.5 - resolution: "lint-staged@npm:15.2.5" +"lint-staged@npm:15.3.0": + version: 15.3.0 + resolution: "lint-staged@npm:15.3.0" dependencies: - chalk: "npm:~5.3.0" + chalk: "npm:~5.4.1" commander: "npm:~12.1.0" - debug: "npm:~4.3.4" + debug: "npm:~4.4.0" execa: "npm:~8.0.1" - lilconfig: "npm:~3.1.1" - listr2: "npm:~8.2.1" - micromatch: "npm:~4.0.7" + lilconfig: "npm:~3.1.3" + listr2: "npm:~8.2.5" + micromatch: "npm:~4.0.8" pidtree: "npm:~0.6.0" string-argv: "npm:~0.3.2" - yaml: "npm:~2.4.2" + yaml: "npm:~2.6.1" bin: lint-staged: bin/lint-staged.js - checksum: 10c0/89c54489783510f86df15756659facade82e849c0cbfb564fe047b82be91c5d2b1b5608a4bfc5237bd7b9fd0e1206e66aa3e4f8cad3ac51e37a098b8492c2fa6 + checksum: 10c0/1ddf9488c523c0b65c85b755428d4ad74fac3aa6ccb2e28e9bff5b8d86503158fe241d20d5433a11146872050b43580644901a5ef4c924b1ad7017c224a07339 languageName: node linkType: hard -"listr2@npm:~8.2.1": - version: 8.2.1 - resolution: "listr2@npm:8.2.1" +"listr2@npm:~8.2.5": + version: 8.2.5 + resolution: "listr2@npm:8.2.5" dependencies: cli-truncate: "npm:^4.0.0" colorette: "npm:^2.0.20" eventemitter3: "npm:^5.0.1" - log-update: "npm:^6.0.0" - rfdc: "npm:^1.3.1" + log-update: "npm:^6.1.0" + rfdc: "npm:^1.4.1" wrap-ansi: "npm:^9.0.0" - checksum: 10c0/ac32cba8e5c79bcf0dbbb43c2fcc73e47902320c1fa1891074fefb3aa3dfaeef9c76348da22909f65334ba9bee1140bfc903e2f0c64427dd08ef4ba8f6b1dbd0 + checksum: 10c0/f5a9599514b00c27d7eb32d1117c83c61394b2a985ec20e542c798bf91cf42b19340215701522736f5b7b42f557e544afeadec47866e35e5d4f268f552729671 languageName: node linkType: hard -"log-update@npm:^6.0.0": - version: 6.0.0 - resolution: "log-update@npm:6.0.0" +"log-update@npm:^6.1.0": + version: 6.1.0 + resolution: "log-update@npm:6.1.0" dependencies: - ansi-escapes: "npm:^6.2.0" - cli-cursor: "npm:^4.0.0" - slice-ansi: "npm:^7.0.0" + ansi-escapes: "npm:^7.0.0" + cli-cursor: "npm:^5.0.0" + slice-ansi: "npm:^7.1.0" strip-ansi: "npm:^7.1.0" wrap-ansi: "npm:^9.0.0" - checksum: 10c0/e0b3c3401ef49ce3eb17e2f83d644765e4f7988498fc1344eaa4f31ab30e510dcc469a7fb64dc01bd1c8d9237d917598fa677a9818705fb3774c10f6e9d4b27c + checksum: 10c0/4b350c0a83d7753fea34dcac6cd797d1dc9603291565de009baa4aa91c0447eab0d3815a05c8ec9ac04fdfffb43c82adcdb03ec1fceafd8518e1a8c1cff4ff89 languageName: node linkType: hard @@ -275,20 +284,13 @@ __metadata: languageName: node linkType: hard -"micromatch@npm:~4.0.7": - version: 4.0.7 - resolution: "micromatch@npm:4.0.7" +"micromatch@npm:~4.0.8": + version: 4.0.8 + resolution: "micromatch@npm:4.0.8" dependencies: braces: "npm:^3.0.3" picomatch: "npm:^2.3.1" - checksum: 10c0/58fa99bc5265edec206e9163a1d2cec5fabc46a5b473c45f4a700adce88c2520456ae35f2b301e4410fb3afb27e9521fb2813f6fc96be0a48a89430e0916a772 - languageName: node - linkType: hard - -"mimic-fn@npm:^2.1.0": - version: 2.1.0 - resolution: "mimic-fn@npm:2.1.0" - checksum: 10c0/b26f5479d7ec6cc2bce275a08f146cf78f5e7b661b18114e2506dd91ec7ec47e7a25bf4360e5438094db0560bcc868079fb3b1fb3892b833c1ecbf63f80c95a4 + checksum: 10c0/166fa6eb926b9553f32ef81f5f531d27b4ce7da60e5baf8c021d043b27a388fb95e46a8038d5045877881e673f8134122b59624d5cecbd16eb50a42e7a6b5ca8 languageName: node linkType: hard @@ -299,10 +301,17 @@ __metadata: languageName: node linkType: hard -"ms@npm:2.1.2": - version: 2.1.2 - resolution: "ms@npm:2.1.2" - checksum: 10c0/a437714e2f90dbf881b5191d35a6db792efbca5badf112f87b9e1c712aace4b4b9b742dd6537f3edf90fd6f684de897cec230abde57e87883766712ddda297cc +"mimic-function@npm:^5.0.0": + version: 5.0.1 + resolution: "mimic-function@npm:5.0.1" + checksum: 10c0/f3d9464dd1816ecf6bdf2aec6ba32c0728022039d992f178237d8e289b48764fee4131319e72eedd4f7f094e22ded0af836c3187a7edc4595d28dd74368fd81d + languageName: node + linkType: hard + +"ms@npm:^2.1.3": + version: 2.1.3 + resolution: "ms@npm:2.1.3" + checksum: 10c0/d924b57e7312b3b63ad21fc5b3dc0af5e78d61a1fc7cfb5457edaf26326bf62be5307cc87ffb6862ef1c2b33b0233cdb5d4f01c4c958cc0d660948b65a287a48 languageName: node linkType: hard @@ -315,15 +324,6 @@ __metadata: languageName: node linkType: hard -"onetime@npm:^5.1.0": - version: 5.1.2 - resolution: "onetime@npm:5.1.2" - dependencies: - mimic-fn: "npm:^2.1.0" - checksum: 10c0/ffcef6fbb2692c3c40749f31ea2e22677a876daea92959b8a80b521d95cca7a668c884d8b2045d1d8ee7d56796aa405c405462af112a1477594cc63531baeb8f - languageName: node - linkType: hard - "onetime@npm:^6.0.0": version: 6.0.0 resolution: "onetime@npm:6.0.0" @@ -333,6 +333,15 @@ __metadata: languageName: node linkType: hard +"onetime@npm:^7.0.0": + version: 7.0.0 + resolution: "onetime@npm:7.0.0" + dependencies: + mimic-function: "npm:^5.0.0" + checksum: 10c0/5cb9179d74b63f52a196a2e7037ba2b9a893245a5532d3f44360012005c9cadb60851d56716ebff18a6f47129dab7168022445df47c2aff3b276d92585ed1221 + languageName: node + linkType: hard + "path-key@npm:^3.1.0": version: 3.1.1 resolution: "path-key@npm:3.1.1" @@ -363,20 +372,20 @@ __metadata: languageName: node linkType: hard -"restore-cursor@npm:^4.0.0": - version: 4.0.0 - resolution: "restore-cursor@npm:4.0.0" +"restore-cursor@npm:^5.0.0": + version: 5.1.0 + resolution: "restore-cursor@npm:5.1.0" dependencies: - onetime: "npm:^5.1.0" - signal-exit: "npm:^3.0.2" - checksum: 10c0/6f7da8c5e422ac26aa38354870b1afac09963572cf2879443540449068cb43476e9cbccf6f8de3e0171e0d6f7f533c2bc1a0a008003c9a525bbc098e89041318 + onetime: "npm:^7.0.0" + signal-exit: "npm:^4.1.0" + checksum: 10c0/c2ba89131eea791d1b25205bdfdc86699767e2b88dee2a590b1a6caa51737deac8bad0260a5ded2f7c074b7db2f3a626bcf1fcf3cdf35974cbeea5e2e6764f60 languageName: node linkType: hard -"rfdc@npm:^1.3.1": - version: 1.3.1 - resolution: "rfdc@npm:1.3.1" - checksum: 10c0/69f65e3ed30970f8055fac9fbbef9ce578800ca19554eab1dcbffe73a4b8aef536bc4248313889cf25e3b4e38b212c721eabe30856575bf2b2bc3d90f8ba93ef +"rfdc@npm:^1.4.1": + version: 1.4.1 + resolution: "rfdc@npm:1.4.1" + checksum: 10c0/4614e4292356cafade0b6031527eea9bc90f2372a22c012313be1dcc69a3b90c7338158b414539be863fa95bfcb2ddcd0587be696841af4e6679d85e62c060c7 languageName: node linkType: hard @@ -396,13 +405,6 @@ __metadata: languageName: node linkType: hard -"signal-exit@npm:^3.0.2": - version: 3.0.7 - resolution: "signal-exit@npm:3.0.7" - checksum: 10c0/25d272fa73e146048565e08f3309d5b942c1979a6f4a58a8c59d5fa299728e9c2fcd1a759ec870863b1fd38653670240cd420dad2ad9330c71f36608a6a1c912 - languageName: node - linkType: hard - "signal-exit@npm:^4.1.0": version: 4.1.0 resolution: "signal-exit@npm:4.1.0" @@ -420,7 +422,7 @@ __metadata: languageName: node linkType: hard -"slice-ansi@npm:^7.0.0": +"slice-ansi@npm:^7.1.0": version: 7.1.0 resolution: "slice-ansi@npm:7.1.0" dependencies: @@ -495,11 +497,11 @@ __metadata: languageName: node linkType: hard -"yaml@npm:~2.4.2": - version: 2.4.3 - resolution: "yaml@npm:2.4.3" +"yaml@npm:~2.6.1": + version: 2.6.1 + resolution: "yaml@npm:2.6.1" bin: yaml: bin.mjs - checksum: 10c0/b4a9dea34265f000402c909144ac310be42c4526dfd16dff1aee2b04a0d94051713651c0cd2b0a3d8109266997422120f16a7934629d12f22dc215839ebbeccf + checksum: 10c0/aebf07f61c72b38c74d2b60c3a3ccf89ee4da45bcd94b2bfb7899ba07a5257625a7c9f717c65a6fc511563d48001e01deb1d9e55f0133f3e2edf86039c8c1be7 languageName: node linkType: hard From 6d78c415ff4ab7e82a115b647a4d3a8d9cd15b45 Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Mon, 6 Jan 2025 14:55:47 +0000 Subject: [PATCH 10/18] TASK: Updating version in README --- CHANGELOG.md | 17 +++++++++++++++++ README.md | 4 ++-- examples/maven-okhttp3/pom.xml | 2 +- examples/maven-okhttp4/pom.xml | 2 +- examples/spring-datadog-statsd/build.gradle | 2 +- examples/spring-datadog/build.gradle | 2 +- examples/spring-dynatrace-oneagent/build.gradle | 2 +- examples/spring-newrelic/build.gradle | 2 +- examples/spring-otel/build.gradle | 2 +- examples/spring/build.gradle | 2 +- gradle.properties | 4 ++-- reference.txt | 1 - 12 files changed, 29 insertions(+), 13 deletions(-) delete mode 100644 reference.txt diff --git a/CHANGELOG.md b/CHANGELOG.md index a54efe95e8f..56a1d0119a0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,21 @@ +# 17.22.0 (2025-01-06) + +## What's Changed +* Update changelog by @ct-sdks in https://github.com/commercetools/commercetools-sdk-java-v2/pull/782 +* Update generated SDKs by @ct-sdks in https://github.com/commercetools/commercetools-sdk-java-v2/pull/783 +* Update generated SDKs by @ct-sdks in https://github.com/commercetools/commercetools-sdk-java-v2/pull/785 +* Update generated SDKs by @ct-sdks in https://github.com/commercetools/commercetools-sdk-java-v2/pull/786 +* Update generated SDKs by @ct-sdks in https://github.com/commercetools/commercetools-sdk-java-v2/pull/787 +* Update generated SDKs by @ct-sdks in https://github.com/commercetools/commercetools-sdk-java-v2/pull/788 +* Bump cross-spawn from 7.0.3 to 7.0.6 by @dependabot in https://github.com/commercetools/commercetools-sdk-java-v2/pull/758 +* fix(deps): update all dependencies by @renovate in https://github.com/commercetools/commercetools-sdk-java-v2/pull/666 + +## New Contributors +* @dependabot made their first contribution in https://github.com/commercetools/commercetools-sdk-java-v2/pull/758 + +**Full Changelog**: https://github.com/commercetools/commercetools-sdk-java-v2/compare/17.21.0...17.22.0 + # 17.21.0 (2024-12-19) ## What's Changed diff --git a/README.md b/README.md index 9a41ca2d8b8..aeb6777a9a9 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ The latest stable SDK release can be retrieved from [Maven Central](https://sear ```gradle ext { versions = [ - commercetools: "17.21.0" + commercetools: "17.22.0" ] } @@ -42,7 +42,7 @@ dependencies { ```maven - 17.21.0 + 17.22.0 diff --git a/examples/maven-okhttp3/pom.xml b/examples/maven-okhttp3/pom.xml index 8398e2fe053..d698c497bd4 100644 --- a/examples/maven-okhttp3/pom.xml +++ b/examples/maven-okhttp3/pom.xml @@ -27,7 +27,7 @@ - 17.21.0 + 17.22.0 diff --git a/examples/maven-okhttp4/pom.xml b/examples/maven-okhttp4/pom.xml index eb5b6db9489..23f3c8ade72 100644 --- a/examples/maven-okhttp4/pom.xml +++ b/examples/maven-okhttp4/pom.xml @@ -27,7 +27,7 @@ - 17.21.0 + 17.22.0 diff --git a/examples/spring-datadog-statsd/build.gradle b/examples/spring-datadog-statsd/build.gradle index 10be62552c4..17809b7a144 100644 --- a/examples/spring-datadog-statsd/build.gradle +++ b/examples/spring-datadog-statsd/build.gradle @@ -20,7 +20,7 @@ repositories { ext { versions = [ - commercetools: "17.21.0", + commercetools: "17.22.0", ] } diff --git a/examples/spring-datadog/build.gradle b/examples/spring-datadog/build.gradle index 31f4c28b84a..e651293534b 100644 --- a/examples/spring-datadog/build.gradle +++ b/examples/spring-datadog/build.gradle @@ -21,7 +21,7 @@ repositories { ext { versions = [ - commercetools: "17.21.0", + commercetools: "17.22.0", ] } diff --git a/examples/spring-dynatrace-oneagent/build.gradle b/examples/spring-dynatrace-oneagent/build.gradle index eaeb74a20a1..c52af62de29 100644 --- a/examples/spring-dynatrace-oneagent/build.gradle +++ b/examples/spring-dynatrace-oneagent/build.gradle @@ -20,7 +20,7 @@ repositories { ext { versions = [ - commercetools: "17.21.0", + commercetools: "17.22.0", ] } diff --git a/examples/spring-newrelic/build.gradle b/examples/spring-newrelic/build.gradle index 5b42e397ec3..7fc8df38534 100644 --- a/examples/spring-newrelic/build.gradle +++ b/examples/spring-newrelic/build.gradle @@ -21,7 +21,7 @@ repositories { ext { versions = [ - commercetools: "17.21.0", + commercetools: "17.22.0", newrelic: "8.16.0" ] } diff --git a/examples/spring-otel/build.gradle b/examples/spring-otel/build.gradle index 6efb483a4ca..0be475c3350 100644 --- a/examples/spring-otel/build.gradle +++ b/examples/spring-otel/build.gradle @@ -21,7 +21,7 @@ repositories { ext { versions = [ - commercetools: "17.21.0", + commercetools: "17.22.0", ] } diff --git a/examples/spring/build.gradle b/examples/spring/build.gradle index b2960eaa9b6..db4c7390f57 100644 --- a/examples/spring/build.gradle +++ b/examples/spring/build.gradle @@ -31,7 +31,7 @@ spotless { ext { versions = [ - commercetools: "17.21.0" + commercetools: "17.22.0" ] } diff --git a/gradle.properties b/gradle.properties index 173013f1369..4d278aa8426 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ -#Thu Dec 19 10:38:06 UTC 2024 +#Mon Jan 06 14:55:36 UTC 2025 kotlinVersion=1.5.30 org.gradle.jvmargs=-Xmx2048m -version=17.22.0-SNAPSHOT +version=17.23.0-SNAPSHOT diff --git a/reference.txt b/reference.txt deleted file mode 100644 index 12112e25712..00000000000 --- a/reference.txt +++ /dev/null @@ -1 +0,0 @@ -55ee33c4d18af345c4e89be226286c56c187a878 From f547cffb88890c6f8d288687a7704c7897f87021 Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Mon, 6 Jan 2025 15:00:14 +0000 Subject: [PATCH 11/18] TASK: Updating license information --- .../index.json | 12 +- .../index.json | 16 +- licenses/commercetools-graphql-api/index.json | 18 +- licenses/commercetools-http-client/index.json | 16 +- .../commercetools-javanet-client/index.json | 12 +- .../index.json | 18 +- .../index.json | 14 +- .../index.json | 16 +- .../commercetools-okhttp-client3/index.json | 18 +- .../commercetools-okhttp-client4/index.json | 18 +- .../index.json | 52 ++--- .../commercetools-sdk-compat-v1/index.json | 18 +- .../commercetools-sdk-java-api/index.json | 12 +- .../commercetools-sdk-java-history/index.json | 12 +- .../index.json | 12 +- licenses/index.json | 211 ++++++++++++++---- licenses/rmf-java-base/index.json | 12 +- 17 files changed, 302 insertions(+), 185 deletions(-) diff --git a/licenses/commercetools-apachehttp-client/index.json b/licenses/commercetools-apachehttp-client/index.json index 30776393058..ecb99428842 100644 --- a/licenses/commercetools-apachehttp-client/index.json +++ b/licenses/commercetools-apachehttp-client/index.json @@ -2,7 +2,7 @@ "dependencies": [ { "moduleName": "com.fasterxml.jackson.core:jackson-annotations", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson" ], @@ -15,7 +15,7 @@ }, { "moduleName": "com.fasterxml.jackson.core:jackson-core", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson-core" ], @@ -28,7 +28,7 @@ }, { "moduleName": "com.fasterxml.jackson.core:jackson-databind", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson" ], @@ -41,7 +41,7 @@ }, { "moduleName": "com.fasterxml.jackson.datatype:jackson-datatype-jsr310", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson-modules-java8/jackson-datatype-jsr310" ], @@ -129,7 +129,7 @@ }, { "moduleName": "org.apache.commons:commons-lang3", - "moduleVersion": "3.14.0", + "moduleVersion": "3.17.0", "moduleUrls": [ "https://commons.apache.org/proper/commons-lang/" ], @@ -172,7 +172,7 @@ }, { "moduleName": "org.slf4j:slf4j-api", - "moduleVersion": "2.0.13", + "moduleVersion": "2.0.16", "moduleUrls": [ "http://www.slf4j.org" ], diff --git a/licenses/commercetools-async-http-client/index.json b/licenses/commercetools-async-http-client/index.json index febce7d26d1..5f644975658 100644 --- a/licenses/commercetools-async-http-client/index.json +++ b/licenses/commercetools-async-http-client/index.json @@ -2,7 +2,7 @@ "dependencies": [ { "moduleName": "com.fasterxml.jackson.core:jackson-annotations", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson" ], @@ -15,7 +15,7 @@ }, { "moduleName": "com.fasterxml.jackson.core:jackson-core", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson-core" ], @@ -28,7 +28,7 @@ }, { "moduleName": "com.fasterxml.jackson.core:jackson-databind", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson" ], @@ -41,7 +41,7 @@ }, { "moduleName": "com.fasterxml.jackson.datatype:jackson-datatype-jsr310", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson-modules-java8/jackson-datatype-jsr310" ], @@ -319,7 +319,7 @@ }, { "moduleName": "org.apache.commons:commons-lang3", - "moduleVersion": "3.14.0", + "moduleVersion": "3.17.0", "moduleUrls": [ "https://commons.apache.org/proper/commons-lang/" ], @@ -332,7 +332,7 @@ }, { "moduleName": "org.asynchttpclient:async-http-client", - "moduleVersion": "2.12.3", + "moduleVersion": "2.12.4", "moduleLicenses": [ { "moduleLicense": "Apache License, Version 2.0", @@ -342,7 +342,7 @@ }, { "moduleName": "org.asynchttpclient:async-http-client-netty-utils", - "moduleVersion": "2.12.3", + "moduleVersion": "2.12.4", "moduleLicenses": [ { "moduleLicense": "Apache License, Version 2.0", @@ -366,7 +366,7 @@ }, { "moduleName": "org.slf4j:slf4j-api", - "moduleVersion": "2.0.13", + "moduleVersion": "2.0.16", "moduleUrls": [ "http://www.slf4j.org" ], diff --git a/licenses/commercetools-graphql-api/index.json b/licenses/commercetools-graphql-api/index.json index bd198266da9..5ca30296cbb 100644 --- a/licenses/commercetools-graphql-api/index.json +++ b/licenses/commercetools-graphql-api/index.json @@ -2,7 +2,7 @@ "dependencies": [ { "moduleName": "com.fasterxml.jackson.core:jackson-annotations", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson" ], @@ -15,7 +15,7 @@ }, { "moduleName": "com.fasterxml.jackson.core:jackson-core", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson-core" ], @@ -28,7 +28,7 @@ }, { "moduleName": "com.fasterxml.jackson.core:jackson-databind", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson" ], @@ -41,7 +41,7 @@ }, { "moduleName": "com.fasterxml.jackson.datatype:jackson-datatype-jsr310", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson-modules-java8/jackson-datatype-jsr310" ], @@ -97,7 +97,7 @@ }, { "moduleName": "com.netflix.graphql.dgs.codegen:graphql-dgs-codegen-shared-core", - "moduleVersion": "6.2.1", + "moduleVersion": "6.3.0", "moduleUrls": [ "https://github.com/Netflix/dgs-codegen" ], @@ -203,7 +203,7 @@ }, { "moduleName": "org.apache.commons:commons-lang3", - "moduleVersion": "3.14.0", + "moduleVersion": "3.17.0", "moduleUrls": [ "https://commons.apache.org/proper/commons-lang/" ], @@ -230,7 +230,7 @@ }, { "moduleName": "org.jetbrains.kotlin:kotlin-reflect", - "moduleVersion": "1.9.22", + "moduleVersion": "1.9.25", "moduleUrls": [ "https://kotlinlang.org/" ], @@ -243,7 +243,7 @@ }, { "moduleName": "org.jetbrains.kotlin:kotlin-stdlib", - "moduleVersion": "1.9.22", + "moduleVersion": "1.9.25", "moduleUrls": [ "https://kotlinlang.org/" ], @@ -283,7 +283,7 @@ }, { "moduleName": "org.slf4j:slf4j-api", - "moduleVersion": "2.0.13", + "moduleVersion": "2.0.16", "moduleUrls": [ "http://www.slf4j.org" ], diff --git a/licenses/commercetools-http-client/index.json b/licenses/commercetools-http-client/index.json index febce7d26d1..5f644975658 100644 --- a/licenses/commercetools-http-client/index.json +++ b/licenses/commercetools-http-client/index.json @@ -2,7 +2,7 @@ "dependencies": [ { "moduleName": "com.fasterxml.jackson.core:jackson-annotations", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson" ], @@ -15,7 +15,7 @@ }, { "moduleName": "com.fasterxml.jackson.core:jackson-core", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson-core" ], @@ -28,7 +28,7 @@ }, { "moduleName": "com.fasterxml.jackson.core:jackson-databind", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson" ], @@ -41,7 +41,7 @@ }, { "moduleName": "com.fasterxml.jackson.datatype:jackson-datatype-jsr310", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson-modules-java8/jackson-datatype-jsr310" ], @@ -319,7 +319,7 @@ }, { "moduleName": "org.apache.commons:commons-lang3", - "moduleVersion": "3.14.0", + "moduleVersion": "3.17.0", "moduleUrls": [ "https://commons.apache.org/proper/commons-lang/" ], @@ -332,7 +332,7 @@ }, { "moduleName": "org.asynchttpclient:async-http-client", - "moduleVersion": "2.12.3", + "moduleVersion": "2.12.4", "moduleLicenses": [ { "moduleLicense": "Apache License, Version 2.0", @@ -342,7 +342,7 @@ }, { "moduleName": "org.asynchttpclient:async-http-client-netty-utils", - "moduleVersion": "2.12.3", + "moduleVersion": "2.12.4", "moduleLicenses": [ { "moduleLicense": "Apache License, Version 2.0", @@ -366,7 +366,7 @@ }, { "moduleName": "org.slf4j:slf4j-api", - "moduleVersion": "2.0.13", + "moduleVersion": "2.0.16", "moduleUrls": [ "http://www.slf4j.org" ], diff --git a/licenses/commercetools-javanet-client/index.json b/licenses/commercetools-javanet-client/index.json index 89cda78b1db..53723829928 100644 --- a/licenses/commercetools-javanet-client/index.json +++ b/licenses/commercetools-javanet-client/index.json @@ -2,7 +2,7 @@ "dependencies": [ { "moduleName": "com.fasterxml.jackson.core:jackson-annotations", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson" ], @@ -15,7 +15,7 @@ }, { "moduleName": "com.fasterxml.jackson.core:jackson-core", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson-core" ], @@ -28,7 +28,7 @@ }, { "moduleName": "com.fasterxml.jackson.core:jackson-databind", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson" ], @@ -41,7 +41,7 @@ }, { "moduleName": "com.fasterxml.jackson.datatype:jackson-datatype-jsr310", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson-modules-java8/jackson-datatype-jsr310" ], @@ -107,7 +107,7 @@ }, { "moduleName": "org.apache.commons:commons-lang3", - "moduleVersion": "3.14.0", + "moduleVersion": "3.17.0", "moduleUrls": [ "https://commons.apache.org/proper/commons-lang/" ], @@ -120,7 +120,7 @@ }, { "moduleName": "org.slf4j:slf4j-api", - "moduleVersion": "2.0.13", + "moduleVersion": "2.0.16", "moduleUrls": [ "http://www.slf4j.org" ], diff --git a/licenses/commercetools-monitoring-datadog/index.json b/licenses/commercetools-monitoring-datadog/index.json index 61a486ff5c9..2bb1e57f9ca 100644 --- a/licenses/commercetools-monitoring-datadog/index.json +++ b/licenses/commercetools-monitoring-datadog/index.json @@ -2,7 +2,7 @@ "dependencies": [ { "moduleName": "com.datadoghq:datadog-api-client", - "moduleVersion": "2.25.0", + "moduleVersion": "2.31.0", "moduleUrls": [ "https://github.com/DataDog/datadog-api-client-java" ], @@ -15,7 +15,7 @@ }, { "moduleName": "com.datadoghq:java-dogstatsd-client", - "moduleVersion": "4.4.2", + "moduleVersion": "4.4.3", "moduleUrls": [ "https://github.com/DataDog/java-dogstatsd-client" ], @@ -32,7 +32,7 @@ }, { "moduleName": "com.fasterxml.jackson.core:jackson-annotations", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson" ], @@ -45,7 +45,7 @@ }, { "moduleName": "com.fasterxml.jackson.core:jackson-core", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson-core" ], @@ -58,7 +58,7 @@ }, { "moduleName": "com.fasterxml.jackson.core:jackson-databind", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson" ], @@ -71,7 +71,7 @@ }, { "moduleName": "com.fasterxml.jackson.datatype:jackson-datatype-jsr310", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson-modules-java8/jackson-datatype-jsr310" ], @@ -84,7 +84,7 @@ }, { "moduleName": "com.fasterxml.jackson.module:jackson-module-jakarta-xmlbind-annotations", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson-modules-base" ], @@ -388,7 +388,7 @@ }, { "moduleName": "org.apache.commons:commons-lang3", - "moduleVersion": "3.14.0", + "moduleVersion": "3.17.0", "moduleUrls": [ "https://commons.apache.org/proper/commons-lang/" ], @@ -1045,7 +1045,7 @@ }, { "moduleName": "org.slf4j:slf4j-api", - "moduleVersion": "2.0.13", + "moduleVersion": "2.0.16", "moduleUrls": [ "http://www.slf4j.org" ], diff --git a/licenses/commercetools-monitoring-newrelic/index.json b/licenses/commercetools-monitoring-newrelic/index.json index bd5f8f5b802..1ad757662aa 100644 --- a/licenses/commercetools-monitoring-newrelic/index.json +++ b/licenses/commercetools-monitoring-newrelic/index.json @@ -2,7 +2,7 @@ "dependencies": [ { "moduleName": "com.fasterxml.jackson.core:jackson-annotations", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson" ], @@ -15,7 +15,7 @@ }, { "moduleName": "com.fasterxml.jackson.core:jackson-core", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson-core" ], @@ -28,7 +28,7 @@ }, { "moduleName": "com.fasterxml.jackson.core:jackson-databind", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson" ], @@ -41,7 +41,7 @@ }, { "moduleName": "com.fasterxml.jackson.datatype:jackson-datatype-jsr310", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson-modules-java8/jackson-datatype-jsr310" ], @@ -67,7 +67,7 @@ }, { "moduleName": "com.newrelic.agent.java:newrelic-api", - "moduleVersion": "8.12.0", + "moduleVersion": "8.17.0", "moduleUrls": [ "https://github.com/newrelic/newrelic-java-agent" ], @@ -107,7 +107,7 @@ }, { "moduleName": "org.apache.commons:commons-lang3", - "moduleVersion": "3.14.0", + "moduleVersion": "3.17.0", "moduleUrls": [ "https://commons.apache.org/proper/commons-lang/" ], @@ -120,7 +120,7 @@ }, { "moduleName": "org.slf4j:slf4j-api", - "moduleVersion": "2.0.13", + "moduleVersion": "2.0.16", "moduleUrls": [ "http://www.slf4j.org" ], diff --git a/licenses/commercetools-monitoring-opentelemetry/index.json b/licenses/commercetools-monitoring-opentelemetry/index.json index 0dd3a040666..58d4d10e3dc 100644 --- a/licenses/commercetools-monitoring-opentelemetry/index.json +++ b/licenses/commercetools-monitoring-opentelemetry/index.json @@ -2,7 +2,7 @@ "dependencies": [ { "moduleName": "com.fasterxml.jackson.core:jackson-annotations", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson" ], @@ -15,7 +15,7 @@ }, { "moduleName": "com.fasterxml.jackson.core:jackson-core", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson-core" ], @@ -28,7 +28,7 @@ }, { "moduleName": "com.fasterxml.jackson.core:jackson-databind", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson" ], @@ -41,7 +41,7 @@ }, { "moduleName": "com.fasterxml.jackson.datatype:jackson-datatype-jsr310", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson-modules-java8/jackson-datatype-jsr310" ], @@ -94,7 +94,7 @@ }, { "moduleName": "io.opentelemetry:opentelemetry-api", - "moduleVersion": "1.38.0", + "moduleVersion": "1.45.0", "moduleUrls": [ "https://github.com/open-telemetry/opentelemetry-java" ], @@ -107,7 +107,7 @@ }, { "moduleName": "io.opentelemetry:opentelemetry-context", - "moduleVersion": "1.38.0", + "moduleVersion": "1.45.0", "moduleUrls": [ "https://github.com/open-telemetry/opentelemetry-java" ], @@ -120,7 +120,7 @@ }, { "moduleName": "org.apache.commons:commons-lang3", - "moduleVersion": "3.14.0", + "moduleVersion": "3.17.0", "moduleUrls": [ "https://commons.apache.org/proper/commons-lang/" ], @@ -133,7 +133,7 @@ }, { "moduleName": "org.slf4j:slf4j-api", - "moduleVersion": "2.0.13", + "moduleVersion": "2.0.16", "moduleUrls": [ "http://www.slf4j.org" ], diff --git a/licenses/commercetools-okhttp-client3/index.json b/licenses/commercetools-okhttp-client3/index.json index c4d8e33ad16..0f8ae90b2ce 100644 --- a/licenses/commercetools-okhttp-client3/index.json +++ b/licenses/commercetools-okhttp-client3/index.json @@ -2,7 +2,7 @@ "dependencies": [ { "moduleName": "com.fasterxml.jackson.core:jackson-annotations", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson" ], @@ -15,7 +15,7 @@ }, { "moduleName": "com.fasterxml.jackson.core:jackson-core", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson-core" ], @@ -28,7 +28,7 @@ }, { "moduleName": "com.fasterxml.jackson.core:jackson-databind", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson" ], @@ -41,7 +41,7 @@ }, { "moduleName": "com.fasterxml.jackson.datatype:jackson-datatype-jsr310", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson-modules-java8/jackson-datatype-jsr310" ], @@ -90,11 +90,11 @@ }, { "moduleName": "com.squareup.okio:okio", - "moduleVersion": "3.9.0" + "moduleVersion": "3.9.1" }, { "moduleName": "com.squareup.okio:okio-jvm", - "moduleVersion": "3.9.0", + "moduleVersion": "3.9.1", "moduleUrls": [ "https://github.com/square/okio/" ], @@ -143,7 +143,7 @@ }, { "moduleName": "org.apache.commons:commons-lang3", - "moduleVersion": "3.14.0", + "moduleVersion": "3.17.0", "moduleUrls": [ "https://commons.apache.org/proper/commons-lang/" ], @@ -156,7 +156,7 @@ }, { "moduleName": "org.jetbrains.kotlin:kotlin-stdlib", - "moduleVersion": "1.9.21", + "moduleVersion": "1.9.25", "moduleUrls": [ "https://kotlinlang.org/" ], @@ -182,7 +182,7 @@ }, { "moduleName": "org.slf4j:slf4j-api", - "moduleVersion": "2.0.13", + "moduleVersion": "2.0.16", "moduleUrls": [ "http://www.slf4j.org" ], diff --git a/licenses/commercetools-okhttp-client4/index.json b/licenses/commercetools-okhttp-client4/index.json index c0beafa8ae7..10768681277 100644 --- a/licenses/commercetools-okhttp-client4/index.json +++ b/licenses/commercetools-okhttp-client4/index.json @@ -2,7 +2,7 @@ "dependencies": [ { "moduleName": "com.fasterxml.jackson.core:jackson-annotations", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson" ], @@ -15,7 +15,7 @@ }, { "moduleName": "com.fasterxml.jackson.core:jackson-core", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson-core" ], @@ -28,7 +28,7 @@ }, { "moduleName": "com.fasterxml.jackson.core:jackson-databind", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson" ], @@ -41,7 +41,7 @@ }, { "moduleName": "com.fasterxml.jackson.datatype:jackson-datatype-jsr310", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson-modules-java8/jackson-datatype-jsr310" ], @@ -93,11 +93,11 @@ }, { "moduleName": "com.squareup.okio:okio", - "moduleVersion": "3.9.0" + "moduleVersion": "3.9.1" }, { "moduleName": "com.squareup.okio:okio-jvm", - "moduleVersion": "3.9.0", + "moduleVersion": "3.9.1", "moduleUrls": [ "https://github.com/square/okio/" ], @@ -146,7 +146,7 @@ }, { "moduleName": "org.apache.commons:commons-lang3", - "moduleVersion": "3.14.0", + "moduleVersion": "3.17.0", "moduleUrls": [ "https://commons.apache.org/proper/commons-lang/" ], @@ -159,7 +159,7 @@ }, { "moduleName": "org.jetbrains.kotlin:kotlin-stdlib", - "moduleVersion": "1.9.21", + "moduleVersion": "1.9.25", "moduleUrls": [ "https://kotlinlang.org/" ], @@ -185,7 +185,7 @@ }, { "moduleName": "org.slf4j:slf4j-api", - "moduleVersion": "2.0.13", + "moduleVersion": "2.0.16", "moduleUrls": [ "http://www.slf4j.org" ], diff --git a/licenses/commercetools-reactornetty-client/index.json b/licenses/commercetools-reactornetty-client/index.json index 2ef38980741..4fc4cb4104e 100644 --- a/licenses/commercetools-reactornetty-client/index.json +++ b/licenses/commercetools-reactornetty-client/index.json @@ -2,7 +2,7 @@ "dependencies": [ { "moduleName": "com.fasterxml.jackson.core:jackson-annotations", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson" ], @@ -15,7 +15,7 @@ }, { "moduleName": "com.fasterxml.jackson.core:jackson-core", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson-core" ], @@ -28,7 +28,7 @@ }, { "moduleName": "com.fasterxml.jackson.core:jackson-databind", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson" ], @@ -41,7 +41,7 @@ }, { "moduleName": "com.fasterxml.jackson.datatype:jackson-datatype-jsr310", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson-modules-java8/jackson-datatype-jsr310" ], @@ -94,7 +94,7 @@ }, { "moduleName": "io.netty:netty-buffer", - "moduleVersion": "4.1.109.Final", + "moduleVersion": "4.1.115.Final", "moduleUrls": [ "https://netty.io/" ], @@ -107,7 +107,7 @@ }, { "moduleName": "io.netty:netty-codec", - "moduleVersion": "4.1.109.Final", + "moduleVersion": "4.1.115.Final", "moduleUrls": [ "https://netty.io/" ], @@ -120,7 +120,7 @@ }, { "moduleName": "io.netty:netty-codec-dns", - "moduleVersion": "4.1.109.Final", + "moduleVersion": "4.1.115.Final", "moduleUrls": [ "https://netty.io/" ], @@ -133,7 +133,7 @@ }, { "moduleName": "io.netty:netty-codec-http", - "moduleVersion": "4.1.109.Final", + "moduleVersion": "4.1.115.Final", "moduleUrls": [ "https://netty.io/" ], @@ -146,7 +146,7 @@ }, { "moduleName": "io.netty:netty-codec-http2", - "moduleVersion": "4.1.109.Final", + "moduleVersion": "4.1.115.Final", "moduleUrls": [ "https://netty.io/" ], @@ -159,7 +159,7 @@ }, { "moduleName": "io.netty:netty-codec-socks", - "moduleVersion": "4.1.109.Final", + "moduleVersion": "4.1.115.Final", "moduleUrls": [ "https://netty.io/" ], @@ -172,7 +172,7 @@ }, { "moduleName": "io.netty:netty-common", - "moduleVersion": "4.1.109.Final", + "moduleVersion": "4.1.115.Final", "moduleUrls": [ "https://netty.io/" ], @@ -185,7 +185,7 @@ }, { "moduleName": "io.netty:netty-handler", - "moduleVersion": "4.1.109.Final", + "moduleVersion": "4.1.115.Final", "moduleUrls": [ "https://netty.io/" ], @@ -198,7 +198,7 @@ }, { "moduleName": "io.netty:netty-handler-proxy", - "moduleVersion": "4.1.109.Final", + "moduleVersion": "4.1.115.Final", "moduleUrls": [ "https://netty.io/" ], @@ -211,7 +211,7 @@ }, { "moduleName": "io.netty:netty-resolver", - "moduleVersion": "4.1.109.Final", + "moduleVersion": "4.1.115.Final", "moduleUrls": [ "https://netty.io/" ], @@ -224,7 +224,7 @@ }, { "moduleName": "io.netty:netty-resolver-dns", - "moduleVersion": "4.1.109.Final", + "moduleVersion": "4.1.115.Final", "moduleUrls": [ "https://netty.io/" ], @@ -237,7 +237,7 @@ }, { "moduleName": "io.netty:netty-resolver-dns-classes-macos", - "moduleVersion": "4.1.109.Final", + "moduleVersion": "4.1.115.Final", "moduleUrls": [ "https://netty.io/" ], @@ -250,7 +250,7 @@ }, { "moduleName": "io.netty:netty-resolver-dns-native-macos", - "moduleVersion": "4.1.109.Final", + "moduleVersion": "4.1.115.Final", "moduleUrls": [ "https://netty.io/" ], @@ -263,7 +263,7 @@ }, { "moduleName": "io.netty:netty-transport", - "moduleVersion": "4.1.109.Final", + "moduleVersion": "4.1.115.Final", "moduleUrls": [ "https://netty.io/" ], @@ -276,7 +276,7 @@ }, { "moduleName": "io.netty:netty-transport-classes-epoll", - "moduleVersion": "4.1.109.Final", + "moduleVersion": "4.1.115.Final", "moduleUrls": [ "https://netty.io/" ], @@ -289,7 +289,7 @@ }, { "moduleName": "io.netty:netty-transport-native-epoll", - "moduleVersion": "4.1.109.Final", + "moduleVersion": "4.1.115.Final", "moduleUrls": [ "https://netty.io/" ], @@ -302,7 +302,7 @@ }, { "moduleName": "io.netty:netty-transport-native-unix-common", - "moduleVersion": "4.1.109.Final", + "moduleVersion": "4.1.115.Final", "moduleUrls": [ "https://netty.io/" ], @@ -315,7 +315,7 @@ }, { "moduleName": "io.projectreactor.netty:reactor-netty-core", - "moduleVersion": "1.1.19", + "moduleVersion": "1.2.1", "moduleUrls": [ "https://github.com/reactor/reactor-netty" ], @@ -328,7 +328,7 @@ }, { "moduleName": "io.projectreactor.netty:reactor-netty-http", - "moduleVersion": "1.1.19", + "moduleVersion": "1.2.1", "moduleUrls": [ "https://github.com/reactor/reactor-netty" ], @@ -341,7 +341,7 @@ }, { "moduleName": "io.projectreactor:reactor-core", - "moduleVersion": "3.5.17", + "moduleVersion": "3.7.1", "moduleUrls": [ "https://github.com/reactor/reactor-core" ], @@ -376,7 +376,7 @@ }, { "moduleName": "org.apache.commons:commons-lang3", - "moduleVersion": "3.14.0", + "moduleVersion": "3.17.0", "moduleUrls": [ "https://commons.apache.org/proper/commons-lang/" ], @@ -403,7 +403,7 @@ }, { "moduleName": "org.slf4j:slf4j-api", - "moduleVersion": "2.0.13", + "moduleVersion": "2.0.16", "moduleUrls": [ "http://www.slf4j.org" ], diff --git a/licenses/commercetools-sdk-compat-v1/index.json b/licenses/commercetools-sdk-compat-v1/index.json index 3d29b075ec7..0320c53d377 100644 --- a/licenses/commercetools-sdk-compat-v1/index.json +++ b/licenses/commercetools-sdk-compat-v1/index.json @@ -72,7 +72,7 @@ }, { "moduleName": "com.fasterxml.jackson.core:jackson-annotations", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson" ], @@ -85,7 +85,7 @@ }, { "moduleName": "com.fasterxml.jackson.core:jackson-core", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson-core" ], @@ -98,7 +98,7 @@ }, { "moduleName": "com.fasterxml.jackson.core:jackson-databind", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson" ], @@ -111,7 +111,7 @@ }, { "moduleName": "com.fasterxml.jackson.dataformat:jackson-dataformat-cbor", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson-dataformats-binary" ], @@ -124,7 +124,7 @@ }, { "moduleName": "com.fasterxml.jackson.datatype:jackson-datatype-jsr310", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson-modules-java8/jackson-datatype-jsr310" ], @@ -137,7 +137,7 @@ }, { "moduleName": "com.fasterxml.jackson.module:jackson-module-parameter-names", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson-modules-java8/jackson-module-parameter-names" ], @@ -410,7 +410,7 @@ }, { "moduleName": "org.apache.commons:commons-lang3", - "moduleVersion": "3.14.0", + "moduleVersion": "3.17.0", "moduleUrls": [ "https://commons.apache.org/proper/commons-lang/" ], @@ -423,7 +423,7 @@ }, { "moduleName": "org.apache.commons:commons-text", - "moduleVersion": "1.12.0", + "moduleVersion": "1.13.0", "moduleUrls": [ "https://commons.apache.org/proper/commons-text" ], @@ -645,7 +645,7 @@ }, { "moduleName": "org.slf4j:slf4j-api", - "moduleVersion": "2.0.13", + "moduleVersion": "2.0.16", "moduleUrls": [ "http://www.slf4j.org" ], diff --git a/licenses/commercetools-sdk-java-api/index.json b/licenses/commercetools-sdk-java-api/index.json index b103e3388b6..e95e617a012 100644 --- a/licenses/commercetools-sdk-java-api/index.json +++ b/licenses/commercetools-sdk-java-api/index.json @@ -2,7 +2,7 @@ "dependencies": [ { "moduleName": "com.fasterxml.jackson.core:jackson-annotations", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson" ], @@ -15,7 +15,7 @@ }, { "moduleName": "com.fasterxml.jackson.core:jackson-core", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson-core" ], @@ -28,7 +28,7 @@ }, { "moduleName": "com.fasterxml.jackson.core:jackson-databind", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson" ], @@ -41,7 +41,7 @@ }, { "moduleName": "com.fasterxml.jackson.datatype:jackson-datatype-jsr310", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson-modules-java8/jackson-datatype-jsr310" ], @@ -152,7 +152,7 @@ }, { "moduleName": "org.apache.commons:commons-lang3", - "moduleVersion": "3.14.0", + "moduleVersion": "3.17.0", "moduleUrls": [ "https://commons.apache.org/proper/commons-lang/" ], @@ -179,7 +179,7 @@ }, { "moduleName": "org.slf4j:slf4j-api", - "moduleVersion": "2.0.13", + "moduleVersion": "2.0.16", "moduleUrls": [ "http://www.slf4j.org" ], diff --git a/licenses/commercetools-sdk-java-history/index.json b/licenses/commercetools-sdk-java-history/index.json index 88602da7e1c..8ee527bfd11 100644 --- a/licenses/commercetools-sdk-java-history/index.json +++ b/licenses/commercetools-sdk-java-history/index.json @@ -2,7 +2,7 @@ "dependencies": [ { "moduleName": "com.fasterxml.jackson.core:jackson-annotations", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson" ], @@ -15,7 +15,7 @@ }, { "moduleName": "com.fasterxml.jackson.core:jackson-core", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson-core" ], @@ -28,7 +28,7 @@ }, { "moduleName": "com.fasterxml.jackson.core:jackson-databind", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson" ], @@ -41,7 +41,7 @@ }, { "moduleName": "com.fasterxml.jackson.datatype:jackson-datatype-jsr310", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson-modules-java8/jackson-datatype-jsr310" ], @@ -116,7 +116,7 @@ }, { "moduleName": "org.apache.commons:commons-lang3", - "moduleVersion": "3.14.0", + "moduleVersion": "3.17.0", "moduleUrls": [ "https://commons.apache.org/proper/commons-lang/" ], @@ -129,7 +129,7 @@ }, { "moduleName": "org.slf4j:slf4j-api", - "moduleVersion": "2.0.13", + "moduleVersion": "2.0.16", "moduleUrls": [ "http://www.slf4j.org" ], diff --git a/licenses/commercetools-sdk-java-importapi/index.json b/licenses/commercetools-sdk-java-importapi/index.json index 88602da7e1c..8ee527bfd11 100644 --- a/licenses/commercetools-sdk-java-importapi/index.json +++ b/licenses/commercetools-sdk-java-importapi/index.json @@ -2,7 +2,7 @@ "dependencies": [ { "moduleName": "com.fasterxml.jackson.core:jackson-annotations", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson" ], @@ -15,7 +15,7 @@ }, { "moduleName": "com.fasterxml.jackson.core:jackson-core", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson-core" ], @@ -28,7 +28,7 @@ }, { "moduleName": "com.fasterxml.jackson.core:jackson-databind", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson" ], @@ -41,7 +41,7 @@ }, { "moduleName": "com.fasterxml.jackson.datatype:jackson-datatype-jsr310", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson-modules-java8/jackson-datatype-jsr310" ], @@ -116,7 +116,7 @@ }, { "moduleName": "org.apache.commons:commons-lang3", - "moduleVersion": "3.14.0", + "moduleVersion": "3.17.0", "moduleUrls": [ "https://commons.apache.org/proper/commons-lang/" ], @@ -129,7 +129,7 @@ }, { "moduleName": "org.slf4j:slf4j-api", - "moduleVersion": "2.0.13", + "moduleVersion": "2.0.16", "moduleUrls": [ "http://www.slf4j.org" ], diff --git a/licenses/index.json b/licenses/index.json index 87cb1b6dc01..b08bd8324c8 100644 --- a/licenses/index.json +++ b/licenses/index.json @@ -72,7 +72,7 @@ }, { "moduleName": "com.datadoghq:datadog-api-client", - "moduleVersion": "2.25.0", + "moduleVersion": "2.31.0", "moduleUrls": [ "https://github.com/DataDog/datadog-api-client-java" ], @@ -85,7 +85,7 @@ }, { "moduleName": "com.datadoghq:java-dogstatsd-client", - "moduleVersion": "4.4.2", + "moduleVersion": "4.4.3", "moduleUrls": [ "https://github.com/DataDog/java-dogstatsd-client" ], @@ -102,7 +102,7 @@ }, { "moduleName": "com.fasterxml.jackson.core:jackson-annotations", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson" ], @@ -115,7 +115,7 @@ }, { "moduleName": "com.fasterxml.jackson.core:jackson-core", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson-core" ], @@ -128,7 +128,7 @@ }, { "moduleName": "com.fasterxml.jackson.core:jackson-databind", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson" ], @@ -141,7 +141,7 @@ }, { "moduleName": "com.fasterxml.jackson.dataformat:jackson-dataformat-cbor", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson-dataformats-binary" ], @@ -154,7 +154,7 @@ }, { "moduleName": "com.fasterxml.jackson.datatype:jackson-datatype-jsr310", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson-modules-java8/jackson-datatype-jsr310" ], @@ -167,7 +167,7 @@ }, { "moduleName": "com.fasterxml.jackson.module:jackson-module-jakarta-xmlbind-annotations", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson-modules-base" ], @@ -180,7 +180,7 @@ }, { "moduleName": "com.fasterxml.jackson.module:jackson-module-parameter-names", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson-modules-java8/jackson-module-parameter-names" ], @@ -383,7 +383,7 @@ }, { "moduleName": "com.netflix.graphql.dgs.codegen:graphql-dgs-codegen-shared-core", - "moduleVersion": "6.2.1", + "moduleVersion": "6.3.0", "moduleUrls": [ "https://github.com/Netflix/dgs-codegen" ], @@ -404,7 +404,7 @@ }, { "moduleName": "com.newrelic.agent.java:newrelic-api", - "moduleVersion": "8.12.0", + "moduleVersion": "8.17.0", "moduleUrls": [ "https://github.com/newrelic/newrelic-java-agent" ], @@ -470,7 +470,7 @@ }, { "moduleName": "com.squareup.okio:okio", - "moduleVersion": "3.9.0" + "moduleVersion": "3.9.1" }, { "moduleName": "com.squareup.okio:okio-jvm", @@ -487,7 +487,7 @@ }, { "moduleName": "com.squareup.okio:okio-jvm", - "moduleVersion": "3.9.0", + "moduleVersion": "3.9.1", "moduleUrls": [ "https://github.com/square/okio/" ], @@ -629,6 +629,19 @@ } ] }, + { + "moduleName": "io.netty:netty-buffer", + "moduleVersion": "4.1.115.Final", + "moduleUrls": [ + "https://netty.io/" + ], + "moduleLicenses": [ + { + "moduleLicense": "Apache License, Version 2.0", + "moduleLicenseUrl": "https://www.apache.org/licenses/LICENSE-2.0" + } + ] + }, { "moduleName": "io.netty:netty-codec", "moduleVersion": "4.0.54.Final", @@ -655,9 +668,22 @@ } ] }, + { + "moduleName": "io.netty:netty-codec", + "moduleVersion": "4.1.115.Final", + "moduleUrls": [ + "https://netty.io/" + ], + "moduleLicenses": [ + { + "moduleLicense": "Apache License, Version 2.0", + "moduleLicenseUrl": "https://www.apache.org/licenses/LICENSE-2.0" + } + ] + }, { "moduleName": "io.netty:netty-codec-dns", - "moduleVersion": "4.1.109.Final", + "moduleVersion": "4.1.115.Final", "moduleUrls": [ "https://netty.io/" ], @@ -694,9 +720,22 @@ } ] }, + { + "moduleName": "io.netty:netty-codec-http", + "moduleVersion": "4.1.115.Final", + "moduleUrls": [ + "https://netty.io/" + ], + "moduleLicenses": [ + { + "moduleLicense": "Apache License, Version 2.0", + "moduleLicenseUrl": "https://www.apache.org/licenses/LICENSE-2.0" + } + ] + }, { "moduleName": "io.netty:netty-codec-http2", - "moduleVersion": "4.1.109.Final", + "moduleVersion": "4.1.115.Final", "moduleUrls": [ "https://netty.io/" ], @@ -720,6 +759,19 @@ } ] }, + { + "moduleName": "io.netty:netty-codec-socks", + "moduleVersion": "4.1.115.Final", + "moduleUrls": [ + "https://netty.io/" + ], + "moduleLicenses": [ + { + "moduleLicense": "Apache License, Version 2.0", + "moduleLicenseUrl": "https://www.apache.org/licenses/LICENSE-2.0" + } + ] + }, { "moduleName": "io.netty:netty-common", "moduleVersion": "4.0.54.Final", @@ -746,6 +798,19 @@ } ] }, + { + "moduleName": "io.netty:netty-common", + "moduleVersion": "4.1.115.Final", + "moduleUrls": [ + "https://netty.io/" + ], + "moduleLicenses": [ + { + "moduleLicense": "Apache License, Version 2.0", + "moduleLicenseUrl": "https://www.apache.org/licenses/LICENSE-2.0" + } + ] + }, { "moduleName": "io.netty:netty-handler", "moduleVersion": "4.0.54.Final", @@ -772,6 +837,19 @@ } ] }, + { + "moduleName": "io.netty:netty-handler", + "moduleVersion": "4.1.115.Final", + "moduleUrls": [ + "https://netty.io/" + ], + "moduleLicenses": [ + { + "moduleLicense": "Apache License, Version 2.0", + "moduleLicenseUrl": "https://www.apache.org/licenses/LICENSE-2.0" + } + ] + }, { "moduleName": "io.netty:netty-handler-proxy", "moduleVersion": "4.1.109.Final", @@ -785,6 +863,19 @@ } ] }, + { + "moduleName": "io.netty:netty-handler-proxy", + "moduleVersion": "4.1.115.Final", + "moduleUrls": [ + "https://netty.io/" + ], + "moduleLicenses": [ + { + "moduleLicense": "Apache License, Version 2.0", + "moduleLicenseUrl": "https://www.apache.org/licenses/LICENSE-2.0" + } + ] + }, { "moduleName": "io.netty:netty-resolver", "moduleVersion": "4.1.109.Final", @@ -798,9 +889,22 @@ } ] }, + { + "moduleName": "io.netty:netty-resolver", + "moduleVersion": "4.1.115.Final", + "moduleUrls": [ + "https://netty.io/" + ], + "moduleLicenses": [ + { + "moduleLicense": "Apache License, Version 2.0", + "moduleLicenseUrl": "https://www.apache.org/licenses/LICENSE-2.0" + } + ] + }, { "moduleName": "io.netty:netty-resolver-dns", - "moduleVersion": "4.1.109.Final", + "moduleVersion": "4.1.115.Final", "moduleUrls": [ "https://netty.io/" ], @@ -813,7 +917,7 @@ }, { "moduleName": "io.netty:netty-resolver-dns-classes-macos", - "moduleVersion": "4.1.109.Final", + "moduleVersion": "4.1.115.Final", "moduleUrls": [ "https://netty.io/" ], @@ -826,7 +930,7 @@ }, { "moduleName": "io.netty:netty-resolver-dns-native-macos", - "moduleVersion": "4.1.109.Final", + "moduleVersion": "4.1.115.Final", "moduleUrls": [ "https://netty.io/" ], @@ -863,9 +967,22 @@ } ] }, + { + "moduleName": "io.netty:netty-transport", + "moduleVersion": "4.1.115.Final", + "moduleUrls": [ + "https://netty.io/" + ], + "moduleLicenses": [ + { + "moduleLicense": "Apache License, Version 2.0", + "moduleLicenseUrl": "https://www.apache.org/licenses/LICENSE-2.0" + } + ] + }, { "moduleName": "io.netty:netty-transport-classes-epoll", - "moduleVersion": "4.1.109.Final", + "moduleVersion": "4.1.115.Final", "moduleUrls": [ "https://netty.io/" ], @@ -891,7 +1008,7 @@ }, { "moduleName": "io.netty:netty-transport-native-epoll", - "moduleVersion": "4.1.109.Final", + "moduleVersion": "4.1.115.Final", "moduleUrls": [ "https://netty.io/" ], @@ -941,9 +1058,22 @@ } ] }, + { + "moduleName": "io.netty:netty-transport-native-unix-common", + "moduleVersion": "4.1.115.Final", + "moduleUrls": [ + "https://netty.io/" + ], + "moduleLicenses": [ + { + "moduleLicense": "Apache License, Version 2.0", + "moduleLicenseUrl": "https://www.apache.org/licenses/LICENSE-2.0" + } + ] + }, { "moduleName": "io.opentelemetry:opentelemetry-api", - "moduleVersion": "1.38.0", + "moduleVersion": "1.45.0", "moduleUrls": [ "https://github.com/open-telemetry/opentelemetry-java" ], @@ -956,7 +1086,7 @@ }, { "moduleName": "io.opentelemetry:opentelemetry-context", - "moduleVersion": "1.38.0", + "moduleVersion": "1.45.0", "moduleUrls": [ "https://github.com/open-telemetry/opentelemetry-java" ], @@ -969,7 +1099,7 @@ }, { "moduleName": "io.projectreactor.netty:reactor-netty-core", - "moduleVersion": "1.1.19", + "moduleVersion": "1.2.1", "moduleUrls": [ "https://github.com/reactor/reactor-netty" ], @@ -982,7 +1112,7 @@ }, { "moduleName": "io.projectreactor.netty:reactor-netty-http", - "moduleVersion": "1.1.19", + "moduleVersion": "1.2.1", "moduleUrls": [ "https://github.com/reactor/reactor-netty" ], @@ -995,7 +1125,7 @@ }, { "moduleName": "io.projectreactor:reactor-core", - "moduleVersion": "3.5.17", + "moduleVersion": "3.7.1", "moduleUrls": [ "https://github.com/reactor/reactor-core" ], @@ -1167,7 +1297,7 @@ }, { "moduleName": "org.apache.commons:commons-lang3", - "moduleVersion": "3.14.0", + "moduleVersion": "3.17.0", "moduleUrls": [ "https://commons.apache.org/proper/commons-lang/" ], @@ -1180,7 +1310,7 @@ }, { "moduleName": "org.apache.commons:commons-text", - "moduleVersion": "1.12.0", + "moduleVersion": "1.13.0", "moduleUrls": [ "https://commons.apache.org/proper/commons-text" ], @@ -1273,7 +1403,7 @@ }, { "moduleName": "org.asynchttpclient:async-http-client", - "moduleVersion": "2.12.3", + "moduleVersion": "2.12.4", "moduleLicenses": [ { "moduleLicense": "Apache License, Version 2.0", @@ -1293,7 +1423,7 @@ }, { "moduleName": "org.asynchttpclient:async-http-client-netty-utils", - "moduleVersion": "2.12.3", + "moduleVersion": "2.12.4", "moduleLicenses": [ { "moduleLicense": "Apache License, Version 2.0", @@ -1888,7 +2018,7 @@ }, { "moduleName": "org.jetbrains.kotlin:kotlin-reflect", - "moduleVersion": "1.9.22", + "moduleVersion": "1.9.25", "moduleUrls": [ "https://kotlinlang.org/" ], @@ -1914,20 +2044,7 @@ }, { "moduleName": "org.jetbrains.kotlin:kotlin-stdlib", - "moduleVersion": "1.9.21", - "moduleUrls": [ - "https://kotlinlang.org/" - ], - "moduleLicenses": [ - { - "moduleLicense": "Apache License, Version 2.0", - "moduleLicenseUrl": "https://www.apache.org/licenses/LICENSE-2.0" - } - ] - }, - { - "moduleName": "org.jetbrains.kotlin:kotlin-stdlib", - "moduleVersion": "1.9.22", + "moduleVersion": "1.9.25", "moduleUrls": [ "https://kotlinlang.org/" ], @@ -1966,7 +2083,7 @@ }, { "moduleName": "org.jetbrains.kotlin:kotlin-stdlib-jdk7", - "moduleVersion": "1.9.22", + "moduleVersion": "1.9.25", "moduleUrls": [ "https://kotlinlang.org/" ], @@ -1992,7 +2109,7 @@ }, { "moduleName": "org.jetbrains.kotlin:kotlin-stdlib-jdk8", - "moduleVersion": "1.9.22", + "moduleVersion": "1.9.25", "moduleUrls": [ "https://kotlinlang.org/" ], @@ -2189,7 +2306,7 @@ }, { "moduleName": "org.slf4j:slf4j-api", - "moduleVersion": "2.0.13", + "moduleVersion": "2.0.16", "moduleUrls": [ "http://www.slf4j.org" ], diff --git a/licenses/rmf-java-base/index.json b/licenses/rmf-java-base/index.json index adf7879371a..a7ade017ca5 100644 --- a/licenses/rmf-java-base/index.json +++ b/licenses/rmf-java-base/index.json @@ -2,7 +2,7 @@ "dependencies": [ { "moduleName": "com.fasterxml.jackson.core:jackson-annotations", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson" ], @@ -15,7 +15,7 @@ }, { "moduleName": "com.fasterxml.jackson.core:jackson-core", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson-core" ], @@ -28,7 +28,7 @@ }, { "moduleName": "com.fasterxml.jackson.core:jackson-databind", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson" ], @@ -41,7 +41,7 @@ }, { "moduleName": "com.fasterxml.jackson.datatype:jackson-datatype-jsr310", - "moduleVersion": "2.18.1", + "moduleVersion": "2.18.2", "moduleUrls": [ "https://github.com/FasterXML/jackson-modules-java8/jackson-datatype-jsr310" ], @@ -94,7 +94,7 @@ }, { "moduleName": "org.apache.commons:commons-lang3", - "moduleVersion": "3.14.0", + "moduleVersion": "3.17.0", "moduleUrls": [ "https://commons.apache.org/proper/commons-lang/" ], @@ -107,7 +107,7 @@ }, { "moduleName": "org.slf4j:slf4j-api", - "moduleVersion": "2.0.13", + "moduleVersion": "2.0.16", "moduleUrls": [ "http://www.slf4j.org" ], From 3b5404418c28ef2051548f2ecce4503a243c834d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 6 Jan 2025 16:58:42 +0100 Subject: [PATCH 12/18] Bump micromatch from 4.0.7 to 4.0.8 (#718) Bumps [micromatch](https://github.com/micromatch/micromatch) from 4.0.7 to 4.0.8. - [Release notes](https://github.com/micromatch/micromatch/releases) - [Changelog](https://github.com/micromatch/micromatch/blob/master/CHANGELOG.md) - [Commits](https://github.com/micromatch/micromatch/compare/4.0.7...4.0.8) --- updated-dependencies: - dependency-name: micromatch dependency-type: indirect ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: lojzatran From db99cadcc10968f544d887c0f978f13afb12986d Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 6 Jan 2025 17:01:43 +0100 Subject: [PATCH 13/18] chore(deps): update gradle/actions action to v4 (#710) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ddfd72e9266..a0e49dfa9b2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -190,6 +190,6 @@ jobs: uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4 - name: Generate and submit dependency graph if: github.event_name == 'workflow_dispatch' || github.event_name == 'push' && github.ref == 'refs/heads/main' - uses: gradle/actions/dependency-submission@d9c87d481d55275bb5441eef3fe0e46805f9ef70 # v3.5.0 + uses: gradle/actions/dependency-submission@0bdd871935719febd78681f197cd39af5b6e16a6 # v4.2.2 with: github-token: ${{ steps.generate_github_token.outputs.token }} From 3cbadcedf86dacf96abc33a2f5aa1e64dc4ec981 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 6 Jan 2025 17:02:08 +0100 Subject: [PATCH 14/18] chore(deps): update actions/setup-java digest to 7a6d8a8 (#709) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/benchmark.yml | 2 +- .github/workflows/ci.yml | 4 ++-- .github/workflows/docs.yml | 2 +- .github/workflows/release-snapshot.yml | 2 +- .github/workflows/release.yml | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index b7bb44aceb7..fad582749d9 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -19,7 +19,7 @@ jobs: - uses: gradle/wrapper-validation-action@f9c9c575b8b21b6485636a91ffecd10e558c62f6 # v3.5.0 - name: Setup Java - uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4 + uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4 with: distribution: 'temurin' java-version: '17' diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a0e49dfa9b2..d9e14fd5f8e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -47,7 +47,7 @@ jobs: - uses: gradle/wrapper-validation-action@f9c9c575b8b21b6485636a91ffecd10e558c62f6 # v3.5.0 - name: Setup Java - uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4 + uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4 with: distribution: 'temurin' java-version: '17' @@ -165,7 +165,7 @@ jobs: - uses: gradle/wrapper-validation-action@f9c9c575b8b21b6485636a91ffecd10e558c62f6 # v3.5.0 - name: Setup Java - uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4 + uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4 with: distribution: 'temurin' java-version: '17' diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 245eb527e8c..e437cab1fd7 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -49,7 +49,7 @@ jobs: token: ${{ steps.generate_github_token.outputs.token }} - name: Setup Java - uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4 + uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4 with: distribution: 'temurin' java-version: '17' diff --git a/.github/workflows/release-snapshot.yml b/.github/workflows/release-snapshot.yml index a29fbde3718..1a4a6f1c66f 100644 --- a/.github/workflows/release-snapshot.yml +++ b/.github/workflows/release-snapshot.yml @@ -29,7 +29,7 @@ jobs: - uses: gradle/wrapper-validation-action@f9c9c575b8b21b6485636a91ffecd10e558c62f6 # v3.5.0 - name: Setup Java - uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4 + uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4 with: distribution: 'temurin' java-version: '17' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b7cdd17f949..aa07b483f9d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,7 +22,7 @@ jobs: - uses: gradle/wrapper-validation-action@f9c9c575b8b21b6485636a91ffecd10e558c62f6 # v3.5.0 - name: Setup Java - uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4 + uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4 with: distribution: 'temurin' java-version: '17' @@ -145,7 +145,7 @@ jobs: token: ${{ steps.generate_github_token.outputs.token }} - name: Setup Java - uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4 + uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4 with: distribution: 'temurin' java-version: '17' From 438b2d66ce182efe3e27e199a5cf9cbfc13846a8 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 6 Jan 2025 17:02:25 +0100 Subject: [PATCH 15/18] chore(deps): lock file maintenance (#677) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- yarn.lock | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/yarn.lock b/yarn.lock index 1c192c9e83b..d3d76897d27 100644 --- a/yarn.lock +++ b/yarn.lock @@ -15,9 +15,9 @@ __metadata: linkType: hard "ansi-regex@npm:^6.0.1": - version: 6.0.1 - resolution: "ansi-regex@npm:6.0.1" - checksum: 10c0/cbe16dbd2c6b2735d1df7976a7070dd277326434f0212f43abf6d87674095d247968209babdaad31bb00882fa68807256ba9be340eec2f1004de14ca75f52a08 + version: 6.1.0 + resolution: "ansi-regex@npm:6.1.0" + checksum: 10c0/a91daeddd54746338478eef88af3439a7edf30f8e23196e2d6ed182da9add559c601266dbef01c2efa46a958ad6f1f8b176799657616c702b5b02e799e7fd8dc languageName: node linkType: hard @@ -110,9 +110,9 @@ __metadata: linkType: hard "emoji-regex@npm:^10.3.0": - version: 10.3.0 - resolution: "emoji-regex@npm:10.3.0" - checksum: 10c0/b4838e8dcdceb44cf47f59abe352c25ff4fe7857acaf5fb51097c427f6f75b44d052eb907a7a3b86f86bc4eae3a93f5c2b7460abe79c407307e6212d65c91163 + version: 10.4.0 + resolution: "emoji-regex@npm:10.4.0" + checksum: 10c0/a3fcedfc58bfcce21a05a5f36a529d81e88d602100145fcca3dc6f795e3c8acc4fc18fe773fbf9b6d6e9371205edb3afa2668ec3473fa2aa7fd47d2a9d46482d languageName: node linkType: hard @@ -157,9 +157,9 @@ __metadata: linkType: hard "get-east-asian-width@npm:^1.0.0": - version: 1.2.0 - resolution: "get-east-asian-width@npm:1.2.0" - checksum: 10c0/914b1e217cf38436c24b4c60b4c45289e39a45bf9e65ef9fd343c2815a1a02b8a0215aeec8bf9c07c516089004b6e3826332481f40a09529fcadbf6e579f286b + version: 1.3.0 + resolution: "get-east-asian-width@npm:1.3.0" + checksum: 10c0/1a049ba697e0f9a4d5514c4623781c5246982bdb61082da6b5ae6c33d838e52ce6726407df285cdbb27ec1908b333cf2820989bd3e986e37bb20979437fdf34b languageName: node linkType: hard @@ -440,13 +440,13 @@ __metadata: linkType: hard "string-width@npm:^7.0.0": - version: 7.1.0 - resolution: "string-width@npm:7.1.0" + version: 7.2.0 + resolution: "string-width@npm:7.2.0" dependencies: emoji-regex: "npm:^10.3.0" get-east-asian-width: "npm:^1.0.0" strip-ansi: "npm:^7.1.0" - checksum: 10c0/68a99fbc3bd3d8eb42886ff38dce819767dee55f606f74dfa4687a07dfd21262745d9683df0aa53bf81a5dd47c13da921a501925b974bec66a7ddd634fef0634 + checksum: 10c0/eb0430dd43f3199c7a46dcbf7a0b34539c76fe3aa62763d0b0655acdcbdf360b3f66f3d58ca25ba0205f42ea3491fa00f09426d3b7d3040e506878fc7664c9b9 languageName: node linkType: hard From 08aeeed6c6cc1ba15700b03e30de23242cd98225 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 6 Jan 2025 17:02:45 +0100 Subject: [PATCH 16/18] Update actions/checkout digest to 11bd719 (#676) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/benchmark.yml | 2 +- .github/workflows/ci.yml | 6 +++--- .github/workflows/codeql.yml | 2 +- .github/workflows/create-pr.yml | 2 +- .github/workflows/docs.yml | 4 ++-- .github/workflows/release-snapshot.yml | 2 +- .github/workflows/release.yml | 8 ++++---- 7 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index fad582749d9..7f3c0cbb21d 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -14,7 +14,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4 + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 - uses: gradle/wrapper-validation-action@f9c9c575b8b21b6485636a91ffecd10e558c62f6 # v3.5.0 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d9e14fd5f8e..81c3ded7e3e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,7 +38,7 @@ jobs: echo "email=${GH_APP_USER}+ct-sdks[bot]@users.noreply.github.com" >> "$GITHUB_OUTPUT" - name: Checkout - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4 + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 with: # Pass a personal access token (using our CT SDKs App) to be able to trigger other workflows # https://help.github.com/en/actions/reference/events-that-trigger-workflows#triggering-new-workflows-using-a-personal-access-token @@ -158,7 +158,7 @@ jobs: private-key: ${{ secrets.CT_SDKS_APP_PEM }} - name: Checkout - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4 + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 with: token: ${{ steps.generate_github_token.outputs.token }} @@ -187,7 +187,7 @@ jobs: app-id: ${{ secrets.CT_SDKS_APP_ID }} private-key: ${{ secrets.CT_SDKS_APP_PEM }} - name: Checkout sources - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4 + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 - name: Generate and submit dependency graph if: github.event_name == 'workflow_dispatch' || github.event_name == 'push' && github.ref == 'refs/heads/main' uses: gradle/actions/dependency-submission@0bdd871935719febd78681f197cd39af5b6e16a6 # v4.2.2 diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index a6c01734568..0e3ec3dc978 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -48,7 +48,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4 + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 - uses: gradle/wrapper-validation-action@f9c9c575b8b21b6485636a91ffecd10e558c62f6 # v3.5.0 diff --git a/.github/workflows/create-pr.yml b/.github/workflows/create-pr.yml index d837984e7ea..9f57dab0288 100644 --- a/.github/workflows/create-pr.yml +++ b/.github/workflows/create-pr.yml @@ -32,7 +32,7 @@ jobs: echo "email=${GH_APP_USER}+ct-sdks[bot]@users.noreply.github.com" >> "$GITHUB_OUTPUT" - name: Checkout - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4 + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 with: token: ${{ steps.generate_github_token.outputs.token }} diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index e437cab1fd7..5973819c4d8 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -36,13 +36,13 @@ jobs: echo "email=${GH_APP_USER}+ct-sdks[bot]@users.noreply.github.com" >> "$GITHUB_OUTPUT" - name: Checkout - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4 + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 with: path: sdk token: ${{ steps.generate_github_token.outputs.token }} - name: Checkout - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4 + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 with: path: doc ref: gh-pages diff --git a/.github/workflows/release-snapshot.yml b/.github/workflows/release-snapshot.yml index 1a4a6f1c66f..1ba81ca617d 100644 --- a/.github/workflows/release-snapshot.yml +++ b/.github/workflows/release-snapshot.yml @@ -22,7 +22,7 @@ jobs: private-key: ${{ secrets.CT_SDKS_APP_PEM }} - name: Checkout - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4 + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 with: token: ${{ steps.generate_github_token.outputs.token }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index aa07b483f9d..d1d75ca45ff 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,7 +17,7 @@ jobs: if: startsWith( github.ref, 'refs/tags/') steps: - name: Checkout - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4 + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 - uses: gradle/wrapper-validation-action@f9c9c575b8b21b6485636a91ffecd10e558c62f6 # v3.5.0 @@ -70,7 +70,7 @@ jobs: echo "email=${GH_APP_USER}+ct-sdks[bot]@users.noreply.github.com" >> "$GITHUB_OUTPUT" - name: Checkout - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4 + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 with: ref: main token: ${{ steps.generate_github_token.outputs.token }} @@ -132,13 +132,13 @@ jobs: echo "email=${GH_APP_USER}+ct-sdks[bot]@users.noreply.github.com" >> "$GITHUB_OUTPUT" - name: Checkout - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4 + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 with: path: sdk token: ${{ steps.generate_github_token.outputs.token }} - name: Checkout - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4 + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 with: path: doc ref: gh-pages From b1056a7b03f1725ec44876f7c064cb3d04392567 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 6 Jan 2025 17:02:54 +0100 Subject: [PATCH 17/18] chore(deps): update actions/create-github-app-token digest to c1a2851 (#665) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/ci.yml | 6 +++--- .github/workflows/create-pr.yml | 2 +- .github/workflows/docs.yml | 2 +- .github/workflows/release-snapshot.yml | 2 +- .github/workflows/release.yml | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 81c3ded7e3e..b8f8363c2b9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,7 +24,7 @@ jobs: # Get GitHub token via the CT SDKs App - name: Generate GitHub token (via CT SDKs App) id: generate_github_token - uses: actions/create-github-app-token@a0de6af83968303c8c955486bf9739a57d23c7f1 # v1 + uses: actions/create-github-app-token@c1a285145b9d317df6ced56c09f525b5c2b6f755 # v1 with: app-id: ${{ secrets.CT_SDKS_APP_ID }} private-key: ${{ secrets.CT_SDKS_APP_PEM }} @@ -152,7 +152,7 @@ jobs: # Get GitHub token via the CT SDKs App - name: Generate GitHub token (via CT SDKs App) id: generate_github_token - uses: actions/create-github-app-token@a0de6af83968303c8c955486bf9739a57d23c7f1 # v1 + uses: actions/create-github-app-token@c1a285145b9d317df6ced56c09f525b5c2b6f755 # v1 with: app-id: ${{ secrets.CT_SDKS_APP_ID }} private-key: ${{ secrets.CT_SDKS_APP_PEM }} @@ -182,7 +182,7 @@ jobs: # Get GitHub token via the CT SDKs App - name: Generate GitHub token (via CT SDKs App) id: generate_github_token - uses: actions/create-github-app-token@a0de6af83968303c8c955486bf9739a57d23c7f1 # v1 + uses: actions/create-github-app-token@c1a285145b9d317df6ced56c09f525b5c2b6f755 # v1 with: app-id: ${{ secrets.CT_SDKS_APP_ID }} private-key: ${{ secrets.CT_SDKS_APP_PEM }} diff --git a/.github/workflows/create-pr.yml b/.github/workflows/create-pr.yml index 9f57dab0288..9da6f307e18 100644 --- a/.github/workflows/create-pr.yml +++ b/.github/workflows/create-pr.yml @@ -18,7 +18,7 @@ jobs: # Get GitHub token via the CT SDKs App - name: Generate GitHub token (via CT SDKs App) id: generate_github_token - uses: actions/create-github-app-token@a0de6af83968303c8c955486bf9739a57d23c7f1 # v1 + uses: actions/create-github-app-token@c1a285145b9d317df6ced56c09f525b5c2b6f755 # v1 with: app-id: ${{ secrets.CT_SDKS_APP_ID }} private-key: ${{ secrets.CT_SDKS_APP_PEM }} diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 5973819c4d8..b2459342bf9 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -22,7 +22,7 @@ jobs: # Get GitHub token via the CT SDKs App - name: Generate GitHub token (via CT SDKs App) id: generate_github_token - uses: actions/create-github-app-token@a0de6af83968303c8c955486bf9739a57d23c7f1 # v1 + uses: actions/create-github-app-token@c1a285145b9d317df6ced56c09f525b5c2b6f755 # v1 with: app-id: ${{ secrets.CT_SDKS_APP_ID }} private-key: ${{ secrets.CT_SDKS_APP_PEM }} diff --git a/.github/workflows/release-snapshot.yml b/.github/workflows/release-snapshot.yml index 1ba81ca617d..0fe575151e4 100644 --- a/.github/workflows/release-snapshot.yml +++ b/.github/workflows/release-snapshot.yml @@ -16,7 +16,7 @@ jobs: # Get GitHub token via the CT SDKs App - name: Generate GitHub token (via CT SDKs App) id: generate_github_token - uses: actions/create-github-app-token@a0de6af83968303c8c955486bf9739a57d23c7f1 # v1 + uses: actions/create-github-app-token@c1a285145b9d317df6ced56c09f525b5c2b6f755 # v1 with: app-id: ${{ secrets.CT_SDKS_APP_ID }} private-key: ${{ secrets.CT_SDKS_APP_PEM }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d1d75ca45ff..9cb04099a08 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -56,7 +56,7 @@ jobs: # Get GitHub token via the CT SDKs App - name: Generate GitHub token (via CT SDKs App) id: generate_github_token - uses: actions/create-github-app-token@a0de6af83968303c8c955486bf9739a57d23c7f1 # v1 + uses: actions/create-github-app-token@c1a285145b9d317df6ced56c09f525b5c2b6f755 # v1 with: app-id: ${{ secrets.CT_SDKS_APP_ID }} private-key: ${{ secrets.CT_SDKS_APP_PEM }} @@ -118,7 +118,7 @@ jobs: # Get GitHub token via the CT SDKs App - name: Generate GitHub token (via CT SDKs App) id: generate_github_token - uses: actions/create-github-app-token@a0de6af83968303c8c955486bf9739a57d23c7f1 # v1 + uses: actions/create-github-app-token@c1a285145b9d317df6ced56c09f525b5c2b6f755 # v1 with: app-id: ${{ secrets.CT_SDKS_APP_ID }} private-key: ${{ secrets.CT_SDKS_APP_PEM }} From 8c6785248a59db6fcaad747552d6f17e85519c73 Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Mon, 6 Jan 2025 17:03:30 +0000 Subject: [PATCH 18/18] build(codegen): updating SDK --- changes.md | 67 +------------ .../cart_discount/PatternComponent.java | 46 +++++++++ .../PatternComponentBuilder.java | 62 +++++++++++- .../cart_discount/PatternComponentImpl.java | 4 + ...ChangeTargetPatternChangeValueBuilder.java | 56 ++++++++++- .../models/error/GraphQLErrorObject.java | 94 ------------------ .../error/GraphQLErrorObjectBuilder.java | 22 ----- .../models/error/GraphQLErrorObjectImpl.java | 98 ------------------- .../history/models/graph_ql/GraphQLError.java | 8 +- .../models/graph_ql/GraphQLErrorBuilder.java | 18 +--- .../models/graph_ql/GraphQLErrorImpl.java | 8 +- .../cart_discount/PatternComponentTest.java | 36 +++++++ .../models/graph_ql/GraphQLErrorTest.java | 8 +- reference.txt | 1 + references.txt | 1 + 15 files changed, 218 insertions(+), 311 deletions(-) delete mode 100644 commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/error/GraphQLErrorObject.java delete mode 100644 commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/error/GraphQLErrorObjectBuilder.java delete mode 100644 commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/error/GraphQLErrorObjectImpl.java create mode 100644 commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/cart_discount/PatternComponentTest.java create mode 100644 reference.txt diff --git a/changes.md b/changes.md index 42244cf42cb..c2f8369d30e 100644 --- a/changes.md +++ b/changes.md @@ -1,74 +1,15 @@ -**Api changes** - -
-Changed Property(s) - -- :warning: changed property `exact` of type `SearchExactExpression` from type `SearchAnyValue` to `SearchExactValue` -
- - -
-Added Property(s) - -- added property `businessUnits` to type `SearchIndexingConfiguration` -
- - -
-Added Resource(s) - -- added resource `/{projectKey}/business-units/search` -- added resource `/{projectKey}/business-units/search/indexing-status` -
- - -
-Added Method(s) - -- added method `apiRoot.withProjectKey().businessUnits().search().post()` -- added method `apiRoot.withProjectKey().businessUnits().search().head()` -- added method `apiRoot.withProjectKey().businessUnits().searchIndexingStatus().get()` -
- - -
-Added Type(s) - -- added type `BusinessUnitIndexingProgress` -- added type `BusinessUnitIndexingStatus` -- added type `BusinessUnitPagedSearchResponse` -- added type `BusinessUnitSearchIndexingStatusResponse` -- added type `BusinessUnitSearchRequest` -- added type `BusinessUnitSearchResult` -- added type `BusinessUnitSearchStatus` -- added type `ProjectChangeBusinessUnitSearchStatusAction` -- added type `SearchExactValue` -
- **History changes**
-Added Resource(s) - -- added resource `/{projectKey}/graphql` -
- - -
-Added Method(s) +Changed Property(s) -- added method `apiRoot.withProjectKeyValue().graphql().post()` +- :warning: changed property `extensions` of type `GraphQLError` from type `GraphQLErrorObject` to `object`
-Added Type(s) +Removed Type(s) -- added type `GraphQLRequest` -- added type `GraphQLResponse` -- added type `GraphQLError` -- added type `GraphQLErrorLocation` -- added type `GraphQLVariablesMap` -- added type `GraphQLErrorObject` +- :warning: removed type `GraphQLErrorObject`
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/cart_discount/PatternComponent.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/cart_discount/PatternComponent.java index 8cba0f99fdc..1dbb36feb48 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/cart_discount/PatternComponent.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/cart_discount/PatternComponent.java @@ -22,11 +22,13 @@ *
*

  *     PatternComponent patternComponent = PatternComponent.builder()
+ *             .type("{type}")
  *             .build()
  * 
*
*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = PatternComponentImpl.class) public interface PatternComponent { /** @@ -37,6 +39,32 @@ public interface PatternComponent { @JsonProperty("type") public String getType(); + /** + * set type + * @param type value to be set + */ + + public void setType(final String type); + + /** + * factory method + * @return instance of PatternComponent + */ + public static PatternComponent of() { + return new PatternComponentImpl(); + } + + /** + * factory method to create a shallow copy PatternComponent + * @param template instance to be copied + * @return copy instance + */ + public static PatternComponent of(final PatternComponent template) { + PatternComponentImpl instance = new PatternComponentImpl(); + instance.setType(template.getType()); + return instance; + } + /** * factory method to create a deep copy of PatternComponent * @param template instance to be copied @@ -48,9 +76,27 @@ public static PatternComponent deepCopy(@Nullable final PatternComponent templat return null; } PatternComponentImpl instance = new PatternComponentImpl(); + instance.setType(template.getType()); return instance; } + /** + * builder factory method for PatternComponent + * @return builder + */ + public static PatternComponentBuilder builder() { + return PatternComponentBuilder.of(); + } + + /** + * create builder for PatternComponent instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static PatternComponentBuilder builder(final PatternComponent template) { + return PatternComponentBuilder.of(template); + } + /** * accessor map function * @param mapped type diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/cart_discount/PatternComponentBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/cart_discount/PatternComponentBuilder.java index 626dd0f027d..aaad3e595f0 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/cart_discount/PatternComponentBuilder.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/cart_discount/PatternComponentBuilder.java @@ -3,13 +3,62 @@ import java.util.*; +import io.vrap.rmf.base.client.Builder; import io.vrap.rmf.base.client.utils.Generated; /** * PatternComponentBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     PatternComponent patternComponent = PatternComponent.builder()
+ *             .type("{type}")
+ *             .build()
+ * 
+ *
*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") -public class PatternComponentBuilder { +public class PatternComponentBuilder implements Builder { + + private String type; + + /** + * set the value to the type + * @param type value to be set + * @return Builder + */ + + public PatternComponentBuilder type(final String type) { + this.type = type; + return this; + } + + /** + * value of type} + * @return type + */ + + public String getType() { + return this.type; + } + + /** + * builds PatternComponent with checking for non-null required values + * @return PatternComponent + */ + public PatternComponent build() { + Objects.requireNonNull(type, PatternComponent.class + ": type is missing"); + return new PatternComponentImpl(type); + } + + /** + * builds PatternComponent without checking for non-null required values + * @return PatternComponent + */ + public PatternComponent buildUnchecked() { + return new PatternComponentImpl(type); + } /** * factory method for an instance of PatternComponentBuilder @@ -19,4 +68,15 @@ public static PatternComponentBuilder of() { return new PatternComponentBuilder(); } + /** + * create builder for PatternComponent instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static PatternComponentBuilder of(final PatternComponent template) { + PatternComponentBuilder builder = new PatternComponentBuilder(); + builder.type = template.getType(); + return builder; + } + } diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/cart_discount/PatternComponentImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/cart_discount/PatternComponentImpl.java index e2d3ce88759..5d20474a6ba 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/cart_discount/PatternComponentImpl.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/cart_discount/PatternComponentImpl.java @@ -46,6 +46,10 @@ public String getType() { return this.type; } + public void setType(final String type) { + this.type = type; + } + @Override public boolean equals(Object o) { if (this == o) diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_value/ChangeTargetPatternChangeValueBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_value/ChangeTargetPatternChangeValueBuilder.java index ef6c1655155..de4ba29c27e 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_value/ChangeTargetPatternChangeValueBuilder.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_value/ChangeTargetPatternChangeValueBuilder.java @@ -81,7 +81,7 @@ public ChangeTargetPatternChangeValueBuilder plusTriggerPattern( */ public ChangeTargetPatternChangeValueBuilder plusTriggerPattern( - Function> builder) { + Function builder) { if (this.triggerPattern == null) { this.triggerPattern = new ArrayList<>(); } @@ -97,13 +97,37 @@ public ChangeTargetPatternChangeValueBuilder plusTriggerPattern( */ public ChangeTargetPatternChangeValueBuilder withTriggerPattern( - Function> builder) { + Function builder) { this.triggerPattern = new ArrayList<>(); this.triggerPattern.add( builder.apply(com.commercetools.history.models.cart_discount.PatternComponentBuilder.of()).build()); return this; } + /** + *

Units of a (Custom) Line Item that triggered the discount application.

+ * @param builder function to build the triggerPattern value + * @return Builder + */ + + public ChangeTargetPatternChangeValueBuilder addTriggerPattern( + Function builder) { + return plusTriggerPattern( + builder.apply(com.commercetools.history.models.cart_discount.PatternComponentBuilder.of())); + } + + /** + *

Units of a (Custom) Line Item that triggered the discount application.

+ * @param builder function to build the triggerPattern value + * @return Builder + */ + + public ChangeTargetPatternChangeValueBuilder setTriggerPattern( + Function builder) { + return triggerPattern( + builder.apply(com.commercetools.history.models.cart_discount.PatternComponentBuilder.of())); + } + /** *

Units of (Custom) Line Items on which the Discount is applied.

* @param targetPattern value to be set @@ -150,7 +174,7 @@ public ChangeTargetPatternChangeValueBuilder plusTargetPattern( */ public ChangeTargetPatternChangeValueBuilder plusTargetPattern( - Function> builder) { + Function builder) { if (this.targetPattern == null) { this.targetPattern = new ArrayList<>(); } @@ -166,13 +190,37 @@ public ChangeTargetPatternChangeValueBuilder plusTargetPattern( */ public ChangeTargetPatternChangeValueBuilder withTargetPattern( - Function> builder) { + Function builder) { this.targetPattern = new ArrayList<>(); this.targetPattern.add( builder.apply(com.commercetools.history.models.cart_discount.PatternComponentBuilder.of()).build()); return this; } + /** + *

Units of (Custom) Line Items on which the Discount is applied.

+ * @param builder function to build the targetPattern value + * @return Builder + */ + + public ChangeTargetPatternChangeValueBuilder addTargetPattern( + Function builder) { + return plusTargetPattern( + builder.apply(com.commercetools.history.models.cart_discount.PatternComponentBuilder.of())); + } + + /** + *

Units of (Custom) Line Items on which the Discount is applied.

+ * @param builder function to build the targetPattern value + * @return Builder + */ + + public ChangeTargetPatternChangeValueBuilder setTargetPattern( + Function builder) { + return targetPattern( + builder.apply(com.commercetools.history.models.cart_discount.PatternComponentBuilder.of())); + } + /** *

Maximum number of times the Discount applies on a Cart.

*

If empty, the Discount applies indefinitely.

diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/error/GraphQLErrorObject.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/error/GraphQLErrorObject.java deleted file mode 100644 index 0202b59701e..00000000000 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/error/GraphQLErrorObject.java +++ /dev/null @@ -1,94 +0,0 @@ - -package com.commercetools.history.models.error; - -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.constraints.NotNull; - -/** - *

Represents a single error.

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

- *     GraphQLErrorObject graphQLErrorObject = GraphQLErrorObject.builder()
- *             .build()
- * 
- *
- */ -@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") -public interface GraphQLErrorObject { - - /** - *

One of the error codes that is listed on the Errors page.

- * @return code - */ - @NotNull - @JsonProperty("code") - public String getCode(); - - /** - *

Error-specific additional fields.

- * @return map of the pattern property values - */ - @NotNull - @JsonAnyGetter - public Map values(); - - /** - *

Error-specific additional fields.

- * @param key property name - * @param value property value - */ - - @JsonAnySetter - public void setValue(String key, Object value); - - /** - * factory method to create a deep copy of GraphQLErrorObject - * @param template instance to be copied - * @return copy instance - */ - @Nullable - public static GraphQLErrorObject deepCopy(@Nullable final GraphQLErrorObject template) { - if (template == null) { - return null; - } - GraphQLErrorObjectImpl instance = new GraphQLErrorObjectImpl(); - Optional.ofNullable(template.values()).ifPresent(t -> t.forEach(instance::setValue)); - return instance; - } - - /** - * accessor map function - * @param mapped type - * @param helper function to map the object - * @return mapped value - */ - default T withGraphQLErrorObject(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-history/src/main/java-generated/com/commercetools/history/models/error/GraphQLErrorObjectBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/error/GraphQLErrorObjectBuilder.java deleted file mode 100644 index 97c01877248..00000000000 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/error/GraphQLErrorObjectBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ - -package com.commercetools.history.models.error; - -import java.util.*; - -import io.vrap.rmf.base.client.utils.Generated; - -/** - * GraphQLErrorObjectBuilder - */ -@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") -public class GraphQLErrorObjectBuilder { - - /** - * factory method for an instance of GraphQLErrorObjectBuilder - * @return builder - */ - public static GraphQLErrorObjectBuilder of() { - return new GraphQLErrorObjectBuilder(); - } - -} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/error/GraphQLErrorObjectImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/error/GraphQLErrorObjectImpl.java deleted file mode 100644 index 5e06401dcf7..00000000000 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/error/GraphQLErrorObjectImpl.java +++ /dev/null @@ -1,98 +0,0 @@ - -package com.commercetools.history.models.error; - -import java.time.*; -import java.util.*; - -import com.fasterxml.jackson.annotation.JsonAnySetter; -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 a single error.

- */ -@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") -public class GraphQLErrorObjectImpl implements GraphQLErrorObject, ModelBase { - - private String code; - - private Map values; - - /** - * create instance with all properties - */ - @JsonCreator - GraphQLErrorObjectImpl(@JsonProperty("code") final String code, - @JsonAnySetter @JsonProperty("values") final Map values) { - this.code = code; - this.values = values; - } - - /** - * create empty instance - */ - public GraphQLErrorObjectImpl() { - } - - /** - *

One of the error codes that is listed on the Errors page.

- */ - - public String getCode() { - return this.code; - } - - /** - *

Error-specific additional fields.

- */ - - public Map values() { - return values; - } - - public void setValue(String key, java.lang.Object value) { - if (values == null) { - values = new HashMap<>(); - } - values.put(key, value); - } - - @Override - public boolean equals(Object o) { - if (this == o) - return true; - - if (o == null || getClass() != o.getClass()) - return false; - - GraphQLErrorObjectImpl that = (GraphQLErrorObjectImpl) o; - - return new EqualsBuilder().append(code, that.code) - .append(values, that.values) - .append(code, that.code) - .append(values, that.values) - .isEquals(); - } - - @Override - public int hashCode() { - return new HashCodeBuilder(17, 37).append(code).append(values).toHashCode(); - } - - @Override - public String toString() { - return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("code", code) - .append("values", values) - .build(); - } - -} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLError.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLError.java index d197aca65db..2d71cc87ed0 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLError.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLError.java @@ -8,7 +8,6 @@ import javax.annotation.Nullable; -import com.commercetools.history.models.error.GraphQLErrorObject; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.annotation.*; @@ -68,7 +67,7 @@ public interface GraphQLError { @NotNull @Valid @JsonProperty("extensions") - public GraphQLErrorObject getExtensions(); + public Object getExtensions(); /** *

Detailed description of the error explaining the root cause of the problem and suggesting how to correct the error.

@@ -112,7 +111,7 @@ public interface GraphQLError { * @param extensions value to be set */ - public void setExtensions(final GraphQLErrorObject extensions); + public void setExtensions(final Object extensions); /** * factory method @@ -154,8 +153,7 @@ public static GraphQLError deepCopy(@Nullable final GraphQLError template) { .collect(Collectors.toList())) .orElse(null)); instance.setPath(Optional.ofNullable(template.getPath()).map(ArrayList::new).orElse(null)); - instance.setExtensions( - com.commercetools.history.models.error.GraphQLErrorObject.deepCopy(template.getExtensions())); + instance.setExtensions(template.getExtensions()); return instance; } diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLErrorBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLErrorBuilder.java index 4fc95316498..e91e0ffadae 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLErrorBuilder.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLErrorBuilder.java @@ -33,7 +33,7 @@ public class GraphQLErrorBuilder implements Builder { @Nullable private java.util.List path; - private com.commercetools.history.models.error.GraphQLErrorObject extensions; + private java.lang.Object extensions; /** *

Detailed description of the error explaining the root cause of the problem and suggesting how to correct the error.

@@ -179,23 +179,11 @@ public GraphQLErrorBuilder plusPath(@Nullable final java.lang.Object... path) { * @return Builder */ - public GraphQLErrorBuilder extensions(final com.commercetools.history.models.error.GraphQLErrorObject extensions) { + public GraphQLErrorBuilder extensions(final java.lang.Object extensions) { this.extensions = extensions; return this; } - /** - *

Dictionary with additional information where applicable.

- * @param builder function to build the extensions value - * @return Builder - */ - - public GraphQLErrorBuilder extensions( - Function> builder) { - this.extensions = builder.apply(com.commercetools.history.models.error.GraphQLErrorObjectBuilder.of()).build(); - return this; - } - /** *

Detailed description of the error explaining the root cause of the problem and suggesting how to correct the error.

* @return message @@ -229,7 +217,7 @@ public java.util.List getPath() { * @return extensions */ - public com.commercetools.history.models.error.GraphQLErrorObject getExtensions() { + public java.lang.Object getExtensions() { return this.extensions; } diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLErrorImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLErrorImpl.java index a40e15b0400..139ffc24848 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLErrorImpl.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLErrorImpl.java @@ -28,7 +28,7 @@ public class GraphQLErrorImpl implements GraphQLError, ModelBase { private java.util.List path; - private com.commercetools.history.models.error.GraphQLErrorObject extensions; + private java.lang.Object extensions; /** * create instance with all properties @@ -37,7 +37,7 @@ public class GraphQLErrorImpl implements GraphQLError, ModelBase { GraphQLErrorImpl(@JsonProperty("message") final String message, @JsonProperty("locations") final java.util.List locations, @JsonProperty("path") final java.util.List path, - @JsonProperty("extensions") final com.commercetools.history.models.error.GraphQLErrorObject extensions) { + @JsonProperty("extensions") final java.lang.Object extensions) { this.message = message; this.locations = locations; this.path = path; @@ -78,7 +78,7 @@ public java.util.List getPath() { *

Dictionary with additional information where applicable.

*/ - public com.commercetools.history.models.error.GraphQLErrorObject getExtensions() { + public java.lang.Object getExtensions() { return this.extensions; } @@ -103,7 +103,7 @@ public void setPath(final java.util.List path) { this.path = path; } - public void setExtensions(final com.commercetools.history.models.error.GraphQLErrorObject extensions) { + public void setExtensions(final java.lang.Object extensions) { this.extensions = extensions; } diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/cart_discount/PatternComponentTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/cart_discount/PatternComponentTest.java new file mode 100644 index 00000000000..3d2257cc84e --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/cart_discount/PatternComponentTest.java @@ -0,0 +1,36 @@ + +package com.commercetools.history.models.cart_discount; + +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 PatternComponentTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(PatternComponentBuilder builder) { + PatternComponent patternComponent = builder.buildUnchecked(); + Assertions.assertThat(patternComponent).isInstanceOf(PatternComponent.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { PatternComponent.builder().type("type") } }; + } + + @Test + public void type() { + PatternComponent value = PatternComponent.of(); + value.setType("type"); + Assertions.assertThat(value.getType()).isEqualTo("type"); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/graph_ql/GraphQLErrorTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/graph_ql/GraphQLErrorTest.java index dfd63a8b3be..89d0819912f 100644 --- a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/graph_ql/GraphQLErrorTest.java +++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/graph_ql/GraphQLErrorTest.java @@ -31,8 +31,7 @@ public static Object[][] objectBuilder() { .locations(Collections.singletonList( new com.commercetools.history.models.graph_ql.GraphQLErrorLocationImpl())) }, new Object[] { GraphQLError.builder().path(Collections.singletonList("path")) }, - new Object[] { GraphQLError.builder() - .extensions(new com.commercetools.history.models.error.GraphQLErrorObjectImpl()) } }; + new Object[] { GraphQLError.builder().extensions("extensions") } }; } @Test @@ -62,8 +61,7 @@ public void path() { @Test public void extensions() { GraphQLError value = GraphQLError.of(); - value.setExtensions(new com.commercetools.history.models.error.GraphQLErrorObjectImpl()); - Assertions.assertThat(value.getExtensions()) - .isEqualTo(new com.commercetools.history.models.error.GraphQLErrorObjectImpl()); + value.setExtensions("extensions"); + Assertions.assertThat(value.getExtensions()).isEqualTo("extensions"); } } diff --git a/reference.txt b/reference.txt new file mode 100644 index 00000000000..e5c7c0e15d2 --- /dev/null +++ b/reference.txt @@ -0,0 +1 @@ +2a4e9c2d60f68a2f2b7976054db2c5052988fcaf diff --git a/references.txt b/references.txt index a44e5499437..6598e995eaa 100644 --- a/references.txt +++ b/references.txt @@ -354,3 +354,4 @@ f8b69ab19d6be2bcc6732deee0647bd8494c15f1 e8f731a742ca2997342b1b5f98121d86c8189a3b 473d2c6f1a9e9da0d2a42408ccf11f27a838f8b5 b7b82f5a701908239fcf39781bcbfa80823c9fa0 +cc1732f88ea3dc336358ff9f39cda9d5271cf7c2