From e19c0c367f586160958d1f039e832775fa80ed9f Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Tue, 7 Jul 2026 16:09:42 +0000 Subject: [PATCH 01/27] build(codegen): updating SDK --- .../src/main/resources/graphql/schema.graphqls | 4 ++-- reference.txt | 1 + references.txt | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 reference.txt 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 6d69029b65..ddec9b7bf0 100644 --- a/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls +++ b/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls @@ -1830,8 +1830,8 @@ type McpServerTypeCatalogEntry { type McpServerCatalogTool { name: String! description: String - operationType: McpToolOperationType! - groups: [String!]! + operationType: McpToolOperationType + groups: [String!] } type Product implements Versioned & ReviewTarget & ReferenceExpandable { diff --git a/reference.txt b/reference.txt new file mode 100644 index 0000000000..3223e1e190 --- /dev/null +++ b/reference.txt @@ -0,0 +1 @@ +0fd20527a3590275d0224f6daba460c9ae55f4c7 diff --git a/references.txt b/references.txt index 853434ff57..ae2dc1bcff 100644 --- a/references.txt +++ b/references.txt @@ -583,3 +583,4 @@ c9cd63b8b3c149eb27bc2f2a62dffa68ea137d8b d4c439f7fc7dd0ad0d9d85c9e69cd5f32609af3d 6ff4467597dad93dc5797d057b1b6181ae49514d 2e41f003e889de240f6a92aa143c3103ea348e54 +eba9a59893b6b3e86b86d17cf2c33986232bc543 From 9de05f8a7976894095b8abcca7afb79111e82914 Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Thu, 9 Jul 2026 11:25:42 +0000 Subject: [PATCH 02/27] build(codegen): updating SDK --- .../api/models/subscription/SubscriptionHealthStatus.java | 2 +- references.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionHealthStatus.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionHealthStatus.java index 3a9a2cb3f4..7f5ccd371d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionHealthStatus.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionHealthStatus.java @@ -23,7 +23,7 @@ public interface SubscriptionHealthStatus extends JsonEnum {

Notifications cannot be delivered with the current configuration. Common causes are deleting the Destination queue, deleting access credentials, or removing necessary permissions. You can fix the configuration by re-creating the configuration on the Destination side, or by setting a new configuration with the Change Destination update action. After the configuration is fixed, undelivered notifications will be delivered and the status will change to Healthy. ConfigurationError is automatically turned into ConfigurationErrorDeliveryStopped after some time. For more information, see Delivery Guarantees.

*/ SubscriptionHealthStatus CONFIGURATION_ERROR = SubscriptionHealthStatusEnum.CONFIGURATION_ERROR; /** -

Does not deliver notifications with the current configuration and the delivery of the notifications is no longer attempted. After the configuration is fixed, undelivered notifications are not retained and will not be delivered. The status will change to Healthy as soon as new notifications can be delivered.

*/ +

Does not deliver notifications with the current configuration and the delivery of the notifications is no longer attempted. After the configuration is fixed, undelivered notifications are not retained and will not be delivered. The status will not automatically change to Healthy. To return your Subscription to a Healthy status, use the Change Destination update action or recreate the Subscription.

*/ SubscriptionHealthStatus CONFIGURATION_ERROR_DELIVERY_STOPPED = SubscriptionHealthStatusEnum.CONFIGURATION_ERROR_DELIVERY_STOPPED; /**

Does not deliver notifications temporarily due to reasons other than a configuration error. For example, the Destination has a temporary outage.

*/ diff --git a/references.txt b/references.txt index ae2dc1bcff..a37ed941d4 100644 --- a/references.txt +++ b/references.txt @@ -584,3 +584,4 @@ d4c439f7fc7dd0ad0d9d85c9e69cd5f32609af3d 6ff4467597dad93dc5797d057b1b6181ae49514d 2e41f003e889de240f6a92aa143c3103ea348e54 eba9a59893b6b3e86b86d17cf2c33986232bc543 +a9e9771fe2b7eca7651b0ca5fef4992d4df8b21c From 937e412c628d9e86c7c7e9c919dd0761bfe0681b Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Thu, 9 Jul 2026 13:35:35 +0000 Subject: [PATCH 03/27] build(codegen): updating SDK --- changes.md | 204 +----- ...toreKeyByStoreKeyDiscountCodesByIDGet.java | 228 ++++++ ...oreKeyByStoreKeyDiscountCodesByIDHead.java | 137 ++++ ...oreKeyDiscountCodesByIDRequestBuilder.java | 31 + ...yInStoreKeyByStoreKeyDiscountCodesGet.java | 689 ++++++++++++++++++ ...InStoreKeyByStoreKeyDiscountCodesHead.java | 209 ++++++ ...KeyByStoreKeyDiscountCodesKeyByKeyGet.java | 231 ++++++ ...eyByStoreKeyDiscountCodesKeyByKeyHead.java | 138 ++++ ...eyDiscountCodesKeyByKeyRequestBuilder.java | 31 + ...ByStoreKeyDiscountCodesRequestBuilder.java | 39 + ...KeyInStoreKeyByStoreKeyRequestBuilder.java | 4 + .../models/discount_code/DiscountCode.java | 35 + .../discount_code/DiscountCodeBuilder.java | 113 ++- .../discount_code/DiscountCodeImpl.java | 25 + .../DiscountCodeQueryBuilderDsl.java | 13 + ...oreKeyByStoreKeyDiscountCodesByIDTest.java | 106 +++ ...eyByStoreKeyDiscountCodesKeyByKeyTest.java | 107 +++ ...InStoreKeyByStoreKeyDiscountCodesTest.java | 191 +++++ .../discount_code/DiscountCodeTest.java | 12 + references.txt | 1 + 20 files changed, 2348 insertions(+), 196 deletions(-) create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDGet.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDRequestBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyGet.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyRequestBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesRequestBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesTest.java diff --git a/changes.md b/changes.md index 662adc79ee..5bfe2f2196 100644 --- a/changes.md +++ b/changes.md @@ -1,213 +1,29 @@ **Api changes** -
-Added Type(s) - -- added type `BulkOperationMaxItemsExceededError` -- added type `OverlappingPriceValidityError` -- added type `GraphQLBulkOperationMaxItemsExceededError` -- added type `GraphQLOverlappingPriceValidityError` -- added type `CartLockedMessage` -- added type `CartUnlockedMessage` -- added type `VariantCreatedMessage` -- added type `VariantDeletedMessage` -- added type `VariantImageAddedMessage` -- added type `VariantImagesSetMessage` -- added type `VariantKeySetMessage` -- added type `VariantPublishedMessage` -- added type `VariantSkuSetMessage` -- added type `VariantStagedChangesRemovedMessage` -- added type `VariantUnpublishedMessage` -- added type `CartLockedMessagePayload` -- added type `CartUnlockedMessagePayload` -- added type `VariantCreatedMessagePayload` -- added type `VariantDeletedMessagePayload` -- added type `VariantImageAddedMessagePayload` -- added type `VariantImagesSetMessagePayload` -- added type `VariantKeySetMessagePayload` -- added type `VariantPublishedMessagePayload` -- added type `VariantSkuSetMessagePayload` -- added type `VariantStagedChangesRemovedMessagePayload` -- added type `VariantUnpublishedMessagePayload` -- added type `ProductSetDefaultVariantAction` -- added type `ProductCatalogModel` -- added type `ProjectSetProductCatalogModelAction` -- added type `ShippingMethodAddStoreAction` -- added type `ShippingMethodRemoveStoreAction` -- added type `ShippingMethodSetStoresAction` -- added type `VariantAttributes` -- added type `VariantAttributesAttributeMetadata` -- added type `VariantAttributesAvailability` -- added type `VariantAttributesChannelAvailability` -- added type `VariantAttributesChannelAvailabilityMap` -- added type `VariantAttributesVariant` -- added type `Variant` -- added type `VariantBulkUpdate` -- added type `VariantBulkUpdateFailResult` -- added type `VariantBulkUpdateItem` -- added type `VariantBulkUpdateResource` -- added type `VariantBulkUpdateResponse` -- added type `VariantBulkUpdateResult` -- added type `VariantBulkUpdateSuccessResult` -- added type `VariantData` -- added type `VariantDraft` -- added type `VariantPagedQueryResponse` -- added type `VariantProjection` -- added type `VariantProjectionPagedQueryResponse` -- added type `VariantReference` -- added type `VariantResourceIdentifier` -- added type `VariantUpdate` -- added type `VariantUpdateAction` -- added type `VariantAddAssetAction` -- added type `VariantAddExternalImageAction` -- added type `VariantChangeAssetNameAction` -- added type `VariantChangeAssetOrderAction` -- added type `VariantPublishAction` -- added type `VariantRemoveAssetAction` -- added type `VariantRemoveImageAction` -- added type `VariantRemoveStagedChangesAction` -- added type `VariantSetAssetCustomFieldAction` -- added type `VariantSetAssetCustomTypeAction` -- added type `VariantSetAssetDescriptionAction` -- added type `VariantSetAssetKeyAction` -- added type `VariantSetAssetSourcesAction` -- added type `VariantSetAssetTagsAction` -- added type `VariantSetAssetsAction` -- added type `VariantSetAttributeAction` -- added type `VariantSetAttributesAction` -- added type `VariantSetImagesAction` -- added type `VariantSetKeyAction` -- added type `VariantSetSkuAction` -- added type `VariantUnpublishAction` -
- - -
-Added QueryParameter(s) - -- added query parameter `dataErasure` to method `delete /{projectKey}/business-units/key={key}` -- added query parameter `dataErasure` to method `delete /{projectKey}/business-units/{ID}` -- added query parameter `dataErasure` to method `delete /{projectKey}/in-store/key={storeKey}/business-units/key={key}` -- added query parameter `dataErasure` to method `delete /{projectKey}/in-store/key={storeKey}/business-units/{ID}` -
- -
Added Resource(s) -- added resource `/{projectKey}/variant-projections` -- added resource `/{projectKey}/variants` -- added resource `/{projectKey}/product-projections/key={key}/variant-attributes` -- added resource `/{projectKey}/product-projections/{ID}/variant-attributes` -- added resource `/{projectKey}/variant-projections/key={key}` -- added resource `/{projectKey}/variant-projections/{ID}` -- added resource `/{projectKey}/variants/bulk` -- added resource `/{projectKey}/variants/key={key}` -- added resource `/{projectKey}/variants/{ID}` -- added resource `/{projectKey}/in-store/key={storeKey}/variant-projections` -- added resource `/{projectKey}/in-store/key={storeKey}/product-projections/key={key}/variant-attributes` -- added resource `/{projectKey}/in-store/key={storeKey}/product-projections/{ID}/variant-attributes` -- added resource `/{projectKey}/in-store/key={storeKey}/variant-projections/key={key}` -- added resource `/{projectKey}/in-store/key={storeKey}/variant-projections/{ID}` +- added resource `/{projectKey}/in-store/key={storeKey}/discount-codes` +- added resource `/{projectKey}/in-store/key={storeKey}/discount-codes/key={key}` +- added resource `/{projectKey}/in-store/key={storeKey}/discount-codes/{ID}`
Added Property(s) -- added property `defaultVariant` to type `ProductData` -- added property `productCatalogModel` to type `Project` -- added property `stores` to type `ShippingMethod` -- added property `stores` to type `ShippingMethodDraft` +- added property `stores` to type `DiscountCode`
Added Method(s) -- added method `apiRoot.withProjectKey().variantProjections().get()` -- added method `apiRoot.withProjectKey().variantProjections().head()` -- added method `apiRoot.withProjectKey().variants().get()` -- added method `apiRoot.withProjectKey().variants().post()` -- added method `apiRoot.withProjectKey().variants().head()` -- added method `apiRoot.withProjectKey().productProjections().withKey().variantAttributes().get()` -- added method `apiRoot.withProjectKey().productProjections().withId().variantAttributes().get()` -- added method `apiRoot.withProjectKey().variantProjections().withKey().get()` -- added method `apiRoot.withProjectKey().variantProjections().withKey().head()` -- added method `apiRoot.withProjectKey().variantProjections().withId().get()` -- added method `apiRoot.withProjectKey().variantProjections().withId().head()` -- added method `apiRoot.withProjectKey().variants().bulk().post()` -- added method `apiRoot.withProjectKey().variants().withKey().get()` -- added method `apiRoot.withProjectKey().variants().withKey().head()` -- added method `apiRoot.withProjectKey().variants().withKey().post()` -- added method `apiRoot.withProjectKey().variants().withKey().delete()` -- added method `apiRoot.withProjectKey().variants().withId().get()` -- added method `apiRoot.withProjectKey().variants().withId().head()` -- added method `apiRoot.withProjectKey().variants().withId().post()` -- added method `apiRoot.withProjectKey().variants().withId().delete()` -- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().variantProjections().get()` -- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().variantProjections().head()` -- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().productProjections().withKey().variantAttributes().get()` -- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().productProjections().withId().variantAttributes().get()` -- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().variantProjections().withKey().get()` -- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().variantProjections().withKey().head()` -- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().variantProjections().withId().get()` -- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().variantProjections().withId().head()` -
- - -
-Added Enum(s) - -- added enum `variant` to type `ReferenceTypeId` -
- -**Import changes** - -
-Added Type(s) - -- added type `VariantImportRequest` -- added type `VariantImport` -
- - -
-Added Resource(s) - -- added resource `/{projectKey}/variants` -- added resource `/{projectKey}/variants/import-containers` -- added resource `/{projectKey}/variants/import-containers/{importContainerKey}` -
- - -
-Added Method(s) - -- added method `apiRoot.withProjectKeyValue().variants().importContainers().withImportContainerKeyValue().post()` -
- - -
-Added Enum(s) - -- added enum `variant` to type `ImportResourceType` -- added enum `variant` to type `ReferenceType` -
- -**Checkout changes** - -
-Changed MethodResponseBody(s) - -- :warning: changed response body for `200: application/json` of method `post /{projectKey}/payment-intents/{paymentId}` from type `any` to `PaymentIntentResponse` -
- - -
-Added Type(s) - -- added type `PaymentIntentOutcome` -- added type `PaymentIntentResponse` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().discountCodes().get()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().discountCodes().head()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().discountCodes().withKey().get()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().discountCodes().withKey().head()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().discountCodes().withId().get()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().discountCodes().withId().head()`
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDGet.java new file mode 100644 index 0000000000..8548585eca --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDGet.java @@ -0,0 +1,228 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +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; + +import tools.jackson.core.type.TypeReference; + +/** + * + * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .inStoreKeyWithStoreKeyValue("{storeKey}")
+ *            .discountCodes()
+ *            .withId("{ID}")
+ *            .get()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDGet extends + TypeApiMethod + implements com.commercetools.api.client.ExpandableTrait, + com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String storeKey; + private String ID; + + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDGet(final ApiHttpClient apiHttpClient, String projectKey, + String storeKey, String ID) { + super(apiHttpClient); + this.projectKey = projectKey; + this.storeKey = storeKey; + this.ID = ID; + } + + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDGet( + ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDGet t) { + super(t); + this.projectKey = t.projectKey; + this.storeKey = t.storeKey; + this.ID = t.ID; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/in-store/key=%s/discount-codes/%s", encodePathParam(this.projectKey), + encodePathParam(this.storeKey), encodePathParam(this.ID)); + 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.discount_code.DiscountCode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.commercetools.api.models.discount_code.DiscountCode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getStoreKey() { + return this.storeKey; + } + + public String getID() { + return this.ID; + } + + public List getExpand() { + return this.getQueryParam("expand"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setStoreKey(final String storeKey) { + this.storeKey = storeKey; + } + + public void setID(final String ID) { + this.ID = ID; + } + + /** + * set expand with the specified value + * @param expand value to be set + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDGet + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDGet withExpand(final TValue expand) { + return copy().withQueryParam("expand", expand); + } + + /** + * add additional expand query parameter + * @param expand value to be added + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDGet + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDGet addExpand(final TValue expand) { + return copy().addQueryParam("expand", expand); + } + + /** + * set expand with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDGet + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDGet withExpand(final Supplier supplier) { + return copy().withQueryParam("expand", supplier.get()); + } + + /** + * add additional expand query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDGet + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDGet addExpand(final Supplier supplier) { + return copy().addQueryParam("expand", supplier.get()); + } + + /** + * set expand with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDGet + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDGet withExpand( + final Function op) { + return copy().withQueryParam("expand", op.apply(new StringBuilder())); + } + + /** + * add additional expand query parameter + * @param op builder for the value to be added + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDGet + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDGet addExpand( + final Function op) { + return copy().addQueryParam("expand", op.apply(new StringBuilder())); + } + + /** + * set expand with the specified values + * @param expand values to be set + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDGet + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDGet withExpand(final Collection expand) { + return copy().withoutQueryParam("expand") + .addQueryParams( + expand.stream().map(s -> new ParamEntry<>("expand", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional expand query parameters + * @param expand values to be added + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDGet + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDGet addExpand(final Collection expand) { + return copy().addQueryParams( + expand.stream().map(s -> new ParamEntry<>("expand", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDGet that = (ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDGet) o; + + return new EqualsBuilder().append(projectKey, that.projectKey) + .append(storeKey, that.storeKey) + .append(ID, that.ID) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(storeKey).append(ID).toHashCode(); + } + + @Override + protected ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDGet copy() { + return new ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDGet(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDHead.java new file mode 100644 index 0000000000..d1c78c233f --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDHead.java @@ -0,0 +1,137 @@ + +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 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; + +import tools.jackson.core.type.TypeReference; + +/** + *

Checks if a DiscountCode exists with the provided id. Returns a 200 status if the DiscountCode exists, or a 404 status otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .inStoreKeyWithStoreKeyValue("{storeKey}")
+ *            .discountCodes()
+ *            .withId("{ID}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String storeKey; + private String ID; + + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDHead(final ApiHttpClient apiHttpClient, String projectKey, + String storeKey, String ID) { + super(apiHttpClient); + this.projectKey = projectKey; + this.storeKey = storeKey; + this.ID = ID; + } + + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDHead( + ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDHead t) { + super(t); + this.projectKey = t.projectKey; + this.storeKey = t.storeKey; + this.ID = t.ID; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/in-store/key=%s/discount-codes/%s", encodePathParam(this.projectKey), + encodePathParam(this.storeKey), encodePathParam(this.ID)); + 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, tools.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute(final ApiHttpClient client) { + return execute(client, tools.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getStoreKey() { + return this.storeKey; + } + + public String getID() { + return this.ID; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setStoreKey(final String storeKey) { + this.storeKey = storeKey; + } + + public void setID(final String ID) { + this.ID = ID; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDHead that = (ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey) + .append(storeKey, that.storeKey) + .append(ID, that.ID) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(storeKey).append(ID).toHashCode(); + } + + @Override + protected ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDHead copy() { + return new ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDRequestBuilder.java new file mode 100644 index 0000000000..42c0508d3d --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDRequestBuilder.java @@ -0,0 +1,31 @@ + +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 ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDRequestBuilder { + + private final ApiHttpClient apiHttpClient; + private final String projectKey; + private final String storeKey; + private final String ID; + + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDRequestBuilder(final ApiHttpClient apiHttpClient, + final String projectKey, final String storeKey, final String ID) { + this.apiHttpClient = apiHttpClient; + this.projectKey = projectKey; + this.storeKey = storeKey; + this.ID = ID; + } + + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDGet get() { + return new ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDGet(apiHttpClient, projectKey, storeKey, ID); + } + + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDHead head() { + return new ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDHead(apiHttpClient, projectKey, storeKey, ID); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet.java new file mode 100644 index 0000000000..8083be4aad --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet.java @@ -0,0 +1,689 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +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; + +import tools.jackson.core.type.TypeReference; + +/** + * + * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .inStoreKeyWithStoreKeyValue("{storeKey}")
+ *            .discountCodes()
+ *            .get()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet extends + TypeApiMethod + implements com.commercetools.api.client.ExpandableTrait, + com.commercetools.api.client.SortableTrait, + com.commercetools.api.client.PagingTrait, + com.commercetools.api.client.QueryTrait, + com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String storeKey; + + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet(final ApiHttpClient apiHttpClient, String projectKey, + String storeKey) { + super(apiHttpClient); + this.projectKey = projectKey; + this.storeKey = storeKey; + } + + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet(ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet t) { + super(t); + this.projectKey = t.projectKey; + this.storeKey = t.storeKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/in-store/key=%s/discount-codes", encodePathParam(this.projectKey), + encodePathParam(this.storeKey)); + 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.discount_code.DiscountCodePagedQueryResponse.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.commercetools.api.models.discount_code.DiscountCodePagedQueryResponse.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getStoreKey() { + return this.storeKey; + } + + public List getExpand() { + return this.getQueryParam("expand"); + } + + public List getSort() { + return this.getQueryParam("sort"); + } + + public List getLimit() { + return this.getQueryParam("limit"); + } + + public List getOffset() { + return this.getQueryParam("offset"); + } + + public List getWithTotal() { + return this.getQueryParam("withTotal"); + } + + public List getWhere() { + return this.getQueryParam("where"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setStoreKey(final String storeKey) { + this.storeKey = storeKey; + } + + /** + * set expand with the specified value + * @param expand value to be set + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet withExpand(final TValue expand) { + return copy().withQueryParam("expand", expand); + } + + /** + * add additional expand query parameter + * @param expand value to be added + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet addExpand(final TValue expand) { + return copy().addQueryParam("expand", expand); + } + + /** + * set expand with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet withExpand(final Supplier supplier) { + return copy().withQueryParam("expand", supplier.get()); + } + + /** + * add additional expand query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet addExpand(final Supplier supplier) { + return copy().addQueryParam("expand", supplier.get()); + } + + /** + * set expand with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet withExpand( + final Function op) { + return copy().withQueryParam("expand", op.apply(new StringBuilder())); + } + + /** + * add additional expand query parameter + * @param op builder for the value to be added + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet addExpand(final Function op) { + return copy().addQueryParam("expand", op.apply(new StringBuilder())); + } + + /** + * set expand with the specified values + * @param expand values to be set + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet withExpand(final Collection expand) { + return copy().withoutQueryParam("expand") + .addQueryParams( + expand.stream().map(s -> new ParamEntry<>("expand", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional expand query parameters + * @param expand values to be added + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet addExpand(final Collection expand) { + return copy().addQueryParams( + expand.stream().map(s -> new ParamEntry<>("expand", s.toString())).collect(Collectors.toList())); + } + + /** + * set sort with the specified value + * @param sort value to be set + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet withSort(final TValue sort) { + return copy().withQueryParam("sort", sort); + } + + /** + * add additional sort query parameter + * @param sort value to be added + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet addSort(final TValue sort) { + return copy().addQueryParam("sort", sort); + } + + /** + * set sort with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet withSort(final Supplier supplier) { + return copy().withQueryParam("sort", supplier.get()); + } + + /** + * add additional sort query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet addSort(final Supplier supplier) { + return copy().addQueryParam("sort", supplier.get()); + } + + /** + * set sort with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet withSort(final Function op) { + return copy().withQueryParam("sort", op.apply(new StringBuilder())); + } + + /** + * add additional sort query parameter + * @param op builder for the value to be added + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet addSort(final Function op) { + return copy().addQueryParam("sort", op.apply(new StringBuilder())); + } + + /** + * set sort with the specified values + * @param sort values to be set + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet withSort(final Collection sort) { + return copy().withoutQueryParam("sort") + .addQueryParams( + sort.stream().map(s -> new ParamEntry<>("sort", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional sort query parameters + * @param sort values to be added + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet addSort(final Collection sort) { + return copy().addQueryParams( + sort.stream().map(s -> new ParamEntry<>("sort", s.toString())).collect(Collectors.toList())); + } + + /** + * set limit with the specified value + * @param limit value to be set + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet withLimit(final TValue limit) { + return copy().withQueryParam("limit", limit); + } + + /** + * add additional limit query parameter + * @param limit value to be added + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet addLimit(final TValue limit) { + return copy().addQueryParam("limit", limit); + } + + /** + * set limit with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet withLimit(final Supplier supplier) { + return copy().withQueryParam("limit", supplier.get()); + } + + /** + * add additional limit query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet addLimit(final Supplier supplier) { + return copy().addQueryParam("limit", supplier.get()); + } + + /** + * set limit with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet withLimit(final Function op) { + return copy().withQueryParam("limit", op.apply(new StringBuilder())); + } + + /** + * add additional limit query parameter + * @param op builder for the value to be added + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet addLimit(final Function op) { + return copy().addQueryParam("limit", op.apply(new StringBuilder())); + } + + /** + * set limit with the specified values + * @param limit values to be set + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet withLimit(final Collection limit) { + return copy().withoutQueryParam("limit") + .addQueryParams( + limit.stream().map(s -> new ParamEntry<>("limit", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional limit query parameters + * @param limit values to be added + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet addLimit(final Collection limit) { + return copy().addQueryParams( + limit.stream().map(s -> new ParamEntry<>("limit", s.toString())).collect(Collectors.toList())); + } + + /** + * set offset with the specified value + * @param offset value to be set + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet withOffset(final TValue offset) { + return copy().withQueryParam("offset", offset); + } + + /** + * add additional offset query parameter + * @param offset value to be added + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet addOffset(final TValue offset) { + return copy().addQueryParam("offset", offset); + } + + /** + * set offset with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet withOffset(final Supplier supplier) { + return copy().withQueryParam("offset", supplier.get()); + } + + /** + * add additional offset query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet addOffset(final Supplier supplier) { + return copy().addQueryParam("offset", supplier.get()); + } + + /** + * set offset with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet withOffset( + final Function op) { + return copy().withQueryParam("offset", op.apply(new StringBuilder())); + } + + /** + * add additional offset query parameter + * @param op builder for the value to be added + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet addOffset(final Function op) { + return copy().addQueryParam("offset", op.apply(new StringBuilder())); + } + + /** + * set offset with the specified values + * @param offset values to be set + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet withOffset(final Collection offset) { + return copy().withoutQueryParam("offset") + .addQueryParams( + offset.stream().map(s -> new ParamEntry<>("offset", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional offset query parameters + * @param offset values to be added + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet addOffset(final Collection offset) { + return copy().addQueryParams( + offset.stream().map(s -> new ParamEntry<>("offset", s.toString())).collect(Collectors.toList())); + } + + /** + * set withTotal with the specified value + * @param withTotal value to be set + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet withWithTotal(final TValue withTotal) { + return copy().withQueryParam("withTotal", withTotal); + } + + /** + * add additional withTotal query parameter + * @param withTotal value to be added + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet addWithTotal(final TValue withTotal) { + return copy().addQueryParam("withTotal", withTotal); + } + + /** + * set withTotal with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet withWithTotal(final Supplier supplier) { + return copy().withQueryParam("withTotal", supplier.get()); + } + + /** + * add additional withTotal query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet addWithTotal(final Supplier supplier) { + return copy().addQueryParam("withTotal", supplier.get()); + } + + /** + * set withTotal with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet withWithTotal( + final Function op) { + return copy().withQueryParam("withTotal", op.apply(new StringBuilder())); + } + + /** + * add additional withTotal query parameter + * @param op builder for the value to be added + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet addWithTotal( + final Function op) { + return copy().addQueryParam("withTotal", op.apply(new StringBuilder())); + } + + /** + * set withTotal with the specified values + * @param withTotal values to be set + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet withWithTotal(final Collection withTotal) { + return copy().withoutQueryParam("withTotal") + .addQueryParams(withTotal.stream() + .map(s -> new ParamEntry<>("withTotal", s.toString())) + .collect(Collectors.toList())); + } + + /** + * add additional withTotal query parameters + * @param withTotal values to be added + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet addWithTotal(final Collection withTotal) { + return copy().addQueryParams( + withTotal.stream().map(s -> new ParamEntry<>("withTotal", s.toString())).collect(Collectors.toList())); + } + + /** + * set where with the specified value + * @param where value to be set + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet withWhere(final TValue where) { + return copy().withQueryParam("where", where); + } + + /** + * add additional where query parameter + * @param where value to be added + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet addWhere(final TValue where) { + return copy().addQueryParam("where", where); + } + + /** + * set where with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet withWhere(final Supplier supplier) { + return copy().withQueryParam("where", supplier.get()); + } + + /** + * add additional where query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet addWhere(final Supplier supplier) { + return copy().addQueryParam("where", supplier.get()); + } + + /** + * set where with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet withWhere(final Function op) { + return copy().withQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * add additional where query parameter + * @param op builder for the value to be added + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet addWhere(final Function op) { + return copy().addQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * set where with the specified values + * @param where values to be set + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet withWhere(final Collection where) { + return copy().withoutQueryParam("where") + .addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional where query parameters + * @param where values to be added + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet addWhere(final Collection where) { + return copy().addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + /** + * set predicateVar with the specificied value + * @param value type + * @param varName parameter name + * @param predicateVar parameter value + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet withPredicateVar(final String varName, + final TValue predicateVar) { + return copy().withQueryParam(String.format("var.%s", varName), predicateVar); + } + + /** + * add additional predicateVar query parameter + * @param value type + * @param varName parameter name + * @param predicateVar parameter value + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet addPredicateVar(final String varName, + final TValue predicateVar) { + return copy().addQueryParam(String.format("var.%s", varName), predicateVar); + } + + /** + * set predicateVar with the specificied values + * @param value type + * @param varName parameter name + * @param predicateVar parameter values + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet withPredicateVar(final String varName, + final Collection predicateVar) { + final String placeholderName = String.format("var.%s", varName); + return copy().withoutQueryParam(placeholderName) + .addQueryParams(predicateVar.stream() + .map(s -> new ParamEntry<>(placeholderName, s.toString())) + .collect(Collectors.toList())); + } + + /** + * add additional predicateVar query parameters + * @param value type + * @param varName parameter name + * @param predicateVar parameter values + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet addPredicateVar(final String varName, + final Collection predicateVar) { + final String placeholderName = String.format("var.%s", varName); + return copy().addQueryParams(predicateVar.stream() + .map(s -> new ParamEntry<>(placeholderName, s.toString())) + .collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet that = (ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(storeKey, that.storeKey).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(storeKey).toHashCode(); + } + + @Override + protected ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet copy() { + return new ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesHead.java new file mode 100644 index 0000000000..78cb3e7c12 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesHead.java @@ -0,0 +1,209 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +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; + +import tools.jackson.core.type.TypeReference; + +/** + *

Checks if one or more DiscountCodes exist for the provided query predicate in a Store. Returns a 200 status if any DiscountCodes match the query predicate, or a 404 status otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .inStoreKeyWithStoreKeyValue("{storeKey}")
+ *            .discountCodes()
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyInStoreKeyByStoreKeyDiscountCodesHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String storeKey; + + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesHead(final ApiHttpClient apiHttpClient, String projectKey, + String storeKey) { + super(apiHttpClient); + this.projectKey = projectKey; + this.storeKey = storeKey; + } + + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesHead(ByProjectKeyInStoreKeyByStoreKeyDiscountCodesHead t) { + super(t); + this.projectKey = t.projectKey; + this.storeKey = t.storeKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/in-store/key=%s/discount-codes", encodePathParam(this.projectKey), + encodePathParam(this.storeKey)); + 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, tools.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute(final ApiHttpClient client) { + return execute(client, tools.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getStoreKey() { + return this.storeKey; + } + + public List getWhere() { + return this.getQueryParam("where"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setStoreKey(final String storeKey) { + this.storeKey = storeKey; + } + + /** + * set where with the specified value + * @param where value to be set + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesHead + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesHead withWhere(final TValue where) { + return copy().withQueryParam("where", where); + } + + /** + * add additional where query parameter + * @param where value to be added + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesHead + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesHead addWhere(final TValue where) { + return copy().addQueryParam("where", where); + } + + /** + * set where with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesHead + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesHead withWhere(final Supplier supplier) { + return copy().withQueryParam("where", supplier.get()); + } + + /** + * add additional where query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesHead + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesHead addWhere(final Supplier supplier) { + return copy().addQueryParam("where", supplier.get()); + } + + /** + * set where with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesHead + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesHead withWhere( + final Function op) { + return copy().withQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * add additional where query parameter + * @param op builder for the value to be added + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesHead + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesHead addWhere(final Function op) { + return copy().addQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * set where with the specified values + * @param where values to be set + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesHead + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesHead withWhere(final Collection where) { + return copy().withoutQueryParam("where") + .addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional where query parameters + * @param where values to be added + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesHead + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesHead addWhere(final Collection where) { + return copy().addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyInStoreKeyByStoreKeyDiscountCodesHead that = (ByProjectKeyInStoreKeyByStoreKeyDiscountCodesHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(storeKey, that.storeKey).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(storeKey).toHashCode(); + } + + @Override + protected ByProjectKeyInStoreKeyByStoreKeyDiscountCodesHead copy() { + return new ByProjectKeyInStoreKeyByStoreKeyDiscountCodesHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyGet.java new file mode 100644 index 0000000000..3e0f94fd08 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyGet.java @@ -0,0 +1,231 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +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; + +import tools.jackson.core.type.TypeReference; + +/** + * + * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .inStoreKeyWithStoreKeyValue("{storeKey}")
+ *            .discountCodes()
+ *            .withKey("{key}")
+ *            .get()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyGet extends + TypeApiMethod + implements + com.commercetools.api.client.ExpandableTrait, + com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String storeKey; + private String key; + + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyGet(final ApiHttpClient apiHttpClient, + String projectKey, String storeKey, String key) { + super(apiHttpClient); + this.projectKey = projectKey; + this.storeKey = storeKey; + this.key = key; + } + + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyGet( + ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyGet t) { + super(t); + this.projectKey = t.projectKey; + this.storeKey = t.storeKey; + this.key = t.key; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/in-store/key=%s/discount-codes/key=%s", + encodePathParam(this.projectKey), encodePathParam(this.storeKey), encodePathParam(this.key)); + 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.discount_code.DiscountCode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.commercetools.api.models.discount_code.DiscountCode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getStoreKey() { + return this.storeKey; + } + + public String getKey() { + return this.key; + } + + public List getExpand() { + return this.getQueryParam("expand"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setStoreKey(final String storeKey) { + this.storeKey = storeKey; + } + + public void setKey(final String key) { + this.key = key; + } + + /** + * set expand with the specified value + * @param expand value to be set + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyGet + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyGet withExpand(final TValue expand) { + return copy().withQueryParam("expand", expand); + } + + /** + * add additional expand query parameter + * @param expand value to be added + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyGet + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyGet addExpand(final TValue expand) { + return copy().addQueryParam("expand", expand); + } + + /** + * set expand with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyGet + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyGet withExpand(final Supplier supplier) { + return copy().withQueryParam("expand", supplier.get()); + } + + /** + * add additional expand query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyGet + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyGet addExpand(final Supplier supplier) { + return copy().addQueryParam("expand", supplier.get()); + } + + /** + * set expand with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyGet + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyGet withExpand( + final Function op) { + return copy().withQueryParam("expand", op.apply(new StringBuilder())); + } + + /** + * add additional expand query parameter + * @param op builder for the value to be added + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyGet + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyGet addExpand( + final Function op) { + return copy().addQueryParam("expand", op.apply(new StringBuilder())); + } + + /** + * set expand with the specified values + * @param expand values to be set + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyGet + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyGet withExpand( + final Collection expand) { + return copy().withoutQueryParam("expand") + .addQueryParams( + expand.stream().map(s -> new ParamEntry<>("expand", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional expand query parameters + * @param expand values to be added + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyGet + */ + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyGet addExpand( + final Collection expand) { + return copy().addQueryParams( + expand.stream().map(s -> new ParamEntry<>("expand", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyGet that = (ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyGet) o; + + return new EqualsBuilder().append(projectKey, that.projectKey) + .append(storeKey, that.storeKey) + .append(key, that.key) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(storeKey).append(key).toHashCode(); + } + + @Override + protected ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyGet copy() { + return new ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyGet(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyHead.java new file mode 100644 index 0000000000..dd88f632c2 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyHead.java @@ -0,0 +1,138 @@ + +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 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; + +import tools.jackson.core.type.TypeReference; + +/** + *

Checks if a DiscountCode exists with the provided key. Returns a 200 status if the DiscountCode exists, or a 404 status otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .inStoreKeyWithStoreKeyValue("{storeKey}")
+ *            .discountCodes()
+ *            .withKey("{key}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyHead extends + TypeApiMethod + implements + com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String storeKey; + private String key; + + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyHead(final ApiHttpClient apiHttpClient, + String projectKey, String storeKey, String key) { + super(apiHttpClient); + this.projectKey = projectKey; + this.storeKey = storeKey; + this.key = key; + } + + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyHead( + ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyHead t) { + super(t); + this.projectKey = t.projectKey; + this.storeKey = t.storeKey; + this.key = t.key; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/in-store/key=%s/discount-codes/key=%s", + encodePathParam(this.projectKey), encodePathParam(this.storeKey), encodePathParam(this.key)); + 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, tools.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute(final ApiHttpClient client) { + return execute(client, tools.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getStoreKey() { + return this.storeKey; + } + + public String getKey() { + return this.key; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setStoreKey(final String storeKey) { + this.storeKey = storeKey; + } + + public void setKey(final String key) { + this.key = key; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyHead that = (ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey) + .append(storeKey, that.storeKey) + .append(key, that.key) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(storeKey).append(key).toHashCode(); + } + + @Override + protected ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyHead copy() { + return new ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyRequestBuilder.java new file mode 100644 index 0000000000..aaadafe7f9 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyRequestBuilder.java @@ -0,0 +1,31 @@ + +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 ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyRequestBuilder { + + private final ApiHttpClient apiHttpClient; + private final String projectKey; + private final String storeKey; + private final String key; + + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyRequestBuilder(final ApiHttpClient apiHttpClient, + final String projectKey, final String storeKey, final String key) { + this.apiHttpClient = apiHttpClient; + this.projectKey = projectKey; + this.storeKey = storeKey; + this.key = key; + } + + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyGet get() { + return new ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyGet(apiHttpClient, projectKey, storeKey, key); + } + + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyHead head() { + return new ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyHead(apiHttpClient, projectKey, storeKey, key); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesRequestBuilder.java new file mode 100644 index 0000000000..88185ed2f0 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesRequestBuilder.java @@ -0,0 +1,39 @@ + +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 ByProjectKeyInStoreKeyByStoreKeyDiscountCodesRequestBuilder { + + private final ApiHttpClient apiHttpClient; + private final String projectKey; + private final String storeKey; + + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesRequestBuilder(final ApiHttpClient apiHttpClient, + final String projectKey, final String storeKey) { + this.apiHttpClient = apiHttpClient; + this.projectKey = projectKey; + this.storeKey = storeKey; + } + + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet get() { + return new ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet(apiHttpClient, projectKey, storeKey); + } + + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesHead head() { + return new ByProjectKeyInStoreKeyByStoreKeyDiscountCodesHead(apiHttpClient, projectKey, storeKey); + } + + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyRequestBuilder withKey(String key) { + return new ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyRequestBuilder(apiHttpClient, projectKey, + storeKey, key); + } + + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDRequestBuilder withId(String ID) { + return new ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDRequestBuilder(apiHttpClient, projectKey, storeKey, + ID); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyRequestBuilder.java index 9e6572cdd7..fa8750d090 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyRequestBuilder.java @@ -34,6 +34,10 @@ public ByProjectKeyInStoreKeyByStoreKeyCustomersRequestBuilder customers() { return new ByProjectKeyInStoreKeyByStoreKeyCustomersRequestBuilder(apiHttpClient, projectKey, storeKey); } + public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesRequestBuilder discountCodes() { + return new ByProjectKeyInStoreKeyByStoreKeyDiscountCodesRequestBuilder(apiHttpClient, projectKey, storeKey); + } + public ByProjectKeyInStoreKeyByStoreKeyMeRequestBuilder me() { return new ByProjectKeyInStoreKeyByStoreKeyMeRequestBuilder(apiHttpClient, projectKey, storeKey); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/discount_code/DiscountCode.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/discount_code/DiscountCode.java index 68c0aa35aa..4d6794108c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/discount_code/DiscountCode.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/discount_code/DiscountCode.java @@ -15,6 +15,7 @@ import com.commercetools.api.models.common.LastModifiedBy; import com.commercetools.api.models.common.LocalizedString; import com.commercetools.api.models.common.Reference; +import com.commercetools.api.models.store.StoreKeyReference; import com.commercetools.api.models.type.CustomFields; import com.fasterxml.jackson.annotation.*; @@ -38,6 +39,7 @@ * .lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z")) * .code("{code}") * .plusCartDiscounts(cartDiscountsBuilder -> cartDiscountsBuilder) + * .plusStores(storesBuilder -> storesBuilder) * .isActive(true) * .plusReferences(referencesBuilder -> referencesBuilder) * .plusGroups(groupsBuilder -> groupsBuilder) @@ -142,6 +144,16 @@ public interface DiscountCode @JsonProperty("cartDiscounts") public List getCartDiscounts(); + /** + *

Reference to the Stores the DiscountCode is associated with, derived from the stores field of each referenced CartDiscount.

+ *

The value of this field is eventually consistent.

+ * @return stores + */ + @NotNull + @Valid + @JsonProperty("stores") + public List getStores(); + /** *

DiscountCode can only be applied to Carts that match this predicate.

* @return cartPredicate @@ -314,6 +326,23 @@ public interface DiscountCode public void setCartDiscounts(final List cartDiscounts); + /** + *

Reference to the Stores the DiscountCode is associated with, derived from the stores field of each referenced CartDiscount.

+ *

The value of this field is eventually consistent.

+ * @param stores values to be set + */ + + @JsonIgnore + public void setStores(final StoreKeyReference... stores); + + /** + *

Reference to the Stores the DiscountCode is associated with, derived from the stores field of each referenced CartDiscount.

+ *

The value of this field is eventually consistent.

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

DiscountCode can only be applied to Carts that match this predicate.

* @param cartPredicate value to be set @@ -432,6 +461,7 @@ public static DiscountCode of(final DiscountCode template) { instance.setDescription(template.getDescription()); instance.setCode(template.getCode()); instance.setCartDiscounts(template.getCartDiscounts()); + instance.setStores(template.getStores()); instance.setCartPredicate(template.getCartPredicate()); instance.setIsActive(template.getIsActive()); instance.setReferences(template.getReferences()); @@ -475,6 +505,11 @@ public static DiscountCode deepCopy(@Nullable final DiscountCode template) { .map(com.commercetools.api.models.cart_discount.CartDiscountReference::deepCopy) .collect(Collectors.toList())) .orElse(null)); + instance.setStores(Optional.ofNullable(template.getStores()) + .map(t -> t.stream() + .map(com.commercetools.api.models.store.StoreKeyReference::deepCopy) + .collect(Collectors.toList())) + .orElse(null)); instance.setCartPredicate(template.getCartPredicate()); instance.setIsActive(template.getIsActive()); instance.setReferences(Optional.ofNullable(template.getReferences()) diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/discount_code/DiscountCodeBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/discount_code/DiscountCodeBuilder.java index 63174933b4..6fb511e436 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/discount_code/DiscountCodeBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/discount_code/DiscountCodeBuilder.java @@ -22,6 +22,7 @@ * .lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z")) * .code("{code}") * .plusCartDiscounts(cartDiscountsBuilder -> cartDiscountsBuilder) + * .plusStores(storesBuilder -> storesBuilder) * .isActive(true) * .plusReferences(referencesBuilder -> referencesBuilder) * .plusGroups(groupsBuilder -> groupsBuilder) @@ -59,6 +60,8 @@ public class DiscountCodeBuilder implements Builder { private java.util.List cartDiscounts; + private java.util.List stores; + @Nullable private String cartPredicate; @@ -387,6 +390,100 @@ public DiscountCodeBuilder setCartDiscounts( builder.apply(com.commercetools.api.models.cart_discount.CartDiscountReferenceBuilder.of())); } + /** + *

Reference to the Stores the DiscountCode is associated with, derived from the stores field of each referenced CartDiscount.

+ *

The value of this field is eventually consistent.

+ * @param stores value to be set + * @return Builder + */ + + public DiscountCodeBuilder stores(final com.commercetools.api.models.store.StoreKeyReference... stores) { + this.stores = new ArrayList<>(Arrays.asList(stores)); + return this; + } + + /** + *

Reference to the Stores the DiscountCode is associated with, derived from the stores field of each referenced CartDiscount.

+ *

The value of this field is eventually consistent.

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

Reference to the Stores the DiscountCode is associated with, derived from the stores field of each referenced CartDiscount.

+ *

The value of this field is eventually consistent.

+ * @param stores value to be set + * @return Builder + */ + + public DiscountCodeBuilder plusStores(final com.commercetools.api.models.store.StoreKeyReference... stores) { + if (this.stores == null) { + this.stores = new ArrayList<>(); + } + this.stores.addAll(Arrays.asList(stores)); + return this; + } + + /** + *

Reference to the Stores the DiscountCode is associated with, derived from the stores field of each referenced CartDiscount.

+ *

The value of this field is eventually consistent.

+ * @param builder function to build the stores value + * @return Builder + */ + + public DiscountCodeBuilder plusStores( + Function builder) { + if (this.stores == null) { + this.stores = new ArrayList<>(); + } + this.stores.add(builder.apply(com.commercetools.api.models.store.StoreKeyReferenceBuilder.of()).build()); + return this; + } + + /** + *

Reference to the Stores the DiscountCode is associated with, derived from the stores field of each referenced CartDiscount.

+ *

The value of this field is eventually consistent.

+ * @param builder function to build the stores value + * @return Builder + */ + + public DiscountCodeBuilder withStores( + Function builder) { + this.stores = new ArrayList<>(); + this.stores.add(builder.apply(com.commercetools.api.models.store.StoreKeyReferenceBuilder.of()).build()); + return this; + } + + /** + *

Reference to the Stores the DiscountCode is associated with, derived from the stores field of each referenced CartDiscount.

+ *

The value of this field is eventually consistent.

+ * @param builder function to build the stores value + * @return Builder + */ + + public DiscountCodeBuilder addStores( + Function builder) { + return plusStores(builder.apply(com.commercetools.api.models.store.StoreKeyReferenceBuilder.of())); + } + + /** + *

Reference to the Stores the DiscountCode is associated with, derived from the stores field of each referenced CartDiscount.

+ *

The value of this field is eventually consistent.

+ * @param builder function to build the stores value + * @return Builder + */ + + public DiscountCodeBuilder setStores( + Function builder) { + return stores(builder.apply(com.commercetools.api.models.store.StoreKeyReferenceBuilder.of())); + } + /** *

DiscountCode can only be applied to Carts that match this predicate.

* @param cartPredicate value to be set @@ -710,6 +807,16 @@ public java.util.ListReference to the Stores the DiscountCode is associated with, derived from the stores field of each referenced CartDiscount.

+ *

The value of this field is eventually consistent.

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

DiscountCode can only be applied to Carts that match this predicate.

* @return cartPredicate @@ -824,11 +931,12 @@ public DiscountCode build() { Objects.requireNonNull(lastModifiedAt, DiscountCode.class + ": lastModifiedAt is missing"); Objects.requireNonNull(code, DiscountCode.class + ": code is missing"); Objects.requireNonNull(cartDiscounts, DiscountCode.class + ": cartDiscounts is missing"); + Objects.requireNonNull(stores, DiscountCode.class + ": stores is missing"); Objects.requireNonNull(isActive, DiscountCode.class + ": isActive is missing"); Objects.requireNonNull(references, DiscountCode.class + ": references is missing"); Objects.requireNonNull(groups, DiscountCode.class + ": groups is missing"); return new DiscountCodeImpl(id, version, createdAt, lastModifiedAt, key, lastModifiedBy, createdBy, name, - description, code, cartDiscounts, cartPredicate, isActive, references, maxApplications, + description, code, cartDiscounts, stores, cartPredicate, isActive, references, maxApplications, maxApplicationsPerCustomer, custom, groups, validFrom, validUntil, applicationVersion); } @@ -838,7 +946,7 @@ public DiscountCode build() { */ public DiscountCode buildUnchecked() { return new DiscountCodeImpl(id, version, createdAt, lastModifiedAt, key, lastModifiedBy, createdBy, name, - description, code, cartDiscounts, cartPredicate, isActive, references, maxApplications, + description, code, cartDiscounts, stores, cartPredicate, isActive, references, maxApplications, maxApplicationsPerCustomer, custom, groups, validFrom, validUntil, applicationVersion); } @@ -868,6 +976,7 @@ public static DiscountCodeBuilder of(final DiscountCode template) { builder.description = template.getDescription(); builder.code = template.getCode(); builder.cartDiscounts = template.getCartDiscounts(); + builder.stores = template.getStores(); builder.cartPredicate = template.getCartPredicate(); builder.isActive = template.getIsActive(); builder.references = template.getReferences(); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/discount_code/DiscountCodeImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/discount_code/DiscountCodeImpl.java index 8ba50401b8..4c65eea9ec 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/discount_code/DiscountCodeImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/discount_code/DiscountCodeImpl.java @@ -45,6 +45,8 @@ public class DiscountCodeImpl implements DiscountCode, ModelBase { private java.util.List cartDiscounts; + private java.util.List stores; + private String cartPredicate; private Boolean isActive; @@ -79,6 +81,7 @@ public class DiscountCodeImpl implements DiscountCode, ModelBase { @JsonProperty("description") final com.commercetools.api.models.common.LocalizedString description, @JsonProperty("code") final String code, @JsonProperty("cartDiscounts") final java.util.List cartDiscounts, + @JsonProperty("stores") final java.util.List stores, @JsonProperty("cartPredicate") final String cartPredicate, @JsonProperty("isActive") final Boolean isActive, @JsonProperty("references") final java.util.List references, @JsonProperty("maxApplications") final Long maxApplications, @@ -99,6 +102,7 @@ public class DiscountCodeImpl implements DiscountCode, ModelBase { this.description = description; this.code = code; this.cartDiscounts = cartDiscounts; + this.stores = stores; this.cartPredicate = cartPredicate; this.isActive = isActive; this.references = references; @@ -205,6 +209,15 @@ public java.util.ListReference to the Stores the DiscountCode is associated with, derived from the stores field of each referenced CartDiscount.

+ *

The value of this field is eventually consistent.

+ */ + + public java.util.List getStores() { + return this.stores; + } + /** *

DiscountCode can only be applied to Carts that match this predicate.

*/ @@ -341,6 +354,14 @@ public void setCartDiscounts( this.cartDiscounts = cartDiscounts; } + public void setStores(final com.commercetools.api.models.store.StoreKeyReference... stores) { + this.stores = new ArrayList<>(Arrays.asList(stores)); + } + + public void setStores(final java.util.List stores) { + this.stores = stores; + } + public void setCartPredicate(final String cartPredicate) { this.cartPredicate = cartPredicate; } @@ -410,6 +431,7 @@ public boolean equals(Object o) { .append(description, that.description) .append(code, that.code) .append(cartDiscounts, that.cartDiscounts) + .append(stores, that.stores) .append(cartPredicate, that.cartPredicate) .append(isActive, that.isActive) .append(references, that.references) @@ -431,6 +453,7 @@ public boolean equals(Object o) { .append(description, that.description) .append(code, that.code) .append(cartDiscounts, that.cartDiscounts) + .append(stores, that.stores) .append(cartPredicate, that.cartPredicate) .append(isActive, that.isActive) .append(references, that.references) @@ -457,6 +480,7 @@ public int hashCode() { .append(description) .append(code) .append(cartDiscounts) + .append(stores) .append(cartPredicate) .append(isActive) .append(references) @@ -483,6 +507,7 @@ public String toString() { .append("description", description) .append("code", code) .append("cartDiscounts", cartDiscounts) + .append("stores", stores) .append("cartPredicate", cartPredicate) .append("isActive", isActive) .append("references", references) diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/discount_code/DiscountCodeQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/discount_code/DiscountCodeQueryBuilderDsl.java index 9698f82491..188632daf7 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/discount_code/DiscountCodeQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/discount_code/DiscountCodeQueryBuilderDsl.java @@ -98,6 +98,19 @@ public CollectionPredicateBuilder cartDiscounts() { p -> new CombinationQueryPredicate<>(p, DiscountCodeQueryBuilderDsl::of)); } + public CombinationQueryPredicate stores( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("stores")) + .inner(fn.apply(com.commercetools.api.predicates.query.store.StoreKeyReferenceQueryBuilderDsl.of())), + DiscountCodeQueryBuilderDsl::of); + } + + public CollectionPredicateBuilder stores() { + return new CollectionPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("stores")), + p -> new CombinationQueryPredicate<>(p, DiscountCodeQueryBuilderDsl::of)); + } + public StringComparisonPredicateBuilder cartPredicate() { return new StringComparisonPredicateBuilder<>( BinaryQueryPredicate.of().left(new ConstantQueryPredicate("cartPredicate")), diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDTest.java new file mode 100644 index 0000000000..e21505c872 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDTest.java @@ -0,0 +1,106 @@ + +package com.commercetools.api.client.resource; + +import java.nio.charset.StandardCharsets; +import java.util.concurrent.CompletableFuture; + +import com.commercetools.api.client.ApiRoot; + +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.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; +import org.mockito.Mockito; + +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDTest { + 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(); + + @ParameterizedTest + @MethodSource("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()); + } + + @ParameterizedTest + @MethodSource("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); + } + + @ParameterizedTest + @MethodSource("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); + } + + public static Object[][] requestWithMethodParameters() { + return new Object[][] { + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .discountCodes() + .withId("test_ID") + .get() + .withExpand("expand") + .createHttpRequest(), + "get", "test_projectKey/in-store/key=test_storeKey/discount-codes/test_ID?expand=expand", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .discountCodes() + .withId("test_ID") + .get() + .createHttpRequest(), + "get", "test_projectKey/in-store/key=test_storeKey/discount-codes/test_ID", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .discountCodes() + .withId("test_ID") + .head() + .createHttpRequest(), + "head", "test_projectKey/in-store/key=test_storeKey/discount-codes/test_ID", } }; + } + + public static Object[][] executeMethodParameters() { + return new Object[][] { + new Object[] { apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .discountCodes() + .withId("test_ID") + .get() + .withExpand("expand"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .discountCodes() + .withId("test_ID") + .get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .discountCodes() + .withId("test_ID") + .head(), } }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyTest.java new file mode 100644 index 0000000000..72d365759d --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyTest.java @@ -0,0 +1,107 @@ + +package com.commercetools.api.client.resource; + +import java.nio.charset.StandardCharsets; +import java.util.concurrent.CompletableFuture; + +import com.commercetools.api.client.ApiRoot; + +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.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; +import org.mockito.Mockito; + +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyTest { + 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(); + + @ParameterizedTest + @MethodSource("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()); + } + + @ParameterizedTest + @MethodSource("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); + } + + @ParameterizedTest + @MethodSource("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); + } + + public static Object[][] requestWithMethodParameters() { + return new Object[][] { + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .discountCodes() + .withKey("test_key") + .get() + .withExpand("expand") + .createHttpRequest(), + "get", + "test_projectKey/in-store/key=test_storeKey/discount-codes/key=test_key?expand=expand", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .discountCodes() + .withKey("test_key") + .get() + .createHttpRequest(), + "get", "test_projectKey/in-store/key=test_storeKey/discount-codes/key=test_key", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .discountCodes() + .withKey("test_key") + .head() + .createHttpRequest(), + "head", "test_projectKey/in-store/key=test_storeKey/discount-codes/key=test_key", } }; + } + + public static Object[][] executeMethodParameters() { + return new Object[][] { + new Object[] { apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .discountCodes() + .withKey("test_key") + .get() + .withExpand("expand"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .discountCodes() + .withKey("test_key") + .get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .discountCodes() + .withKey("test_key") + .head(), } }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesTest.java new file mode 100644 index 0000000000..1e7abaea03 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesTest.java @@ -0,0 +1,191 @@ + +package com.commercetools.api.client.resource; + +import java.nio.charset.StandardCharsets; +import java.util.concurrent.CompletableFuture; + +import com.commercetools.api.client.ApiRoot; + +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.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; +import org.mockito.Mockito; + +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyInStoreKeyByStoreKeyDiscountCodesTest { + 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(); + + @ParameterizedTest + @MethodSource("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()); + } + + @ParameterizedTest + @MethodSource("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); + } + + @ParameterizedTest + @MethodSource("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); + } + + public static Object[][] requestWithMethodParameters() { + return new Object[][] { + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .discountCodes() + .get() + .withExpand("expand") + .createHttpRequest(), + "get", "test_projectKey/in-store/key=test_storeKey/discount-codes?expand=expand", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .discountCodes() + .get() + .withSort("sort") + .createHttpRequest(), + "get", "test_projectKey/in-store/key=test_storeKey/discount-codes?sort=sort", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .discountCodes() + .get() + .withLimit(7) + .createHttpRequest(), + "get", "test_projectKey/in-store/key=test_storeKey/discount-codes?limit=7", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .discountCodes() + .get() + .withOffset(3) + .createHttpRequest(), + "get", "test_projectKey/in-store/key=test_storeKey/discount-codes?offset=3", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .discountCodes() + .get() + .withWithTotal(true) + .createHttpRequest(), + "get", "test_projectKey/in-store/key=test_storeKey/discount-codes?withTotal=true", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .discountCodes() + .get() + .withWhere("where") + .createHttpRequest(), + "get", "test_projectKey/in-store/key=test_storeKey/discount-codes?where=where", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .discountCodes() + .get() + .withPredicateVar("varName", "var.varName") + .createHttpRequest(), + "get", "test_projectKey/in-store/key=test_storeKey/discount-codes?var.varName=var.varName", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .discountCodes() + .get() + .createHttpRequest(), + "get", "test_projectKey/in-store/key=test_storeKey/discount-codes", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .discountCodes() + .head() + .withWhere("where") + .createHttpRequest(), + "head", "test_projectKey/in-store/key=test_storeKey/discount-codes?where=where", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .discountCodes() + .head() + .createHttpRequest(), + "head", "test_projectKey/in-store/key=test_storeKey/discount-codes", } }; + } + + public static Object[][] executeMethodParameters() { + return new Object[][] { + new Object[] { apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .discountCodes() + .get() + .withExpand("expand"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .discountCodes() + .get() + .withSort("sort"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .discountCodes() + .get() + .withLimit(7), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .discountCodes() + .get() + .withOffset(3), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .discountCodes() + .get() + .withWithTotal(true), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .discountCodes() + .get() + .withWhere("where"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .discountCodes() + .get() + .withPredicateVar("varName", "var.varName"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .discountCodes() + .get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .discountCodes() + .head() + .withWhere("where"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .discountCodes() + .head(), } }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/discount_code/DiscountCodeTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/discount_code/DiscountCodeTest.java index 1ea69d168e..82cbd5c0b2 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/discount_code/DiscountCodeTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/discount_code/DiscountCodeTest.java @@ -41,6 +41,10 @@ public static Object[][] objectBuilder() { DiscountCode.builder() .cartDiscounts(Collections.singletonList( new com.commercetools.api.models.cart_discount.CartDiscountReferenceImpl())) }, + new Object[] { "stores", + DiscountCode.builder() + .stores(Collections.singletonList( + new com.commercetools.api.models.store.StoreKeyReferenceImpl())) }, new Object[] { "cartPredicate", DiscountCode.builder().cartPredicate("cartPredicate") }, new Object[] { "isActive", DiscountCode.builder().isActive(true) }, new Object[] { "references", @@ -141,6 +145,14 @@ public void cartDiscounts() { .singletonList(new com.commercetools.api.models.cart_discount.CartDiscountReferenceImpl())); } + @Test + public void stores() { + DiscountCode value = DiscountCode.of(); + value.setStores(Collections.singletonList(new com.commercetools.api.models.store.StoreKeyReferenceImpl())); + Assertions.assertThat(value.getStores()) + .isEqualTo(Collections.singletonList(new com.commercetools.api.models.store.StoreKeyReferenceImpl())); + } + @Test public void cartPredicate() { DiscountCode value = DiscountCode.of(); diff --git a/references.txt b/references.txt index a37ed941d4..9f9fd81043 100644 --- a/references.txt +++ b/references.txt @@ -585,3 +585,4 @@ d4c439f7fc7dd0ad0d9d85c9e69cd5f32609af3d 2e41f003e889de240f6a92aa143c3103ea348e54 eba9a59893b6b3e86b86d17cf2c33986232bc543 a9e9771fe2b7eca7651b0ca5fef4992d4df8b21c +c8321d32796eebddbeced6e06cf4779a0cfc6cbc From 1e13ee790602c5cd98bbe3e3f29830fc5dfa8bd4 Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Fri, 10 Jul 2026 06:44:22 +0000 Subject: [PATCH 04/27] build(codegen): updating SDK --- changes.md | 17 ++++ .../ByProjectKeyByResourceTypeByIDGet.java | 84 +++++++++++++++++++ .../client/ByProjectKeyByResourceTypeGet.java | 84 +++++++++++++++++++ .../history/client/ByProjectKeyGet.java | 84 +++++++++++++++++++ .../RecordPagedQueryResponse.java | 7 +- .../RecordPagedQueryResponseBuilder.java | 12 +-- .../RecordPagedQueryResponseImpl.java | 2 +- .../ByProjectKeyByResourceTypeByIDTest.java | 13 +++ .../ByProjectKeyByResourceTypeTest.java | 9 ++ .../client/resource/ByProjectKeyTest.java | 4 + references.txt | 1 + 11 files changed, 307 insertions(+), 10 deletions(-) diff --git a/changes.md b/changes.md index 5bfe2f2196..36a5102f44 100644 --- a/changes.md +++ b/changes.md @@ -27,3 +27,20 @@ - added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().discountCodes().withId().head()` +**History changes** + +
+Required Property(s) + +- changed property `total` of type `RecordPagedQueryResponse` to be optional +
+ + +
+Added QueryParameter(s) + +- added query parameter `withTotal` to method `get /{projectKey}` +- added query parameter `withTotal` to method `get /{projectKey}/{resourceType}` +- added query parameter `withTotal` to method `get /{projectKey}/{resourceType}/{ID}` +
+ diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/client/ByProjectKeyByResourceTypeByIDGet.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/client/ByProjectKeyByResourceTypeByIDGet.java index 67e037c3fb..d3f192fc3d 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/client/ByProjectKeyByResourceTypeByIDGet.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/client/ByProjectKeyByResourceTypeByIDGet.java @@ -163,6 +163,10 @@ public List getExpand() { return this.getQueryParam("expand"); } + public List getWithTotal() { + return this.getQueryParam("withTotal"); + } + public void setProjectKey(final String projectKey) { this.projectKey = projectKey; } @@ -1376,6 +1380,86 @@ public ByProjectKeyByResourceTypeByIDGet addExpand(final Collection new ParamEntry<>("expand", s.toString())).collect(Collectors.toList())); } + /** + * set withTotal with the specified value + * @param withTotal value to be set + * @param value type + * @return ByProjectKeyByResourceTypeByIDGet + */ + public ByProjectKeyByResourceTypeByIDGet withWithTotal(final TValue withTotal) { + return copy().withQueryParam("withTotal", withTotal); + } + + /** + * add additional withTotal query parameter + * @param withTotal value to be added + * @param value type + * @return ByProjectKeyByResourceTypeByIDGet + */ + public ByProjectKeyByResourceTypeByIDGet addWithTotal(final TValue withTotal) { + return copy().addQueryParam("withTotal", withTotal); + } + + /** + * set withTotal with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyByResourceTypeByIDGet + */ + public ByProjectKeyByResourceTypeByIDGet withWithTotal(final Supplier supplier) { + return copy().withQueryParam("withTotal", supplier.get()); + } + + /** + * add additional withTotal query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyByResourceTypeByIDGet + */ + public ByProjectKeyByResourceTypeByIDGet addWithTotal(final Supplier supplier) { + return copy().addQueryParam("withTotal", supplier.get()); + } + + /** + * set withTotal with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyByResourceTypeByIDGet + */ + public ByProjectKeyByResourceTypeByIDGet withWithTotal(final Function op) { + return copy().withQueryParam("withTotal", op.apply(new StringBuilder())); + } + + /** + * add additional withTotal query parameter + * @param op builder for the value to be added + * @return ByProjectKeyByResourceTypeByIDGet + */ + public ByProjectKeyByResourceTypeByIDGet addWithTotal(final Function op) { + return copy().addQueryParam("withTotal", op.apply(new StringBuilder())); + } + + /** + * set withTotal with the specified values + * @param withTotal values to be set + * @param value type + * @return ByProjectKeyByResourceTypeByIDGet + */ + public ByProjectKeyByResourceTypeByIDGet withWithTotal(final Collection withTotal) { + return copy().withoutQueryParam("withTotal") + .addQueryParams(withTotal.stream() + .map(s -> new ParamEntry<>("withTotal", s.toString())) + .collect(Collectors.toList())); + } + + /** + * add additional withTotal query parameters + * @param withTotal values to be added + * @param value type + * @return ByProjectKeyByResourceTypeByIDGet + */ + public ByProjectKeyByResourceTypeByIDGet addWithTotal(final Collection withTotal) { + return copy().addQueryParams( + withTotal.stream().map(s -> new ParamEntry<>("withTotal", s.toString())).collect(Collectors.toList())); + } + @Override public boolean equals(Object o) { if (this == o) diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/client/ByProjectKeyByResourceTypeGet.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/client/ByProjectKeyByResourceTypeGet.java index 4c7f98571b..e02138cdbd 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/client/ByProjectKeyByResourceTypeGet.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/client/ByProjectKeyByResourceTypeGet.java @@ -158,6 +158,10 @@ public List getExpand() { return this.getQueryParam("expand"); } + public List getWithTotal() { + return this.getQueryParam("withTotal"); + } + public void setProjectKey(final String projectKey) { this.projectKey = projectKey; } @@ -1447,6 +1451,86 @@ public ByProjectKeyByResourceTypeGet addExpand(final Collection expand.stream().map(s -> new ParamEntry<>("expand", s.toString())).collect(Collectors.toList())); } + /** + * set withTotal with the specified value + * @param withTotal value to be set + * @param value type + * @return ByProjectKeyByResourceTypeGet + */ + public ByProjectKeyByResourceTypeGet withWithTotal(final TValue withTotal) { + return copy().withQueryParam("withTotal", withTotal); + } + + /** + * add additional withTotal query parameter + * @param withTotal value to be added + * @param value type + * @return ByProjectKeyByResourceTypeGet + */ + public ByProjectKeyByResourceTypeGet addWithTotal(final TValue withTotal) { + return copy().addQueryParam("withTotal", withTotal); + } + + /** + * set withTotal with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyByResourceTypeGet + */ + public ByProjectKeyByResourceTypeGet withWithTotal(final Supplier supplier) { + return copy().withQueryParam("withTotal", supplier.get()); + } + + /** + * add additional withTotal query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyByResourceTypeGet + */ + public ByProjectKeyByResourceTypeGet addWithTotal(final Supplier supplier) { + return copy().addQueryParam("withTotal", supplier.get()); + } + + /** + * set withTotal with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyByResourceTypeGet + */ + public ByProjectKeyByResourceTypeGet withWithTotal(final Function op) { + return copy().withQueryParam("withTotal", op.apply(new StringBuilder())); + } + + /** + * add additional withTotal query parameter + * @param op builder for the value to be added + * @return ByProjectKeyByResourceTypeGet + */ + public ByProjectKeyByResourceTypeGet addWithTotal(final Function op) { + return copy().addQueryParam("withTotal", op.apply(new StringBuilder())); + } + + /** + * set withTotal with the specified values + * @param withTotal values to be set + * @param value type + * @return ByProjectKeyByResourceTypeGet + */ + public ByProjectKeyByResourceTypeGet withWithTotal(final Collection withTotal) { + return copy().withoutQueryParam("withTotal") + .addQueryParams(withTotal.stream() + .map(s -> new ParamEntry<>("withTotal", s.toString())) + .collect(Collectors.toList())); + } + + /** + * add additional withTotal query parameters + * @param withTotal values to be added + * @param value type + * @return ByProjectKeyByResourceTypeGet + */ + public ByProjectKeyByResourceTypeGet addWithTotal(final Collection withTotal) { + return copy().addQueryParams( + withTotal.stream().map(s -> new ParamEntry<>("withTotal", s.toString())).collect(Collectors.toList())); + } + @Override public boolean equals(Object o) { if (this == o) diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/client/ByProjectKeyGet.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/client/ByProjectKeyGet.java index d661e14f9e..e32a4e004f 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/client/ByProjectKeyGet.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/client/ByProjectKeyGet.java @@ -158,6 +158,10 @@ public List getExpand() { return this.getQueryParam("expand"); } + public List getWithTotal() { + return this.getQueryParam("withTotal"); + } + public void setProjectKey(final String projectKey) { this.projectKey = projectKey; } @@ -1598,6 +1602,86 @@ public ByProjectKeyGet addExpand(final Collection expand) { expand.stream().map(s -> new ParamEntry<>("expand", s.toString())).collect(Collectors.toList())); } + /** + * set withTotal with the specified value + * @param withTotal value to be set + * @param value type + * @return ByProjectKeyGet + */ + public ByProjectKeyGet withWithTotal(final TValue withTotal) { + return copy().withQueryParam("withTotal", withTotal); + } + + /** + * add additional withTotal query parameter + * @param withTotal value to be added + * @param value type + * @return ByProjectKeyGet + */ + public ByProjectKeyGet addWithTotal(final TValue withTotal) { + return copy().addQueryParam("withTotal", withTotal); + } + + /** + * set withTotal with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyGet + */ + public ByProjectKeyGet withWithTotal(final Supplier supplier) { + return copy().withQueryParam("withTotal", supplier.get()); + } + + /** + * add additional withTotal query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyGet + */ + public ByProjectKeyGet addWithTotal(final Supplier supplier) { + return copy().addQueryParam("withTotal", supplier.get()); + } + + /** + * set withTotal with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyGet + */ + public ByProjectKeyGet withWithTotal(final Function op) { + return copy().withQueryParam("withTotal", op.apply(new StringBuilder())); + } + + /** + * add additional withTotal query parameter + * @param op builder for the value to be added + * @return ByProjectKeyGet + */ + public ByProjectKeyGet addWithTotal(final Function op) { + return copy().addQueryParam("withTotal", op.apply(new StringBuilder())); + } + + /** + * set withTotal with the specified values + * @param withTotal values to be set + * @param value type + * @return ByProjectKeyGet + */ + public ByProjectKeyGet withWithTotal(final Collection withTotal) { + return copy().withoutQueryParam("withTotal") + .addQueryParams(withTotal.stream() + .map(s -> new ParamEntry<>("withTotal", s.toString())) + .collect(Collectors.toList())); + } + + /** + * add additional withTotal query parameters + * @param withTotal values to be added + * @param value type + * @return ByProjectKeyGet + */ + public ByProjectKeyGet addWithTotal(final Collection withTotal) { + return copy().addQueryParams( + withTotal.stream().map(s -> new ParamEntry<>("withTotal", s.toString())).collect(Collectors.toList())); + } + @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_history/RecordPagedQueryResponse.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/RecordPagedQueryResponse.java index c532623669..3011c6d018 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/RecordPagedQueryResponse.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/RecordPagedQueryResponse.java @@ -26,7 +26,6 @@ * RecordPagedQueryResponse recordPagedQueryResponse = RecordPagedQueryResponse.builder() * .limit(1) * .count(1) - * .total(1) * .offset(1) * .plusResults(resultsBuilder -> resultsBuilder) * .build() @@ -54,10 +53,10 @@ public interface RecordPagedQueryResponse { public Integer getCount(); /** - *

Total number of results matching the query. This number is an estimation and not strongly consistent.

+ *

Total number of results matching the query. This number is an estimation and not strongly consistent. Returned only when withTotal is set to true on the query.

* @return total */ - @NotNull + @JsonProperty("total") public Integer getTotal(); @@ -93,7 +92,7 @@ public interface RecordPagedQueryResponse { public void setCount(final Integer count); /** - *

Total number of results matching the query. This number is an estimation and not strongly consistent.

+ *

Total number of results matching the query. This number is an estimation and not strongly consistent. Returned only when withTotal is set to true on the query.

* @param total value to be set */ diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/RecordPagedQueryResponseBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/RecordPagedQueryResponseBuilder.java index f9c1c74d86..624dcce1c4 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/RecordPagedQueryResponseBuilder.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/RecordPagedQueryResponseBuilder.java @@ -4,6 +4,8 @@ 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; @@ -16,7 +18,6 @@ * RecordPagedQueryResponse recordPagedQueryResponse = RecordPagedQueryResponse.builder() * .limit(1) * .count(1) - * .total(1) * .offset(1) * .plusResults(resultsBuilder -> resultsBuilder) * .build() @@ -30,6 +31,7 @@ public class RecordPagedQueryResponseBuilder implements BuilderTotal number of results matching the query. This number is an estimation and not strongly consistent.

+ *

Total number of results matching the query. This number is an estimation and not strongly consistent. Returned only when withTotal is set to true on the query.

* @param total value to be set * @return Builder */ - public RecordPagedQueryResponseBuilder total(final Integer total) { + public RecordPagedQueryResponseBuilder total(@Nullable final Integer total) { this.total = total; return this; } @@ -188,10 +190,11 @@ public Integer getCount() { } /** - *

Total number of results matching the query. This number is an estimation and not strongly consistent.

+ *

Total number of results matching the query. This number is an estimation and not strongly consistent. Returned only when withTotal is set to true on the query.

* @return total */ + @Nullable public Integer getTotal() { return this.total; } @@ -221,7 +224,6 @@ public java.util.List ge public RecordPagedQueryResponse build() { Objects.requireNonNull(limit, RecordPagedQueryResponse.class + ": limit is missing"); Objects.requireNonNull(count, RecordPagedQueryResponse.class + ": count is missing"); - Objects.requireNonNull(total, RecordPagedQueryResponse.class + ": total is missing"); Objects.requireNonNull(offset, RecordPagedQueryResponse.class + ": offset is missing"); Objects.requireNonNull(results, RecordPagedQueryResponse.class + ": results is missing"); return new RecordPagedQueryResponseImpl(limit, count, total, offset, results); diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/RecordPagedQueryResponseImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/RecordPagedQueryResponseImpl.java index 1f650b1f3a..deb4bf3063 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/RecordPagedQueryResponseImpl.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/RecordPagedQueryResponseImpl.java @@ -70,7 +70,7 @@ public Integer getCount() { } /** - *

Total number of results matching the query. This number is an estimation and not strongly consistent.

+ *

Total number of results matching the query. This number is an estimation and not strongly consistent. Returned only when withTotal is set to true on the query.

*/ public Integer getTotal() { diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/client/resource/ByProjectKeyByResourceTypeByIDTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/client/resource/ByProjectKeyByResourceTypeByIDTest.java index e2e1d0418c..5566db7e73 100644 --- a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/client/resource/ByProjectKeyByResourceTypeByIDTest.java +++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/client/resource/ByProjectKeyByResourceTypeByIDTest.java @@ -172,6 +172,14 @@ public static Object[][] requestWithMethodParameters() { .get() .withExpand(true) .createHttpRequest(), "get", "test_projectKey/test_resourceType/test_ID?expand=true", }, + new Object[] { + apiRoot.withProjectKeyValue("test_projectKey") + .withResourceTypeValue("test_resourceType") + .withIDValue("test_ID") + .get() + .withWithTotal(true) + .createHttpRequest(), + "get", "test_projectKey/test_resourceType/test_ID?withTotal=true", }, new Object[] { apiRoot.withProjectKeyValue("test_projectKey") .withResourceTypeValue("test_resourceType") .withIDValue("test_ID") @@ -258,6 +266,11 @@ public static Object[][] executeMethodParameters() { .withIDValue("test_ID") .get() .withExpand(true), }, + new Object[] { apiRoot.withProjectKeyValue("test_projectKey") + .withResourceTypeValue("test_resourceType") + .withIDValue("test_ID") + .get() + .withWithTotal(true), }, new Object[] { apiRoot.withProjectKeyValue("test_projectKey") .withResourceTypeValue("test_resourceType") .withIDValue("test_ID") diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/client/resource/ByProjectKeyByResourceTypeTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/client/resource/ByProjectKeyByResourceTypeTest.java index a8f1d65f11..3e18afd51f 100644 --- a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/client/resource/ByProjectKeyByResourceTypeTest.java +++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/client/resource/ByProjectKeyByResourceTypeTest.java @@ -150,6 +150,11 @@ public static Object[][] requestWithMethodParameters() { .get() .withExpand(true) .createHttpRequest(), "get", "test_projectKey/test_resourceType?expand=true", }, + new Object[] { apiRoot.withProjectKeyValue("test_projectKey") + .withResourceTypeValue("test_resourceType") + .get() + .withWithTotal(true) + .createHttpRequest(), "get", "test_projectKey/test_resourceType?withTotal=true", }, new Object[] { apiRoot.withProjectKeyValue("test_projectKey") .withResourceTypeValue("test_resourceType") .get() @@ -224,6 +229,10 @@ public static Object[][] executeMethodParameters() { .withResourceTypeValue("test_resourceType") .get() .withExpand(true), }, + new Object[] { apiRoot.withProjectKeyValue("test_projectKey") + .withResourceTypeValue("test_resourceType") + .get() + .withWithTotal(true), }, new Object[] { apiRoot.withProjectKeyValue("test_projectKey") .withResourceTypeValue("test_resourceType") .get(), } }; diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/client/resource/ByProjectKeyTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/client/resource/ByProjectKeyTest.java index 072950730b..a7b99af0b5 100644 --- a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/client/resource/ByProjectKeyTest.java +++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/client/resource/ByProjectKeyTest.java @@ -124,6 +124,9 @@ public static Object[][] requestWithMethodParameters() { new Object[] { apiRoot.withProjectKeyValue("test_projectKey").get().withExpand(true).createHttpRequest(), "get", "test_projectKey?expand=true", }, + new Object[] { + apiRoot.withProjectKeyValue("test_projectKey").get().withWithTotal(true).createHttpRequest(), + "get", "test_projectKey?withTotal=true", }, new Object[] { apiRoot.withProjectKeyValue("test_projectKey").get().createHttpRequest(), "get", "test_projectKey", } }; } @@ -157,6 +160,7 @@ public static Object[][] executeMethodParameters() { com.commercetools.history.models.change_history.PlatformInitiatedChange .findEnum("excludePlatformInitiatedChanges")), }, new Object[] { apiRoot.withProjectKeyValue("test_projectKey").get().withExpand(true), }, + new Object[] { apiRoot.withProjectKeyValue("test_projectKey").get().withWithTotal(true), }, new Object[] { apiRoot.withProjectKeyValue("test_projectKey").get(), } }; } } diff --git a/references.txt b/references.txt index 9f9fd81043..b0dfb9ab13 100644 --- a/references.txt +++ b/references.txt @@ -586,3 +586,4 @@ d4c439f7fc7dd0ad0d9d85c9e69cd5f32609af3d eba9a59893b6b3e86b86d17cf2c33986232bc543 a9e9771fe2b7eca7651b0ca5fef4992d4df8b21c c8321d32796eebddbeced6e06cf4779a0cfc6cbc +79477db5d059245edcaa3fd0d2df897b1b18c46e From a6ee285e6490729fe7bdf4091bd56894ae9a9ede Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Fri, 10 Jul 2026 08:29:03 +0000 Subject: [PATCH 05/27] build(codegen): updating SDK --- .../src/main/resources/graphql/schema.graphqls | 1 + references.txt | 1 + 2 files changed, 2 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 ddec9b7bf0..942332179e 100644 --- a/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls +++ b/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls @@ -10763,6 +10763,7 @@ interface ShippingRatePriceTier { enum AttributionSource { Export Import + ManagedCommerceMCP } enum McpServerType { CommerceMCP diff --git a/references.txt b/references.txt index b0dfb9ab13..f9e29956d9 100644 --- a/references.txt +++ b/references.txt @@ -587,3 +587,4 @@ eba9a59893b6b3e86b86d17cf2c33986232bc543 a9e9771fe2b7eca7651b0ca5fef4992d4df8b21c c8321d32796eebddbeced6e06cf4779a0cfc6cbc 79477db5d059245edcaa3fd0d2df897b1b18c46e +4752cbbf0f4da072c49859d5ab1fb686aa7f0523 From 0d4817a636816474eb2e5e94122a6e0c8c838748 Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Mon, 13 Jul 2026 08:38:57 +0000 Subject: [PATCH 06/27] build(codegen): updating SDK --- .../main/resources/graphql/schema.graphqls | 184 ++++++++++++++++++ references.txt | 1 + 2 files changed, 185 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 942332179e..9577fbb1ad 100644 --- a/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls +++ b/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls @@ -3178,6 +3178,12 @@ type CartDiscountVisualizationSearchConfiguration { lastModifiedAt: DateTime! } +type CartEstimatedDeliverySet implements MessagePayload { + estimatedDelivery: EstimatedDelivery + shippingKey: String + type: String! +} + type CartFrozen implements MessagePayload { type: String! } @@ -4494,6 +4500,11 @@ type EnumValue { label: String! } +type EstimatedDelivery { + from: DateTime + until: DateTime +} + type EventBridgeDestination implements Destination { source: String! region: String! @@ -5840,6 +5851,12 @@ type OrderEditQueryResult { results: [OrderEdit!]! } +type OrderEstimatedDeliverySet implements MessagePayload & OrderMessagePayload { + estimatedDelivery: EstimatedDelivery + shippingKey: String + type: String! +} + type OrderExcerpt { totalPrice: Money! taxedPrice: TaxedPrice @@ -8711,6 +8728,7 @@ type SetStagedOrderCustomShippingMethodOutput implements StagedOrderUpdateAction taxCategoryResId: ResourceIdentifier externalTaxRate: ExternalTaxRateDraftOutput custom: CustomFieldsCommand + estimatedDelivery: EstimatedDelivery } type SetStagedOrderCustomTypeOutput implements StagedOrderUpdateActionOutput { @@ -8782,6 +8800,12 @@ type SetStagedOrderDirectDiscountsOutput implements StagedOrderUpdateActionOutpu discounts: [DirectDiscountDraftOutput!]! } +type SetStagedOrderEstimatedDeliveryOutput implements StagedOrderUpdateActionOutput { + type: String! + estimatedDelivery: EstimatedDelivery + shippingKey: String +} + type SetStagedOrderItemShippingAddressCustomFieldOutput implements StagedOrderUpdateActionOutput { type: String! addressKey: String! @@ -8995,6 +9019,7 @@ type SetStagedOrderShippingMethodOutput implements StagedOrderUpdateActionOutput type: String! shippingMethodResId: ResourceIdentifier externalTaxRate: ExternalTaxRateDraftOutput + estimatedDelivery: EstimatedDelivery } type SetStagedOrderShippingMethodTaxAmountOutput implements StagedOrderUpdateActionOutput { @@ -9046,6 +9071,7 @@ type ShippingInfo { deliveries: [Delivery!]! discountedPrice: DiscountedLineItemPrice shippingMethodState: ShippingMethodState! + estimatedDelivery: EstimatedDelivery shippingMethod: ShippingMethod shippingMethodRef: Reference taxCategory: TaxCategory @@ -9060,6 +9086,7 @@ type ShippingMethod implements Versioned & ReferenceExpandable { isDefault: Boolean! predicate: String key: String + carrier: String taxCategoryRef: Reference localizedDescriptionAllLocales: [LocalizedString!] localizedNameAllLocales: [LocalizedString!] @@ -9599,6 +9626,7 @@ type Store implements Versioned & ReferenceExpandable { distributionChannels: [Channel!]! supplyChannelsRef: [Reference!]! supplyChannels: [Channel!]! + storefront: Storefront createdAt: DateTime! lastModifiedAt: DateTime! custom: CustomFieldsType @@ -9606,6 +9634,21 @@ type Store implements Versioned & ReferenceExpandable { lastModifiedBy: Initiator } +type StoreCheckoutUrlTemplateSet implements MessagePayload { + checkoutUrlTemplate: String + type: String! +} + +type StoreContactUrlSet implements MessagePayload { + contactUrl: String + type: String! +} + +type StoreCookiePolicyUrlSet implements MessagePayload { + cookiePolicyUrl: String + type: String! +} + type StoreCountriesChanged implements MessagePayload { addedCountries: [StoreCountry!] removedCountries: [StoreCountry!] @@ -9633,6 +9676,7 @@ type StoreCreated implements MessagePayload { distributionChannels: [Channel!]! supplyChannels: [Channel!]! countries: [StoreCountry!] + storefront: Storefront distributionChannelsRef: [Reference!]! supplyChannelsRef: [Reference!]! productSelectionsRef: [Reference!]! @@ -9652,6 +9696,16 @@ type StoreDistributionChannelsChanged implements MessagePayload { type: String! } +type StoreFaqUrlSet implements MessagePayload { + faqUrl: String + type: String! +} + +type StoreImprintUrlSet implements MessagePayload { + imprintUrl: String + type: String! +} + type StoreLanguagesChanged implements MessagePayload { addedLanguages: [Locale!] removedLanguages: [Locale!] @@ -9686,6 +9740,16 @@ type StoreNameSet implements MessagePayload { type: String! } +type StoreOrderUrlTemplateSet implements MessagePayload { + orderUrlTemplate: String + type: String! +} + +type StorePrivacyPolicyUrlSet implements MessagePayload { + privacyPolicyUrl: String + type: String! +} + type StoreProductSelectionsChanged implements MessagePayload { addedProductSelections: [ProductSelectionSetting!] removedProductSelections: [ProductSelectionSetting!] @@ -9701,6 +9765,16 @@ type StoreQueryResult { results: [Store!]! } +type StoreRefundPolicyUrlSet implements MessagePayload { + refundPolicyUrl: String + type: String! +} + +type StoreShippingPolicyUrlSet implements MessagePayload { + shippingPolicyUrl: String + type: String! +} + type StoreSupplyChannelsChanged implements MessagePayload { addedSupplyChannels: [Channel!] removedSupplyChannels: [Channel!] @@ -9709,6 +9783,24 @@ type StoreSupplyChannelsChanged implements MessagePayload { type: String! } +type StoreTermsOfServiceUrlSet implements MessagePayload { + termsOfServiceUrl: String + type: String! +} + +type Storefront { + checkoutUrlTemplate: String + orderUrlTemplate: String + termsOfServiceUrl: String + privacyPolicyUrl: String + refundPolicyUrl: String + shippingPolicyUrl: String + cookiePolicyUrl: String + imprintUrl: String + faqUrl: String + contactUrl: String +} + type StringAttribute implements Attribute { value: String! name: String! @@ -11964,6 +12056,7 @@ input AddCartShippingMethod { shippingRateInput: ShippingRateInputDraft custom: CustomFieldsDraft deliveries: [DeliveryDraft!] = [] + estimatedDelivery: EstimatedDeliveryDraft } input AddCartShoppingList { @@ -12853,6 +12946,7 @@ input CartUpdateAction { setCustomerId: SetCartCustomerId setDeleteDaysAfterLastModification: SetCartDeleteDaysAfterLastModification setDirectDiscounts: SetCartDirectDiscounts + setEstimatedDelivery: SetCartEstimatedDelivery setItemShippingAddressCustomField: SetCartItemShippingAddressCustomField setItemShippingAddressCustomType: SetCartItemShippingAddressCustomType setLineItemCustomField: SetCartLineItemCustomField @@ -13683,6 +13777,7 @@ input CreateStore { supplyChannels: [ResourceIdentifierInput!] productSelections: [ProductSelectionSettingDraft!] custom: CustomFieldsDraft + storefront: StorefrontInput } input CreateZone { @@ -14100,6 +14195,11 @@ input EnumValueInput { label: String! } +input EstimatedDeliveryDraft { + from: DateTime + until: DateTime +} + input EventBridgeDestinationInput { region: String! accountId: String! @@ -16337,6 +16437,7 @@ input SetCartCustomShippingMethod { taxCategory: ResourceIdentifierInput externalTaxRate: ExternalTaxRateDraft custom: CustomFieldsDraft + estimatedDelivery: EstimatedDeliveryDraft } input SetCartCustomType { @@ -16412,6 +16513,11 @@ input SetCartDiscountValidUntil { validUntil: DateTime } +input SetCartEstimatedDelivery { + estimatedDelivery: EstimatedDeliveryDraft + shippingKey: String +} + input SetCartItemShippingAddressCustomField { addressKey: String! name: String! @@ -16544,6 +16650,7 @@ input SetCartShippingCustomType { input SetCartShippingMethod { shippingMethod: ResourceIdentifierInput externalTaxRate: ExternalTaxRateDraft + estimatedDelivery: EstimatedDeliveryDraft } input SetCartShippingMethodTaxAmount { @@ -17997,6 +18104,10 @@ input SetSearchKeywords { staged: Boolean } +input SetShippingMethodCarrier { + carrier: String +} + input SetShippingMethodCustomField { name: String! value: String @@ -18186,6 +18297,7 @@ input SetStagedOrderCustomShippingMethod { taxCategory: ResourceIdentifierInput externalTaxRate: ExternalTaxRateDraft custom: CustomFieldsDraft + estimatedDelivery: EstimatedDeliveryDraft } input SetStagedOrderCustomType { @@ -18255,6 +18367,11 @@ input SetStagedOrderDirectDiscounts { discounts: [DirectDiscountDraft!]! } +input SetStagedOrderEstimatedDelivery { + estimatedDelivery: EstimatedDeliveryDraft + shippingKey: String +} + input SetStagedOrderItemShippingAddressCustomField { addressKey: String! name: String! @@ -18454,6 +18571,7 @@ input SetStagedOrderShippingCustomType { input SetStagedOrderShippingMethod { shippingMethod: ResourceIdentifierInput externalTaxRate: ExternalTaxRateDraft + estimatedDelivery: EstimatedDeliveryDraft } input SetStagedOrderShippingMethodTaxAmount { @@ -18540,6 +18658,18 @@ input SetStateTransitions { transitions: [ResourceIdentifierInput!] } +input SetStoreCheckoutUrlTemplate { + checkoutUrlTemplate: String +} + +input SetStoreContactUrl { + contactUrl: String +} + +input SetStoreCookiePolicyUrl { + cookiePolicyUrl: String +} + input SetStoreCountries { countries: [StoreCountryInput!] } @@ -18560,6 +18690,14 @@ input SetStoreDistributionChannels { distributionChannels: [ResourceIdentifierInput!] } +input SetStoreFaqUrl { + faqUrl: String +} + +input SetStoreImprintUrl { + imprintUrl: String +} + input SetStoreLanguages { languages: [Locale!] } @@ -18568,14 +18706,34 @@ input SetStoreName { name: [LocalizedStringItemInputType!] } +input SetStoreOrderUrlTemplate { + orderUrlTemplate: String +} + +input SetStorePrivacyPolicyUrl { + privacyPolicyUrl: String +} + input SetStoreProductSelections { productSelections: [ProductSelectionSettingInActionInput!] } +input SetStoreRefundPolicyUrl { + refundPolicyUrl: String +} + +input SetStoreShippingPolicyUrl { + shippingPolicyUrl: String +} + input SetStoreSupplyChannels { supplyChannels: [ResourceIdentifierInput!] } +input SetStoreTermsOfServiceUrl { + termsOfServiceUrl: String +} + input SetSubscriptionChanges { changes: [ChangeSubscriptionInput!]! } @@ -18757,6 +18915,7 @@ input ShippingMethodDraft { key: String custom: CustomFieldsDraft stores: [ResourceIdentifierInput!] + carrier: String } input ShippingMethodTargetDraft { @@ -18780,6 +18939,7 @@ input ShippingMethodUpdateAction { removeStore: RemoveShippingMethodStore removeShippingRate: RemoveShippingMethodShippingRate removeZone: RemoveShippingMethodZone + setCarrier: SetShippingMethodCarrier setCustomField: SetShippingMethodCustomField setCustomType: SetShippingMethodCustomType """This action is deprecated in favor of using 'setLocalizedDescription'""" @@ -18971,6 +19131,7 @@ input StagedOrderUpdateAction { setDeliveryCustomType: SetStagedOrderDeliveryCustomType setDeliveryItems: SetStagedOrderDeliveryItems setDirectDiscounts: SetStagedOrderDirectDiscounts + setEstimatedDelivery: SetStagedOrderEstimatedDelivery setItemShippingAddressCustomField: SetStagedOrderItemShippingAddressCustomField setItemShippingAddressCustomType: SetStagedOrderItemShippingAddressCustomType setLineItemCustomField: SetStagedOrderLineItemCustomField @@ -19106,13 +19267,36 @@ input StoreUpdateAction { removeDistributionChannel: RemoveStoreDistributionChannel removeSupplyChannel: RemoveStoreSupplyChannel setProductSelections: SetStoreProductSelections + setCheckoutUrlTemplate: SetStoreCheckoutUrlTemplate + setContactUrl: SetStoreContactUrl + setCookiePolicyUrl: SetStoreCookiePolicyUrl setCountries: SetStoreCountries setCustomField: SetStoreCustomField setCustomType: SetStoreCustomType setDistributionChannels: SetStoreDistributionChannels + setFaqUrl: SetStoreFaqUrl + setImprintUrl: SetStoreImprintUrl setLanguages: SetStoreLanguages setName: SetStoreName + setOrderUrlTemplate: SetStoreOrderUrlTemplate + setPrivacyPolicyUrl: SetStorePrivacyPolicyUrl + setRefundPolicyUrl: SetStoreRefundPolicyUrl + setShippingPolicyUrl: SetStoreShippingPolicyUrl setSupplyChannels: SetStoreSupplyChannels + setTermsOfServiceUrl: SetStoreTermsOfServiceUrl +} + +input StorefrontInput { + checkoutUrlTemplate: String + orderUrlTemplate: String + termsOfServiceUrl: String + privacyPolicyUrl: String + refundPolicyUrl: String + shippingPolicyUrl: String + cookiePolicyUrl: String + imprintUrl: String + faqUrl: String + contactUrl: String } input SubRateDraft { diff --git a/references.txt b/references.txt index f9e29956d9..a8dcb24f75 100644 --- a/references.txt +++ b/references.txt @@ -588,3 +588,4 @@ a9e9771fe2b7eca7651b0ca5fef4992d4df8b21c c8321d32796eebddbeced6e06cf4779a0cfc6cbc 79477db5d059245edcaa3fd0d2df897b1b18c46e 4752cbbf0f4da072c49859d5ab1fb686aa7f0523 +3de16df960a806c0b97cb7e618ebc5dec0d15281 From 0c9e832752828b911cbd842b5538975b60fedad4 Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Tue, 14 Jul 2026 09:48:40 +0000 Subject: [PATCH 07/27] build(codegen): updating SDK --- .../main/resources/graphql/schema.graphqls | 27 +++++++++++++++++++ references.txt | 1 + 2 files changed, 28 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 9577fbb1ad..ac7cf5ff20 100644 --- a/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls +++ b/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls @@ -1787,6 +1787,20 @@ type CommerceMcpServerConfig implements McpServerConfig { toolOutputFormatting: McpServerToolOutputFormatting } +""" +Skeleton shopper-facing MCP server config. Carries only the shared +`McpServerConfig` fields — no response-shaping (`jsonOutputFiltering`, +`toolOutputFormatting`) yet, as the skeleton exposes a single demo tool. +Those fields can be added later without breaking existing clients. +""" +type UcpShopperMcpServerConfig implements McpServerConfig { + type: McpServerType! + majorVersion: String! + url: String! + tools: [String!]! + toolCustomizations: [ToolCustomization!]! +} + """ Customization applied to a single tool at `tools/list` and `tools/call` time. At least one of `description` or a non-empty `parameters` list MUST @@ -10859,6 +10873,7 @@ enum AttributionSource { } enum McpServerType { CommerceMCP + UCPShopperMCP } enum McpServerAuthenticationMode { CommercetoolsIdentity @@ -11586,6 +11601,7 @@ input McpServerDraft { input McpServerConfigDraft { commerce: CommerceMcpServerConfigDraft + ucpShopper: UcpShopperMcpServerConfigDraft } input CommerceMcpServerConfigDraft { @@ -11596,6 +11612,17 @@ input CommerceMcpServerConfigDraft { toolOutputFormatting: McpServerToolOutputFormatting } +""" +Draft for a shopper-facing UCP MCP server. Mirrors the shared fields of +`CommerceMcpServerConfigDraft` without the response-shaping options the +skeleton does not yet support. +""" +input UcpShopperMcpServerConfigDraft { + majorVersion: String! + tools: [String!]! + toolCustomizations: [ToolCustomizationDraft!] +} + """ Draft for `ToolCustomization`. At least one of `description` or a non-empty `parameters` list MUST be present; parameter names within diff --git a/references.txt b/references.txt index a8dcb24f75..c08b3310d2 100644 --- a/references.txt +++ b/references.txt @@ -589,3 +589,4 @@ c8321d32796eebddbeced6e06cf4779a0cfc6cbc 79477db5d059245edcaa3fd0d2df897b1b18c46e 4752cbbf0f4da072c49859d5ab1fb686aa7f0523 3de16df960a806c0b97cb7e618ebc5dec0d15281 +40485b00f981f9b45241cdc8c963614ee64b3b25 From c8c24f4e363102a9a28e48ffc4f39a3c09926e54 Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Tue, 14 Jul 2026 13:21:42 +0000 Subject: [PATCH 08/27] build(codegen): updating SDK --- ...nBusinessUnitKeyByBusinessUnitKeyCartsPost.java | 9 ++++++++- ...essUnitKeyByBusinessUnitKeyCartsPostString.java | 9 ++++++++- ...ectKeyCartsCustomerIdByCustomerIdMergePost.java | 8 ++++++++ ...CartsCustomerIdByCustomerIdMergePostString.java | 8 ++++++++ .../api/client/ByProjectKeyCartsPost.java | 14 +++++++------- .../api/client/ByProjectKeyCartsPostString.java | 14 +++++++------- ...oreKeyCartsCustomerIdByCustomerIdMergePost.java | 8 ++++++++ ...CartsCustomerIdByCustomerIdMergePostString.java | 8 ++++++++ .../ByProjectKeyInStoreKeyByStoreKeyCartsPost.java | 12 ++++++------ ...jectKeyInStoreKeyByStoreKeyCartsPostString.java | 12 ++++++------ .../ByProjectKeyInStoreKeyByStoreKeyLoginPost.java | 6 ++++++ ...jectKeyInStoreKeyByStoreKeyLoginPostString.java | 6 ++++++ ...ectKeyInStoreKeyByStoreKeyStagedQuotesPost.java | 8 ++++++++ ...InStoreKeyByStoreKeyStagedQuotesPostString.java | 8 ++++++++ .../api/client/ByProjectKeyLoginPost.java | 6 ++++++ .../api/client/ByProjectKeyLoginPostString.java | 6 ++++++ .../client/ByProjectKeyMeCartsReplicatePost.java | 6 ++++++ .../ByProjectKeyMeCartsReplicatePostString.java | 6 ++++++ .../api/client/ByProjectKeyOrdersPost.java | 7 ++++++- .../api/client/ByProjectKeyOrdersPostString.java | 7 ++++++- .../api/client/ByProjectKeyOrdersQuotesPost.java | 7 ++++++- .../client/ByProjectKeyOrdersQuotesPostString.java | 7 ++++++- .../api/client/ByProjectKeyStagedQuotesPost.java | 8 ++++++++ .../client/ByProjectKeyStagedQuotesPostString.java | 8 ++++++++ references.txt | 1 + 25 files changed, 167 insertions(+), 32 deletions(-) diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsPost.java index a78b16f103..6633a647c1 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsPost.java @@ -20,13 +20,20 @@ import tools.jackson.core.type.TypeReference; /** - *

Creates a Cart in the BusinessUnit referenced by businessUnitKey. As such, the businessUnit field on CartDraft is ignored for this request. Creating a Cart can fail with an InvalidOperation if the referenced ShippingMethod in the CartDraft has a predicate that does not match the Cart.

+ *

Creates a Cart in the BusinessUnit referenced by businessUnitKey. As such, the businessUnit field on CartDraft is ignored for this request.

*

Specific Error Codes:

* * *
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsPostString.java index 879398083f..e55295642a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsPostString.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsPostString.java @@ -21,13 +21,20 @@ import tools.jackson.core.type.TypeReference; /** - *

Creates a Cart in the BusinessUnit referenced by businessUnitKey. As such, the businessUnit field on CartDraft is ignored for this request. Creating a Cart can fail with an InvalidOperation if the referenced ShippingMethod in the CartDraft has a predicate that does not match the Cart.

+ *

Creates a Cart in the BusinessUnit referenced by businessUnitKey. As such, the businessUnit field on CartDraft is ignored for this request.

*

Specific Error Codes:

* * *
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsCustomerIdByCustomerIdMergePost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsCustomerIdByCustomerIdMergePost.java index 2070f8535b..346e1a9ce6 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsCustomerIdByCustomerIdMergePost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsCustomerIdByCustomerIdMergePost.java @@ -17,6 +17,14 @@ /** *

Merges items from an anonymous Cart into the most recently modified active Cart of a Customer. If no active Cart exists, the anonymous Cart becomes the Customer's active Cart. For more information about merge mode behaviors, merge rules, and tax recalculation, see Merge a Cart.

+ *
    + *
  • InvalidOperation is returned in several cases, including the following: + *
      + *
    • The referenced Shipping Method is not active.
    • + *
    • The referenced Shipping Method is scoped to a Store that differs from the Cart's Store.
    • + *
    • The referenced Shipping Method is scoped to a Store, but the Cart does not belong to a Store.
    • + *
  • + *
* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsCustomerIdByCustomerIdMergePostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsCustomerIdByCustomerIdMergePostString.java index a31b98a4a4..8d0c4bd001 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsCustomerIdByCustomerIdMergePostString.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsCustomerIdByCustomerIdMergePostString.java @@ -18,6 +18,14 @@ /** *

Merges items from an anonymous Cart into the most recently modified active Cart of a Customer. If no active Cart exists, the anonymous Cart becomes the Customer's active Cart. For more information about merge mode behaviors, merge rules, and tax recalculation, see Merge a Cart.

+ *
    + *
  • InvalidOperation is returned in several cases, including the following: + *
      + *
    • The referenced Shipping Method is not active.
    • + *
    • The referenced Shipping Method is scoped to a Store that differs from the Cart's Store.
    • + *
    • The referenced Shipping Method is scoped to a Store, but the Cart does not belong to a Store.
    • + *
  • + *
* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsPost.java index f8c4e289fc..fbd0a6ec7f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsPost.java @@ -21,13 +21,6 @@ /** *

Creates a Cart in the Project.

- *

An InvalidOperation error is returned in one of the following cases:

- *
    - *
  1. If the referenced Shipping Method has a predicate that does not match the Cart.
  2. - *
  3. If the referenced Shipping Method is not active.
  4. - *
  5. If the referenced Shipping Method is associated with a Store that is different from the Cart's Store.
  6. - *
  7. If the referenced Shipping Method is associated with a Store and the Cart is not associated with any Store.
  8. - *
*

When using InventoryMode ReserveOnCart:

*
    *
  • If only some Line Items can be reserved, the Cart creation succeeds, however, the items that could not be reserved are removed and reservation warnings are returned in the response.
  • @@ -39,6 +32,13 @@ *
  • InvalidItemShippingDetails
  • *
  • MatchingPriceNotFound
  • *
  • MissingTaxRateForCountry
  • + *
  • InvalidOperation is returned in several cases, including the following: + *
      + *
    • The referenced Shipping Method has a predicate that does not match the Cart.
    • + *
    • The referenced Shipping Method is not active.
    • + *
    • The referenced Shipping Method is scoped to a Store that differs from the Cart's Store.
    • + *
    • The referenced Shipping Method is scoped to a Store, but the Cart does not belong to a Store.
    • + *
  • *
* *
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsPostString.java index 477db8d27a..ae16e8eb44 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsPostString.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsPostString.java @@ -22,13 +22,6 @@ /** *

Creates a Cart in the Project.

- *

An InvalidOperation error is returned in one of the following cases:

- *
    - *
  1. If the referenced Shipping Method has a predicate that does not match the Cart.
  2. - *
  3. If the referenced Shipping Method is not active.
  4. - *
  5. If the referenced Shipping Method is associated with a Store that is different from the Cart's Store.
  6. - *
  7. If the referenced Shipping Method is associated with a Store and the Cart is not associated with any Store.
  8. - *
*

When using InventoryMode ReserveOnCart:

*
    *
  • If only some Line Items can be reserved, the Cart creation succeeds, however, the items that could not be reserved are removed and reservation warnings are returned in the response.
  • @@ -40,6 +33,13 @@ *
  • InvalidItemShippingDetails
  • *
  • MatchingPriceNotFound
  • *
  • MissingTaxRateForCountry
  • + *
  • InvalidOperation is returned in several cases, including the following: + *
      + *
    • The referenced Shipping Method has a predicate that does not match the Cart.
    • + *
    • The referenced Shipping Method is not active.
    • + *
    • The referenced Shipping Method is scoped to a Store that differs from the Cart's Store.
    • + *
    • The referenced Shipping Method is scoped to a Store, but the Cart does not belong to a Store.
    • + *
  • *
* *
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdMergePost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdMergePost.java index b0e630be5e..5bbae0c1a9 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdMergePost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdMergePost.java @@ -18,6 +18,14 @@ /** *

Merges items from an anonymous Cart into the most recently modified active Cart of a Customer. If no active Cart exists, the anonymous Cart becomes the Customer's active Cart.

*

If the Cart exists in the Project but does not have a store specified, or the store field references a different Store, a ResourceNotFound error is returned.

+ *
    + *
  • InvalidOperation is returned in several cases, including the following: + *
      + *
    • The referenced Shipping Method is not active.
    • + *
    • The referenced Shipping Method is scoped to a Store that differs from the Cart's Store.
    • + *
    • The referenced Shipping Method is scoped to a Store, but the Cart does not belong to a Store.
    • + *
  • + *
*

For more information about merge mode behaviors, merge rules, and tax recalculation, see Merge a Cart.

* *
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdMergePostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdMergePostString.java index 23be856c89..d50011f947 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdMergePostString.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdMergePostString.java @@ -19,6 +19,14 @@ /** *

Merges items from an anonymous Cart into the most recently modified active Cart of a Customer. If no active Cart exists, the anonymous Cart becomes the Customer's active Cart.

*

If the Cart exists in the Project but does not have a store specified, or the store field references a different Store, a ResourceNotFound error is returned.

+ *
    + *
  • InvalidOperation is returned in several cases, including the following: + *
      + *
    • The referenced Shipping Method is not active.
    • + *
    • The referenced Shipping Method is scoped to a Store that differs from the Cart's Store.
    • + *
    • The referenced Shipping Method is scoped to a Store, but the Cart does not belong to a Store.
    • + *
  • + *
*

For more information about merge mode behaviors, merge rules, and tax recalculation, see Merge a Cart.

* *
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsPost.java index 80c33cc0d1..6449fe84fd 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsPost.java @@ -21,12 +21,6 @@ /** *

Creates a Cart in a Store.

- *

An InvalidOperation error is returned in one of the following cases:

- *
    - *
  1. If the referenced Shipping Method has a predicate that does not match the Cart.
  2. - *
  3. If the referenced Shipping Method is not active.
  4. - *
  5. If the referenced Shipping Method is associated with a Store that is different from the Cart's Store.
  6. - *
*

Specific Error Codes:

* * *
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsPostString.java index ec92ac1444..96c0ecf28f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsPostString.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsPostString.java @@ -22,12 +22,6 @@ /** *

Creates a Cart in a Store.

- *

An InvalidOperation error is returned in one of the following cases:

- *
    - *
  1. If the referenced Shipping Method has a predicate that does not match the Cart.
  2. - *
  3. If the referenced Shipping Method is not active.
  4. - *
  5. If the referenced Shipping Method is associated with a Store that is different from the Cart's Store.
  6. - *
*

Specific Error Codes:

* * *
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyLoginPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyLoginPost.java index f207acace1..5366b4b2d7 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyLoginPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyLoginPost.java @@ -18,6 +18,12 @@ /** *

Authenticates a Customer associated with a Store.

*

Allows merging items from an anonymous Cart into the most recently modified active Cart of a Customer. If no active Cart exists, the anonymous Cart becomes the Customer's active Cart. If the Customer has multiple active Carts, the anonymous Cart is merged into the most recently modified active Cart.

+ *

The anonymous Cart is not merged in any of the following cases:

+ *
    + *
  • The referenced Shipping Method is not active.
  • + *
  • The referenced Shipping Method is scoped to a Store that differs from the Cart's Store.
  • + *
  • The referenced Shipping Method is scoped to a Store, but the Cart does not belong to a Store.
  • + *
*

If the Customer exists in the Project but the stores field references a different Store, this method returns an InvalidCredentials error.

* *
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyLoginPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyLoginPostString.java index c4a43b8a85..287a4ab231 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyLoginPostString.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyLoginPostString.java @@ -19,6 +19,12 @@ /** *

Authenticates a Customer associated with a Store.

*

Allows merging items from an anonymous Cart into the most recently modified active Cart of a Customer. If no active Cart exists, the anonymous Cart becomes the Customer's active Cart. If the Customer has multiple active Carts, the anonymous Cart is merged into the most recently modified active Cart.

+ *

The anonymous Cart is not merged in any of the following cases:

+ *
    + *
  • The referenced Shipping Method is not active.
  • + *
  • The referenced Shipping Method is scoped to a Store that differs from the Cart's Store.
  • + *
  • The referenced Shipping Method is scoped to a Store, but the Cart does not belong to a Store.
  • + *
*

If the Customer exists in the Project but the stores field references a different Store, this method returns an InvalidCredentials error.

* *
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesPost.java index d666c1e21b..fb4bf5fc3e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesPost.java @@ -21,6 +21,14 @@ /** *

Creates a StagedQuote in a Store.

+ *
    + *
  • InvalidOperation is returned in several cases, including the following: + *
      + *
    • The referenced Shipping Method is not active.
    • + *
    • The referenced Shipping Method is scoped to a Store that differs from the Store referenced by the Quote Request.
    • + *
    • The referenced Shipping Method is scoped to a Store, but the Quote Request does not belong to a Store.
    • + *
  • + *
* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesPostString.java index 873c757377..0dee81cd51 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesPostString.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesPostString.java @@ -22,6 +22,14 @@ /** *

Creates a StagedQuote in a Store.

+ *
    + *
  • InvalidOperation is returned in several cases, including the following: + *
      + *
    • The referenced Shipping Method is not active.
    • + *
    • The referenced Shipping Method is scoped to a Store that differs from the Store referenced by the Quote Request.
    • + *
    • The referenced Shipping Method is scoped to a Store, but the Quote Request does not belong to a Store.
    • + *
  • + *
* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyLoginPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyLoginPost.java index a48e958936..afa9b0cdc7 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyLoginPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyLoginPost.java @@ -18,6 +18,12 @@ /** *

Authenticates a global Customer.

*

Allows merging items from an anonymous Cart into the most recently modified active Cart of a Customer. If no active Cart exists, the anonymous Cart becomes the Customer's active Cart. If the Customer has multiple active Carts, the anonymous Cart is merged into the most recently modified active Cart.

+ *

The anonymous Cart is not merged in any of the following cases:

+ *
    + *
  • The referenced Shipping Method is not active.
  • + *
  • The referenced Shipping Method is scoped to a Store that differs from the Cart's Store.
  • + *
  • The referenced Shipping Method is scoped to a Store, but the Cart does not belong to a Store.
  • + *
*

If an account with the given credentials is not found, an InvalidCredentials error is returned.

* *
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyLoginPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyLoginPostString.java index f9418967b9..e1d8b606c1 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyLoginPostString.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyLoginPostString.java @@ -19,6 +19,12 @@ /** *

Authenticates a global Customer.

*

Allows merging items from an anonymous Cart into the most recently modified active Cart of a Customer. If no active Cart exists, the anonymous Cart becomes the Customer's active Cart. If the Customer has multiple active Carts, the anonymous Cart is merged into the most recently modified active Cart.

+ *

The anonymous Cart is not merged in any of the following cases:

+ *
    + *
  • The referenced Shipping Method is not active.
  • + *
  • The referenced Shipping Method is scoped to a Store that differs from the Cart's Store.
  • + *
  • The referenced Shipping Method is scoped to a Store, but the Cart does not belong to a Store.
  • + *
*

If an account with the given credentials is not found, an InvalidCredentials error is returned.

* *
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeCartsReplicatePost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeCartsReplicatePost.java index 80cbca02a1..aa58960adc 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeCartsReplicatePost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeCartsReplicatePost.java @@ -24,6 +24,12 @@ *
    *
  • MatchingPriceNotFound
  • *
  • MissingTaxRateForCountry
  • + *
  • InvalidOperation is returned in several cases, including the following: + *
      + *
    • The referenced Shipping Method is not active.
    • + *
    • The referenced Shipping Method is scoped to a Store that differs from the Cart's Store.
    • + *
    • The referenced Shipping Method is scoped to a Store, but the Cart does not belong to a Store.
    • + *
  • *
* *
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeCartsReplicatePostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeCartsReplicatePostString.java index 1169c14181..f6697b1ebf 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeCartsReplicatePostString.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeCartsReplicatePostString.java @@ -25,6 +25,12 @@ *
    *
  • MatchingPriceNotFound
  • *
  • MissingTaxRateForCountry
  • + *
  • InvalidOperation is returned in several cases, including the following: + *
      + *
    • The referenced Shipping Method is not active.
    • + *
    • The referenced Shipping Method is scoped to a Store that differs from the Cart's Store.
    • + *
    • The referenced Shipping Method is scoped to a Store, but the Cart does not belong to a Store.
    • + *
  • *
* *
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersPost.java index f87540718c..40f8699089 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersPost.java @@ -32,7 +32,12 @@ *
  • DiscountCodeNonApplicable
  • *
  • ShippingMethodDoesNotMatchCart
  • *
  • InvalidItemShippingDetails
  • - *
  • InvalidOperation
  • + *
  • InvalidOperation is returned in several cases, including the following: + *
      + *
    • The referenced Shipping Method is not active.
    • + *
    • The referenced Shipping Method is scoped to a Store that differs from the Cart's Store.
    • + *
    • The referenced Shipping Method is scoped to a Store, but the Cart does not belong to a Store.
    • + *
  • *
  • MatchingPriceNotFound
  • *
  • MissingTaxRateForCountry
  • * diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersPostString.java index 140b9769a7..0e809ce395 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersPostString.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersPostString.java @@ -33,7 +33,12 @@ *
  • DiscountCodeNonApplicable
  • *
  • ShippingMethodDoesNotMatchCart
  • *
  • InvalidItemShippingDetails
  • - *
  • InvalidOperation
  • + *
  • InvalidOperation is returned in several cases, including the following: + *
      + *
    • The referenced Shipping Method is not active.
    • + *
    • The referenced Shipping Method is scoped to a Store that differs from the Cart's Store.
    • + *
    • The referenced Shipping Method is scoped to a Store, but the Cart does not belong to a Store.
    • + *
  • *
  • MatchingPriceNotFound
  • *
  • MissingTaxRateForCountry
  • * diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersQuotesPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersQuotesPost.java index 796fd03271..c504af57d9 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersQuotesPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersQuotesPost.java @@ -22,7 +22,12 @@ * * diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersQuotesPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersQuotesPostString.java index 40bf3e3081..5fcc59b608 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersQuotesPostString.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersQuotesPostString.java @@ -23,7 +23,12 @@ * * diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesPost.java index 4a607e6f08..fd3fe98cc3 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesPost.java @@ -21,6 +21,14 @@ /** *

    Creates a StagedQuote in the Project.

    + *
      + *
    • InvalidOperation is returned in several cases, including the following: + *
        + *
      • The referenced Shipping Method is not active.
      • + *
      • The referenced Shipping Method is scoped to a Store that differs from the Store referenced by the Quote Request.
      • + *
      • The referenced Shipping Method is scoped to a Store, but the Quote Request does not belong to a Store.
      • + *
    • + *
    * *
    *
    diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesPostString.java index 1292c2c52b..57fd6841ae 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesPostString.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesPostString.java @@ -22,6 +22,14 @@ /** *

    Creates a StagedQuote in the Project.

    + *
      + *
    • InvalidOperation is returned in several cases, including the following: + *
        + *
      • The referenced Shipping Method is not active.
      • + *
      • The referenced Shipping Method is scoped to a Store that differs from the Store referenced by the Quote Request.
      • + *
      • The referenced Shipping Method is scoped to a Store, but the Quote Request does not belong to a Store.
      • + *
    • + *
    * *
    *
    diff --git a/references.txt b/references.txt index c08b3310d2..3c57d461bd 100644 --- a/references.txt +++ b/references.txt @@ -590,3 +590,4 @@ c8321d32796eebddbeced6e06cf4779a0cfc6cbc 4752cbbf0f4da072c49859d5ab1fb686aa7f0523 3de16df960a806c0b97cb7e618ebc5dec0d15281 40485b00f981f9b45241cdc8c963614ee64b3b25 +ea8a8e4f1d1afa796bb888e4c1ea46952214b5d8 From 2a7cb881f5317e4ff56ae9f0e37be54a571131c4 Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Tue, 14 Jul 2026 13:57:39 +0000 Subject: [PATCH 09/27] build(codegen): updating SDK --- changes.md | 8 ++++++++ .../api/models/product_type/AttributeReferenceTypeId.java | 8 ++++++++ .../api/models/type/CustomFieldReferenceValue.java | 8 ++++++++ references.txt | 1 + 4 files changed, 25 insertions(+) diff --git a/changes.md b/changes.md index 36a5102f44..85a0e2e202 100644 --- a/changes.md +++ b/changes.md @@ -27,6 +27,14 @@ - added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().discountCodes().withId().head()` + +
    +Added Enum(s) + +- added enum `variant` to type `AttributeReferenceTypeId` +- added enum `variant` to type `CustomFieldReferenceValue` +
    + **History changes**
    diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/AttributeReferenceTypeId.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/AttributeReferenceTypeId.java index 10e6ac2a8c..164406fde9 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/AttributeReferenceTypeId.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/AttributeReferenceTypeId.java @@ -62,6 +62,9 @@ public interface AttributeReferenceTypeId extends JsonEnum {

    References a State.

    */ AttributeReferenceTypeId STATE = AttributeReferenceTypeIdEnum.STATE; /** +

    References a Variant. Only available for Projects with productCatalogModel set to Modular (BETA).

    */ + AttributeReferenceTypeId VARIANT = AttributeReferenceTypeIdEnum.VARIANT; + /**

    References a Zone.

    */ AttributeReferenceTypeId ZONE = AttributeReferenceTypeIdEnum.ZONE; @@ -144,6 +147,11 @@ enum AttributeReferenceTypeIdEnum implements AttributeReferenceTypeId { */ STATE("state"), + /** + * variant + */ + VARIANT("variant"), + /** * zone */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/type/CustomFieldReferenceValue.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/type/CustomFieldReferenceValue.java index 3aa7baee7c..6112906f7e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/type/CustomFieldReferenceValue.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/type/CustomFieldReferenceValue.java @@ -68,6 +68,9 @@ public interface CustomFieldReferenceValue extends JsonEnum {

    ShippingMethod

    */ CustomFieldReferenceValue SHIPPING_METHOD = CustomFieldReferenceValueEnum.SHIPPING_METHOD; /** +

    Variant - Only available for Projects with productCatalogModel set to Modular (BETA).

    */ + CustomFieldReferenceValue VARIANT = CustomFieldReferenceValueEnum.VARIANT; + /**

    Zone

    */ CustomFieldReferenceValue ZONE = CustomFieldReferenceValueEnum.ZONE; @@ -160,6 +163,11 @@ enum CustomFieldReferenceValueEnum implements CustomFieldReferenceValue { */ SHIPPING_METHOD("shipping-method"), + /** + * variant + */ + VARIANT("variant"), + /** * zone */ diff --git a/references.txt b/references.txt index 3c57d461bd..56ea6a88c2 100644 --- a/references.txt +++ b/references.txt @@ -591,3 +591,4 @@ c8321d32796eebddbeced6e06cf4779a0cfc6cbc 3de16df960a806c0b97cb7e618ebc5dec0d15281 40485b00f981f9b45241cdc8c963614ee64b3b25 ea8a8e4f1d1afa796bb888e4c1ea46952214b5d8 +b27bf23c25b1bd52d00dd57159016fd47e3c21e7 From 173437c1eaf10da52f431e8b2629672d6988a2f4 Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Tue, 14 Jul 2026 14:27:44 +0000 Subject: [PATCH 10/27] build(codegen): updating SDK --- ...eyByStoreKeyVariantProjectionsByIDGet.java | 1 + ...oreKeyByStoreKeyVariantProjectionsGet.java | 1 + ...StoreKeyVariantProjectionsKeyByKeyGet.java | 1 + .../ProductTailoringAddAssetAction.java | 10 +-- ...ProductTailoringAddAssetActionBuilder.java | 8 +- .../ProductTailoringAddAssetActionImpl.java | 6 +- ...roductTailoringAddExternalImageAction.java | 10 +-- ...ailoringAddExternalImageActionBuilder.java | 8 +- ...ctTailoringAddExternalImageActionImpl.java | 6 +- .../ProductTailoringAddVariantAction.java | 10 +-- ...oductTailoringAddVariantActionBuilder.java | 8 +- .../ProductTailoringAddVariantActionImpl.java | 6 +- ...uctTailoringMoveImageToPositionAction.java | 10 +-- ...oringMoveImageToPositionActionBuilder.java | 8 +- ...ailoringMoveImageToPositionActionImpl.java | 6 +- .../ProductTailoringRemoveAssetAction.java | 10 +-- ...ductTailoringRemoveAssetActionBuilder.java | 8 +- ...ProductTailoringRemoveAssetActionImpl.java | 6 +- .../ProductTailoringRemoveImageAction.java | 10 +-- ...ductTailoringRemoveImageActionBuilder.java | 8 +- ...ProductTailoringRemoveImageActionImpl.java | 6 +- .../ProductTailoringRemoveVariantAction.java | 8 +- ...ctTailoringRemoveVariantActionBuilder.java | 8 +- ...oductTailoringRemoveVariantActionImpl.java | 4 +- .../ProductTailoringSetAttributeAction.java | 8 +- ...uctTailoringSetAttributeActionBuilder.java | 8 +- ...roductTailoringSetAttributeActionImpl.java | 4 +- ...oductTailoringSetExternalImagesAction.java | 22 +++--- ...iloringSetExternalImagesActionBuilder.java | 40 +++++----- ...tTailoringSetExternalImagesActionImpl.java | 10 +-- .../ProductTailoringSetImageLabelAction.java | 10 +-- ...ctTailoringSetImageLabelActionBuilder.java | 8 +- ...oductTailoringSetImageLabelActionImpl.java | 6 +- .../ProductVariantTailoring.java | 33 ++++---- .../ProductVariantTailoringBuilder.java | 76 +++++++++---------- .../ProductVariantTailoringDraft.java | 25 +++--- .../ProductVariantTailoringDraftBuilder.java | 48 +++++------- .../ProductVariantTailoringDraftImpl.java | 11 ++- .../ProductVariantTailoringImpl.java | 13 ++-- references.txt | 1 + 40 files changed, 235 insertions(+), 255 deletions(-) diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyVariantProjectionsByIDGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyVariantProjectionsByIDGet.java index 403ff7895a..c3bb24d355 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyVariantProjectionsByIDGet.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyVariantProjectionsByIDGet.java @@ -22,6 +22,7 @@ /** *

    Retrieves a Variant Projection by its ID in the specified Store.

    *

    Only returns Variants belonging to Products distributed through the Store's configured channels.

    + *

    If a ProductTailoring exists for the Product and the given Store, the returned Variant Projection includes the tailored Product name, slug, and description, along with the tailored Variant images, assets, and attributes. The staged query parameter selects either the current or staged tailored data. When no Product Tailoring exists for the Product and Store, the Variant Projection is returned without Product Tailoring data.

    *

    Required access scopes:

    *
      *
    • To retrieve the current representation, the view_published_products:{projectKey} scope is required.

    • diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyVariantProjectionsGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyVariantProjectionsGet.java index 1f740d0613..41d7e4381b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyVariantProjectionsGet.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyVariantProjectionsGet.java @@ -22,6 +22,7 @@ /** *

      Queries Variant Projections in the specified Store.

      *

      Only Variants belonging to Products distributed through the Store's configured channels are returned. By default, this endpoint returns the current representation of Variants where the published flag is true.

      + *

      If a ProductTailoring exists for a Product and the given Store, the returned Variant Projections include the tailored Product name, slug, and description, along with the tailored Variant images, assets, and attributes. The staged query parameter selects either the current or staged tailored data. When no Product Tailoring exists for a Product and Store, the Variant Projection is returned without Product Tailoring data.

      *

      Required access scopes:

      *
        *
      • To retrieve the current representation of published Variants, the view_published_products:{projectKey} scope is required.

      • diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyVariantProjectionsKeyByKeyGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyVariantProjectionsKeyByKeyGet.java index c189508354..b01fb1ea20 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyVariantProjectionsKeyByKeyGet.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyVariantProjectionsKeyByKeyGet.java @@ -22,6 +22,7 @@ /** *

        Retrieves a Variant Projection by its key in the specified Store.

        *

        Only returns Variants belonging to Products distributed through the Store's configured channels.

        + *

        If a ProductTailoring exists for the Product and the given Store, the returned Variant Projection includes the tailored Product name, slug, and description, along with the tailored Variant images, assets, and attributes. The staged query parameter selects either the current or staged tailored data. When no Product Tailoring exists for the Product and Store, the Variant Projection is returned without Product Tailoring data.

        *

        Required access scopes:

        *
          *
        • To retrieve the current representation, the view_published_products:{projectKey} scope is required.

        • diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddAssetAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddAssetAction.java index 55dde25c17..fd19594a88 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddAssetAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddAssetAction.java @@ -17,7 +17,7 @@ import tools.jackson.databind.annotation.*; /** - *

          Either variantId or sku is required to reference a ProductVariant that exists.

          + *

          Either variantId or sku is required to reference a ProductVariant or Variant (BETA) that exists.

          * *
          * Example to create an instance using the builder pattern @@ -40,7 +40,7 @@ public interface ProductTailoringAddAssetAction extends ProductTailoringUpdateAc String ADD_ASSET = "addAsset"; /** - *

          The id of the tailored ProductVariant to update.

          + *

          The id of the tailored ProductVariant or Variant (BETA) to update.

          * @return variantId */ @@ -48,7 +48,7 @@ public interface ProductTailoringAddAssetAction extends ProductTailoringUpdateAc public Long getVariantId(); /** - *

          The sku of the tailored ProductVariant to update.

          + *

          The sku of the tailored ProductVariant or Variant (BETA) to update.

          * @return sku */ @@ -81,14 +81,14 @@ public interface ProductTailoringAddAssetAction extends ProductTailoringUpdateAc public Integer getPosition(); /** - *

          The id of the tailored ProductVariant to update.

          + *

          The id of the tailored ProductVariant or Variant (BETA) to update.

          * @param variantId value to be set */ public void setVariantId(final Long variantId); /** - *

          The sku of the tailored ProductVariant to update.

          + *

          The sku of the tailored ProductVariant or Variant (BETA) to update.

          * @param sku value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddAssetActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddAssetActionBuilder.java index 1cd5dba9c0..207521fa28 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddAssetActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddAssetActionBuilder.java @@ -39,7 +39,7 @@ public class ProductTailoringAddAssetActionBuilder implements BuilderThe id of the tailored ProductVariant to update.

          + *

          The id of the tailored ProductVariant or Variant (BETA) to update.

          * @param variantId value to be set * @return Builder */ @@ -50,7 +50,7 @@ public ProductTailoringAddAssetActionBuilder variantId(@Nullable final Long vari } /** - *

          The sku of the tailored ProductVariant to update.

          + *

          The sku of the tailored ProductVariant or Variant (BETA) to update.

          * @param sku value to be set * @return Builder */ @@ -118,7 +118,7 @@ public ProductTailoringAddAssetActionBuilder position(@Nullable final Integer po } /** - *

          The id of the tailored ProductVariant to update.

          + *

          The id of the tailored ProductVariant or Variant (BETA) to update.

          * @return variantId */ @@ -128,7 +128,7 @@ public Long getVariantId() { } /** - *

          The sku of the tailored ProductVariant to update.

          + *

          The sku of the tailored ProductVariant or Variant (BETA) to update.

          * @return sku */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddAssetActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddAssetActionImpl.java index 81b92c938c..d92e391030 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddAssetActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddAssetActionImpl.java @@ -18,7 +18,7 @@ import tools.jackson.databind.annotation.*; /** - *

          Either variantId or sku is required to reference a ProductVariant that exists.

          + *

          Either variantId or sku is required to reference a ProductVariant or Variant (BETA) that exists.

          */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class ProductTailoringAddAssetActionImpl implements ProductTailoringAddAssetAction, ModelBase { @@ -67,7 +67,7 @@ public String getAction() { } /** - *

          The id of the tailored ProductVariant to update.

          + *

          The id of the tailored ProductVariant or Variant (BETA) to update.

          */ public Long getVariantId() { @@ -75,7 +75,7 @@ public Long getVariantId() { } /** - *

          The sku of the tailored ProductVariant to update.

          + *

          The sku of the tailored ProductVariant or Variant (BETA) to update.

          */ public String getSku() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddExternalImageAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddExternalImageAction.java index f68fc6bbb1..a8a897a760 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddExternalImageAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddExternalImageAction.java @@ -17,7 +17,7 @@ import tools.jackson.databind.annotation.*; /** - *

          Either variantId or sku is required to reference a ProductVariant that exists. Produces the ProductTailoringImageAdded Message.

          + *

          Either variantId or sku is required to reference a ProductVariant or Variant (BETA) that exists. Produces the ProductTailoringImageAdded Message.

          * *
          * Example to create an instance using the builder pattern @@ -40,7 +40,7 @@ public interface ProductTailoringAddExternalImageAction extends ProductTailoring String ADD_EXTERNAL_IMAGE = "addExternalImage"; /** - *

          The id of the tailored ProductVariant to update.

          + *

          The id of the tailored ProductVariant or Variant (BETA) to update.

          * @return variantId */ @@ -48,7 +48,7 @@ public interface ProductTailoringAddExternalImageAction extends ProductTailoring public Long getVariantId(); /** - *

          The sku of the tailored ProductVariant to update.

          + *

          The sku of the tailored ProductVariant or Variant (BETA) to update.

          * @return sku */ @@ -73,14 +73,14 @@ public interface ProductTailoringAddExternalImageAction extends ProductTailoring public Boolean getStaged(); /** - *

          The id of the tailored ProductVariant to update.

          + *

          The id of the tailored ProductVariant or Variant (BETA) to update.

          * @param variantId value to be set */ public void setVariantId(final Long variantId); /** - *

          The sku of the tailored ProductVariant to update.

          + *

          The sku of the tailored ProductVariant or Variant (BETA) to update.

          * @param sku value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddExternalImageActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddExternalImageActionBuilder.java index 2f4c8060f9..c317ccabbc 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddExternalImageActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddExternalImageActionBuilder.java @@ -36,7 +36,7 @@ public class ProductTailoringAddExternalImageActionBuilder implements BuilderThe id of the tailored ProductVariant to update.

          + *

          The id of the tailored ProductVariant or Variant (BETA) to update.

          * @param variantId value to be set * @return Builder */ @@ -47,7 +47,7 @@ public ProductTailoringAddExternalImageActionBuilder variantId(@Nullable final L } /** - *

          The sku of the tailored ProductVariant to update.

          + *

          The sku of the tailored ProductVariant or Variant (BETA) to update.

          * @param sku value to be set * @return Builder */ @@ -104,7 +104,7 @@ public ProductTailoringAddExternalImageActionBuilder staged(@Nullable final Bool } /** - *

          The id of the tailored ProductVariant to update.

          + *

          The id of the tailored ProductVariant or Variant (BETA) to update.

          * @return variantId */ @@ -114,7 +114,7 @@ public Long getVariantId() { } /** - *

          The sku of the tailored ProductVariant to update.

          + *

          The sku of the tailored ProductVariant or Variant (BETA) to update.

          * @return sku */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddExternalImageActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddExternalImageActionImpl.java index dc4662884f..81efa7d22b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddExternalImageActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddExternalImageActionImpl.java @@ -18,7 +18,7 @@ import tools.jackson.databind.annotation.*; /** - *

          Either variantId or sku is required to reference a ProductVariant that exists. Produces the ProductTailoringImageAdded Message.

          + *

          Either variantId or sku is required to reference a ProductVariant or Variant (BETA) that exists. Produces the ProductTailoringImageAdded Message.

          */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class ProductTailoringAddExternalImageActionImpl implements ProductTailoringAddExternalImageAction, ModelBase { @@ -64,7 +64,7 @@ public String getAction() { } /** - *

          The id of the tailored ProductVariant to update.

          + *

          The id of the tailored ProductVariant or Variant (BETA) to update.

          */ public Long getVariantId() { @@ -72,7 +72,7 @@ public Long getVariantId() { } /** - *

          The sku of the tailored ProductVariant to update.

          + *

          The sku of the tailored ProductVariant or Variant (BETA) to update.

          */ public String getSku() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddVariantAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddVariantAction.java index a4703385ca..7d4f7dc840 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddVariantAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddVariantAction.java @@ -18,7 +18,7 @@ import tools.jackson.databind.annotation.*; /** - *

          Either id or sku is required to reference a ProductVariant that exists. Produces the ProductVariantTailoringAdded Message.

          + *

          Either id or sku is required to reference a ProductVariant or Variant (BETA) that exists. Produces the ProductVariantTailoringAdded Message.

          * *
          * Example to create an instance using the builder pattern @@ -40,7 +40,7 @@ public interface ProductTailoringAddVariantAction extends ProductTailoringUpdate String ADD_VARIANT = "addVariant"; /** - *

          The id of the tailored ProductVariant to update.

          + *

          The id of the tailored ProductVariant or Variant (BETA) to update.

          * @return id */ @@ -48,7 +48,7 @@ public interface ProductTailoringAddVariantAction extends ProductTailoringUpdate public Long getId(); /** - *

          The sku of the tailored ProductVariant to update.

          + *

          The sku of the tailored ProductVariant or Variant (BETA) to update.

          * @return sku */ @@ -88,14 +88,14 @@ public interface ProductTailoringAddVariantAction extends ProductTailoringUpdate public Boolean getStaged(); /** - *

          The id of the tailored ProductVariant to update.

          + *

          The id of the tailored ProductVariant or Variant (BETA) to update.

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

          The sku of the tailored ProductVariant to update.

          + *

          The sku of the tailored ProductVariant or Variant (BETA) to update.

          * @param sku value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddVariantActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddVariantActionBuilder.java index df0a0ec704..a0653ca145 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddVariantActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddVariantActionBuilder.java @@ -42,7 +42,7 @@ public class ProductTailoringAddVariantActionBuilder implements BuilderThe id of the tailored ProductVariant to update.

          + *

          The id of the tailored ProductVariant or Variant (BETA) to update.

          * @param id value to be set * @return Builder */ @@ -53,7 +53,7 @@ public ProductTailoringAddVariantActionBuilder id(@Nullable final Long id) { } /** - *

          The sku of the tailored ProductVariant to update.

          + *

          The sku of the tailored ProductVariant or Variant (BETA) to update.

          * @param sku value to be set * @return Builder */ @@ -348,7 +348,7 @@ public ProductTailoringAddVariantActionBuilder staged(@Nullable final Boolean st } /** - *

          The id of the tailored ProductVariant to update.

          + *

          The id of the tailored ProductVariant or Variant (BETA) to update.

          * @return id */ @@ -358,7 +358,7 @@ public Long getId() { } /** - *

          The sku of the tailored ProductVariant to update.

          + *

          The sku of the tailored ProductVariant or Variant (BETA) to update.

          * @return sku */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddVariantActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddVariantActionImpl.java index c0a6f76abc..339edbb684 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddVariantActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddVariantActionImpl.java @@ -18,7 +18,7 @@ import tools.jackson.databind.annotation.*; /** - *

          Either id or sku is required to reference a ProductVariant that exists. Produces the ProductVariantTailoringAdded Message.

          + *

          Either id or sku is required to reference a ProductVariant or Variant (BETA) that exists. Produces the ProductVariantTailoringAdded Message.

          */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class ProductTailoringAddVariantActionImpl implements ProductTailoringAddVariantAction, ModelBase { @@ -71,7 +71,7 @@ public String getAction() { } /** - *

          The id of the tailored ProductVariant to update.

          + *

          The id of the tailored ProductVariant or Variant (BETA) to update.

          */ public Long getId() { @@ -79,7 +79,7 @@ public Long getId() { } /** - *

          The sku of the tailored ProductVariant to update.

          + *

          The sku of the tailored ProductVariant or Variant (BETA) to update.

          */ public String getSku() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringMoveImageToPositionAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringMoveImageToPositionAction.java index 43493096ae..a2b9b50247 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringMoveImageToPositionAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringMoveImageToPositionAction.java @@ -15,7 +15,7 @@ import tools.jackson.databind.annotation.*; /** - *

          Either variantId or sku is required to reference a ProductVariant that exists.

          + *

          Either variantId or sku is required to reference a ProductVariant or Variant (BETA) that exists.

          * *
          * Example to create an instance using the builder pattern @@ -39,7 +39,7 @@ public interface ProductTailoringMoveImageToPositionAction extends ProductTailor String MOVE_IMAGE_TO_POSITION = "moveImageToPosition"; /** - *

          The id of the tailored ProductVariant to update.

          + *

          The id of the tailored ProductVariant or Variant (BETA) to update.

          * @return variantId */ @@ -47,7 +47,7 @@ public interface ProductTailoringMoveImageToPositionAction extends ProductTailor public Long getVariantId(); /** - *

          The sku of the tailored ProductVariant to update.

          + *

          The sku of the tailored ProductVariant or Variant (BETA) to update.

          * @return sku */ @@ -79,14 +79,14 @@ public interface ProductTailoringMoveImageToPositionAction extends ProductTailor public Boolean getStaged(); /** - *

          The id of the tailored ProductVariant to update.

          + *

          The id of the tailored ProductVariant or Variant (BETA) to update.

          * @param variantId value to be set */ public void setVariantId(final Long variantId); /** - *

          The sku of the tailored ProductVariant to update.

          + *

          The sku of the tailored ProductVariant or Variant (BETA) to update.

          * @param sku value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringMoveImageToPositionActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringMoveImageToPositionActionBuilder.java index 6b5ad714ac..49d6eb972f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringMoveImageToPositionActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringMoveImageToPositionActionBuilder.java @@ -39,7 +39,7 @@ public class ProductTailoringMoveImageToPositionActionBuilder private Boolean staged; /** - *

          The id of the tailored ProductVariant to update.

          + *

          The id of the tailored ProductVariant or Variant (BETA) to update.

          * @param variantId value to be set * @return Builder */ @@ -50,7 +50,7 @@ public ProductTailoringMoveImageToPositionActionBuilder variantId(@Nullable fina } /** - *

          The sku of the tailored ProductVariant to update.

          + *

          The sku of the tailored ProductVariant or Variant (BETA) to update.

          * @param sku value to be set * @return Builder */ @@ -94,7 +94,7 @@ public ProductTailoringMoveImageToPositionActionBuilder staged(@Nullable final B } /** - *

          The id of the tailored ProductVariant to update.

          + *

          The id of the tailored ProductVariant or Variant (BETA) to update.

          * @return variantId */ @@ -104,7 +104,7 @@ public Long getVariantId() { } /** - *

          The sku of the tailored ProductVariant to update.

          + *

          The sku of the tailored ProductVariant or Variant (BETA) to update.

          * @return sku */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringMoveImageToPositionActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringMoveImageToPositionActionImpl.java index 60a592f36a..060cb542f0 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringMoveImageToPositionActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringMoveImageToPositionActionImpl.java @@ -18,7 +18,7 @@ import tools.jackson.databind.annotation.*; /** - *

          Either variantId or sku is required to reference a ProductVariant that exists.

          + *

          Either variantId or sku is required to reference a ProductVariant or Variant (BETA) that exists.

          */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class ProductTailoringMoveImageToPositionActionImpl @@ -67,7 +67,7 @@ public String getAction() { } /** - *

          The id of the tailored ProductVariant to update.

          + *

          The id of the tailored ProductVariant or Variant (BETA) to update.

          */ public Long getVariantId() { @@ -75,7 +75,7 @@ public Long getVariantId() { } /** - *

          The sku of the tailored ProductVariant to update.

          + *

          The sku of the tailored ProductVariant or Variant (BETA) to update.

          */ public String getSku() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveAssetAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveAssetAction.java index e575f8741a..d484770127 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveAssetAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveAssetAction.java @@ -14,7 +14,7 @@ import tools.jackson.databind.annotation.*; /** - *

          Either variantId or sku is required to reference a ProductVariant that exists. The Asset to remove must be specified using either assetId or assetKey.

          + *

          Either variantId or sku is required to reference a ProductVariant or Variant (BETA) that exists. The Asset to remove must be specified using either assetId or assetKey.

          * *
          * Example to create an instance using the builder pattern @@ -36,7 +36,7 @@ public interface ProductTailoringRemoveAssetAction extends ProductTailoringUpdat String REMOVE_ASSET = "removeAsset"; /** - *

          The id of the tailored ProductVariant to update.

          + *

          The id of the tailored ProductVariant or Variant (BETA) to update.

          * @return variantId */ @@ -44,7 +44,7 @@ public interface ProductTailoringRemoveAssetAction extends ProductTailoringUpdat public Long getVariantId(); /** - *

          The sku of the tailored ProductVariant to update.

          + *

          The sku of the tailored ProductVariant or Variant (BETA) to update.

          * @return sku */ @@ -76,14 +76,14 @@ public interface ProductTailoringRemoveAssetAction extends ProductTailoringUpdat public String getAssetKey(); /** - *

          The id of the tailored ProductVariant to update.

          + *

          The id of the tailored ProductVariant or Variant (BETA) to update.

          * @param variantId value to be set */ public void setVariantId(final Long variantId); /** - *

          The sku of the tailored ProductVariant to update.

          + *

          The sku of the tailored ProductVariant or Variant (BETA) to update.

          * @param sku value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveAssetActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveAssetActionBuilder.java index 23b0c0e7d3..294d4846b5 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveAssetActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveAssetActionBuilder.java @@ -38,7 +38,7 @@ public class ProductTailoringRemoveAssetActionBuilder implements BuilderThe id of the tailored ProductVariant to update.

          + *

          The id of the tailored ProductVariant or Variant (BETA) to update.

          * @param variantId value to be set * @return Builder */ @@ -49,7 +49,7 @@ public ProductTailoringRemoveAssetActionBuilder variantId(@Nullable final Long v } /** - *

          The sku of the tailored ProductVariant to update.

          + *

          The sku of the tailored ProductVariant or Variant (BETA) to update.

          * @param sku value to be set * @return Builder */ @@ -93,7 +93,7 @@ public ProductTailoringRemoveAssetActionBuilder assetKey(@Nullable final String } /** - *

          The id of the tailored ProductVariant to update.

          + *

          The id of the tailored ProductVariant or Variant (BETA) to update.

          * @return variantId */ @@ -103,7 +103,7 @@ public Long getVariantId() { } /** - *

          The sku of the tailored ProductVariant to update.

          + *

          The sku of the tailored ProductVariant or Variant (BETA) to update.

          * @return sku */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveAssetActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveAssetActionImpl.java index fd9d334f81..ec52c9bf24 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveAssetActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveAssetActionImpl.java @@ -18,7 +18,7 @@ import tools.jackson.databind.annotation.*; /** - *

          Either variantId or sku is required to reference a ProductVariant that exists. The Asset to remove must be specified using either assetId or assetKey.

          + *

          Either variantId or sku is required to reference a ProductVariant or Variant (BETA) that exists. The Asset to remove must be specified using either assetId or assetKey.

          */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class ProductTailoringRemoveAssetActionImpl implements ProductTailoringRemoveAssetAction, ModelBase { @@ -66,7 +66,7 @@ public String getAction() { } /** - *

          The id of the tailored ProductVariant to update.

          + *

          The id of the tailored ProductVariant or Variant (BETA) to update.

          */ public Long getVariantId() { @@ -74,7 +74,7 @@ public Long getVariantId() { } /** - *

          The sku of the tailored ProductVariant to update.

          + *

          The sku of the tailored ProductVariant or Variant (BETA) to update.

          */ public String getSku() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveImageAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveImageAction.java index f24cb487ab..ac3e9b40e7 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveImageAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveImageAction.java @@ -15,7 +15,7 @@ import tools.jackson.databind.annotation.*; /** - *

          Either variantId or sku is required to reference a ProductVariant that exists.

          + *

          Either variantId or sku is required to reference a ProductVariant or Variant (BETA) that exists.

          * *
          * Example to create an instance using the builder pattern @@ -38,7 +38,7 @@ public interface ProductTailoringRemoveImageAction extends ProductTailoringUpdat String REMOVE_IMAGE = "removeImage"; /** - *

          The id of the tailored ProductVariant to update.

          + *

          The id of the tailored ProductVariant or Variant (BETA) to update.

          * @return variantId */ @@ -46,7 +46,7 @@ public interface ProductTailoringRemoveImageAction extends ProductTailoringUpdat public Long getVariantId(); /** - *

          The sku of the tailored ProductVariant to update.

          + *

          The sku of the tailored ProductVariant or Variant (BETA) to update.

          * @return sku */ @@ -70,14 +70,14 @@ public interface ProductTailoringRemoveImageAction extends ProductTailoringUpdat public Boolean getStaged(); /** - *

          The id of the tailored ProductVariant to update.

          + *

          The id of the tailored ProductVariant or Variant (BETA) to update.

          * @param variantId value to be set */ public void setVariantId(final Long variantId); /** - *

          The sku of the tailored ProductVariant to update.

          + *

          The sku of the tailored ProductVariant or Variant (BETA) to update.

          * @param sku value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveImageActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveImageActionBuilder.java index a23636bf47..202ee57179 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveImageActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveImageActionBuilder.java @@ -35,7 +35,7 @@ public class ProductTailoringRemoveImageActionBuilder implements BuilderThe id of the tailored ProductVariant to update.

          + *

          The id of the tailored ProductVariant or Variant (BETA) to update.

          * @param variantId value to be set * @return Builder */ @@ -46,7 +46,7 @@ public ProductTailoringRemoveImageActionBuilder variantId(@Nullable final Long v } /** - *

          The sku of the tailored ProductVariant to update.

          + *

          The sku of the tailored ProductVariant or Variant (BETA) to update.

          * @param sku value to be set * @return Builder */ @@ -79,7 +79,7 @@ public ProductTailoringRemoveImageActionBuilder staged(@Nullable final Boolean s } /** - *

          The id of the tailored ProductVariant to update.

          + *

          The id of the tailored ProductVariant or Variant (BETA) to update.

          * @return variantId */ @@ -89,7 +89,7 @@ public Long getVariantId() { } /** - *

          The sku of the tailored ProductVariant to update.

          + *

          The sku of the tailored ProductVariant or Variant (BETA) to update.

          * @return sku */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveImageActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveImageActionImpl.java index 994627b1c7..ad75de5d45 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveImageActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveImageActionImpl.java @@ -18,7 +18,7 @@ import tools.jackson.databind.annotation.*; /** - *

          Either variantId or sku is required to reference a ProductVariant that exists.

          + *

          Either variantId or sku is required to reference a ProductVariant or Variant (BETA) that exists.

          */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class ProductTailoringRemoveImageActionImpl implements ProductTailoringRemoveImageAction, ModelBase { @@ -63,7 +63,7 @@ public String getAction() { } /** - *

          The id of the tailored ProductVariant to update.

          + *

          The id of the tailored ProductVariant or Variant (BETA) to update.

          */ public Long getVariantId() { @@ -71,7 +71,7 @@ public Long getVariantId() { } /** - *

          The sku of the tailored ProductVariant to update.

          + *

          The sku of the tailored ProductVariant or Variant (BETA) to update.

          */ public String getSku() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveVariantAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveVariantAction.java index 0695a52b4b..77ff120a1f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveVariantAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveVariantAction.java @@ -36,7 +36,7 @@ public interface ProductTailoringRemoveVariantAction extends ProductTailoringUpd String REMOVE_VARIANT = "removeVariant"; /** - *

          The id of the ProductVariant to remove from the Tailoring.

          + *

          The id of the ProductVariant or Variant (BETA) to remove from the Tailoring.

          * @return id */ @@ -44,7 +44,7 @@ public interface ProductTailoringRemoveVariantAction extends ProductTailoringUpd public Long getId(); /** - *

          The sku of the ProductVariant to remove from the Tailoring.

          + *

          The sku of the ProductVariant or Variant (BETA) to remove from the Tailoring.

          * @return sku */ @@ -60,14 +60,14 @@ public interface ProductTailoringRemoveVariantAction extends ProductTailoringUpd public Boolean getStaged(); /** - *

          The id of the ProductVariant to remove from the Tailoring.

          + *

          The id of the ProductVariant or Variant (BETA) to remove from the Tailoring.

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

          The sku of the ProductVariant to remove from the Tailoring.

          + *

          The sku of the ProductVariant or Variant (BETA) to remove from the Tailoring.

          * @param sku value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveVariantActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveVariantActionBuilder.java index 91fd8c8df3..34c90df535 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveVariantActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveVariantActionBuilder.java @@ -32,7 +32,7 @@ public class ProductTailoringRemoveVariantActionBuilder implements BuilderThe id of the ProductVariant to remove from the Tailoring.

          + *

          The id of the ProductVariant or Variant (BETA) to remove from the Tailoring.

          * @param id value to be set * @return Builder */ @@ -43,7 +43,7 @@ public ProductTailoringRemoveVariantActionBuilder id(@Nullable final Long id) { } /** - *

          The sku of the ProductVariant to remove from the Tailoring.

          + *

          The sku of the ProductVariant or Variant (BETA) to remove from the Tailoring.

          * @param sku value to be set * @return Builder */ @@ -65,7 +65,7 @@ public ProductTailoringRemoveVariantActionBuilder staged(@Nullable final Boolean } /** - *

          The id of the ProductVariant to remove from the Tailoring.

          + *

          The id of the ProductVariant or Variant (BETA) to remove from the Tailoring.

          * @return id */ @@ -75,7 +75,7 @@ public Long getId() { } /** - *

          The sku of the ProductVariant to remove from the Tailoring.

          + *

          The sku of the ProductVariant or Variant (BETA) to remove from the Tailoring.

          * @return sku */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveVariantActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveVariantActionImpl.java index 9c15668908..8676bebea2 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveVariantActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveVariantActionImpl.java @@ -59,7 +59,7 @@ public String getAction() { } /** - *

          The id of the ProductVariant to remove from the Tailoring.

          + *

          The id of the ProductVariant or Variant (BETA) to remove from the Tailoring.

          */ public Long getId() { @@ -67,7 +67,7 @@ public Long getId() { } /** - *

          The sku of the ProductVariant to remove from the Tailoring.

          + *

          The sku of the ProductVariant or Variant (BETA) to remove from the Tailoring.

          */ public String getSku() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAttributeAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAttributeAction.java index dc6d126ed8..a05749daae 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAttributeAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAttributeAction.java @@ -38,7 +38,7 @@ public interface ProductTailoringSetAttributeAction extends ProductTailoringUpda String SET_ATTRIBUTE = "setAttribute"; /** - *

          The id of the ProductVariant to update. Required if sku is absent.

          + *

          The id of the ProductVariant or Variant (BETA) to update. Required if sku is absent.

          * @return variantId */ @@ -46,7 +46,7 @@ public interface ProductTailoringSetAttributeAction extends ProductTailoringUpda public Long getVariantId(); /** - *

          The sku of the ProductVariant to update. Required if variantId is absent.

          + *

          The sku of the ProductVariant or Variant (BETA) to update. Required if variantId is absent.

          * @return sku */ @@ -87,14 +87,14 @@ public interface ProductTailoringSetAttributeAction extends ProductTailoringUpda public Boolean getStaged(); /** - *

          The id of the ProductVariant to update. Required if sku is absent.

          + *

          The id of the ProductVariant or Variant (BETA) to update. Required if sku is absent.

          * @param variantId value to be set */ public void setVariantId(final Long variantId); /** - *

          The sku of the ProductVariant to update. Required if variantId is absent.

          + *

          The sku of the ProductVariant or Variant (BETA) to update. Required if variantId is absent.

          * @param sku value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAttributeActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAttributeActionBuilder.java index 1b1f2ab546..2bd6852070 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAttributeActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAttributeActionBuilder.java @@ -38,7 +38,7 @@ public class ProductTailoringSetAttributeActionBuilder implements BuilderThe id of the ProductVariant to update. Required if sku is absent.

          + *

          The id of the ProductVariant or Variant (BETA) to update. Required if sku is absent.

          * @param variantId value to be set * @return Builder */ @@ -49,7 +49,7 @@ public ProductTailoringSetAttributeActionBuilder variantId(@Nullable final Long } /** - *

          The sku of the ProductVariant to update. Required if variantId is absent.

          + *

          The sku of the ProductVariant or Variant (BETA) to update. Required if variantId is absent.

          * @param sku value to be set * @return Builder */ @@ -102,7 +102,7 @@ public ProductTailoringSetAttributeActionBuilder staged(@Nullable final Boolean } /** - *

          The id of the ProductVariant to update. Required if sku is absent.

          + *

          The id of the ProductVariant or Variant (BETA) to update. Required if sku is absent.

          * @return variantId */ @@ -112,7 +112,7 @@ public Long getVariantId() { } /** - *

          The sku of the ProductVariant to update. Required if variantId is absent.

          + *

          The sku of the ProductVariant or Variant (BETA) to update. Required if variantId is absent.

          * @return sku */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAttributeActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAttributeActionImpl.java index 6e3e7204c5..ef8f3823d1 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAttributeActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAttributeActionImpl.java @@ -66,7 +66,7 @@ public String getAction() { } /** - *

          The id of the ProductVariant to update. Required if sku is absent.

          + *

          The id of the ProductVariant or Variant (BETA) to update. Required if sku is absent.

          */ public Long getVariantId() { @@ -74,7 +74,7 @@ public Long getVariantId() { } /** - *

          The sku of the ProductVariant to update. Required if variantId is absent.

          + *

          The sku of the ProductVariant or Variant (BETA) to update. Required if variantId is absent.

          */ public String getSku() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetExternalImagesAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetExternalImagesAction.java index 4dc7128b9c..9239bfe62b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetExternalImagesAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetExternalImagesAction.java @@ -17,7 +17,7 @@ import tools.jackson.databind.annotation.*; /** - *

          Either variantId or sku is required to reference a ProductVariant that exists. Produces the ProductTailoringImagesSet Message.

          + *

          Either variantId or sku is required to reference a ProductVariant or Variant (BETA) that exists. Produces the ProductTailoringImagesSet Message.

          * *
          * Example to create an instance using the builder pattern @@ -39,7 +39,7 @@ public interface ProductTailoringSetExternalImagesAction extends ProductTailorin String SET_IMAGES = "setImages"; /** - *

          The id of the tailored ProductVariant to update.

          + *

          The id of the tailored ProductVariant or Variant (BETA) to update.

          * @return variantId */ @@ -47,7 +47,7 @@ public interface ProductTailoringSetExternalImagesAction extends ProductTailorin public Long getVariantId(); /** - *

          The sku of the tailored ProductVariant to update.

          + *

          The sku of the tailored ProductVariant or Variant (BETA) to update.

          * @return sku */ @@ -55,8 +55,8 @@ public interface ProductTailoringSetExternalImagesAction extends ProductTailorin public String getSku(); /** - *

          Images of the tailored ProductVariant.

          - *

          Don't provide this field if you want to remove all images from the tailored Product Variant. Set to [] (empty) if you want to hide all images of the original ProductVariant on the tailored ProductVariant.

          + *

          Images of the tailored ProductVariant or Variant (BETA).

          + *

          Don't provide this field if you want to remove all images from the tailored ProductVariant or Variant (BETA). Set to [] (empty) if you want to hide all images of the original ProductVariant or Variant (BETA) on the tailored ProductVariant or Variant (BETA).

          * @return images */ @Valid @@ -72,22 +72,22 @@ public interface ProductTailoringSetExternalImagesAction extends ProductTailorin public Boolean getStaged(); /** - *

          The id of the tailored ProductVariant to update.

          + *

          The id of the tailored ProductVariant or Variant (BETA) to update.

          * @param variantId value to be set */ public void setVariantId(final Long variantId); /** - *

          The sku of the tailored ProductVariant to update.

          + *

          The sku of the tailored ProductVariant or Variant (BETA) to update.

          * @param sku value to be set */ public void setSku(final String sku); /** - *

          Images of the tailored ProductVariant.

          - *

          Don't provide this field if you want to remove all images from the tailored Product Variant. Set to [] (empty) if you want to hide all images of the original ProductVariant on the tailored ProductVariant.

          + *

          Images of the tailored ProductVariant or Variant (BETA).

          + *

          Don't provide this field if you want to remove all images from the tailored ProductVariant or Variant (BETA). Set to [] (empty) if you want to hide all images of the original ProductVariant or Variant (BETA) on the tailored ProductVariant or Variant (BETA).

          * @param images values to be set */ @@ -95,8 +95,8 @@ public interface ProductTailoringSetExternalImagesAction extends ProductTailorin public void setImages(final Image... images); /** - *

          Images of the tailored ProductVariant.

          - *

          Don't provide this field if you want to remove all images from the tailored Product Variant. Set to [] (empty) if you want to hide all images of the original ProductVariant on the tailored ProductVariant.

          + *

          Images of the tailored ProductVariant or Variant (BETA).

          + *

          Don't provide this field if you want to remove all images from the tailored ProductVariant or Variant (BETA). Set to [] (empty) if you want to hide all images of the original ProductVariant or Variant (BETA) on the tailored ProductVariant or Variant (BETA).

          * @param images values to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetExternalImagesActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetExternalImagesActionBuilder.java index 477e5d8cc0..853dce50d6 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetExternalImagesActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetExternalImagesActionBuilder.java @@ -37,7 +37,7 @@ public class ProductTailoringSetExternalImagesActionBuilder private Boolean staged; /** - *

          The id of the tailored ProductVariant to update.

          + *

          The id of the tailored ProductVariant or Variant (BETA) to update.

          * @param variantId value to be set * @return Builder */ @@ -48,7 +48,7 @@ public ProductTailoringSetExternalImagesActionBuilder variantId(@Nullable final } /** - *

          The sku of the tailored ProductVariant to update.

          + *

          The sku of the tailored ProductVariant or Variant (BETA) to update.

          * @param sku value to be set * @return Builder */ @@ -59,8 +59,8 @@ public ProductTailoringSetExternalImagesActionBuilder sku(@Nullable final String } /** - *

          Images of the tailored ProductVariant.

          - *

          Don't provide this field if you want to remove all images from the tailored Product Variant. Set to [] (empty) if you want to hide all images of the original ProductVariant on the tailored ProductVariant.

          + *

          Images of the tailored ProductVariant or Variant (BETA).

          + *

          Don't provide this field if you want to remove all images from the tailored ProductVariant or Variant (BETA). Set to [] (empty) if you want to hide all images of the original ProductVariant or Variant (BETA) on the tailored ProductVariant or Variant (BETA).

          * @param images value to be set * @return Builder */ @@ -72,8 +72,8 @@ public ProductTailoringSetExternalImagesActionBuilder images( } /** - *

          Images of the tailored ProductVariant.

          - *

          Don't provide this field if you want to remove all images from the tailored Product Variant. Set to [] (empty) if you want to hide all images of the original ProductVariant on the tailored ProductVariant.

          + *

          Images of the tailored ProductVariant or Variant (BETA).

          + *

          Don't provide this field if you want to remove all images from the tailored ProductVariant or Variant (BETA). Set to [] (empty) if you want to hide all images of the original ProductVariant or Variant (BETA) on the tailored ProductVariant or Variant (BETA).

          * @param images value to be set * @return Builder */ @@ -85,8 +85,8 @@ public ProductTailoringSetExternalImagesActionBuilder images( } /** - *

          Images of the tailored ProductVariant.

          - *

          Don't provide this field if you want to remove all images from the tailored Product Variant. Set to [] (empty) if you want to hide all images of the original ProductVariant on the tailored ProductVariant.

          + *

          Images of the tailored ProductVariant or Variant (BETA).

          + *

          Don't provide this field if you want to remove all images from the tailored ProductVariant or Variant (BETA). Set to [] (empty) if you want to hide all images of the original ProductVariant or Variant (BETA) on the tailored ProductVariant or Variant (BETA).

          * @param images value to be set * @return Builder */ @@ -101,8 +101,8 @@ public ProductTailoringSetExternalImagesActionBuilder plusImages( } /** - *

          Images of the tailored ProductVariant.

          - *

          Don't provide this field if you want to remove all images from the tailored Product Variant. Set to [] (empty) if you want to hide all images of the original ProductVariant on the tailored ProductVariant.

          + *

          Images of the tailored ProductVariant or Variant (BETA).

          + *

          Don't provide this field if you want to remove all images from the tailored ProductVariant or Variant (BETA). Set to [] (empty) if you want to hide all images of the original ProductVariant or Variant (BETA) on the tailored ProductVariant or Variant (BETA).

          * @param builder function to build the images value * @return Builder */ @@ -117,8 +117,8 @@ public ProductTailoringSetExternalImagesActionBuilder plusImages( } /** - *

          Images of the tailored ProductVariant.

          - *

          Don't provide this field if you want to remove all images from the tailored Product Variant. Set to [] (empty) if you want to hide all images of the original ProductVariant on the tailored ProductVariant.

          + *

          Images of the tailored ProductVariant or Variant (BETA).

          + *

          Don't provide this field if you want to remove all images from the tailored ProductVariant or Variant (BETA). Set to [] (empty) if you want to hide all images of the original ProductVariant or Variant (BETA) on the tailored ProductVariant or Variant (BETA).

          * @param builder function to build the images value * @return Builder */ @@ -131,8 +131,8 @@ public ProductTailoringSetExternalImagesActionBuilder withImages( } /** - *

          Images of the tailored ProductVariant.

          - *

          Don't provide this field if you want to remove all images from the tailored Product Variant. Set to [] (empty) if you want to hide all images of the original ProductVariant on the tailored ProductVariant.

          + *

          Images of the tailored ProductVariant or Variant (BETA).

          + *

          Don't provide this field if you want to remove all images from the tailored ProductVariant or Variant (BETA). Set to [] (empty) if you want to hide all images of the original ProductVariant or Variant (BETA) on the tailored ProductVariant or Variant (BETA).

          * @param builder function to build the images value * @return Builder */ @@ -143,8 +143,8 @@ public ProductTailoringSetExternalImagesActionBuilder addImages( } /** - *

          Images of the tailored ProductVariant.

          - *

          Don't provide this field if you want to remove all images from the tailored Product Variant. Set to [] (empty) if you want to hide all images of the original ProductVariant on the tailored ProductVariant.

          + *

          Images of the tailored ProductVariant or Variant (BETA).

          + *

          Don't provide this field if you want to remove all images from the tailored ProductVariant or Variant (BETA). Set to [] (empty) if you want to hide all images of the original ProductVariant or Variant (BETA) on the tailored ProductVariant or Variant (BETA).

          * @param builder function to build the images value * @return Builder */ @@ -166,7 +166,7 @@ public ProductTailoringSetExternalImagesActionBuilder staged(@Nullable final Boo } /** - *

          The id of the tailored ProductVariant to update.

          + *

          The id of the tailored ProductVariant or Variant (BETA) to update.

          * @return variantId */ @@ -176,7 +176,7 @@ public Long getVariantId() { } /** - *

          The sku of the tailored ProductVariant to update.

          + *

          The sku of the tailored ProductVariant or Variant (BETA) to update.

          * @return sku */ @@ -186,8 +186,8 @@ public String getSku() { } /** - *

          Images of the tailored ProductVariant.

          - *

          Don't provide this field if you want to remove all images from the tailored Product Variant. Set to [] (empty) if you want to hide all images of the original ProductVariant on the tailored ProductVariant.

          + *

          Images of the tailored ProductVariant or Variant (BETA).

          + *

          Don't provide this field if you want to remove all images from the tailored ProductVariant or Variant (BETA). Set to [] (empty) if you want to hide all images of the original ProductVariant or Variant (BETA) on the tailored ProductVariant or Variant (BETA).

          * @return images */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetExternalImagesActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetExternalImagesActionImpl.java index bff77568b6..0d2a36bcd4 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetExternalImagesActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetExternalImagesActionImpl.java @@ -18,7 +18,7 @@ import tools.jackson.databind.annotation.*; /** - *

          Either variantId or sku is required to reference a ProductVariant that exists. Produces the ProductTailoringImagesSet Message.

          + *

          Either variantId or sku is required to reference a ProductVariant or Variant (BETA) that exists. Produces the ProductTailoringImagesSet Message.

          */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class ProductTailoringSetExternalImagesActionImpl implements ProductTailoringSetExternalImagesAction, ModelBase { @@ -64,7 +64,7 @@ public String getAction() { } /** - *

          The id of the tailored ProductVariant to update.

          + *

          The id of the tailored ProductVariant or Variant (BETA) to update.

          */ public Long getVariantId() { @@ -72,7 +72,7 @@ public Long getVariantId() { } /** - *

          The sku of the tailored ProductVariant to update.

          + *

          The sku of the tailored ProductVariant or Variant (BETA) to update.

          */ public String getSku() { @@ -80,8 +80,8 @@ public String getSku() { } /** - *

          Images of the tailored ProductVariant.

          - *

          Don't provide this field if you want to remove all images from the tailored Product Variant. Set to [] (empty) if you want to hide all images of the original ProductVariant on the tailored ProductVariant.

          + *

          Images of the tailored ProductVariant or Variant (BETA).

          + *

          Don't provide this field if you want to remove all images from the tailored ProductVariant or Variant (BETA). Set to [] (empty) if you want to hide all images of the original ProductVariant or Variant (BETA) on the tailored ProductVariant or Variant (BETA).

          */ public java.util.List getImages() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetImageLabelAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetImageLabelAction.java index db39bea5a3..f336531e46 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetImageLabelAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetImageLabelAction.java @@ -15,7 +15,7 @@ import tools.jackson.databind.annotation.*; /** - *

          Either variantId or sku is required to reference a ProductVariant that exists.

          + *

          Either variantId or sku is required to reference a ProductVariant or Variant (BETA) that exists.

          * *
          * Example to create an instance using the builder pattern @@ -38,7 +38,7 @@ public interface ProductTailoringSetImageLabelAction extends ProductTailoringUpd String SET_IMAGE_LABEL = "setImageLabel"; /** - *

          The sku of the tailored ProductVariant to update.

          + *

          The sku of the tailored ProductVariant or Variant (BETA) to update.

          * @return sku */ @@ -46,7 +46,7 @@ public interface ProductTailoringSetImageLabelAction extends ProductTailoringUpd public String getSku(); /** - *

          The id of the tailored ProductVariant to update.

          + *

          The id of the tailored ProductVariant or Variant (BETA) to update.

          * @return variantId */ @@ -78,14 +78,14 @@ public interface ProductTailoringSetImageLabelAction extends ProductTailoringUpd public Boolean getStaged(); /** - *

          The sku of the tailored ProductVariant to update.

          + *

          The sku of the tailored ProductVariant or Variant (BETA) to update.

          * @param sku value to be set */ public void setSku(final String sku); /** - *

          The id of the tailored ProductVariant to update.

          + *

          The id of the tailored ProductVariant or Variant (BETA) to update.

          * @param variantId value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetImageLabelActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetImageLabelActionBuilder.java index 04e5e173fe..a9fd7d1d86 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetImageLabelActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetImageLabelActionBuilder.java @@ -38,7 +38,7 @@ public class ProductTailoringSetImageLabelActionBuilder implements BuilderThe sku of the tailored ProductVariant to update.

          + *

          The sku of the tailored ProductVariant or Variant (BETA) to update.

          * @param sku value to be set * @return Builder */ @@ -49,7 +49,7 @@ public ProductTailoringSetImageLabelActionBuilder sku(@Nullable final String sku } /** - *

          The id of the tailored ProductVariant to update.

          + *

          The id of the tailored ProductVariant or Variant (BETA) to update.

          * @param variantId value to be set * @return Builder */ @@ -93,7 +93,7 @@ public ProductTailoringSetImageLabelActionBuilder staged(@Nullable final Boolean } /** - *

          The sku of the tailored ProductVariant to update.

          + *

          The sku of the tailored ProductVariant or Variant (BETA) to update.

          * @return sku */ @@ -103,7 +103,7 @@ public String getSku() { } /** - *

          The id of the tailored ProductVariant to update.

          + *

          The id of the tailored ProductVariant or Variant (BETA) to update.

          * @return variantId */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetImageLabelActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetImageLabelActionImpl.java index 99cf3e1bd8..a810cda2ee 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetImageLabelActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetImageLabelActionImpl.java @@ -18,7 +18,7 @@ import tools.jackson.databind.annotation.*; /** - *

          Either variantId or sku is required to reference a ProductVariant that exists.

          + *

          Either variantId or sku is required to reference a ProductVariant or Variant (BETA) that exists.

          */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class ProductTailoringSetImageLabelActionImpl implements ProductTailoringSetImageLabelAction, ModelBase { @@ -66,7 +66,7 @@ public String getAction() { } /** - *

          The sku of the tailored ProductVariant to update.

          + *

          The sku of the tailored ProductVariant or Variant (BETA) to update.

          */ public String getSku() { @@ -74,7 +74,7 @@ public String getSku() { } /** - *

          The id of the tailored ProductVariant to update.

          + *

          The id of the tailored ProductVariant or Variant (BETA) to update.

          */ public Long getVariantId() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductVariantTailoring.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductVariantTailoring.java index 962bab31e1..4d6fa5ba91 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductVariantTailoring.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductVariantTailoring.java @@ -19,7 +19,7 @@ import tools.jackson.databind.annotation.*; /** - *

          The tailoring of a ProductVariant.

          + *

          The tailoring of a ProductVariant or Variant (BETA).

          * *
          * Example to create an instance using the builder pattern @@ -36,7 +36,7 @@ public interface ProductVariantTailoring { /** - *

          The id of the tailored ProductVariant.

          + *

          The id of the tailored ProductVariant or Variant (BETA).

          * @return id */ @NotNull @@ -44,7 +44,7 @@ public interface ProductVariantTailoring { public Long getId(); /** - *

          Images of the tailored Product Variant. If present, these images will override the images of the corresponding ProductVariant in total.

          + *

          Images of the tailored Product Variant. If present, these images will override the images of the corresponding ProductVariant or Variant (BETA) in total.

          * @return images */ @Valid @@ -52,7 +52,7 @@ public interface ProductVariantTailoring { public List getImages(); /** - *

          Media assets of the tailored Product Variant. If present, these assets will override the assets of the corresponding ProductVariant in total.

          + *

          Media assets of the tailored Product Variant. If present, these assets will override the assets of the corresponding ProductVariant or Variant (BETA) in total.

          * @return assets */ @Valid @@ -60,10 +60,9 @@ public interface ProductVariantTailoring { public List getAssets(); /** - *

          Attributes of the tailored Product Variant. If present, these Attributes are selectively merged into the attributes of the corresponding ProductVariant:

          + *

          Attributes of the tailored Product Variant. If present, these Attributes are selectively merged into the attributes of the corresponding ProductVariant or Variant (BETA):

          *
            - *
          • If the ProductVariant contains an Attribute with the same name, its value is overwritten,
          • - *
          • otherwise the Attribute and its value are added to the ProductVariant.
          • + *
          • If the ProductVariant or Variant (BETA) contains an Attribute with the same name, its value is overwritten. Otherwise, the Attribute and its value are added to the ProductVariant or Variant (BETA).
          • *
          * @return attributes */ @@ -72,14 +71,14 @@ public interface ProductVariantTailoring { public List getAttributes(); /** - *

          The id of the tailored ProductVariant.

          + *

          The id of the tailored ProductVariant or Variant (BETA).

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

          Images of the tailored Product Variant. If present, these images will override the images of the corresponding ProductVariant in total.

          + *

          Images of the tailored Product Variant. If present, these images will override the images of the corresponding ProductVariant or Variant (BETA) in total.

          * @param images values to be set */ @@ -87,14 +86,14 @@ public interface ProductVariantTailoring { public void setImages(final Image... images); /** - *

          Images of the tailored Product Variant. If present, these images will override the images of the corresponding ProductVariant in total.

          + *

          Images of the tailored Product Variant. If present, these images will override the images of the corresponding ProductVariant or Variant (BETA) in total.

          * @param images values to be set */ public void setImages(final List images); /** - *

          Media assets of the tailored Product Variant. If present, these assets will override the assets of the corresponding ProductVariant in total.

          + *

          Media assets of the tailored Product Variant. If present, these assets will override the assets of the corresponding ProductVariant or Variant (BETA) in total.

          * @param assets values to be set */ @@ -102,17 +101,16 @@ public interface ProductVariantTailoring { public void setAssets(final Asset... assets); /** - *

          Media assets of the tailored Product Variant. If present, these assets will override the assets of the corresponding ProductVariant in total.

          + *

          Media assets of the tailored Product Variant. If present, these assets will override the assets of the corresponding ProductVariant or Variant (BETA) in total.

          * @param assets values to be set */ public void setAssets(final List assets); /** - *

          Attributes of the tailored Product Variant. If present, these Attributes are selectively merged into the attributes of the corresponding ProductVariant:

          + *

          Attributes of the tailored Product Variant. If present, these Attributes are selectively merged into the attributes of the corresponding ProductVariant or Variant (BETA):

          *
            - *
          • If the ProductVariant contains an Attribute with the same name, its value is overwritten,
          • - *
          • otherwise the Attribute and its value are added to the ProductVariant.
          • + *
          • If the ProductVariant or Variant (BETA) contains an Attribute with the same name, its value is overwritten. Otherwise, the Attribute and its value are added to the ProductVariant or Variant (BETA).
          • *
          * @param attributes values to be set */ @@ -121,10 +119,9 @@ public interface ProductVariantTailoring { public void setAttributes(final ProductTailoringAttribute... attributes); /** - *

          Attributes of the tailored Product Variant. If present, these Attributes are selectively merged into the attributes of the corresponding ProductVariant:

          + *

          Attributes of the tailored Product Variant. If present, these Attributes are selectively merged into the attributes of the corresponding ProductVariant or Variant (BETA):

          *
            - *
          • If the ProductVariant contains an Attribute with the same name, its value is overwritten,
          • - *
          • otherwise the Attribute and its value are added to the ProductVariant.
          • + *
          • If the ProductVariant or Variant (BETA) contains an Attribute with the same name, its value is overwritten. Otherwise, the Attribute and its value are added to the ProductVariant or Variant (BETA).
          • *
          * @param attributes values to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductVariantTailoringBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductVariantTailoringBuilder.java index c0f5c45cb1..aa4eeb5e80 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductVariantTailoringBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductVariantTailoringBuilder.java @@ -36,7 +36,7 @@ public class ProductVariantTailoringBuilder implements Builder attributes; /** - *

          The id of the tailored ProductVariant.

          + *

          The id of the tailored ProductVariant or Variant (BETA).

          * @param id value to be set * @return Builder */ @@ -47,7 +47,7 @@ public ProductVariantTailoringBuilder id(final Long id) { } /** - *

          Images of the tailored Product Variant. If present, these images will override the images of the corresponding ProductVariant in total.

          + *

          Images of the tailored Product Variant. If present, these images will override the images of the corresponding ProductVariant or Variant (BETA) in total.

          * @param images value to be set * @return Builder */ @@ -58,7 +58,7 @@ public ProductVariantTailoringBuilder images(@Nullable final com.commercetools.a } /** - *

          Images of the tailored Product Variant. If present, these images will override the images of the corresponding ProductVariant in total.

          + *

          Images of the tailored Product Variant. If present, these images will override the images of the corresponding ProductVariant or Variant (BETA) in total.

          * @param images value to be set * @return Builder */ @@ -70,7 +70,7 @@ public ProductVariantTailoringBuilder images( } /** - *

          Images of the tailored Product Variant. If present, these images will override the images of the corresponding ProductVariant in total.

          + *

          Images of the tailored Product Variant. If present, these images will override the images of the corresponding ProductVariant or Variant (BETA) in total.

          * @param images value to be set * @return Builder */ @@ -85,7 +85,7 @@ public ProductVariantTailoringBuilder plusImages( } /** - *

          Images of the tailored Product Variant. If present, these images will override the images of the corresponding ProductVariant in total.

          + *

          Images of the tailored Product Variant. If present, these images will override the images of the corresponding ProductVariant or Variant (BETA) in total.

          * @param builder function to build the images value * @return Builder */ @@ -100,7 +100,7 @@ public ProductVariantTailoringBuilder plusImages( } /** - *

          Images of the tailored Product Variant. If present, these images will override the images of the corresponding ProductVariant in total.

          + *

          Images of the tailored Product Variant. If present, these images will override the images of the corresponding ProductVariant or Variant (BETA) in total.

          * @param builder function to build the images value * @return Builder */ @@ -113,7 +113,7 @@ public ProductVariantTailoringBuilder withImages( } /** - *

          Images of the tailored Product Variant. If present, these images will override the images of the corresponding ProductVariant in total.

          + *

          Images of the tailored Product Variant. If present, these images will override the images of the corresponding ProductVariant or Variant (BETA) in total.

          * @param builder function to build the images value * @return Builder */ @@ -124,7 +124,7 @@ public ProductVariantTailoringBuilder addImages( } /** - *

          Images of the tailored Product Variant. If present, these images will override the images of the corresponding ProductVariant in total.

          + *

          Images of the tailored Product Variant. If present, these images will override the images of the corresponding ProductVariant or Variant (BETA) in total.

          * @param builder function to build the images value * @return Builder */ @@ -135,7 +135,7 @@ public ProductVariantTailoringBuilder setImages( } /** - *

          Media assets of the tailored Product Variant. If present, these assets will override the assets of the corresponding ProductVariant in total.

          + *

          Media assets of the tailored Product Variant. If present, these assets will override the assets of the corresponding ProductVariant or Variant (BETA) in total.

          * @param assets value to be set * @return Builder */ @@ -146,7 +146,7 @@ public ProductVariantTailoringBuilder assets(@Nullable final com.commercetools.a } /** - *

          Media assets of the tailored Product Variant. If present, these assets will override the assets of the corresponding ProductVariant in total.

          + *

          Media assets of the tailored Product Variant. If present, these assets will override the assets of the corresponding ProductVariant or Variant (BETA) in total.

          * @param assets value to be set * @return Builder */ @@ -158,7 +158,7 @@ public ProductVariantTailoringBuilder assets( } /** - *

          Media assets of the tailored Product Variant. If present, these assets will override the assets of the corresponding ProductVariant in total.

          + *

          Media assets of the tailored Product Variant. If present, these assets will override the assets of the corresponding ProductVariant or Variant (BETA) in total.

          * @param assets value to be set * @return Builder */ @@ -173,7 +173,7 @@ public ProductVariantTailoringBuilder plusAssets( } /** - *

          Media assets of the tailored Product Variant. If present, these assets will override the assets of the corresponding ProductVariant in total.

          + *

          Media assets of the tailored Product Variant. If present, these assets will override the assets of the corresponding ProductVariant or Variant (BETA) in total.

          * @param builder function to build the assets value * @return Builder */ @@ -188,7 +188,7 @@ public ProductVariantTailoringBuilder plusAssets( } /** - *

          Media assets of the tailored Product Variant. If present, these assets will override the assets of the corresponding ProductVariant in total.

          + *

          Media assets of the tailored Product Variant. If present, these assets will override the assets of the corresponding ProductVariant or Variant (BETA) in total.

          * @param builder function to build the assets value * @return Builder */ @@ -201,7 +201,7 @@ public ProductVariantTailoringBuilder withAssets( } /** - *

          Media assets of the tailored Product Variant. If present, these assets will override the assets of the corresponding ProductVariant in total.

          + *

          Media assets of the tailored Product Variant. If present, these assets will override the assets of the corresponding ProductVariant or Variant (BETA) in total.

          * @param builder function to build the assets value * @return Builder */ @@ -212,7 +212,7 @@ public ProductVariantTailoringBuilder addAssets( } /** - *

          Media assets of the tailored Product Variant. If present, these assets will override the assets of the corresponding ProductVariant in total.

          + *

          Media assets of the tailored Product Variant. If present, these assets will override the assets of the corresponding ProductVariant or Variant (BETA) in total.

          * @param builder function to build the assets value * @return Builder */ @@ -223,10 +223,9 @@ public ProductVariantTailoringBuilder setAssets( } /** - *

          Attributes of the tailored Product Variant. If present, these Attributes are selectively merged into the attributes of the corresponding ProductVariant:

          + *

          Attributes of the tailored Product Variant. If present, these Attributes are selectively merged into the attributes of the corresponding ProductVariant or Variant (BETA):

          *
            - *
          • If the ProductVariant contains an Attribute with the same name, its value is overwritten,
          • - *
          • otherwise the Attribute and its value are added to the ProductVariant.
          • + *
          • If the ProductVariant or Variant (BETA) contains an Attribute with the same name, its value is overwritten. Otherwise, the Attribute and its value are added to the ProductVariant or Variant (BETA).
          • *
          * @param attributes value to be set * @return Builder @@ -239,10 +238,9 @@ public ProductVariantTailoringBuilder attributes( } /** - *

          Attributes of the tailored Product Variant. If present, these Attributes are selectively merged into the attributes of the corresponding ProductVariant:

          + *

          Attributes of the tailored Product Variant. If present, these Attributes are selectively merged into the attributes of the corresponding ProductVariant or Variant (BETA):

          *
            - *
          • If the ProductVariant contains an Attribute with the same name, its value is overwritten,
          • - *
          • otherwise the Attribute and its value are added to the ProductVariant.
          • + *
          • If the ProductVariant or Variant (BETA) contains an Attribute with the same name, its value is overwritten. Otherwise, the Attribute and its value are added to the ProductVariant or Variant (BETA).
          • *
          * @param attributes value to be set * @return Builder @@ -255,10 +253,9 @@ public ProductVariantTailoringBuilder attributes( } /** - *

          Attributes of the tailored Product Variant. If present, these Attributes are selectively merged into the attributes of the corresponding ProductVariant:

          + *

          Attributes of the tailored Product Variant. If present, these Attributes are selectively merged into the attributes of the corresponding ProductVariant or Variant (BETA):

          *
            - *
          • If the ProductVariant contains an Attribute with the same name, its value is overwritten,
          • - *
          • otherwise the Attribute and its value are added to the ProductVariant.
          • + *
          • If the ProductVariant or Variant (BETA) contains an Attribute with the same name, its value is overwritten. Otherwise, the Attribute and its value are added to the ProductVariant or Variant (BETA).
          • *
          * @param attributes value to be set * @return Builder @@ -274,10 +271,9 @@ public ProductVariantTailoringBuilder plusAttributes( } /** - *

          Attributes of the tailored Product Variant. If present, these Attributes are selectively merged into the attributes of the corresponding ProductVariant:

          + *

          Attributes of the tailored Product Variant. If present, these Attributes are selectively merged into the attributes of the corresponding ProductVariant or Variant (BETA):

          *
            - *
          • If the ProductVariant contains an Attribute with the same name, its value is overwritten,
          • - *
          • otherwise the Attribute and its value are added to the ProductVariant.
          • + *
          • If the ProductVariant or Variant (BETA) contains an Attribute with the same name, its value is overwritten. Otherwise, the Attribute and its value are added to the ProductVariant or Variant (BETA).
          • *
          * @param builder function to build the attributes value * @return Builder @@ -295,10 +291,9 @@ public ProductVariantTailoringBuilder plusAttributes( } /** - *

          Attributes of the tailored Product Variant. If present, these Attributes are selectively merged into the attributes of the corresponding ProductVariant:

          + *

          Attributes of the tailored Product Variant. If present, these Attributes are selectively merged into the attributes of the corresponding ProductVariant or Variant (BETA):

          *
            - *
          • If the ProductVariant contains an Attribute with the same name, its value is overwritten,
          • - *
          • otherwise the Attribute and its value are added to the ProductVariant.
          • + *
          • If the ProductVariant or Variant (BETA) contains an Attribute with the same name, its value is overwritten. Otherwise, the Attribute and its value are added to the ProductVariant or Variant (BETA).
          • *
          * @param builder function to build the attributes value * @return Builder @@ -314,10 +309,9 @@ public ProductVariantTailoringBuilder withAttributes( } /** - *

          Attributes of the tailored Product Variant. If present, these Attributes are selectively merged into the attributes of the corresponding ProductVariant:

          + *

          Attributes of the tailored Product Variant. If present, these Attributes are selectively merged into the attributes of the corresponding ProductVariant or Variant (BETA):

          *
            - *
          • If the ProductVariant contains an Attribute with the same name, its value is overwritten,
          • - *
          • otherwise the Attribute and its value are added to the ProductVariant.
          • + *
          • If the ProductVariant or Variant (BETA) contains an Attribute with the same name, its value is overwritten. Otherwise, the Attribute and its value are added to the ProductVariant or Variant (BETA).
          • *
          * @param builder function to build the attributes value * @return Builder @@ -330,10 +324,9 @@ public ProductVariantTailoringBuilder addAttributes( } /** - *

          Attributes of the tailored Product Variant. If present, these Attributes are selectively merged into the attributes of the corresponding ProductVariant:

          + *

          Attributes of the tailored Product Variant. If present, these Attributes are selectively merged into the attributes of the corresponding ProductVariant or Variant (BETA):

          *
            - *
          • If the ProductVariant contains an Attribute with the same name, its value is overwritten,
          • - *
          • otherwise the Attribute and its value are added to the ProductVariant.
          • + *
          • If the ProductVariant or Variant (BETA) contains an Attribute with the same name, its value is overwritten. Otherwise, the Attribute and its value are added to the ProductVariant or Variant (BETA).
          • *
          * @param builder function to build the attributes value * @return Builder @@ -346,7 +339,7 @@ public ProductVariantTailoringBuilder setAttributes( } /** - *

          The id of the tailored ProductVariant.

          + *

          The id of the tailored ProductVariant or Variant (BETA).

          * @return id */ @@ -355,7 +348,7 @@ public Long getId() { } /** - *

          Images of the tailored Product Variant. If present, these images will override the images of the corresponding ProductVariant in total.

          + *

          Images of the tailored Product Variant. If present, these images will override the images of the corresponding ProductVariant or Variant (BETA) in total.

          * @return images */ @@ -365,7 +358,7 @@ public java.util.List getImages() { } /** - *

          Media assets of the tailored Product Variant. If present, these assets will override the assets of the corresponding ProductVariant in total.

          + *

          Media assets of the tailored Product Variant. If present, these assets will override the assets of the corresponding ProductVariant or Variant (BETA) in total.

          * @return assets */ @@ -375,10 +368,9 @@ public java.util.List getAssets() { } /** - *

          Attributes of the tailored Product Variant. If present, these Attributes are selectively merged into the attributes of the corresponding ProductVariant:

          + *

          Attributes of the tailored Product Variant. If present, these Attributes are selectively merged into the attributes of the corresponding ProductVariant or Variant (BETA):

          *
            - *
          • If the ProductVariant contains an Attribute with the same name, its value is overwritten,
          • - *
          • otherwise the Attribute and its value are added to the ProductVariant.
          • + *
          • If the ProductVariant or Variant (BETA) contains an Attribute with the same name, its value is overwritten. Otherwise, the Attribute and its value are added to the ProductVariant or Variant (BETA).
          • *
          * @return attributes */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductVariantTailoringDraft.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductVariantTailoringDraft.java index a2e33fa179..558eb6160f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductVariantTailoringDraft.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductVariantTailoringDraft.java @@ -18,7 +18,7 @@ import tools.jackson.databind.annotation.*; /** - *

          Either id or sku is required to reference a ProductVariant that exists.

          + *

          Either id or sku is required to reference a ProductVariant or Variant (BETA) that exists.

          * *
          * Example to create an instance using the builder pattern @@ -34,7 +34,7 @@ public interface ProductVariantTailoringDraft extends io.vrap.rmf.base.client.Draft { /** - *

          The id of the ProductVariant to be tailored.

          + *

          The id of the ProductVariant or Variant (BETA) to be tailored.

          * @return id */ @@ -42,7 +42,7 @@ public interface ProductVariantTailoringDraft extends io.vrap.rmf.base.client.Dr public Long getId(); /** - *

          The sku of the ProductVariant to be tailored.

          + *

          The sku of the ProductVariant or Variant (BETA) to be tailored.

          * @return sku */ @@ -66,10 +66,9 @@ public interface ProductVariantTailoringDraft extends io.vrap.rmf.base.client.Dr public List getAssets(); /** - *

          Attributes of the tailored Product Variant according to the respective AttributeDefinition. If provided, these Attributes are selectively merged into the attributes of the corresponding ProductVariant:

          + *

          Attributes of the tailored Product Variant according to the respective AttributeDefinition. If provided, these Attributes are selectively merged into the attributes of the corresponding ProductVariant or Variant (BETA):

          *
            - *
          • If the ProductVariant contains an Attribute with the same name, its value is overwritten,
          • - *
          • otherwise the Attribute and its value are added to the ProductVariant.
          • + *
          • If the ProductVariant or Variant (BETA) contains an Attribute with the same name, its value is overwritten. Otherwise, the Attribute and its value are added to the ProductVariant or Variant (BETA).
          • *
          * @return attributes */ @@ -78,14 +77,14 @@ public interface ProductVariantTailoringDraft extends io.vrap.rmf.base.client.Dr public List getAttributes(); /** - *

          The id of the ProductVariant to be tailored.

          + *

          The id of the ProductVariant or Variant (BETA) to be tailored.

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

          The sku of the ProductVariant to be tailored.

          + *

          The sku of the ProductVariant or Variant (BETA) to be tailored.

          * @param sku value to be set */ @@ -122,10 +121,9 @@ public interface ProductVariantTailoringDraft extends io.vrap.rmf.base.client.Dr public void setAssets(final List assets); /** - *

          Attributes of the tailored Product Variant according to the respective AttributeDefinition. If provided, these Attributes are selectively merged into the attributes of the corresponding ProductVariant:

          + *

          Attributes of the tailored Product Variant according to the respective AttributeDefinition. If provided, these Attributes are selectively merged into the attributes of the corresponding ProductVariant or Variant (BETA):

          *
            - *
          • If the ProductVariant contains an Attribute with the same name, its value is overwritten,
          • - *
          • otherwise the Attribute and its value are added to the ProductVariant.
          • + *
          • If the ProductVariant or Variant (BETA) contains an Attribute with the same name, its value is overwritten. Otherwise, the Attribute and its value are added to the ProductVariant or Variant (BETA).
          • *
          * @param attributes values to be set */ @@ -134,10 +132,9 @@ public interface ProductVariantTailoringDraft extends io.vrap.rmf.base.client.Dr public void setAttributes(final ProductTailoringAttribute... attributes); /** - *

          Attributes of the tailored Product Variant according to the respective AttributeDefinition. If provided, these Attributes are selectively merged into the attributes of the corresponding ProductVariant:

          + *

          Attributes of the tailored Product Variant according to the respective AttributeDefinition. If provided, these Attributes are selectively merged into the attributes of the corresponding ProductVariant or Variant (BETA):

          *
            - *
          • If the ProductVariant contains an Attribute with the same name, its value is overwritten,
          • - *
          • otherwise the Attribute and its value are added to the ProductVariant.
          • + *
          • If the ProductVariant or Variant (BETA) contains an Attribute with the same name, its value is overwritten. Otherwise, the Attribute and its value are added to the ProductVariant or Variant (BETA).
          • *
          * @param attributes values to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductVariantTailoringDraftBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductVariantTailoringDraftBuilder.java index 9c1a4b5965..9c7a071a50 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductVariantTailoringDraftBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductVariantTailoringDraftBuilder.java @@ -39,7 +39,7 @@ public class ProductVariantTailoringDraftBuilder implements Builder attributes; /** - *

          The id of the ProductVariant to be tailored.

          + *

          The id of the ProductVariant or Variant (BETA) to be tailored.

          * @param id value to be set * @return Builder */ @@ -50,7 +50,7 @@ public ProductVariantTailoringDraftBuilder id(@Nullable final Long id) { } /** - *

          The sku of the ProductVariant to be tailored.

          + *

          The sku of the ProductVariant or Variant (BETA) to be tailored.

          * @param sku value to be set * @return Builder */ @@ -239,10 +239,9 @@ public ProductVariantTailoringDraftBuilder setAssets( } /** - *

          Attributes of the tailored Product Variant according to the respective AttributeDefinition. If provided, these Attributes are selectively merged into the attributes of the corresponding ProductVariant:

          + *

          Attributes of the tailored Product Variant according to the respective AttributeDefinition. If provided, these Attributes are selectively merged into the attributes of the corresponding ProductVariant or Variant (BETA):

          *
            - *
          • If the ProductVariant contains an Attribute with the same name, its value is overwritten,
          • - *
          • otherwise the Attribute and its value are added to the ProductVariant.
          • + *
          • If the ProductVariant or Variant (BETA) contains an Attribute with the same name, its value is overwritten. Otherwise, the Attribute and its value are added to the ProductVariant or Variant (BETA).
          • *
          * @param attributes value to be set * @return Builder @@ -255,10 +254,9 @@ public ProductVariantTailoringDraftBuilder attributes( } /** - *

          Attributes of the tailored Product Variant according to the respective AttributeDefinition. If provided, these Attributes are selectively merged into the attributes of the corresponding ProductVariant:

          + *

          Attributes of the tailored Product Variant according to the respective AttributeDefinition. If provided, these Attributes are selectively merged into the attributes of the corresponding ProductVariant or Variant (BETA):

          *
            - *
          • If the ProductVariant contains an Attribute with the same name, its value is overwritten,
          • - *
          • otherwise the Attribute and its value are added to the ProductVariant.
          • + *
          • If the ProductVariant or Variant (BETA) contains an Attribute with the same name, its value is overwritten. Otherwise, the Attribute and its value are added to the ProductVariant or Variant (BETA).
          • *
          * @param attributes value to be set * @return Builder @@ -271,10 +269,9 @@ public ProductVariantTailoringDraftBuilder attributes( } /** - *

          Attributes of the tailored Product Variant according to the respective AttributeDefinition. If provided, these Attributes are selectively merged into the attributes of the corresponding ProductVariant:

          + *

          Attributes of the tailored Product Variant according to the respective AttributeDefinition. If provided, these Attributes are selectively merged into the attributes of the corresponding ProductVariant or Variant (BETA):

          *
            - *
          • If the ProductVariant contains an Attribute with the same name, its value is overwritten,
          • - *
          • otherwise the Attribute and its value are added to the ProductVariant.
          • + *
          • If the ProductVariant or Variant (BETA) contains an Attribute with the same name, its value is overwritten. Otherwise, the Attribute and its value are added to the ProductVariant or Variant (BETA).
          • *
          * @param attributes value to be set * @return Builder @@ -290,10 +287,9 @@ public ProductVariantTailoringDraftBuilder plusAttributes( } /** - *

          Attributes of the tailored Product Variant according to the respective AttributeDefinition. If provided, these Attributes are selectively merged into the attributes of the corresponding ProductVariant:

          + *

          Attributes of the tailored Product Variant according to the respective AttributeDefinition. If provided, these Attributes are selectively merged into the attributes of the corresponding ProductVariant or Variant (BETA):

          *
            - *
          • If the ProductVariant contains an Attribute with the same name, its value is overwritten,
          • - *
          • otherwise the Attribute and its value are added to the ProductVariant.
          • + *
          • If the ProductVariant or Variant (BETA) contains an Attribute with the same name, its value is overwritten. Otherwise, the Attribute and its value are added to the ProductVariant or Variant (BETA).
          • *
          * @param builder function to build the attributes value * @return Builder @@ -311,10 +307,9 @@ public ProductVariantTailoringDraftBuilder plusAttributes( } /** - *

          Attributes of the tailored Product Variant according to the respective AttributeDefinition. If provided, these Attributes are selectively merged into the attributes of the corresponding ProductVariant:

          + *

          Attributes of the tailored Product Variant according to the respective AttributeDefinition. If provided, these Attributes are selectively merged into the attributes of the corresponding ProductVariant or Variant (BETA):

          *
            - *
          • If the ProductVariant contains an Attribute with the same name, its value is overwritten,
          • - *
          • otherwise the Attribute and its value are added to the ProductVariant.
          • + *
          • If the ProductVariant or Variant (BETA) contains an Attribute with the same name, its value is overwritten. Otherwise, the Attribute and its value are added to the ProductVariant or Variant (BETA).
          • *
          * @param builder function to build the attributes value * @return Builder @@ -330,10 +325,9 @@ public ProductVariantTailoringDraftBuilder withAttributes( } /** - *

          Attributes of the tailored Product Variant according to the respective AttributeDefinition. If provided, these Attributes are selectively merged into the attributes of the corresponding ProductVariant:

          + *

          Attributes of the tailored Product Variant according to the respective AttributeDefinition. If provided, these Attributes are selectively merged into the attributes of the corresponding ProductVariant or Variant (BETA):

          *
            - *
          • If the ProductVariant contains an Attribute with the same name, its value is overwritten,
          • - *
          • otherwise the Attribute and its value are added to the ProductVariant.
          • + *
          • If the ProductVariant or Variant (BETA) contains an Attribute with the same name, its value is overwritten. Otherwise, the Attribute and its value are added to the ProductVariant or Variant (BETA).
          • *
          * @param builder function to build the attributes value * @return Builder @@ -346,10 +340,9 @@ public ProductVariantTailoringDraftBuilder addAttributes( } /** - *

          Attributes of the tailored Product Variant according to the respective AttributeDefinition. If provided, these Attributes are selectively merged into the attributes of the corresponding ProductVariant:

          + *

          Attributes of the tailored Product Variant according to the respective AttributeDefinition. If provided, these Attributes are selectively merged into the attributes of the corresponding ProductVariant or Variant (BETA):

          *
            - *
          • If the ProductVariant contains an Attribute with the same name, its value is overwritten,
          • - *
          • otherwise the Attribute and its value are added to the ProductVariant.
          • + *
          • If the ProductVariant or Variant (BETA) contains an Attribute with the same name, its value is overwritten. Otherwise, the Attribute and its value are added to the ProductVariant or Variant (BETA).
          • *
          * @param builder function to build the attributes value * @return Builder @@ -362,7 +355,7 @@ public ProductVariantTailoringDraftBuilder setAttributes( } /** - *

          The id of the ProductVariant to be tailored.

          + *

          The id of the ProductVariant or Variant (BETA) to be tailored.

          * @return id */ @@ -372,7 +365,7 @@ public Long getId() { } /** - *

          The sku of the ProductVariant to be tailored.

          + *

          The sku of the ProductVariant or Variant (BETA) to be tailored.

          * @return sku */ @@ -402,10 +395,9 @@ public java.util.List getAssets() { } /** - *

          Attributes of the tailored Product Variant according to the respective AttributeDefinition. If provided, these Attributes are selectively merged into the attributes of the corresponding ProductVariant:

          + *

          Attributes of the tailored Product Variant according to the respective AttributeDefinition. If provided, these Attributes are selectively merged into the attributes of the corresponding ProductVariant or Variant (BETA):

          *
            - *
          • If the ProductVariant contains an Attribute with the same name, its value is overwritten,
          • - *
          • otherwise the Attribute and its value are added to the ProductVariant.
          • + *
          • If the ProductVariant or Variant (BETA) contains an Attribute with the same name, its value is overwritten. Otherwise, the Attribute and its value are added to the ProductVariant or Variant (BETA).
          • *
          * @return attributes */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductVariantTailoringDraftImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductVariantTailoringDraftImpl.java index cc29395164..d8d20917a7 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductVariantTailoringDraftImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductVariantTailoringDraftImpl.java @@ -18,7 +18,7 @@ import tools.jackson.databind.annotation.*; /** - *

          Either id or sku is required to reference a ProductVariant that exists.

          + *

          Either id or sku is required to reference a ProductVariant or Variant (BETA) that exists.

          */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class ProductVariantTailoringDraftImpl implements ProductVariantTailoringDraft, ModelBase { @@ -55,7 +55,7 @@ public ProductVariantTailoringDraftImpl() { } /** - *

          The id of the ProductVariant to be tailored.

          + *

          The id of the ProductVariant or Variant (BETA) to be tailored.

          */ public Long getId() { @@ -63,7 +63,7 @@ public Long getId() { } /** - *

          The sku of the ProductVariant to be tailored.

          + *

          The sku of the ProductVariant or Variant (BETA) to be tailored.

          */ public String getSku() { @@ -87,10 +87,9 @@ public java.util.List getAssets() { } /** - *

          Attributes of the tailored Product Variant according to the respective AttributeDefinition. If provided, these Attributes are selectively merged into the attributes of the corresponding ProductVariant:

          + *

          Attributes of the tailored Product Variant according to the respective AttributeDefinition. If provided, these Attributes are selectively merged into the attributes of the corresponding ProductVariant or Variant (BETA):

          *
            - *
          • If the ProductVariant contains an Attribute with the same name, its value is overwritten,
          • - *
          • otherwise the Attribute and its value are added to the ProductVariant.
          • + *
          • If the ProductVariant or Variant (BETA) contains an Attribute with the same name, its value is overwritten. Otherwise, the Attribute and its value are added to the ProductVariant or Variant (BETA).
          • *
          */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductVariantTailoringImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductVariantTailoringImpl.java index 71cfcc2382..c2788ac262 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductVariantTailoringImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductVariantTailoringImpl.java @@ -18,7 +18,7 @@ import tools.jackson.databind.annotation.*; /** - *

          The tailoring of a ProductVariant.

          + *

          The tailoring of a ProductVariant or Variant (BETA).

          */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class ProductVariantTailoringImpl implements ProductVariantTailoring, ModelBase { @@ -52,7 +52,7 @@ public ProductVariantTailoringImpl() { } /** - *

          The id of the tailored ProductVariant.

          + *

          The id of the tailored ProductVariant or Variant (BETA).

          */ public Long getId() { @@ -60,7 +60,7 @@ public Long getId() { } /** - *

          Images of the tailored Product Variant. If present, these images will override the images of the corresponding ProductVariant in total.

          + *

          Images of the tailored Product Variant. If present, these images will override the images of the corresponding ProductVariant or Variant (BETA) in total.

          */ public java.util.List getImages() { @@ -68,7 +68,7 @@ public java.util.List getImages() { } /** - *

          Media assets of the tailored Product Variant. If present, these assets will override the assets of the corresponding ProductVariant in total.

          + *

          Media assets of the tailored Product Variant. If present, these assets will override the assets of the corresponding ProductVariant or Variant (BETA) in total.

          */ public java.util.List getAssets() { @@ -76,10 +76,9 @@ public java.util.List getAssets() { } /** - *

          Attributes of the tailored Product Variant. If present, these Attributes are selectively merged into the attributes of the corresponding ProductVariant:

          + *

          Attributes of the tailored Product Variant. If present, these Attributes are selectively merged into the attributes of the corresponding ProductVariant or Variant (BETA):

          *
            - *
          • If the ProductVariant contains an Attribute with the same name, its value is overwritten,
          • - *
          • otherwise the Attribute and its value are added to the ProductVariant.
          • + *
          • If the ProductVariant or Variant (BETA) contains an Attribute with the same name, its value is overwritten. Otherwise, the Attribute and its value are added to the ProductVariant or Variant (BETA).
          • *
          */ diff --git a/references.txt b/references.txt index 56ea6a88c2..ea2b6dd018 100644 --- a/references.txt +++ b/references.txt @@ -592,3 +592,4 @@ c8321d32796eebddbeced6e06cf4779a0cfc6cbc 40485b00f981f9b45241cdc8c963614ee64b3b25 ea8a8e4f1d1afa796bb888e4c1ea46952214b5d8 b27bf23c25b1bd52d00dd57159016fd47e3c21e7 +c0ff7b23243c9d95736ec183699775a9341f0007 From ff737c8d567d30a6db10b2a8c6b863545d96dd3f Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Thu, 16 Jul 2026 08:30:58 +0000 Subject: [PATCH 11/27] build(codegen): updating SDK --- .../api/models/shopping_list/ShoppingListAddLineItemAction.java | 2 ++ .../shopping_list/ShoppingListAddLineItemActionBuilder.java | 2 ++ .../models/shopping_list/ShoppingListAddLineItemActionImpl.java | 1 + .../api/models/shopping_list/ShoppingListLineItem.java | 2 ++ .../api/models/shopping_list/ShoppingListLineItemBuilder.java | 2 ++ .../api/models/shopping_list/ShoppingListLineItemDraft.java | 2 ++ .../models/shopping_list/ShoppingListLineItemDraftBuilder.java | 2 ++ .../api/models/shopping_list/ShoppingListLineItemDraftImpl.java | 1 + .../api/models/shopping_list/ShoppingListLineItemImpl.java | 1 + references.txt | 1 + 10 files changed, 16 insertions(+) diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shopping_list/ShoppingListAddLineItemAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shopping_list/ShoppingListAddLineItemAction.java index c099d6c69f..3df32c40e7 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shopping_list/ShoppingListAddLineItemAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shopping_list/ShoppingListAddLineItemAction.java @@ -67,6 +67,7 @@ public interface ShoppingListAddLineItemAction extends ShoppingListUpdateAction, /** *

          id of the ProductVariant. If not set, the ShoppingListLineItem refers to the Master Variant.

          + *

          For a Project with ProductCatalogModel (BETA) set to Modular, when variantId is not set, the ShoppingListLineItem refers to the Product's default Variant (BETA) (defaultVariant) instead of the Master Variant. If no default Variant is set, the ShoppingListLineItem refers to the Variant with the lowest variantId.

          * @return variantId */ @@ -120,6 +121,7 @@ public interface ShoppingListAddLineItemAction extends ShoppingListUpdateAction, /** *

          id of the ProductVariant. If not set, the ShoppingListLineItem refers to the Master Variant.

          + *

          For a Project with ProductCatalogModel (BETA) set to Modular, when variantId is not set, the ShoppingListLineItem refers to the Product's default Variant (BETA) (defaultVariant) instead of the Master Variant. If no default Variant is set, the ShoppingListLineItem refers to the Variant with the lowest variantId.

          * @param variantId value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shopping_list/ShoppingListAddLineItemActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shopping_list/ShoppingListAddLineItemActionBuilder.java index 8ee1ed8d96..1d116990e5 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shopping_list/ShoppingListAddLineItemActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shopping_list/ShoppingListAddLineItemActionBuilder.java @@ -79,6 +79,7 @@ public ShoppingListAddLineItemActionBuilder productId(@Nullable final String pro /** *

          id of the ProductVariant. If not set, the ShoppingListLineItem refers to the Master Variant.

          + *

          For a Project with ProductCatalogModel (BETA) set to Modular, when variantId is not set, the ShoppingListLineItem refers to the Product's default Variant (BETA) (defaultVariant) instead of the Master Variant. If no default Variant is set, the ShoppingListLineItem refers to the Variant with the lowest variantId.

          * @param variantId value to be set * @return Builder */ @@ -178,6 +179,7 @@ public String getProductId() { /** *

          id of the ProductVariant. If not set, the ShoppingListLineItem refers to the Master Variant.

          + *

          For a Project with ProductCatalogModel (BETA) set to Modular, when variantId is not set, the ShoppingListLineItem refers to the Product's default Variant (BETA) (defaultVariant) instead of the Master Variant. If no default Variant is set, the ShoppingListLineItem refers to the Variant with the lowest variantId.

          * @return variantId */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shopping_list/ShoppingListAddLineItemActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shopping_list/ShoppingListAddLineItemActionImpl.java index d1b2304cad..ca7dd4ea82 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shopping_list/ShoppingListAddLineItemActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shopping_list/ShoppingListAddLineItemActionImpl.java @@ -101,6 +101,7 @@ public String getProductId() { /** *

          id of the ProductVariant. If not set, the ShoppingListLineItem refers to the Master Variant.

          + *

          For a Project with ProductCatalogModel (BETA) set to Modular, when variantId is not set, the ShoppingListLineItem refers to the Product's default Variant (BETA) (defaultVariant) instead of the Master Variant. If no default Variant is set, the ShoppingListLineItem refers to the Variant with the lowest variantId.

          */ public Long getVariantId() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shopping_list/ShoppingListLineItem.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shopping_list/ShoppingListLineItem.java index 31fe12c7af..3e98b3d11b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shopping_list/ShoppingListLineItem.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shopping_list/ShoppingListLineItem.java @@ -131,6 +131,7 @@ public interface ShoppingListLineItem extends com.commercetools.api.models.Custo /** *

          id of the ProductVariant the ShoppingListLineItem refers to. If not set, the ShoppingListLineItem refers to the Master Variant.

          + *

          For a Project with ProductCatalogModel (BETA) set to Modular, when variantId is not set, the ShoppingListLineItem refers to the Product's default Variant (BETA) (defaultVariant) instead of the Master Variant. If no default Variant is set, the ShoppingListLineItem refers to the Variant with the lowest variantId.

          * @return variantId */ @@ -230,6 +231,7 @@ public interface ShoppingListLineItem extends com.commercetools.api.models.Custo /** *

          id of the ProductVariant the ShoppingListLineItem refers to. If not set, the ShoppingListLineItem refers to the Master Variant.

          + *

          For a Project with ProductCatalogModel (BETA) set to Modular, when variantId is not set, the ShoppingListLineItem refers to the Product's default Variant (BETA) (defaultVariant) instead of the Master Variant. If no default Variant is set, the ShoppingListLineItem refers to the Variant with the lowest variantId.

          * @param variantId value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shopping_list/ShoppingListLineItemBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shopping_list/ShoppingListLineItemBuilder.java index 4816a61392..ea2942f466 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shopping_list/ShoppingListLineItemBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shopping_list/ShoppingListLineItemBuilder.java @@ -253,6 +253,7 @@ public ShoppingListLineItemBuilder quantity(final Long quantity) { /** *

          id of the ProductVariant the ShoppingListLineItem refers to. If not set, the ShoppingListLineItem refers to the Master Variant.

          + *

          For a Project with ProductCatalogModel (BETA) set to Modular, when variantId is not set, the ShoppingListLineItem refers to the Product's default Variant (BETA) (defaultVariant) instead of the Master Variant. If no default Variant is set, the ShoppingListLineItem refers to the Variant with the lowest variantId.

          * @param variantId value to be set * @return Builder */ @@ -438,6 +439,7 @@ public Long getQuantity() { /** *

          id of the ProductVariant the ShoppingListLineItem refers to. If not set, the ShoppingListLineItem refers to the Master Variant.

          + *

          For a Project with ProductCatalogModel (BETA) set to Modular, when variantId is not set, the ShoppingListLineItem refers to the Product's default Variant (BETA) (defaultVariant) instead of the Master Variant. If no default Variant is set, the ShoppingListLineItem refers to the Variant with the lowest variantId.

          * @return variantId */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shopping_list/ShoppingListLineItemDraft.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shopping_list/ShoppingListLineItemDraft.java index 14ebdcffeb..07fa7aa3ae 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shopping_list/ShoppingListLineItemDraft.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shopping_list/ShoppingListLineItemDraft.java @@ -52,6 +52,7 @@ public interface ShoppingListLineItemDraft /** *

          id of the ProductVariant. If not set, the ShoppingListLineItem refers to the Master Variant.

          + *

          For a Project with ProductCatalogModel (BETA) set to Modular, when variantId is not set, the ShoppingListLineItem refers to the Product's default Variant (BETA) (defaultVariant) instead of the Master Variant. If no default Variant is set, the ShoppingListLineItem refers to the Variant with the lowest variantId.

          * @return variantId */ @@ -106,6 +107,7 @@ public interface ShoppingListLineItemDraft /** *

          id of the ProductVariant. If not set, the ShoppingListLineItem refers to the Master Variant.

          + *

          For a Project with ProductCatalogModel (BETA) set to Modular, when variantId is not set, the ShoppingListLineItem refers to the Product's default Variant (BETA) (defaultVariant) instead of the Master Variant. If no default Variant is set, the ShoppingListLineItem refers to the Variant with the lowest variantId.

          * @param variantId value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shopping_list/ShoppingListLineItemDraftBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shopping_list/ShoppingListLineItemDraftBuilder.java index 3b78d59c9d..46c85b99b4 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shopping_list/ShoppingListLineItemDraftBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shopping_list/ShoppingListLineItemDraftBuilder.java @@ -68,6 +68,7 @@ public ShoppingListLineItemDraftBuilder productId(@Nullable final String product /** *

          id of the ProductVariant. If not set, the ShoppingListLineItem refers to the Master Variant.

          + *

          For a Project with ProductCatalogModel (BETA) set to Modular, when variantId is not set, the ShoppingListLineItem refers to the Product's default Variant (BETA) (defaultVariant) instead of the Master Variant. If no default Variant is set, the ShoppingListLineItem refers to the Variant with the lowest variantId.

          * @param variantId value to be set * @return Builder */ @@ -168,6 +169,7 @@ public String getProductId() { /** *

          id of the ProductVariant. If not set, the ShoppingListLineItem refers to the Master Variant.

          + *

          For a Project with ProductCatalogModel (BETA) set to Modular, when variantId is not set, the ShoppingListLineItem refers to the Product's default Variant (BETA) (defaultVariant) instead of the Master Variant. If no default Variant is set, the ShoppingListLineItem refers to the Variant with the lowest variantId.

          * @return variantId */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shopping_list/ShoppingListLineItemDraftImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shopping_list/ShoppingListLineItemDraftImpl.java index 8c41072e89..8785a81985 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shopping_list/ShoppingListLineItemDraftImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shopping_list/ShoppingListLineItemDraftImpl.java @@ -79,6 +79,7 @@ public String getProductId() { /** *

          id of the ProductVariant. If not set, the ShoppingListLineItem refers to the Master Variant.

          + *

          For a Project with ProductCatalogModel (BETA) set to Modular, when variantId is not set, the ShoppingListLineItem refers to the Product's default Variant (BETA) (defaultVariant) instead of the Master Variant. If no default Variant is set, the ShoppingListLineItem refers to the Variant with the lowest variantId.

          */ public Long getVariantId() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shopping_list/ShoppingListLineItemImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shopping_list/ShoppingListLineItemImpl.java index 81e89eddeb..6d1d7ec9d3 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shopping_list/ShoppingListLineItemImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shopping_list/ShoppingListLineItemImpl.java @@ -171,6 +171,7 @@ public Long getQuantity() { /** *

          id of the ProductVariant the ShoppingListLineItem refers to. If not set, the ShoppingListLineItem refers to the Master Variant.

          + *

          For a Project with ProductCatalogModel (BETA) set to Modular, when variantId is not set, the ShoppingListLineItem refers to the Product's default Variant (BETA) (defaultVariant) instead of the Master Variant. If no default Variant is set, the ShoppingListLineItem refers to the Variant with the lowest variantId.

          */ public Long getVariantId() { diff --git a/references.txt b/references.txt index ea2b6dd018..7795e20167 100644 --- a/references.txt +++ b/references.txt @@ -593,3 +593,4 @@ c8321d32796eebddbeced6e06cf4779a0cfc6cbc ea8a8e4f1d1afa796bb888e4c1ea46952214b5d8 b27bf23c25b1bd52d00dd57159016fd47e3c21e7 c0ff7b23243c9d95736ec183699775a9341f0007 +ff7070c0ff123a4d0bb190130d1c83e5ac0356ec From f647360ec93b19f741943776d685bde062f1976a Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Thu, 16 Jul 2026 12:11:15 +0000 Subject: [PATCH 12/27] build(codegen): updating SDK --- .../api/models/cart/CartRecalculateAction.java | 4 ++-- .../api/models/cart/CartRecalculateActionBuilder.java | 4 ++-- .../api/models/cart/CartRecalculateActionImpl.java | 2 +- .../api/models/me/MyCartRecalculateAction.java | 8 ++++---- .../api/models/me/MyCartRecalculateActionBuilder.java | 8 ++++---- .../api/models/me/MyCartRecalculateActionImpl.java | 4 ++-- references.txt | 1 + 7 files changed, 16 insertions(+), 15 deletions(-) diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartRecalculateAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartRecalculateAction.java index 8a08db91dc..f9c12463af 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartRecalculateAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartRecalculateAction.java @@ -38,7 +38,7 @@ public interface CartRecalculateAction extends CartUpdateAction { /** *
            - *
          • Leave empty or set as false to update only the Prices and TaxRates of the Line Items.
          • + *
          • Leave empty or set as false to update only the Prices and TaxRates of the Line Items. Prices inside the variant are only updated if updateProductData is true.
          • *
          • Set as true to update the Product data (such as name, variant, productType, and Product Attributes) of the Line Items.
          • *
          * @return updateProductData @@ -49,7 +49,7 @@ public interface CartRecalculateAction extends CartUpdateAction { /** *
            - *
          • Leave empty or set as false to update only the Prices and TaxRates of the Line Items.
          • + *
          • Leave empty or set as false to update only the Prices and TaxRates of the Line Items. Prices inside the variant are only updated if updateProductData is true.
          • *
          • Set as true to update the Product data (such as name, variant, productType, and Product Attributes) of the Line Items.
          • *
          * @param updateProductData value to be set diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartRecalculateActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartRecalculateActionBuilder.java index 97bee5e86c..8e13397b76 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartRecalculateActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartRecalculateActionBuilder.java @@ -27,7 +27,7 @@ public class CartRecalculateActionBuilder implements Builder - *
        • Leave empty or set as false to update only the Prices and TaxRates of the Line Items.
        • + *
        • Leave empty or set as false to update only the Prices and TaxRates of the Line Items. Prices inside the variant are only updated if updateProductData is true.
        • *
        • Set as true to update the Product data (such as name, variant, productType, and Product Attributes) of the Line Items.
        • *
        * @param updateProductData value to be set @@ -41,7 +41,7 @@ public CartRecalculateActionBuilder updateProductData(@Nullable final Boolean up /** *
          - *
        • Leave empty or set as false to update only the Prices and TaxRates of the Line Items.
        • + *
        • Leave empty or set as false to update only the Prices and TaxRates of the Line Items. Prices inside the variant are only updated if updateProductData is true.
        • *
        • Set as true to update the Product data (such as name, variant, productType, and Product Attributes) of the Line Items.
        • *
        * @return updateProductData diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartRecalculateActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartRecalculateActionImpl.java index 86656eadd7..83ac3d5013 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartRecalculateActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartRecalculateActionImpl.java @@ -54,7 +54,7 @@ public String getAction() { /** *
          - *
        • Leave empty or set as false to update only the Prices and TaxRates of the Line Items.
        • + *
        • Leave empty or set as false to update only the Prices and TaxRates of the Line Items. Prices inside the variant are only updated if updateProductData is true.
        • *
        • Set as true to update the Product data (such as name, variant, productType, and Product Attributes) of the Line Items.
        • *
        */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartRecalculateAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartRecalculateAction.java index 245c65066f..968b80a9b4 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartRecalculateAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartRecalculateAction.java @@ -38,8 +38,8 @@ public interface MyCartRecalculateAction extends MyCartUpdateAction { /** *
          - *
        • Leave empty or set to false to only update the Prices and TaxRates of the Line Items.
        • - *
        • Set to true to update the Line Items' product data (like name, variant and productType) also.
        • + *
        • Leave empty or set as false to update only the Prices and TaxRates of the Line Items. Prices inside the variant are only updated if updateProductData is true.
        • + *
        • Set as true to update the Product data (such as name, variant, productType, and Product Attributes) of the Line Items.
        • *
        * @return updateProductData */ @@ -49,8 +49,8 @@ public interface MyCartRecalculateAction extends MyCartUpdateAction { /** *
          - *
        • Leave empty or set to false to only update the Prices and TaxRates of the Line Items.
        • - *
        • Set to true to update the Line Items' product data (like name, variant and productType) also.
        • + *
        • Leave empty or set as false to update only the Prices and TaxRates of the Line Items. Prices inside the variant are only updated if updateProductData is true.
        • + *
        • Set as true to update the Product data (such as name, variant, productType, and Product Attributes) of the Line Items.
        • *
        * @param updateProductData value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartRecalculateActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartRecalculateActionBuilder.java index 128bc46815..1a77d0a004 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartRecalculateActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartRecalculateActionBuilder.java @@ -27,8 +27,8 @@ public class MyCartRecalculateActionBuilder implements Builder - *
      • Leave empty or set to false to only update the Prices and TaxRates of the Line Items.
      • - *
      • Set to true to update the Line Items' product data (like name, variant and productType) also.
      • + *
      • Leave empty or set as false to update only the Prices and TaxRates of the Line Items. Prices inside the variant are only updated if updateProductData is true.
      • + *
      • Set as true to update the Product data (such as name, variant, productType, and Product Attributes) of the Line Items.
      • *
      * @param updateProductData value to be set * @return Builder @@ -41,8 +41,8 @@ public MyCartRecalculateActionBuilder updateProductData(@Nullable final Boolean /** *
        - *
      • Leave empty or set to false to only update the Prices and TaxRates of the Line Items.
      • - *
      • Set to true to update the Line Items' product data (like name, variant and productType) also.
      • + *
      • Leave empty or set as false to update only the Prices and TaxRates of the Line Items. Prices inside the variant are only updated if updateProductData is true.
      • + *
      • Set as true to update the Product data (such as name, variant, productType, and Product Attributes) of the Line Items.
      • *
      * @return updateProductData */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartRecalculateActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartRecalculateActionImpl.java index 50921303b5..dff7817675 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartRecalculateActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartRecalculateActionImpl.java @@ -54,8 +54,8 @@ public String getAction() { /** *
        - *
      • Leave empty or set to false to only update the Prices and TaxRates of the Line Items.
      • - *
      • Set to true to update the Line Items' product data (like name, variant and productType) also.
      • + *
      • Leave empty or set as false to update only the Prices and TaxRates of the Line Items. Prices inside the variant are only updated if updateProductData is true.
      • + *
      • Set as true to update the Product data (such as name, variant, productType, and Product Attributes) of the Line Items.
      • *
      */ diff --git a/references.txt b/references.txt index 7795e20167..d10a5916e5 100644 --- a/references.txt +++ b/references.txt @@ -594,3 +594,4 @@ ea8a8e4f1d1afa796bb888e4c1ea46952214b5d8 b27bf23c25b1bd52d00dd57159016fd47e3c21e7 c0ff7b23243c9d95736ec183699775a9341f0007 ff7070c0ff123a4d0bb190130d1c83e5ac0356ec +03e55e32b7a0a742fc59eb380d290623105d5cbf From a08acd8ac8f04b591b493c1921251fe2349e3581 Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Thu, 16 Jul 2026 16:07:54 +0000 Subject: [PATCH 13/27] build(codegen): updating SDK --- changes.md | 81 +- .../ByProjectKeyMcpServersByIDDelete.java | 211 ++++ .../client/ByProjectKeyMcpServersByIDGet.java | 121 ++ .../ByProjectKeyMcpServersByIDPost.java | 146 +++ .../ByProjectKeyMcpServersByIDPostString.java | 144 +++ ...rojectKeyMcpServersByIDRequestBuilder.java | 49 + .../api/client/ByProjectKeyMcpServersGet.java | 448 +++++++ .../ByProjectKeyMcpServersKeyByKeyDelete.java | 211 ++++ .../ByProjectKeyMcpServersKeyByKeyGet.java | 121 ++ .../ByProjectKeyMcpServersKeyByKeyPost.java | 146 +++ ...rojectKeyMcpServersKeyByKeyPostString.java | 144 +++ ...ctKeyMcpServersKeyByKeyRequestBuilder.java | 49 + .../client/ByProjectKeyMcpServersPost.java | 131 ++ .../ByProjectKeyMcpServersPostString.java | 131 ++ .../ByProjectKeyMcpServersRequestBuilder.java | 49 + ...tKeyMcpServersTypesByMcpServerTypeGet.java | 218 ++++ ...ersTypesByMcpServerTypeRequestBuilder.java | 25 + .../ByProjectKeyMcpServersTypesGet.java | 108 ++ ...ojectKeyMcpServersTypesRequestBuilder.java | 26 + .../client/ByProjectKeyRequestBuilder.java | 4 + .../mcp_server/CommerceMcpServerConfig.java | 242 ++++ .../CommerceMcpServerConfigBuilder.java | 349 ++++++ .../CommerceMcpServerConfigDraft.java | 223 ++++ .../CommerceMcpServerConfigDraftBuilder.java | 325 +++++ .../CommerceMcpServerConfigDraftImpl.java | 193 +++ .../CommerceMcpServerConfigImpl.java | 213 ++++ .../api/models/mcp_server/McpServer.java | 310 +++++ .../mcp_server/McpServerAddToolAction.java | 130 ++ .../McpServerAddToolActionBuilder.java | 82 ++ .../McpServerAddToolActionImpl.java | 99 ++ .../McpServerAddToolCustomizationAction.java | 135 +++ ...rverAddToolCustomizationActionBuilder.java | 110 ++ ...pServerAddToolCustomizationActionImpl.java | 101 ++ .../models/mcp_server/McpServerBuilder.java | 447 +++++++ .../models/mcp_server/McpServerConfig.java | 96 ++ .../mcp_server/McpServerConfigBuilder.java | 26 + .../mcp_server/McpServerConfigDraft.java | 94 ++ .../McpServerConfigDraftBuilder.java | 26 + .../mcp_server/McpServerConfigDraftImpl.java | 77 ++ .../mcp_server/McpServerConfigImpl.java | 77 ++ .../api/models/mcp_server/McpServerDraft.java | 198 +++ .../mcp_server/McpServerDraftBuilder.java | 248 ++++ .../models/mcp_server/McpServerDraftImpl.java | 165 +++ .../api/models/mcp_server/McpServerImpl.java | 284 +++++ .../McpServerJsonOutputFiltering.java | 185 +++ .../McpServerJsonOutputFilteringBuilder.java | 242 ++++ .../McpServerJsonOutputFilteringImpl.java | 150 +++ .../McpServerJsonOutputFilteringMatcher.java | 188 +++ ...rverJsonOutputFilteringMatcherBuilder.java | 211 ++++ ...pServerJsonOutputFilteringMatcherImpl.java | 139 +++ .../McpServerPagedQueryResponse.java | 210 ++++ .../McpServerPagedQueryResponseBuilder.java | 263 ++++ .../McpServerPagedQueryResponseImpl.java | 167 +++ .../mcp_server/McpServerRemoveToolAction.java | 130 ++ .../McpServerRemoveToolActionBuilder.java | 82 ++ .../McpServerRemoveToolActionImpl.java | 100 ++ ...cpServerRemoveToolCustomizationAction.java | 136 +++ ...rRemoveToolCustomizationActionBuilder.java | 113 ++ ...rverRemoveToolCustomizationActionImpl.java | 101 ++ .../McpServerSetDescriptionAction.java | 131 ++ .../McpServerSetDescriptionActionBuilder.java | 110 ++ .../McpServerSetDescriptionActionImpl.java | 100 ++ ...McpServerSetJsonOutputFilteringAction.java | 132 ++ ...erSetJsonOutputFilteringActionBuilder.java | 114 ++ ...erverSetJsonOutputFilteringActionImpl.java | 101 ++ .../mcp_server/McpServerSetNameAction.java | 130 ++ .../McpServerSetNameActionBuilder.java | 110 ++ .../McpServerSetNameActionImpl.java | 99 ++ .../mcp_server/McpServerSetStateAction.java | 130 ++ .../McpServerSetStateActionBuilder.java | 82 ++ .../McpServerSetStateActionImpl.java | 100 ++ .../McpServerSetToolCustomizationsAction.java | 147 +++ ...verSetToolCustomizationsActionBuilder.java | 165 +++ ...ServerSetToolCustomizationsActionImpl.java | 106 ++ ...cpServerSetToolOutputFormattingAction.java | 131 ++ ...rSetToolOutputFormattingActionBuilder.java | 86 ++ ...rverSetToolOutputFormattingActionImpl.java | 101 ++ .../mcp_server/McpServerSetToolsAction.java | 138 +++ .../McpServerSetToolsActionBuilder.java | 109 ++ .../McpServerSetToolsActionImpl.java | 104 ++ .../api/models/mcp_server/McpServerState.java | 115 ++ .../api/models/mcp_server/McpServerTool.java | 1075 +++++++++++++++++ .../McpServerToolOutputFormatting.java | 110 ++ .../api/models/mcp_server/McpServerType.java | 175 +++ .../mcp_server/McpServerTypeBuilder.java | 209 ++++ .../models/mcp_server/McpServerTypeImpl.java | 125 ++ .../models/mcp_server/McpServerTypeTool.java | 183 +++ .../mcp_server/McpServerTypeToolBuilder.java | 184 +++ .../mcp_server/McpServerTypeToolImpl.java | 149 +++ .../models/mcp_server/McpServerUpdate.java | 157 +++ .../mcp_server/McpServerUpdateAction.java | 173 +++ .../McpServerUpdateActionBuilder.java | 66 + .../mcp_server/McpServerUpdateActionImpl.java | 77 ++ .../mcp_server/McpServerUpdateBuilder.java | 166 +++ .../mcp_server/McpServerUpdateImpl.java | 108 ++ .../models/mcp_server/ParameterOverride.java | 200 +++ .../mcp_server/ParameterOverrideBuilder.java | 209 ++++ .../mcp_server/ParameterOverrideImpl.java | 168 +++ .../RemoveToolCustomizationTarget.java | 124 ++ .../RemoveToolCustomizationTargetBuilder.java | 82 ++ .../RemoveToolCustomizationTargetImpl.java | 82 ++ .../models/mcp_server/ToolCustomization.java | 172 +++ .../mcp_server/ToolCustomizationBuilder.java | 215 ++++ .../mcp_server/ToolCustomizationImpl.java | 127 ++ .../McpServerExpansionBuilderDsl.java | 41 + .../common/BaseResourceQueryBuilderDsl.java | 7 + ...ceMcpServerConfigDraftQueryBuilderDsl.java | 66 + ...ommerceMcpServerConfigQueryBuilderDsl.java | 71 ++ ...McpServerAddToolActionQueryBuilderDsl.java | 26 + ...oolCustomizationActionQueryBuilderDsl.java | 32 + .../McpServerConfigDraftQueryBuilderDsl.java | 29 + .../McpServerConfigQueryBuilderDsl.java | 28 + .../McpServerDraftQueryBuilderDsl.java | 55 + ...OutputFilteringMatcherQueryBuilderDsl.java | 32 + ...verJsonOutputFilteringQueryBuilderDsl.java | 48 + ...rverPagedQueryResponseQueryBuilderDsl.java | 51 + .../mcp_server/McpServerQueryBuilderDsl.java | 96 ++ ...ServerRemoveToolActionQueryBuilderDsl.java | 26 + ...oolCustomizationActionQueryBuilderDsl.java | 32 + ...erSetDescriptionActionQueryBuilderDsl.java | 31 + ...nOutputFilteringActionQueryBuilderDsl.java | 32 + ...McpServerSetNameActionQueryBuilderDsl.java | 31 + ...cpServerSetStateActionQueryBuilderDsl.java | 26 + ...olCustomizationsActionQueryBuilderDsl.java | 38 + ...OutputFormattingActionQueryBuilderDsl.java | 26 + ...cpServerSetToolsActionQueryBuilderDsl.java | 26 + .../McpServerTypeQueryBuilderDsl.java | 43 + .../McpServerTypeToolQueryBuilderDsl.java | 38 + .../McpServerUpdateActionQueryBuilderDsl.java | 102 ++ .../McpServerUpdateQueryBuilderDsl.java | 37 + .../ParameterOverrideQueryBuilderDsl.java | 44 + ...oolCustomizationTargetQueryBuilderDsl.java | 20 + .../ToolCustomizationQueryBuilderDsl.java | 44 + .../ByProjectKeyMcpServersByIDTest.java | 94 ++ .../ByProjectKeyMcpServersKeyByKeyTest.java | 94 ++ .../resource/ByProjectKeyMcpServersTest.java | 92 ++ ...KeyMcpServersTypesByMcpServerTypeTest.java | 93 ++ .../ByProjectKeyMcpServersTypesTest.java | 68 ++ .../CommerceMcpServerConfigDraftTest.java | 84 ++ .../CommerceMcpServerConfigTest.java | 92 ++ .../McpServerAddToolActionTest.java | 30 + ...pServerAddToolCustomizationActionTest.java | 31 + .../models/mcp_server/McpServerDraftTest.java | 69 ++ ...pServerJsonOutputFilteringMatcherTest.java | 53 + .../McpServerJsonOutputFilteringTest.java | 60 + .../McpServerPagedQueryResponseTest.java | 65 + .../McpServerRemoveToolActionTest.java | 30 + ...rverRemoveToolCustomizationActionTest.java | 31 + .../McpServerSetDescriptionActionTest.java | 30 + ...erverSetJsonOutputFilteringActionTest.java | 33 + .../McpServerSetNameActionTest.java | 29 + .../McpServerSetStateActionTest.java | 30 + ...ServerSetToolCustomizationsActionTest.java | 36 + ...rverSetToolOutputFormattingActionTest.java | 35 + .../McpServerSetToolsActionTest.java | 36 + .../api/models/mcp_server/McpServerTest.java | 124 ++ .../models/mcp_server/McpServerTypeTest.java | 51 + .../mcp_server/McpServerTypeToolTest.java | 54 + .../mcp_server/McpServerUpdateTest.java | 44 + .../mcp_server/ParameterOverrideTest.java | 63 + .../RemoveToolCustomizationTargetTest.java | 30 + .../mcp_server/ToolCustomizationTest.java | 56 + references.txt | 1 + 163 files changed, 18908 insertions(+), 15 deletions(-) create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersByIDDelete.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersByIDGet.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersByIDPost.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersByIDPostString.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersByIDRequestBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersGet.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersKeyByKeyDelete.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersKeyByKeyGet.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersKeyByKeyPost.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersKeyByKeyPostString.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersKeyByKeyRequestBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersPost.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersPostString.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersRequestBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersTypesByMcpServerTypeGet.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersTypesByMcpServerTypeRequestBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersTypesGet.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersTypesRequestBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/CommerceMcpServerConfig.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/CommerceMcpServerConfigBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/CommerceMcpServerConfigDraft.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/CommerceMcpServerConfigDraftBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/CommerceMcpServerConfigDraftImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/CommerceMcpServerConfigImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServer.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerAddToolAction.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerAddToolActionBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerAddToolActionImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerAddToolCustomizationAction.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerAddToolCustomizationActionBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerAddToolCustomizationActionImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerConfig.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerConfigBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerConfigDraft.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerConfigDraftBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerConfigDraftImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerConfigImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerDraft.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerDraftBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerDraftImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerJsonOutputFiltering.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerJsonOutputFilteringBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerJsonOutputFilteringImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerJsonOutputFilteringMatcher.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerJsonOutputFilteringMatcherBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerJsonOutputFilteringMatcherImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerPagedQueryResponse.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerPagedQueryResponseBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerPagedQueryResponseImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerRemoveToolAction.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerRemoveToolActionBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerRemoveToolActionImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerRemoveToolCustomizationAction.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerRemoveToolCustomizationActionBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerRemoveToolCustomizationActionImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetDescriptionAction.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetDescriptionActionBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetDescriptionActionImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetJsonOutputFilteringAction.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetJsonOutputFilteringActionBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetJsonOutputFilteringActionImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetNameAction.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetNameActionBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetNameActionImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetStateAction.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetStateActionBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetStateActionImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetToolCustomizationsAction.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetToolCustomizationsActionBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetToolCustomizationsActionImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetToolOutputFormattingAction.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetToolOutputFormattingActionBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetToolOutputFormattingActionImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetToolsAction.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetToolsActionBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetToolsActionImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerState.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerTool.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerToolOutputFormatting.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerType.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerTypeBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerTypeImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerTypeTool.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerTypeToolBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerTypeToolImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerUpdate.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerUpdateAction.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerUpdateActionBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerUpdateActionImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerUpdateBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerUpdateImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/ParameterOverride.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/ParameterOverrideBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/ParameterOverrideImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/RemoveToolCustomizationTarget.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/RemoveToolCustomizationTargetBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/RemoveToolCustomizationTargetImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/ToolCustomization.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/ToolCustomizationBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/ToolCustomizationImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/expansion/mcp_server/McpServerExpansionBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/CommerceMcpServerConfigDraftQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/CommerceMcpServerConfigQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerAddToolActionQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerAddToolCustomizationActionQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerConfigDraftQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerConfigQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerDraftQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerJsonOutputFilteringMatcherQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerJsonOutputFilteringQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerPagedQueryResponseQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerRemoveToolActionQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerRemoveToolCustomizationActionQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerSetDescriptionActionQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerSetJsonOutputFilteringActionQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerSetNameActionQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerSetStateActionQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerSetToolCustomizationsActionQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerSetToolOutputFormattingActionQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerSetToolsActionQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerTypeQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerTypeToolQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerUpdateActionQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerUpdateQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/ParameterOverrideQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/RemoveToolCustomizationTargetQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/ToolCustomizationQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMcpServersByIDTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMcpServersKeyByKeyTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMcpServersTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMcpServersTypesByMcpServerTypeTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMcpServersTypesTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/CommerceMcpServerConfigDraftTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/CommerceMcpServerConfigTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerAddToolActionTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerAddToolCustomizationActionTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerDraftTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerJsonOutputFilteringMatcherTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerJsonOutputFilteringTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerPagedQueryResponseTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerRemoveToolActionTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerRemoveToolCustomizationActionTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerSetDescriptionActionTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerSetJsonOutputFilteringActionTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerSetNameActionTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerSetStateActionTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerSetToolCustomizationsActionTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerSetToolOutputFormattingActionTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerSetToolsActionTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerTypeTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerTypeToolTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerUpdateTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/ParameterOverrideTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/RemoveToolCustomizationTargetTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/ToolCustomizationTest.java diff --git a/changes.md b/changes.md index 85a0e2e202..909cd8c1c9 100644 --- a/changes.md +++ b/changes.md @@ -1,11 +1,24 @@ **Api changes**
      -Added Resource(s) +Added Method(s) -- added resource `/{projectKey}/in-store/key={storeKey}/discount-codes` -- added resource `/{projectKey}/in-store/key={storeKey}/discount-codes/key={key}` -- added resource `/{projectKey}/in-store/key={storeKey}/discount-codes/{ID}` +- added method `apiRoot.withProjectKey().mcpServers().get()` +- added method `apiRoot.withProjectKey().mcpServers().post()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().discountCodes().get()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().discountCodes().head()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().discountCodes().withKey().get()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().discountCodes().withKey().head()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().discountCodes().withId().get()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().discountCodes().withId().head()` +- added method `apiRoot.withProjectKey().mcpServers().types().get()` +- added method `apiRoot.withProjectKey().mcpServers().withKey().get()` +- added method `apiRoot.withProjectKey().mcpServers().withKey().post()` +- added method `apiRoot.withProjectKey().mcpServers().withKey().delete()` +- added method `apiRoot.withProjectKey().mcpServers().withId().get()` +- added method `apiRoot.withProjectKey().mcpServers().withId().post()` +- added method `apiRoot.withProjectKey().mcpServers().withId().delete()` +- added method `apiRoot.withProjectKey().mcpServers().types().withMcpServerType().get()`
      @@ -17,14 +30,38 @@
      -Added Method(s) - -- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().discountCodes().get()` -- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().discountCodes().head()` -- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().discountCodes().withKey().get()` -- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().discountCodes().withKey().head()` -- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().discountCodes().withId().get()` -- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().discountCodes().withId().head()` +Added Type(s) + +- added type `CommerceMcpServerConfig` +- added type `CommerceMcpServerConfigDraft` +- added type `McpServer` +- added type `McpServerConfig` +- added type `McpServerConfigDraft` +- added type `McpServerDraft` +- added type `McpServerJsonOutputFiltering` +- added type `McpServerJsonOutputFilteringMatcher` +- added type `McpServerPagedQueryResponse` +- added type `McpServerState` +- added type `McpServerTool` +- added type `McpServerToolOutputFormatting` +- added type `McpServerType` +- added type `McpServerTypeTool` +- added type `McpServerUpdate` +- added type `McpServerUpdateAction` +- added type `ParameterOverride` +- added type `RemoveToolCustomizationTarget` +- added type `ToolCustomization` +- added type `McpServerAddToolAction` +- added type `McpServerAddToolCustomizationAction` +- added type `McpServerRemoveToolAction` +- added type `McpServerRemoveToolCustomizationAction` +- added type `McpServerSetDescriptionAction` +- added type `McpServerSetJsonOutputFilteringAction` +- added type `McpServerSetNameAction` +- added type `McpServerSetStateAction` +- added type `McpServerSetToolCustomizationsAction` +- added type `McpServerSetToolOutputFormattingAction` +- added type `McpServerSetToolsAction`
      @@ -35,14 +72,21 @@ - added enum `variant` to type `CustomFieldReferenceValue`
    -**History changes**
    -Required Property(s) +Added Resource(s) -- changed property `total` of type `RecordPagedQueryResponse` to be optional +- added resource `/{projectKey}/mcp-servers` +- added resource `/{projectKey}/in-store/key={storeKey}/discount-codes` +- added resource `/{projectKey}/in-store/key={storeKey}/discount-codes/key={key}` +- added resource `/{projectKey}/in-store/key={storeKey}/discount-codes/{ID}` +- added resource `/{projectKey}/mcp-servers/types` +- added resource `/{projectKey}/mcp-servers/key={key}` +- added resource `/{projectKey}/mcp-servers/{ID}` +- added resource `/{projectKey}/mcp-servers/types/{mcpServerType}`
    +**History changes**
    Added QueryParameter(s) @@ -52,3 +96,10 @@ - added query parameter `withTotal` to method `get /{projectKey}/{resourceType}/{ID}`
    + +
    +Required Property(s) + +- changed property `total` of type `RecordPagedQueryResponse` to be optional +
    + diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersByIDDelete.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersByIDDelete.java new file mode 100644 index 0000000000..6f24dd0ab0 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersByIDDelete.java @@ -0,0 +1,211 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +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; + +import tools.jackson.core.type.TypeReference; + +/** + * + * + *
    + *
    + *
    {@code
    + *   CompletableFuture> result = apiRoot
    + *            .withProjectKey("{projectKey}")
    + *            .mcpServers()
    + *            .withId("{ID}")
    + *            .delete()
    + *            .withVersion(version)
    + *            .execute()
    + * }
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyMcpServersByIDDelete + extends TypeApiMethod + implements com.commercetools.api.client.VersionedTrait, + com.commercetools.api.client.ConflictingTrait, + com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String ID; + + public ByProjectKeyMcpServersByIDDelete(final ApiHttpClient apiHttpClient, String projectKey, String ID) { + super(apiHttpClient); + this.projectKey = projectKey; + this.ID = ID; + } + + public ByProjectKeyMcpServersByIDDelete(ByProjectKeyMcpServersByIDDelete t) { + super(t); + this.projectKey = t.projectKey; + this.ID = t.ID; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/mcp-servers/%s", encodePathParam(this.projectKey), + encodePathParam(this.ID)); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.DELETE, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking( + final ApiHttpClient client, final Duration timeout) { + return executeBlocking(client, timeout, com.commercetools.api.models.mcp_server.McpServer.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.commercetools.api.models.mcp_server.McpServer.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getID() { + return this.ID; + } + + public List getVersion() { + return this.getQueryParam("version"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setID(final String ID) { + this.ID = ID; + } + + /** + * set version with the specified value + * @param version value to be set + * @param value type + * @return ByProjectKeyMcpServersByIDDelete + */ + public ByProjectKeyMcpServersByIDDelete withVersion(final TValue version) { + return copy().withQueryParam("version", version); + } + + /** + * add additional version query parameter + * @param version value to be added + * @param value type + * @return ByProjectKeyMcpServersByIDDelete + */ + public ByProjectKeyMcpServersByIDDelete addVersion(final TValue version) { + return copy().addQueryParam("version", version); + } + + /** + * set version with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyMcpServersByIDDelete + */ + public ByProjectKeyMcpServersByIDDelete withVersion(final Supplier supplier) { + return copy().withQueryParam("version", supplier.get()); + } + + /** + * add additional version query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyMcpServersByIDDelete + */ + public ByProjectKeyMcpServersByIDDelete addVersion(final Supplier supplier) { + return copy().addQueryParam("version", supplier.get()); + } + + /** + * set version with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyMcpServersByIDDelete + */ + public ByProjectKeyMcpServersByIDDelete withVersion(final Function op) { + return copy().withQueryParam("version", op.apply(new StringBuilder())); + } + + /** + * add additional version query parameter + * @param op builder for the value to be added + * @return ByProjectKeyMcpServersByIDDelete + */ + public ByProjectKeyMcpServersByIDDelete addVersion(final Function op) { + return copy().addQueryParam("version", op.apply(new StringBuilder())); + } + + /** + * set version with the specified values + * @param version values to be set + * @param value type + * @return ByProjectKeyMcpServersByIDDelete + */ + public ByProjectKeyMcpServersByIDDelete withVersion(final Collection version) { + return copy().withoutQueryParam("version") + .addQueryParams( + version.stream().map(s -> new ParamEntry<>("version", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional version query parameters + * @param version values to be added + * @param value type + * @return ByProjectKeyMcpServersByIDDelete + */ + public ByProjectKeyMcpServersByIDDelete addVersion(final Collection version) { + return copy().addQueryParams( + version.stream().map(s -> new ParamEntry<>("version", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyMcpServersByIDDelete that = (ByProjectKeyMcpServersByIDDelete) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(ID, that.ID).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(ID).toHashCode(); + } + + @Override + protected ByProjectKeyMcpServersByIDDelete copy() { + return new ByProjectKeyMcpServersByIDDelete(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersByIDGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersByIDGet.java new file mode 100644 index 0000000000..ec5507f407 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersByIDGet.java @@ -0,0 +1,121 @@ + +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 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; + +import tools.jackson.core.type.TypeReference; + +/** + * + * + *
    + *
    + *
    {@code
    + *   CompletableFuture> result = apiRoot
    + *            .withProjectKey("{projectKey}")
    + *            .mcpServers()
    + *            .withId("{ID}")
    + *            .get()
    + *            .execute()
    + * }
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyMcpServersByIDGet + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String ID; + + public ByProjectKeyMcpServersByIDGet(final ApiHttpClient apiHttpClient, String projectKey, String ID) { + super(apiHttpClient); + this.projectKey = projectKey; + this.ID = ID; + } + + public ByProjectKeyMcpServersByIDGet(ByProjectKeyMcpServersByIDGet t) { + super(t); + this.projectKey = t.projectKey; + this.ID = t.ID; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/mcp-servers/%s", encodePathParam(this.projectKey), + encodePathParam(this.ID)); + 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.mcp_server.McpServer.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.commercetools.api.models.mcp_server.McpServer.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getID() { + return this.ID; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setID(final String ID) { + this.ID = ID; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyMcpServersByIDGet that = (ByProjectKeyMcpServersByIDGet) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(ID, that.ID).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(ID).toHashCode(); + } + + @Override + protected ByProjectKeyMcpServersByIDGet copy() { + return new ByProjectKeyMcpServersByIDGet(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersByIDPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersByIDPost.java new file mode 100644 index 0000000000..02bd4f7cdd --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersByIDPost.java @@ -0,0 +1,146 @@ + +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 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; + +import tools.jackson.core.type.TypeReference; + +/** + *

    Specific Error Codes:

    + * + * + *
    + *
    + *
    {@code
    + *   CompletableFuture> result = apiRoot
    + *            .withProjectKey("{projectKey}")
    + *            .mcpServers()
    + *            .withId("{ID}")
    + *            .post(null)
    + *            .execute()
    + * }
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyMcpServersByIDPost extends + TypeBodyApiMethod + implements com.commercetools.api.client.ConflictingTrait, + com.commercetools.api.client.ErrorableTrait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String ID; + + private com.commercetools.api.models.mcp_server.McpServerUpdate mcpServerUpdate; + + public ByProjectKeyMcpServersByIDPost(final ApiHttpClient apiHttpClient, String projectKey, String ID, + com.commercetools.api.models.mcp_server.McpServerUpdate mcpServerUpdate) { + super(apiHttpClient); + this.projectKey = projectKey; + this.ID = ID; + this.mcpServerUpdate = mcpServerUpdate; + } + + public ByProjectKeyMcpServersByIDPost(ByProjectKeyMcpServersByIDPost t) { + super(t); + this.projectKey = t.projectKey; + this.ID = t.ID; + this.mcpServerUpdate = t.mcpServerUpdate; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/mcp-servers/%s", encodePathParam(this.projectKey), + encodePathParam(this.ID)); + 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(mcpServerUpdate))); + + } + + @Override + public ApiHttpResponse executeBlocking( + final ApiHttpClient client, final Duration timeout) { + return executeBlocking(client, timeout, com.commercetools.api.models.mcp_server.McpServer.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.commercetools.api.models.mcp_server.McpServer.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getID() { + return this.ID; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setID(final String ID) { + this.ID = ID; + } + + public com.commercetools.api.models.mcp_server.McpServerUpdate getBody() { + return mcpServerUpdate; + } + + public ByProjectKeyMcpServersByIDPost withBody( + com.commercetools.api.models.mcp_server.McpServerUpdate mcpServerUpdate) { + ByProjectKeyMcpServersByIDPost t = copy(); + t.mcpServerUpdate = mcpServerUpdate; + return t; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyMcpServersByIDPost that = (ByProjectKeyMcpServersByIDPost) o; + + return new EqualsBuilder().append(projectKey, that.projectKey) + .append(ID, that.ID) + .append(mcpServerUpdate, that.mcpServerUpdate) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(ID).append(mcpServerUpdate).toHashCode(); + } + + @Override + protected ByProjectKeyMcpServersByIDPost copy() { + return new ByProjectKeyMcpServersByIDPost(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersByIDPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersByIDPostString.java new file mode 100644 index 0000000000..533e442a7a --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersByIDPostString.java @@ -0,0 +1,144 @@ + +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 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; + +import tools.jackson.core.type.TypeReference; + +/** + *

    Specific Error Codes:

    + * + * + *
    + *
    + *
    {@code
    + *   CompletableFuture> result = apiRoot
    + *            .withProjectKey("{projectKey}")
    + *            .mcpServers()
    + *            .withId("{ID}")
    + *            .post("")
    + *            .execute()
    + * }
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyMcpServersByIDPostString extends + StringBodyApiMethod + implements com.commercetools.api.client.ConflictingTrait, + com.commercetools.api.client.ErrorableTrait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String ID; + + private String mcpServerUpdate; + + public ByProjectKeyMcpServersByIDPostString(final ApiHttpClient apiHttpClient, String projectKey, String ID, + String mcpServerUpdate) { + super(apiHttpClient); + this.projectKey = projectKey; + this.ID = ID; + this.mcpServerUpdate = mcpServerUpdate; + } + + public ByProjectKeyMcpServersByIDPostString(ByProjectKeyMcpServersByIDPostString t) { + super(t); + this.projectKey = t.projectKey; + this.ID = t.ID; + this.mcpServerUpdate = t.mcpServerUpdate; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/mcp-servers/%s", this.projectKey, this.ID); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.POST, URI.create(httpRequestPath), getHeaders(), + mcpServerUpdate.getBytes(StandardCharsets.UTF_8)); + + } + + @Override + public ApiHttpResponse executeBlocking( + final ApiHttpClient client, final Duration timeout) { + return executeBlocking(client, timeout, com.commercetools.api.models.mcp_server.McpServer.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.commercetools.api.models.mcp_server.McpServer.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getID() { + return this.ID; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setID(final String ID) { + this.ID = ID; + } + + public String getBody() { + return mcpServerUpdate; + } + + public ByProjectKeyMcpServersByIDPostString withBody(String mcpServerUpdate) { + ByProjectKeyMcpServersByIDPostString t = copy(); + t.mcpServerUpdate = mcpServerUpdate; + return t; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyMcpServersByIDPostString that = (ByProjectKeyMcpServersByIDPostString) o; + + return new EqualsBuilder().append(projectKey, that.projectKey) + .append(ID, that.ID) + .append(mcpServerUpdate, that.mcpServerUpdate) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(ID).append(mcpServerUpdate).toHashCode(); + } + + @Override + protected ByProjectKeyMcpServersByIDPostString copy() { + return new ByProjectKeyMcpServersByIDPostString(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersByIDRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersByIDRequestBuilder.java new file mode 100644 index 0000000000..5da563d052 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersByIDRequestBuilder.java @@ -0,0 +1,49 @@ + +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 ByProjectKeyMcpServersByIDRequestBuilder { + + private final ApiHttpClient apiHttpClient; + private final String projectKey; + private final String ID; + + public ByProjectKeyMcpServersByIDRequestBuilder(final ApiHttpClient apiHttpClient, final String projectKey, + final String ID) { + this.apiHttpClient = apiHttpClient; + this.projectKey = projectKey; + this.ID = ID; + } + + public ByProjectKeyMcpServersByIDGet get() { + return new ByProjectKeyMcpServersByIDGet(apiHttpClient, projectKey, ID); + } + + public ByProjectKeyMcpServersByIDPost post( + com.commercetools.api.models.mcp_server.McpServerUpdate mcpServerUpdate) { + return new ByProjectKeyMcpServersByIDPost(apiHttpClient, projectKey, ID, mcpServerUpdate); + } + + public ByProjectKeyMcpServersByIDPostString post(final String mcpServerUpdate) { + return new ByProjectKeyMcpServersByIDPostString(apiHttpClient, projectKey, ID, mcpServerUpdate); + } + + public ByProjectKeyMcpServersByIDPost post( + UnaryOperator op) { + return post(op.apply(com.commercetools.api.models.mcp_server.McpServerUpdateBuilder.of()).build()); + } + + public ByProjectKeyMcpServersByIDDelete delete() { + return new ByProjectKeyMcpServersByIDDelete(apiHttpClient, projectKey, ID); + } + + public ByProjectKeyMcpServersByIDDelete delete(TValue version) { + return delete().withVersion(version); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersGet.java new file mode 100644 index 0000000000..37f29bf817 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersGet.java @@ -0,0 +1,448 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +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; + +import tools.jackson.core.type.TypeReference; + +/** + * + * + *
    + *
    + *
    {@code
    + *   CompletableFuture> result = apiRoot
    + *            .withProjectKey("{projectKey}")
    + *            .mcpServers()
    + *            .get()
    + *            .execute()
    + * }
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyMcpServersGet extends + TypeApiMethod + implements com.commercetools.api.client.SortableTrait, + com.commercetools.api.client.PagingTrait, + com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + + public ByProjectKeyMcpServersGet(final ApiHttpClient apiHttpClient, String projectKey) { + super(apiHttpClient); + this.projectKey = projectKey; + } + + public ByProjectKeyMcpServersGet(ByProjectKeyMcpServersGet t) { + super(t); + this.projectKey = t.projectKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/mcp-servers", 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.mcp_server.McpServerPagedQueryResponse.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.commercetools.api.models.mcp_server.McpServerPagedQueryResponse.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public List getSort() { + return this.getQueryParam("sort"); + } + + public List getLimit() { + return this.getQueryParam("limit"); + } + + public List getOffset() { + return this.getQueryParam("offset"); + } + + public List getWithTotal() { + return this.getQueryParam("withTotal"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + /** + * set sort with the specified value + * @param sort value to be set + * @param value type + * @return ByProjectKeyMcpServersGet + */ + public ByProjectKeyMcpServersGet withSort(final TValue sort) { + return copy().withQueryParam("sort", sort); + } + + /** + * add additional sort query parameter + * @param sort value to be added + * @param value type + * @return ByProjectKeyMcpServersGet + */ + public ByProjectKeyMcpServersGet addSort(final TValue sort) { + return copy().addQueryParam("sort", sort); + } + + /** + * set sort with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyMcpServersGet + */ + public ByProjectKeyMcpServersGet withSort(final Supplier supplier) { + return copy().withQueryParam("sort", supplier.get()); + } + + /** + * add additional sort query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyMcpServersGet + */ + public ByProjectKeyMcpServersGet addSort(final Supplier supplier) { + return copy().addQueryParam("sort", supplier.get()); + } + + /** + * set sort with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyMcpServersGet + */ + public ByProjectKeyMcpServersGet withSort(final Function op) { + return copy().withQueryParam("sort", op.apply(new StringBuilder())); + } + + /** + * add additional sort query parameter + * @param op builder for the value to be added + * @return ByProjectKeyMcpServersGet + */ + public ByProjectKeyMcpServersGet addSort(final Function op) { + return copy().addQueryParam("sort", op.apply(new StringBuilder())); + } + + /** + * set sort with the specified values + * @param sort values to be set + * @param value type + * @return ByProjectKeyMcpServersGet + */ + public ByProjectKeyMcpServersGet withSort(final Collection sort) { + return copy().withoutQueryParam("sort") + .addQueryParams( + sort.stream().map(s -> new ParamEntry<>("sort", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional sort query parameters + * @param sort values to be added + * @param value type + * @return ByProjectKeyMcpServersGet + */ + public ByProjectKeyMcpServersGet addSort(final Collection sort) { + return copy().addQueryParams( + sort.stream().map(s -> new ParamEntry<>("sort", s.toString())).collect(Collectors.toList())); + } + + /** + * set limit with the specified value + * @param limit value to be set + * @param value type + * @return ByProjectKeyMcpServersGet + */ + public ByProjectKeyMcpServersGet withLimit(final TValue limit) { + return copy().withQueryParam("limit", limit); + } + + /** + * add additional limit query parameter + * @param limit value to be added + * @param value type + * @return ByProjectKeyMcpServersGet + */ + public ByProjectKeyMcpServersGet addLimit(final TValue limit) { + return copy().addQueryParam("limit", limit); + } + + /** + * set limit with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyMcpServersGet + */ + public ByProjectKeyMcpServersGet withLimit(final Supplier supplier) { + return copy().withQueryParam("limit", supplier.get()); + } + + /** + * add additional limit query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyMcpServersGet + */ + public ByProjectKeyMcpServersGet addLimit(final Supplier supplier) { + return copy().addQueryParam("limit", supplier.get()); + } + + /** + * set limit with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyMcpServersGet + */ + public ByProjectKeyMcpServersGet withLimit(final Function op) { + return copy().withQueryParam("limit", op.apply(new StringBuilder())); + } + + /** + * add additional limit query parameter + * @param op builder for the value to be added + * @return ByProjectKeyMcpServersGet + */ + public ByProjectKeyMcpServersGet addLimit(final Function op) { + return copy().addQueryParam("limit", op.apply(new StringBuilder())); + } + + /** + * set limit with the specified values + * @param limit values to be set + * @param value type + * @return ByProjectKeyMcpServersGet + */ + public ByProjectKeyMcpServersGet withLimit(final Collection limit) { + return copy().withoutQueryParam("limit") + .addQueryParams( + limit.stream().map(s -> new ParamEntry<>("limit", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional limit query parameters + * @param limit values to be added + * @param value type + * @return ByProjectKeyMcpServersGet + */ + public ByProjectKeyMcpServersGet addLimit(final Collection limit) { + return copy().addQueryParams( + limit.stream().map(s -> new ParamEntry<>("limit", s.toString())).collect(Collectors.toList())); + } + + /** + * set offset with the specified value + * @param offset value to be set + * @param value type + * @return ByProjectKeyMcpServersGet + */ + public ByProjectKeyMcpServersGet withOffset(final TValue offset) { + return copy().withQueryParam("offset", offset); + } + + /** + * add additional offset query parameter + * @param offset value to be added + * @param value type + * @return ByProjectKeyMcpServersGet + */ + public ByProjectKeyMcpServersGet addOffset(final TValue offset) { + return copy().addQueryParam("offset", offset); + } + + /** + * set offset with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyMcpServersGet + */ + public ByProjectKeyMcpServersGet withOffset(final Supplier supplier) { + return copy().withQueryParam("offset", supplier.get()); + } + + /** + * add additional offset query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyMcpServersGet + */ + public ByProjectKeyMcpServersGet addOffset(final Supplier supplier) { + return copy().addQueryParam("offset", supplier.get()); + } + + /** + * set offset with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyMcpServersGet + */ + public ByProjectKeyMcpServersGet withOffset(final Function op) { + return copy().withQueryParam("offset", op.apply(new StringBuilder())); + } + + /** + * add additional offset query parameter + * @param op builder for the value to be added + * @return ByProjectKeyMcpServersGet + */ + public ByProjectKeyMcpServersGet addOffset(final Function op) { + return copy().addQueryParam("offset", op.apply(new StringBuilder())); + } + + /** + * set offset with the specified values + * @param offset values to be set + * @param value type + * @return ByProjectKeyMcpServersGet + */ + public ByProjectKeyMcpServersGet withOffset(final Collection offset) { + return copy().withoutQueryParam("offset") + .addQueryParams( + offset.stream().map(s -> new ParamEntry<>("offset", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional offset query parameters + * @param offset values to be added + * @param value type + * @return ByProjectKeyMcpServersGet + */ + public ByProjectKeyMcpServersGet addOffset(final Collection offset) { + return copy().addQueryParams( + offset.stream().map(s -> new ParamEntry<>("offset", s.toString())).collect(Collectors.toList())); + } + + /** + * set withTotal with the specified value + * @param withTotal value to be set + * @param value type + * @return ByProjectKeyMcpServersGet + */ + public ByProjectKeyMcpServersGet withWithTotal(final TValue withTotal) { + return copy().withQueryParam("withTotal", withTotal); + } + + /** + * add additional withTotal query parameter + * @param withTotal value to be added + * @param value type + * @return ByProjectKeyMcpServersGet + */ + public ByProjectKeyMcpServersGet addWithTotal(final TValue withTotal) { + return copy().addQueryParam("withTotal", withTotal); + } + + /** + * set withTotal with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyMcpServersGet + */ + public ByProjectKeyMcpServersGet withWithTotal(final Supplier supplier) { + return copy().withQueryParam("withTotal", supplier.get()); + } + + /** + * add additional withTotal query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyMcpServersGet + */ + public ByProjectKeyMcpServersGet addWithTotal(final Supplier supplier) { + return copy().addQueryParam("withTotal", supplier.get()); + } + + /** + * set withTotal with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyMcpServersGet + */ + public ByProjectKeyMcpServersGet withWithTotal(final Function op) { + return copy().withQueryParam("withTotal", op.apply(new StringBuilder())); + } + + /** + * add additional withTotal query parameter + * @param op builder for the value to be added + * @return ByProjectKeyMcpServersGet + */ + public ByProjectKeyMcpServersGet addWithTotal(final Function op) { + return copy().addQueryParam("withTotal", op.apply(new StringBuilder())); + } + + /** + * set withTotal with the specified values + * @param withTotal values to be set + * @param value type + * @return ByProjectKeyMcpServersGet + */ + public ByProjectKeyMcpServersGet withWithTotal(final Collection withTotal) { + return copy().withoutQueryParam("withTotal") + .addQueryParams(withTotal.stream() + .map(s -> new ParamEntry<>("withTotal", s.toString())) + .collect(Collectors.toList())); + } + + /** + * add additional withTotal query parameters + * @param withTotal values to be added + * @param value type + * @return ByProjectKeyMcpServersGet + */ + public ByProjectKeyMcpServersGet addWithTotal(final Collection withTotal) { + return copy().addQueryParams( + withTotal.stream().map(s -> new ParamEntry<>("withTotal", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyMcpServersGet that = (ByProjectKeyMcpServersGet) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).toHashCode(); + } + + @Override + protected ByProjectKeyMcpServersGet copy() { + return new ByProjectKeyMcpServersGet(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersKeyByKeyDelete.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersKeyByKeyDelete.java new file mode 100644 index 0000000000..a1a37ec107 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersKeyByKeyDelete.java @@ -0,0 +1,211 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +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; + +import tools.jackson.core.type.TypeReference; + +/** + * + * + *
    + *
    + *
    {@code
    + *   CompletableFuture> result = apiRoot
    + *            .withProjectKey("{projectKey}")
    + *            .mcpServers()
    + *            .withKey("{key}")
    + *            .delete()
    + *            .withVersion(version)
    + *            .execute()
    + * }
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyMcpServersKeyByKeyDelete + extends TypeApiMethod + implements com.commercetools.api.client.VersionedTrait, + com.commercetools.api.client.ConflictingTrait, + com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String key; + + public ByProjectKeyMcpServersKeyByKeyDelete(final ApiHttpClient apiHttpClient, String projectKey, String key) { + super(apiHttpClient); + this.projectKey = projectKey; + this.key = key; + } + + public ByProjectKeyMcpServersKeyByKeyDelete(ByProjectKeyMcpServersKeyByKeyDelete t) { + super(t); + this.projectKey = t.projectKey; + this.key = t.key; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/mcp-servers/key=%s", encodePathParam(this.projectKey), + encodePathParam(this.key)); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.DELETE, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking( + final ApiHttpClient client, final Duration timeout) { + return executeBlocking(client, timeout, com.commercetools.api.models.mcp_server.McpServer.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.commercetools.api.models.mcp_server.McpServer.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getKey() { + return this.key; + } + + public List getVersion() { + return this.getQueryParam("version"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setKey(final String key) { + this.key = key; + } + + /** + * set version with the specified value + * @param version value to be set + * @param value type + * @return ByProjectKeyMcpServersKeyByKeyDelete + */ + public ByProjectKeyMcpServersKeyByKeyDelete withVersion(final TValue version) { + return copy().withQueryParam("version", version); + } + + /** + * add additional version query parameter + * @param version value to be added + * @param value type + * @return ByProjectKeyMcpServersKeyByKeyDelete + */ + public ByProjectKeyMcpServersKeyByKeyDelete addVersion(final TValue version) { + return copy().addQueryParam("version", version); + } + + /** + * set version with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyMcpServersKeyByKeyDelete + */ + public ByProjectKeyMcpServersKeyByKeyDelete withVersion(final Supplier supplier) { + return copy().withQueryParam("version", supplier.get()); + } + + /** + * add additional version query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyMcpServersKeyByKeyDelete + */ + public ByProjectKeyMcpServersKeyByKeyDelete addVersion(final Supplier supplier) { + return copy().addQueryParam("version", supplier.get()); + } + + /** + * set version with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyMcpServersKeyByKeyDelete + */ + public ByProjectKeyMcpServersKeyByKeyDelete withVersion(final Function op) { + return copy().withQueryParam("version", op.apply(new StringBuilder())); + } + + /** + * add additional version query parameter + * @param op builder for the value to be added + * @return ByProjectKeyMcpServersKeyByKeyDelete + */ + public ByProjectKeyMcpServersKeyByKeyDelete addVersion(final Function op) { + return copy().addQueryParam("version", op.apply(new StringBuilder())); + } + + /** + * set version with the specified values + * @param version values to be set + * @param value type + * @return ByProjectKeyMcpServersKeyByKeyDelete + */ + public ByProjectKeyMcpServersKeyByKeyDelete withVersion(final Collection version) { + return copy().withoutQueryParam("version") + .addQueryParams( + version.stream().map(s -> new ParamEntry<>("version", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional version query parameters + * @param version values to be added + * @param value type + * @return ByProjectKeyMcpServersKeyByKeyDelete + */ + public ByProjectKeyMcpServersKeyByKeyDelete addVersion(final Collection version) { + return copy().addQueryParams( + version.stream().map(s -> new ParamEntry<>("version", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyMcpServersKeyByKeyDelete that = (ByProjectKeyMcpServersKeyByKeyDelete) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(key, that.key).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(key).toHashCode(); + } + + @Override + protected ByProjectKeyMcpServersKeyByKeyDelete copy() { + return new ByProjectKeyMcpServersKeyByKeyDelete(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersKeyByKeyGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersKeyByKeyGet.java new file mode 100644 index 0000000000..b090971c31 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersKeyByKeyGet.java @@ -0,0 +1,121 @@ + +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 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; + +import tools.jackson.core.type.TypeReference; + +/** + * + * + *
    + *
    + *
    {@code
    + *   CompletableFuture> result = apiRoot
    + *            .withProjectKey("{projectKey}")
    + *            .mcpServers()
    + *            .withKey("{key}")
    + *            .get()
    + *            .execute()
    + * }
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyMcpServersKeyByKeyGet + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String key; + + public ByProjectKeyMcpServersKeyByKeyGet(final ApiHttpClient apiHttpClient, String projectKey, String key) { + super(apiHttpClient); + this.projectKey = projectKey; + this.key = key; + } + + public ByProjectKeyMcpServersKeyByKeyGet(ByProjectKeyMcpServersKeyByKeyGet t) { + super(t); + this.projectKey = t.projectKey; + this.key = t.key; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/mcp-servers/key=%s", encodePathParam(this.projectKey), + encodePathParam(this.key)); + 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.mcp_server.McpServer.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.commercetools.api.models.mcp_server.McpServer.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getKey() { + return this.key; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setKey(final String key) { + this.key = key; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyMcpServersKeyByKeyGet that = (ByProjectKeyMcpServersKeyByKeyGet) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(key, that.key).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(key).toHashCode(); + } + + @Override + protected ByProjectKeyMcpServersKeyByKeyGet copy() { + return new ByProjectKeyMcpServersKeyByKeyGet(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersKeyByKeyPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersKeyByKeyPost.java new file mode 100644 index 0000000000..c609b690ca --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersKeyByKeyPost.java @@ -0,0 +1,146 @@ + +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 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; + +import tools.jackson.core.type.TypeReference; + +/** + *

    Specific Error Codes:

    + * + * + *
    + *
    + *
    {@code
    + *   CompletableFuture> result = apiRoot
    + *            .withProjectKey("{projectKey}")
    + *            .mcpServers()
    + *            .withKey("{key}")
    + *            .post(null)
    + *            .execute()
    + * }
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyMcpServersKeyByKeyPost extends + TypeBodyApiMethod + implements com.commercetools.api.client.ConflictingTrait, + com.commercetools.api.client.ErrorableTrait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String key; + + private com.commercetools.api.models.mcp_server.McpServerUpdate mcpServerUpdate; + + public ByProjectKeyMcpServersKeyByKeyPost(final ApiHttpClient apiHttpClient, String projectKey, String key, + com.commercetools.api.models.mcp_server.McpServerUpdate mcpServerUpdate) { + super(apiHttpClient); + this.projectKey = projectKey; + this.key = key; + this.mcpServerUpdate = mcpServerUpdate; + } + + public ByProjectKeyMcpServersKeyByKeyPost(ByProjectKeyMcpServersKeyByKeyPost t) { + super(t); + this.projectKey = t.projectKey; + this.key = t.key; + this.mcpServerUpdate = t.mcpServerUpdate; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/mcp-servers/key=%s", encodePathParam(this.projectKey), + encodePathParam(this.key)); + 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(mcpServerUpdate))); + + } + + @Override + public ApiHttpResponse executeBlocking( + final ApiHttpClient client, final Duration timeout) { + return executeBlocking(client, timeout, com.commercetools.api.models.mcp_server.McpServer.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.commercetools.api.models.mcp_server.McpServer.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getKey() { + return this.key; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setKey(final String key) { + this.key = key; + } + + public com.commercetools.api.models.mcp_server.McpServerUpdate getBody() { + return mcpServerUpdate; + } + + public ByProjectKeyMcpServersKeyByKeyPost withBody( + com.commercetools.api.models.mcp_server.McpServerUpdate mcpServerUpdate) { + ByProjectKeyMcpServersKeyByKeyPost t = copy(); + t.mcpServerUpdate = mcpServerUpdate; + return t; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyMcpServersKeyByKeyPost that = (ByProjectKeyMcpServersKeyByKeyPost) o; + + return new EqualsBuilder().append(projectKey, that.projectKey) + .append(key, that.key) + .append(mcpServerUpdate, that.mcpServerUpdate) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(key).append(mcpServerUpdate).toHashCode(); + } + + @Override + protected ByProjectKeyMcpServersKeyByKeyPost copy() { + return new ByProjectKeyMcpServersKeyByKeyPost(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersKeyByKeyPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersKeyByKeyPostString.java new file mode 100644 index 0000000000..f7f7d08b58 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersKeyByKeyPostString.java @@ -0,0 +1,144 @@ + +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 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; + +import tools.jackson.core.type.TypeReference; + +/** + *

    Specific Error Codes:

    + * + * + *
    + *
    + *
    {@code
    + *   CompletableFuture> result = apiRoot
    + *            .withProjectKey("{projectKey}")
    + *            .mcpServers()
    + *            .withKey("{key}")
    + *            .post("")
    + *            .execute()
    + * }
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyMcpServersKeyByKeyPostString extends + StringBodyApiMethod + implements com.commercetools.api.client.ConflictingTrait, + com.commercetools.api.client.ErrorableTrait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String key; + + private String mcpServerUpdate; + + public ByProjectKeyMcpServersKeyByKeyPostString(final ApiHttpClient apiHttpClient, String projectKey, String key, + String mcpServerUpdate) { + super(apiHttpClient); + this.projectKey = projectKey; + this.key = key; + this.mcpServerUpdate = mcpServerUpdate; + } + + public ByProjectKeyMcpServersKeyByKeyPostString(ByProjectKeyMcpServersKeyByKeyPostString t) { + super(t); + this.projectKey = t.projectKey; + this.key = t.key; + this.mcpServerUpdate = t.mcpServerUpdate; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/mcp-servers/key=%s", this.projectKey, this.key); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.POST, URI.create(httpRequestPath), getHeaders(), + mcpServerUpdate.getBytes(StandardCharsets.UTF_8)); + + } + + @Override + public ApiHttpResponse executeBlocking( + final ApiHttpClient client, final Duration timeout) { + return executeBlocking(client, timeout, com.commercetools.api.models.mcp_server.McpServer.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.commercetools.api.models.mcp_server.McpServer.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getKey() { + return this.key; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setKey(final String key) { + this.key = key; + } + + public String getBody() { + return mcpServerUpdate; + } + + public ByProjectKeyMcpServersKeyByKeyPostString withBody(String mcpServerUpdate) { + ByProjectKeyMcpServersKeyByKeyPostString t = copy(); + t.mcpServerUpdate = mcpServerUpdate; + return t; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyMcpServersKeyByKeyPostString that = (ByProjectKeyMcpServersKeyByKeyPostString) o; + + return new EqualsBuilder().append(projectKey, that.projectKey) + .append(key, that.key) + .append(mcpServerUpdate, that.mcpServerUpdate) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(key).append(mcpServerUpdate).toHashCode(); + } + + @Override + protected ByProjectKeyMcpServersKeyByKeyPostString copy() { + return new ByProjectKeyMcpServersKeyByKeyPostString(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersKeyByKeyRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersKeyByKeyRequestBuilder.java new file mode 100644 index 0000000000..44bb04bc56 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersKeyByKeyRequestBuilder.java @@ -0,0 +1,49 @@ + +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 ByProjectKeyMcpServersKeyByKeyRequestBuilder { + + private final ApiHttpClient apiHttpClient; + private final String projectKey; + private final String key; + + public ByProjectKeyMcpServersKeyByKeyRequestBuilder(final ApiHttpClient apiHttpClient, final String projectKey, + final String key) { + this.apiHttpClient = apiHttpClient; + this.projectKey = projectKey; + this.key = key; + } + + public ByProjectKeyMcpServersKeyByKeyGet get() { + return new ByProjectKeyMcpServersKeyByKeyGet(apiHttpClient, projectKey, key); + } + + public ByProjectKeyMcpServersKeyByKeyPost post( + com.commercetools.api.models.mcp_server.McpServerUpdate mcpServerUpdate) { + return new ByProjectKeyMcpServersKeyByKeyPost(apiHttpClient, projectKey, key, mcpServerUpdate); + } + + public ByProjectKeyMcpServersKeyByKeyPostString post(final String mcpServerUpdate) { + return new ByProjectKeyMcpServersKeyByKeyPostString(apiHttpClient, projectKey, key, mcpServerUpdate); + } + + public ByProjectKeyMcpServersKeyByKeyPost post( + UnaryOperator op) { + return post(op.apply(com.commercetools.api.models.mcp_server.McpServerUpdateBuilder.of()).build()); + } + + public ByProjectKeyMcpServersKeyByKeyDelete delete() { + return new ByProjectKeyMcpServersKeyByKeyDelete(apiHttpClient, projectKey, key); + } + + public ByProjectKeyMcpServersKeyByKeyDelete delete(TValue version) { + return delete().withVersion(version); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersPost.java new file mode 100644 index 0000000000..74f01b20ce --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersPost.java @@ -0,0 +1,131 @@ + +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 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; + +import tools.jackson.core.type.TypeReference; + +/** + *

    Creates a new MCP Server for the Project.

    + *

    Specific Error Codes:

    + * + * + *
    + *
    + *
    {@code
    + *   CompletableFuture> result = apiRoot
    + *            .withProjectKey("{projectKey}")
    + *            .mcpServers()
    + *            .post(null)
    + *            .execute()
    + * }
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyMcpServersPost extends + TypeBodyApiMethod + implements com.commercetools.api.client.ErrorableTrait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + + private com.commercetools.api.models.mcp_server.McpServerDraft mcpServerDraft; + + public ByProjectKeyMcpServersPost(final ApiHttpClient apiHttpClient, String projectKey, + com.commercetools.api.models.mcp_server.McpServerDraft mcpServerDraft) { + super(apiHttpClient); + this.projectKey = projectKey; + this.mcpServerDraft = mcpServerDraft; + } + + public ByProjectKeyMcpServersPost(ByProjectKeyMcpServersPost t) { + super(t); + this.projectKey = t.projectKey; + this.mcpServerDraft = t.mcpServerDraft; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/mcp-servers", 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(mcpServerDraft))); + + } + + @Override + public ApiHttpResponse executeBlocking( + final ApiHttpClient client, final Duration timeout) { + return executeBlocking(client, timeout, com.commercetools.api.models.mcp_server.McpServer.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.commercetools.api.models.mcp_server.McpServer.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public com.commercetools.api.models.mcp_server.McpServerDraft getBody() { + return mcpServerDraft; + } + + public ByProjectKeyMcpServersPost withBody(com.commercetools.api.models.mcp_server.McpServerDraft mcpServerDraft) { + ByProjectKeyMcpServersPost t = copy(); + t.mcpServerDraft = mcpServerDraft; + return t; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyMcpServersPost that = (ByProjectKeyMcpServersPost) o; + + return new EqualsBuilder().append(projectKey, that.projectKey) + .append(mcpServerDraft, that.mcpServerDraft) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(mcpServerDraft).toHashCode(); + } + + @Override + protected ByProjectKeyMcpServersPost copy() { + return new ByProjectKeyMcpServersPost(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersPostString.java new file mode 100644 index 0000000000..5a4d520db1 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersPostString.java @@ -0,0 +1,131 @@ + +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 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; + +import tools.jackson.core.type.TypeReference; + +/** + *

    Creates a new MCP Server for the Project.

    + *

    Specific Error Codes:

    + * + * + *
    + *
    + *
    {@code
    + *   CompletableFuture> result = apiRoot
    + *            .withProjectKey("{projectKey}")
    + *            .mcpServers()
    + *            .post("")
    + *            .execute()
    + * }
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyMcpServersPostString + extends StringBodyApiMethod + implements com.commercetools.api.client.ErrorableTrait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + + private String mcpServerDraft; + + public ByProjectKeyMcpServersPostString(final ApiHttpClient apiHttpClient, String projectKey, + String mcpServerDraft) { + super(apiHttpClient); + this.projectKey = projectKey; + this.mcpServerDraft = mcpServerDraft; + } + + public ByProjectKeyMcpServersPostString(ByProjectKeyMcpServersPostString t) { + super(t); + this.projectKey = t.projectKey; + this.mcpServerDraft = t.mcpServerDraft; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/mcp-servers", this.projectKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.POST, URI.create(httpRequestPath), getHeaders(), + mcpServerDraft.getBytes(StandardCharsets.UTF_8)); + + } + + @Override + public ApiHttpResponse executeBlocking( + final ApiHttpClient client, final Duration timeout) { + return executeBlocking(client, timeout, com.commercetools.api.models.mcp_server.McpServer.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.commercetools.api.models.mcp_server.McpServer.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public String getBody() { + return mcpServerDraft; + } + + public ByProjectKeyMcpServersPostString withBody(String mcpServerDraft) { + ByProjectKeyMcpServersPostString t = copy(); + t.mcpServerDraft = mcpServerDraft; + return t; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyMcpServersPostString that = (ByProjectKeyMcpServersPostString) o; + + return new EqualsBuilder().append(projectKey, that.projectKey) + .append(mcpServerDraft, that.mcpServerDraft) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(mcpServerDraft).toHashCode(); + } + + @Override + protected ByProjectKeyMcpServersPostString copy() { + return new ByProjectKeyMcpServersPostString(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersRequestBuilder.java new file mode 100644 index 0000000000..96aeba6abd --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersRequestBuilder.java @@ -0,0 +1,49 @@ + +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 ByProjectKeyMcpServersRequestBuilder { + + private final ApiHttpClient apiHttpClient; + private final String projectKey; + + public ByProjectKeyMcpServersRequestBuilder(final ApiHttpClient apiHttpClient, final String projectKey) { + this.apiHttpClient = apiHttpClient; + this.projectKey = projectKey; + } + + public ByProjectKeyMcpServersGet get() { + return new ByProjectKeyMcpServersGet(apiHttpClient, projectKey); + } + + public ByProjectKeyMcpServersPost post(com.commercetools.api.models.mcp_server.McpServerDraft mcpServerDraft) { + return new ByProjectKeyMcpServersPost(apiHttpClient, projectKey, mcpServerDraft); + } + + public ByProjectKeyMcpServersPostString post(final String mcpServerDraft) { + return new ByProjectKeyMcpServersPostString(apiHttpClient, projectKey, mcpServerDraft); + } + + public ByProjectKeyMcpServersPost post( + UnaryOperator op) { + return post(op.apply(com.commercetools.api.models.mcp_server.McpServerDraftBuilder.of()).build()); + } + + public ByProjectKeyMcpServersTypesRequestBuilder types() { + return new ByProjectKeyMcpServersTypesRequestBuilder(apiHttpClient, projectKey); + } + + public ByProjectKeyMcpServersKeyByKeyRequestBuilder withKey(String key) { + return new ByProjectKeyMcpServersKeyByKeyRequestBuilder(apiHttpClient, projectKey, key); + } + + public ByProjectKeyMcpServersByIDRequestBuilder withId(String ID) { + return new ByProjectKeyMcpServersByIDRequestBuilder(apiHttpClient, projectKey, ID); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersTypesByMcpServerTypeGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersTypesByMcpServerTypeGet.java new file mode 100644 index 0000000000..af80ba1d32 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersTypesByMcpServerTypeGet.java @@ -0,0 +1,218 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +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; + +import tools.jackson.core.type.TypeReference; + +/** + *

    Returns a single MCP Server type. When majorVersion is omitted, the latest major version is returned.

    + * + *
    + *
    + *
    {@code
    + *   CompletableFuture> result = apiRoot
    + *            .withProjectKey("{projectKey}")
    + *            .mcpServers()
    + *            .types()
    + *            .withMcpServerType("{mcpServerType}")
    + *            .get()
    + *            .execute()
    + * }
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyMcpServersTypesByMcpServerTypeGet extends + TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String mcpServerType; + + public ByProjectKeyMcpServersTypesByMcpServerTypeGet(final ApiHttpClient apiHttpClient, String projectKey, + String mcpServerType) { + super(apiHttpClient); + this.projectKey = projectKey; + this.mcpServerType = mcpServerType; + } + + public ByProjectKeyMcpServersTypesByMcpServerTypeGet(ByProjectKeyMcpServersTypesByMcpServerTypeGet t) { + super(t); + this.projectKey = t.projectKey; + this.mcpServerType = t.mcpServerType; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/mcp-servers/types/%s", encodePathParam(this.projectKey), + encodePathParam(this.mcpServerType)); + 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.mcp_server.McpServerType.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.commercetools.api.models.mcp_server.McpServerType.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getMcpServerType() { + return this.mcpServerType; + } + + public List getMajorVersion() { + return this.getQueryParam("majorVersion"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setMcpServerType(final String mcpServerType) { + this.mcpServerType = mcpServerType; + } + + /** + * set majorVersion with the specified value + * @param majorVersion value to be set + * @param value type + * @return ByProjectKeyMcpServersTypesByMcpServerTypeGet + */ + public ByProjectKeyMcpServersTypesByMcpServerTypeGet withMajorVersion(final TValue majorVersion) { + return copy().withQueryParam("majorVersion", majorVersion); + } + + /** + * add additional majorVersion query parameter + * @param majorVersion value to be added + * @param value type + * @return ByProjectKeyMcpServersTypesByMcpServerTypeGet + */ + public ByProjectKeyMcpServersTypesByMcpServerTypeGet addMajorVersion(final TValue majorVersion) { + return copy().addQueryParam("majorVersion", majorVersion); + } + + /** + * set majorVersion with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyMcpServersTypesByMcpServerTypeGet + */ + public ByProjectKeyMcpServersTypesByMcpServerTypeGet withMajorVersion(final Supplier supplier) { + return copy().withQueryParam("majorVersion", supplier.get()); + } + + /** + * add additional majorVersion query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyMcpServersTypesByMcpServerTypeGet + */ + public ByProjectKeyMcpServersTypesByMcpServerTypeGet addMajorVersion(final Supplier supplier) { + return copy().addQueryParam("majorVersion", supplier.get()); + } + + /** + * set majorVersion with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyMcpServersTypesByMcpServerTypeGet + */ + public ByProjectKeyMcpServersTypesByMcpServerTypeGet withMajorVersion( + final Function op) { + return copy().withQueryParam("majorVersion", op.apply(new StringBuilder())); + } + + /** + * add additional majorVersion query parameter + * @param op builder for the value to be added + * @return ByProjectKeyMcpServersTypesByMcpServerTypeGet + */ + public ByProjectKeyMcpServersTypesByMcpServerTypeGet addMajorVersion( + final Function op) { + return copy().addQueryParam("majorVersion", op.apply(new StringBuilder())); + } + + /** + * set majorVersion with the specified values + * @param majorVersion values to be set + * @param value type + * @return ByProjectKeyMcpServersTypesByMcpServerTypeGet + */ + public ByProjectKeyMcpServersTypesByMcpServerTypeGet withMajorVersion( + final Collection majorVersion) { + return copy().withoutQueryParam("majorVersion") + .addQueryParams(majorVersion.stream() + .map(s -> new ParamEntry<>("majorVersion", s.toString())) + .collect(Collectors.toList())); + } + + /** + * add additional majorVersion query parameters + * @param majorVersion values to be added + * @param value type + * @return ByProjectKeyMcpServersTypesByMcpServerTypeGet + */ + public ByProjectKeyMcpServersTypesByMcpServerTypeGet addMajorVersion( + final Collection majorVersion) { + return copy().addQueryParams(majorVersion.stream() + .map(s -> new ParamEntry<>("majorVersion", s.toString())) + .collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyMcpServersTypesByMcpServerTypeGet that = (ByProjectKeyMcpServersTypesByMcpServerTypeGet) o; + + return new EqualsBuilder().append(projectKey, that.projectKey) + .append(mcpServerType, that.mcpServerType) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(mcpServerType).toHashCode(); + } + + @Override + protected ByProjectKeyMcpServersTypesByMcpServerTypeGet copy() { + return new ByProjectKeyMcpServersTypesByMcpServerTypeGet(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersTypesByMcpServerTypeRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersTypesByMcpServerTypeRequestBuilder.java new file mode 100644 index 0000000000..75f1741c27 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersTypesByMcpServerTypeRequestBuilder.java @@ -0,0 +1,25 @@ + +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 ByProjectKeyMcpServersTypesByMcpServerTypeRequestBuilder { + + private final ApiHttpClient apiHttpClient; + private final String projectKey; + private final String mcpServerType; + + public ByProjectKeyMcpServersTypesByMcpServerTypeRequestBuilder(final ApiHttpClient apiHttpClient, + final String projectKey, final String mcpServerType) { + this.apiHttpClient = apiHttpClient; + this.projectKey = projectKey; + this.mcpServerType = mcpServerType; + } + + public ByProjectKeyMcpServersTypesByMcpServerTypeGet get() { + return new ByProjectKeyMcpServersTypesByMcpServerTypeGet(apiHttpClient, projectKey, mcpServerType); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersTypesGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersTypesGet.java new file mode 100644 index 0000000000..5e8d090e27 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersTypesGet.java @@ -0,0 +1,108 @@ + +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 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; + +import tools.jackson.core.type.TypeReference; + +/** + *

    Returns the catalog of available MCP Server types, each with its major versions and the tools you can enable for them.

    + * + *
    + *
    + *
    {@code
    + *   CompletableFuture> result = apiRoot
    + *            .withProjectKey("{projectKey}")
    + *            .mcpServers()
    + *            .types()
    + *            .get()
    + *            .execute()
    + * }
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyMcpServersTypesGet + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + + public ByProjectKeyMcpServersTypesGet(final ApiHttpClient apiHttpClient, String projectKey) { + super(apiHttpClient); + this.projectKey = projectKey; + } + + public ByProjectKeyMcpServersTypesGet(ByProjectKeyMcpServersTypesGet t) { + super(t); + this.projectKey = t.projectKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/mcp-servers/types", 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, tools.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute(final ApiHttpClient client) { + return execute(client, tools.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; + + ByProjectKeyMcpServersTypesGet that = (ByProjectKeyMcpServersTypesGet) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).toHashCode(); + } + + @Override + protected ByProjectKeyMcpServersTypesGet copy() { + return new ByProjectKeyMcpServersTypesGet(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersTypesRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersTypesRequestBuilder.java new file mode 100644 index 0000000000..238ff3e89e --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersTypesRequestBuilder.java @@ -0,0 +1,26 @@ + +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 ByProjectKeyMcpServersTypesRequestBuilder { + + private final ApiHttpClient apiHttpClient; + private final String projectKey; + + public ByProjectKeyMcpServersTypesRequestBuilder(final ApiHttpClient apiHttpClient, final String projectKey) { + this.apiHttpClient = apiHttpClient; + this.projectKey = projectKey; + } + + public ByProjectKeyMcpServersTypesGet get() { + return new ByProjectKeyMcpServersTypesGet(apiHttpClient, projectKey); + } + + public ByProjectKeyMcpServersTypesByMcpServerTypeRequestBuilder withMcpServerType(String mcpServerType) { + return new ByProjectKeyMcpServersTypesByMcpServerTypeRequestBuilder(apiHttpClient, projectKey, mcpServerType); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyRequestBuilder.java index e3a0f03621..41539153cb 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyRequestBuilder.java @@ -231,4 +231,8 @@ public ByProjectKeyAttributeGroupsRequestBuilder attributeGroups() { return new ByProjectKeyAttributeGroupsRequestBuilder(apiHttpClient, projectKey); } + public ByProjectKeyMcpServersRequestBuilder mcpServers() { + return new ByProjectKeyMcpServersRequestBuilder(apiHttpClient, projectKey); + } + } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/CommerceMcpServerConfig.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/CommerceMcpServerConfig.java new file mode 100644 index 0000000000..586c40dd5b --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/CommerceMcpServerConfig.java @@ -0,0 +1,242 @@ + +package com.commercetools.api.models.mcp_server; + +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 io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; +import tools.jackson.databind.annotation.*; + +/** + *

    Connection configuration of a Commerce MCP Server. Exposes the Commerce MCP Server tools to AI agents.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     CommerceMcpServerConfig commerceMcpServerConfig = CommerceMcpServerConfig.builder()
    + *             .majorVersion("{majorVersion}")
    + *             .url("{url}")
    + *             .plusTools(toolsBuilder -> toolsBuilder)
    + *             .plusToolCustomizations(toolCustomizationsBuilder -> toolCustomizationsBuilder)
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("CommerceMCP") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = CommerceMcpServerConfigImpl.class) +public interface CommerceMcpServerConfig extends McpServerConfig { + + /** + * discriminator value for CommerceMcpServerConfig + */ + String COMMERCE_MCP = "CommerceMCP"; + + /** + *

    Major version of this MCP Server type. Supported versions are v1 (deprecated) and v4.

    + * @return majorVersion + */ + @NotNull + @JsonProperty("majorVersion") + public String getMajorVersion(); + + /** + *

    URL of the MCP Server. Generated by the system from the region, domain, Project key, and MCP Server key. Format: https://mcp.{region}.{domain}/projects/{projectKey}/{mcpServerKey}

    + * @return url + */ + @NotNull + @JsonProperty("url") + public String getUrl(); + + /** + *

    List of tools enabled for this MCP Server. Use all to enable all available tools, or specify individual tool names such as read_products or create_orders. To reduce the number of LLM turns and improve overall performance, it is advisable to expose only the tools that are necessary, or at least minimize the exposure of tools that are unlikely to be used.

    + * @return tools + */ + @NotNull + @JsonProperty("tools") + public List getTools(); + + /** + *

    Per-tool customizations applied at tools/list and tools/call time, such as overriding a tool's description or constraining its parameters.

    + * @return toolCustomizations + */ + @NotNull + @Valid + @JsonProperty("toolCustomizations") + public List getToolCustomizations(); + + /** + *

    Response field-filtering rules applied to tool responses.

    + * @return jsonOutputFiltering + */ + @Valid + @JsonProperty("jsonOutputFiltering") + public McpServerJsonOutputFiltering getJsonOutputFiltering(); + + /** + *

    Output formatting applied to tool responses. When absent, responses are left untouched.

    + * @return toolOutputFormatting + */ + + @JsonProperty("toolOutputFormatting") + public McpServerToolOutputFormatting getToolOutputFormatting(); + + /** + *

    Major version of this MCP Server type. Supported versions are v1 (deprecated) and v4.

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

    URL of the MCP Server. Generated by the system from the region, domain, Project key, and MCP Server key. Format: https://mcp.{region}.{domain}/projects/{projectKey}/{mcpServerKey}

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

    List of tools enabled for this MCP Server. Use all to enable all available tools, or specify individual tool names such as read_products or create_orders. To reduce the number of LLM turns and improve overall performance, it is advisable to expose only the tools that are necessary, or at least minimize the exposure of tools that are unlikely to be used.

    + * @param tools values to be set + */ + + @JsonIgnore + public void setTools(final McpServerTool... tools); + + /** + *

    List of tools enabled for this MCP Server. Use all to enable all available tools, or specify individual tool names such as read_products or create_orders. To reduce the number of LLM turns and improve overall performance, it is advisable to expose only the tools that are necessary, or at least minimize the exposure of tools that are unlikely to be used.

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

    Per-tool customizations applied at tools/list and tools/call time, such as overriding a tool's description or constraining its parameters.

    + * @param toolCustomizations values to be set + */ + + @JsonIgnore + public void setToolCustomizations(final ToolCustomization... toolCustomizations); + + /** + *

    Per-tool customizations applied at tools/list and tools/call time, such as overriding a tool's description or constraining its parameters.

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

    Response field-filtering rules applied to tool responses.

    + * @param jsonOutputFiltering value to be set + */ + + public void setJsonOutputFiltering(final McpServerJsonOutputFiltering jsonOutputFiltering); + + /** + *

    Output formatting applied to tool responses. When absent, responses are left untouched.

    + * @param toolOutputFormatting value to be set + */ + + public void setToolOutputFormatting(final McpServerToolOutputFormatting toolOutputFormatting); + + /** + * factory method + * @return instance of CommerceMcpServerConfig + */ + public static CommerceMcpServerConfig of() { + return new CommerceMcpServerConfigImpl(); + } + + /** + * factory method to create a shallow copy CommerceMcpServerConfig + * @param template instance to be copied + * @return copy instance + */ + public static CommerceMcpServerConfig of(final CommerceMcpServerConfig template) { + CommerceMcpServerConfigImpl instance = new CommerceMcpServerConfigImpl(); + instance.setMajorVersion(template.getMajorVersion()); + instance.setUrl(template.getUrl()); + instance.setTools(template.getTools()); + instance.setToolCustomizations(template.getToolCustomizations()); + instance.setJsonOutputFiltering(template.getJsonOutputFiltering()); + instance.setToolOutputFormatting(template.getToolOutputFormatting()); + return instance; + } + + public CommerceMcpServerConfig copyDeep(); + + /** + * factory method to create a deep copy of CommerceMcpServerConfig + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static CommerceMcpServerConfig deepCopy(@Nullable final CommerceMcpServerConfig template) { + if (template == null) { + return null; + } + CommerceMcpServerConfigImpl instance = new CommerceMcpServerConfigImpl(); + instance.setMajorVersion(template.getMajorVersion()); + instance.setUrl(template.getUrl()); + instance.setTools(Optional.ofNullable(template.getTools()).map(ArrayList::new).orElse(null)); + instance.setToolCustomizations(Optional.ofNullable(template.getToolCustomizations()) + .map(t -> t.stream() + .map(com.commercetools.api.models.mcp_server.ToolCustomization::deepCopy) + .collect(Collectors.toList())) + .orElse(null)); + instance.setJsonOutputFiltering(com.commercetools.api.models.mcp_server.McpServerJsonOutputFiltering + .deepCopy(template.getJsonOutputFiltering())); + instance.setToolOutputFormatting(template.getToolOutputFormatting()); + return instance; + } + + /** + * builder factory method for CommerceMcpServerConfig + * @return builder + */ + public static CommerceMcpServerConfigBuilder builder() { + return CommerceMcpServerConfigBuilder.of(); + } + + /** + * create builder for CommerceMcpServerConfig instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CommerceMcpServerConfigBuilder builder(final CommerceMcpServerConfig template) { + return CommerceMcpServerConfigBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withCommerceMcpServerConfig(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static tools.jackson.core.type.TypeReference typeReference() { + return new tools.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/mcp_server/CommerceMcpServerConfigBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/CommerceMcpServerConfigBuilder.java new file mode 100644 index 0000000000..87444c5a29 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/CommerceMcpServerConfigBuilder.java @@ -0,0 +1,349 @@ + +package com.commercetools.api.models.mcp_server; + +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; + +/** + * CommerceMcpServerConfigBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     CommerceMcpServerConfig commerceMcpServerConfig = CommerceMcpServerConfig.builder()
    + *             .majorVersion("{majorVersion}")
    + *             .url("{url}")
    + *             .plusTools(toolsBuilder -> toolsBuilder)
    + *             .plusToolCustomizations(toolCustomizationsBuilder -> toolCustomizationsBuilder)
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CommerceMcpServerConfigBuilder implements Builder { + + private String majorVersion; + + private String url; + + private java.util.List tools; + + private java.util.List toolCustomizations; + + @Nullable + private com.commercetools.api.models.mcp_server.McpServerJsonOutputFiltering jsonOutputFiltering; + + @Nullable + private com.commercetools.api.models.mcp_server.McpServerToolOutputFormatting toolOutputFormatting; + + /** + *

    Major version of this MCP Server type. Supported versions are v1 (deprecated) and v4.

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

    URL of the MCP Server. Generated by the system from the region, domain, Project key, and MCP Server key. Format: https://mcp.{region}.{domain}/projects/{projectKey}/{mcpServerKey}

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

    List of tools enabled for this MCP Server. Use all to enable all available tools, or specify individual tool names such as read_products or create_orders. To reduce the number of LLM turns and improve overall performance, it is advisable to expose only the tools that are necessary, or at least minimize the exposure of tools that are unlikely to be used.

    + * @param tools value to be set + * @return Builder + */ + + public CommerceMcpServerConfigBuilder tools(final com.commercetools.api.models.mcp_server.McpServerTool... tools) { + this.tools = new ArrayList<>(Arrays.asList(tools)); + return this; + } + + /** + *

    List of tools enabled for this MCP Server. Use all to enable all available tools, or specify individual tool names such as read_products or create_orders. To reduce the number of LLM turns and improve overall performance, it is advisable to expose only the tools that are necessary, or at least minimize the exposure of tools that are unlikely to be used.

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

    List of tools enabled for this MCP Server. Use all to enable all available tools, or specify individual tool names such as read_products or create_orders. To reduce the number of LLM turns and improve overall performance, it is advisable to expose only the tools that are necessary, or at least minimize the exposure of tools that are unlikely to be used.

    + * @param tools value to be set + * @return Builder + */ + + public CommerceMcpServerConfigBuilder plusTools( + final com.commercetools.api.models.mcp_server.McpServerTool... tools) { + if (this.tools == null) { + this.tools = new ArrayList<>(); + } + this.tools.addAll(Arrays.asList(tools)); + return this; + } + + /** + *

    Per-tool customizations applied at tools/list and tools/call time, such as overriding a tool's description or constraining its parameters.

    + * @param toolCustomizations value to be set + * @return Builder + */ + + public CommerceMcpServerConfigBuilder toolCustomizations( + final com.commercetools.api.models.mcp_server.ToolCustomization... toolCustomizations) { + this.toolCustomizations = new ArrayList<>(Arrays.asList(toolCustomizations)); + return this; + } + + /** + *

    Per-tool customizations applied at tools/list and tools/call time, such as overriding a tool's description or constraining its parameters.

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

    Per-tool customizations applied at tools/list and tools/call time, such as overriding a tool's description or constraining its parameters.

    + * @param toolCustomizations value to be set + * @return Builder + */ + + public CommerceMcpServerConfigBuilder plusToolCustomizations( + final com.commercetools.api.models.mcp_server.ToolCustomization... toolCustomizations) { + if (this.toolCustomizations == null) { + this.toolCustomizations = new ArrayList<>(); + } + this.toolCustomizations.addAll(Arrays.asList(toolCustomizations)); + return this; + } + + /** + *

    Per-tool customizations applied at tools/list and tools/call time, such as overriding a tool's description or constraining its parameters.

    + * @param builder function to build the toolCustomizations value + * @return Builder + */ + + public CommerceMcpServerConfigBuilder plusToolCustomizations( + Function builder) { + if (this.toolCustomizations == null) { + this.toolCustomizations = new ArrayList<>(); + } + this.toolCustomizations + .add(builder.apply(com.commercetools.api.models.mcp_server.ToolCustomizationBuilder.of()).build()); + return this; + } + + /** + *

    Per-tool customizations applied at tools/list and tools/call time, such as overriding a tool's description or constraining its parameters.

    + * @param builder function to build the toolCustomizations value + * @return Builder + */ + + public CommerceMcpServerConfigBuilder withToolCustomizations( + Function builder) { + this.toolCustomizations = new ArrayList<>(); + this.toolCustomizations + .add(builder.apply(com.commercetools.api.models.mcp_server.ToolCustomizationBuilder.of()).build()); + return this; + } + + /** + *

    Per-tool customizations applied at tools/list and tools/call time, such as overriding a tool's description or constraining its parameters.

    + * @param builder function to build the toolCustomizations value + * @return Builder + */ + + public CommerceMcpServerConfigBuilder addToolCustomizations( + Function builder) { + return plusToolCustomizations( + builder.apply(com.commercetools.api.models.mcp_server.ToolCustomizationBuilder.of())); + } + + /** + *

    Per-tool customizations applied at tools/list and tools/call time, such as overriding a tool's description or constraining its parameters.

    + * @param builder function to build the toolCustomizations value + * @return Builder + */ + + public CommerceMcpServerConfigBuilder setToolCustomizations( + Function builder) { + return toolCustomizations(builder.apply(com.commercetools.api.models.mcp_server.ToolCustomizationBuilder.of())); + } + + /** + *

    Response field-filtering rules applied to tool responses.

    + * @param builder function to build the jsonOutputFiltering value + * @return Builder + */ + + public CommerceMcpServerConfigBuilder jsonOutputFiltering( + Function builder) { + this.jsonOutputFiltering = builder + .apply(com.commercetools.api.models.mcp_server.McpServerJsonOutputFilteringBuilder.of()) + .build(); + return this; + } + + /** + *

    Response field-filtering rules applied to tool responses.

    + * @param builder function to build the jsonOutputFiltering value + * @return Builder + */ + + public CommerceMcpServerConfigBuilder withJsonOutputFiltering( + Function builder) { + this.jsonOutputFiltering = builder + .apply(com.commercetools.api.models.mcp_server.McpServerJsonOutputFilteringBuilder.of()); + return this; + } + + /** + *

    Response field-filtering rules applied to tool responses.

    + * @param jsonOutputFiltering value to be set + * @return Builder + */ + + public CommerceMcpServerConfigBuilder jsonOutputFiltering( + @Nullable final com.commercetools.api.models.mcp_server.McpServerJsonOutputFiltering jsonOutputFiltering) { + this.jsonOutputFiltering = jsonOutputFiltering; + return this; + } + + /** + *

    Output formatting applied to tool responses. When absent, responses are left untouched.

    + * @param toolOutputFormatting value to be set + * @return Builder + */ + + public CommerceMcpServerConfigBuilder toolOutputFormatting( + @Nullable final com.commercetools.api.models.mcp_server.McpServerToolOutputFormatting toolOutputFormatting) { + this.toolOutputFormatting = toolOutputFormatting; + return this; + } + + /** + *

    Major version of this MCP Server type. Supported versions are v1 (deprecated) and v4.

    + * @return majorVersion + */ + + public String getMajorVersion() { + return this.majorVersion; + } + + /** + *

    URL of the MCP Server. Generated by the system from the region, domain, Project key, and MCP Server key. Format: https://mcp.{region}.{domain}/projects/{projectKey}/{mcpServerKey}

    + * @return url + */ + + public String getUrl() { + return this.url; + } + + /** + *

    List of tools enabled for this MCP Server. Use all to enable all available tools, or specify individual tool names such as read_products or create_orders. To reduce the number of LLM turns and improve overall performance, it is advisable to expose only the tools that are necessary, or at least minimize the exposure of tools that are unlikely to be used.

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

    Per-tool customizations applied at tools/list and tools/call time, such as overriding a tool's description or constraining its parameters.

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

    Response field-filtering rules applied to tool responses.

    + * @return jsonOutputFiltering + */ + + @Nullable + public com.commercetools.api.models.mcp_server.McpServerJsonOutputFiltering getJsonOutputFiltering() { + return this.jsonOutputFiltering; + } + + /** + *

    Output formatting applied to tool responses. When absent, responses are left untouched.

    + * @return toolOutputFormatting + */ + + @Nullable + public com.commercetools.api.models.mcp_server.McpServerToolOutputFormatting getToolOutputFormatting() { + return this.toolOutputFormatting; + } + + /** + * builds CommerceMcpServerConfig with checking for non-null required values + * @return CommerceMcpServerConfig + */ + public CommerceMcpServerConfig build() { + Objects.requireNonNull(majorVersion, CommerceMcpServerConfig.class + ": majorVersion is missing"); + Objects.requireNonNull(url, CommerceMcpServerConfig.class + ": url is missing"); + Objects.requireNonNull(tools, CommerceMcpServerConfig.class + ": tools is missing"); + Objects.requireNonNull(toolCustomizations, CommerceMcpServerConfig.class + ": toolCustomizations is missing"); + return new CommerceMcpServerConfigImpl(majorVersion, url, tools, toolCustomizations, jsonOutputFiltering, + toolOutputFormatting); + } + + /** + * builds CommerceMcpServerConfig without checking for non-null required values + * @return CommerceMcpServerConfig + */ + public CommerceMcpServerConfig buildUnchecked() { + return new CommerceMcpServerConfigImpl(majorVersion, url, tools, toolCustomizations, jsonOutputFiltering, + toolOutputFormatting); + } + + /** + * factory method for an instance of CommerceMcpServerConfigBuilder + * @return builder + */ + public static CommerceMcpServerConfigBuilder of() { + return new CommerceMcpServerConfigBuilder(); + } + + /** + * create builder for CommerceMcpServerConfig instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CommerceMcpServerConfigBuilder of(final CommerceMcpServerConfig template) { + CommerceMcpServerConfigBuilder builder = new CommerceMcpServerConfigBuilder(); + builder.majorVersion = template.getMajorVersion(); + builder.url = template.getUrl(); + builder.tools = template.getTools(); + builder.toolCustomizations = template.getToolCustomizations(); + builder.jsonOutputFiltering = template.getJsonOutputFiltering(); + builder.toolOutputFormatting = template.getToolOutputFormatting(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/CommerceMcpServerConfigDraft.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/CommerceMcpServerConfigDraft.java new file mode 100644 index 0000000000..95233cdba4 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/CommerceMcpServerConfigDraft.java @@ -0,0 +1,223 @@ + +package com.commercetools.api.models.mcp_server; + +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 io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; +import tools.jackson.databind.annotation.*; + +/** + *

    Connection configuration for creating or updating a Commerce MCP Server.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     CommerceMcpServerConfigDraft commerceMcpServerConfigDraft = CommerceMcpServerConfigDraft.builder()
    + *             .majorVersion("{majorVersion}")
    + *             .plusTools(toolsBuilder -> toolsBuilder)
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("CommerceMCP") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = CommerceMcpServerConfigDraftImpl.class) +public interface CommerceMcpServerConfigDraft + extends McpServerConfigDraft, io.vrap.rmf.base.client.Draft { + + /** + * discriminator value for CommerceMcpServerConfigDraft + */ + String COMMERCE_MCP = "CommerceMCP"; + + /** + *

    Major version of this MCP Server type. Supported versions are v1 (deprecated) and v4.

    + * @return majorVersion + */ + @NotNull + @JsonProperty("majorVersion") + public String getMajorVersion(); + + /** + *

    List of tools to enable for this MCP Server. Use all to enable all available tools, or specify individual tool names such as read_products or create_orders. To reduce the number of LLM turns and improve overall performance, it is advisable to expose only the tools that are necessary, or at least minimize the exposure of tools that are unlikely to be used.

    + * @return tools + */ + @NotNull + @JsonProperty("tools") + public List getTools(); + + /** + *

    Per-tool customizations applied at tools/list and tools/call time, such as overriding a tool's description or constraining its parameters.

    + * @return toolCustomizations + */ + @Valid + @JsonProperty("toolCustomizations") + public List getToolCustomizations(); + + /** + *

    Response field-filtering rules applied to tool responses.

    + * @return jsonOutputFiltering + */ + @Valid + @JsonProperty("jsonOutputFiltering") + public McpServerJsonOutputFiltering getJsonOutputFiltering(); + + /** + *

    Output formatting applied to tool responses. When absent, responses are left untouched.

    + * @return toolOutputFormatting + */ + + @JsonProperty("toolOutputFormatting") + public McpServerToolOutputFormatting getToolOutputFormatting(); + + /** + *

    Major version of this MCP Server type. Supported versions are v1 (deprecated) and v4.

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

    List of tools to enable for this MCP Server. Use all to enable all available tools, or specify individual tool names such as read_products or create_orders. To reduce the number of LLM turns and improve overall performance, it is advisable to expose only the tools that are necessary, or at least minimize the exposure of tools that are unlikely to be used.

    + * @param tools values to be set + */ + + @JsonIgnore + public void setTools(final McpServerTool... tools); + + /** + *

    List of tools to enable for this MCP Server. Use all to enable all available tools, or specify individual tool names such as read_products or create_orders. To reduce the number of LLM turns and improve overall performance, it is advisable to expose only the tools that are necessary, or at least minimize the exposure of tools that are unlikely to be used.

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

    Per-tool customizations applied at tools/list and tools/call time, such as overriding a tool's description or constraining its parameters.

    + * @param toolCustomizations values to be set + */ + + @JsonIgnore + public void setToolCustomizations(final ToolCustomization... toolCustomizations); + + /** + *

    Per-tool customizations applied at tools/list and tools/call time, such as overriding a tool's description or constraining its parameters.

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

    Response field-filtering rules applied to tool responses.

    + * @param jsonOutputFiltering value to be set + */ + + public void setJsonOutputFiltering(final McpServerJsonOutputFiltering jsonOutputFiltering); + + /** + *

    Output formatting applied to tool responses. When absent, responses are left untouched.

    + * @param toolOutputFormatting value to be set + */ + + public void setToolOutputFormatting(final McpServerToolOutputFormatting toolOutputFormatting); + + /** + * factory method + * @return instance of CommerceMcpServerConfigDraft + */ + public static CommerceMcpServerConfigDraft of() { + return new CommerceMcpServerConfigDraftImpl(); + } + + /** + * factory method to create a shallow copy CommerceMcpServerConfigDraft + * @param template instance to be copied + * @return copy instance + */ + public static CommerceMcpServerConfigDraft of(final CommerceMcpServerConfigDraft template) { + CommerceMcpServerConfigDraftImpl instance = new CommerceMcpServerConfigDraftImpl(); + instance.setMajorVersion(template.getMajorVersion()); + instance.setTools(template.getTools()); + instance.setToolCustomizations(template.getToolCustomizations()); + instance.setJsonOutputFiltering(template.getJsonOutputFiltering()); + instance.setToolOutputFormatting(template.getToolOutputFormatting()); + return instance; + } + + public CommerceMcpServerConfigDraft copyDeep(); + + /** + * factory method to create a deep copy of CommerceMcpServerConfigDraft + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static CommerceMcpServerConfigDraft deepCopy(@Nullable final CommerceMcpServerConfigDraft template) { + if (template == null) { + return null; + } + CommerceMcpServerConfigDraftImpl instance = new CommerceMcpServerConfigDraftImpl(); + instance.setMajorVersion(template.getMajorVersion()); + instance.setTools(Optional.ofNullable(template.getTools()).map(ArrayList::new).orElse(null)); + instance.setToolCustomizations(Optional.ofNullable(template.getToolCustomizations()) + .map(t -> t.stream() + .map(com.commercetools.api.models.mcp_server.ToolCustomization::deepCopy) + .collect(Collectors.toList())) + .orElse(null)); + instance.setJsonOutputFiltering(com.commercetools.api.models.mcp_server.McpServerJsonOutputFiltering + .deepCopy(template.getJsonOutputFiltering())); + instance.setToolOutputFormatting(template.getToolOutputFormatting()); + return instance; + } + + /** + * builder factory method for CommerceMcpServerConfigDraft + * @return builder + */ + public static CommerceMcpServerConfigDraftBuilder builder() { + return CommerceMcpServerConfigDraftBuilder.of(); + } + + /** + * create builder for CommerceMcpServerConfigDraft instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CommerceMcpServerConfigDraftBuilder builder(final CommerceMcpServerConfigDraft template) { + return CommerceMcpServerConfigDraftBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withCommerceMcpServerConfigDraft(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static tools.jackson.core.type.TypeReference typeReference() { + return new tools.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/mcp_server/CommerceMcpServerConfigDraftBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/CommerceMcpServerConfigDraftBuilder.java new file mode 100644 index 0000000000..18518c0078 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/CommerceMcpServerConfigDraftBuilder.java @@ -0,0 +1,325 @@ + +package com.commercetools.api.models.mcp_server; + +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; + +/** + * CommerceMcpServerConfigDraftBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     CommerceMcpServerConfigDraft commerceMcpServerConfigDraft = CommerceMcpServerConfigDraft.builder()
    + *             .majorVersion("{majorVersion}")
    + *             .plusTools(toolsBuilder -> toolsBuilder)
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CommerceMcpServerConfigDraftBuilder implements Builder { + + private String majorVersion; + + private java.util.List tools; + + @Nullable + private java.util.List toolCustomizations; + + @Nullable + private com.commercetools.api.models.mcp_server.McpServerJsonOutputFiltering jsonOutputFiltering; + + @Nullable + private com.commercetools.api.models.mcp_server.McpServerToolOutputFormatting toolOutputFormatting; + + /** + *

    Major version of this MCP Server type. Supported versions are v1 (deprecated) and v4.

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

    List of tools to enable for this MCP Server. Use all to enable all available tools, or specify individual tool names such as read_products or create_orders. To reduce the number of LLM turns and improve overall performance, it is advisable to expose only the tools that are necessary, or at least minimize the exposure of tools that are unlikely to be used.

    + * @param tools value to be set + * @return Builder + */ + + public CommerceMcpServerConfigDraftBuilder tools( + final com.commercetools.api.models.mcp_server.McpServerTool... tools) { + this.tools = new ArrayList<>(Arrays.asList(tools)); + return this; + } + + /** + *

    List of tools to enable for this MCP Server. Use all to enable all available tools, or specify individual tool names such as read_products or create_orders. To reduce the number of LLM turns and improve overall performance, it is advisable to expose only the tools that are necessary, or at least minimize the exposure of tools that are unlikely to be used.

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

    List of tools to enable for this MCP Server. Use all to enable all available tools, or specify individual tool names such as read_products or create_orders. To reduce the number of LLM turns and improve overall performance, it is advisable to expose only the tools that are necessary, or at least minimize the exposure of tools that are unlikely to be used.

    + * @param tools value to be set + * @return Builder + */ + + public CommerceMcpServerConfigDraftBuilder plusTools( + final com.commercetools.api.models.mcp_server.McpServerTool... tools) { + if (this.tools == null) { + this.tools = new ArrayList<>(); + } + this.tools.addAll(Arrays.asList(tools)); + return this; + } + + /** + *

    Per-tool customizations applied at tools/list and tools/call time, such as overriding a tool's description or constraining its parameters.

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

    Per-tool customizations applied at tools/list and tools/call time, such as overriding a tool's description or constraining its parameters.

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

    Per-tool customizations applied at tools/list and tools/call time, such as overriding a tool's description or constraining its parameters.

    + * @param toolCustomizations value to be set + * @return Builder + */ + + public CommerceMcpServerConfigDraftBuilder plusToolCustomizations( + @Nullable final com.commercetools.api.models.mcp_server.ToolCustomization... toolCustomizations) { + if (this.toolCustomizations == null) { + this.toolCustomizations = new ArrayList<>(); + } + this.toolCustomizations.addAll(Arrays.asList(toolCustomizations)); + return this; + } + + /** + *

    Per-tool customizations applied at tools/list and tools/call time, such as overriding a tool's description or constraining its parameters.

    + * @param builder function to build the toolCustomizations value + * @return Builder + */ + + public CommerceMcpServerConfigDraftBuilder plusToolCustomizations( + Function builder) { + if (this.toolCustomizations == null) { + this.toolCustomizations = new ArrayList<>(); + } + this.toolCustomizations + .add(builder.apply(com.commercetools.api.models.mcp_server.ToolCustomizationBuilder.of()).build()); + return this; + } + + /** + *

    Per-tool customizations applied at tools/list and tools/call time, such as overriding a tool's description or constraining its parameters.

    + * @param builder function to build the toolCustomizations value + * @return Builder + */ + + public CommerceMcpServerConfigDraftBuilder withToolCustomizations( + Function builder) { + this.toolCustomizations = new ArrayList<>(); + this.toolCustomizations + .add(builder.apply(com.commercetools.api.models.mcp_server.ToolCustomizationBuilder.of()).build()); + return this; + } + + /** + *

    Per-tool customizations applied at tools/list and tools/call time, such as overriding a tool's description or constraining its parameters.

    + * @param builder function to build the toolCustomizations value + * @return Builder + */ + + public CommerceMcpServerConfigDraftBuilder addToolCustomizations( + Function builder) { + return plusToolCustomizations( + builder.apply(com.commercetools.api.models.mcp_server.ToolCustomizationBuilder.of())); + } + + /** + *

    Per-tool customizations applied at tools/list and tools/call time, such as overriding a tool's description or constraining its parameters.

    + * @param builder function to build the toolCustomizations value + * @return Builder + */ + + public CommerceMcpServerConfigDraftBuilder setToolCustomizations( + Function builder) { + return toolCustomizations(builder.apply(com.commercetools.api.models.mcp_server.ToolCustomizationBuilder.of())); + } + + /** + *

    Response field-filtering rules applied to tool responses.

    + * @param builder function to build the jsonOutputFiltering value + * @return Builder + */ + + public CommerceMcpServerConfigDraftBuilder jsonOutputFiltering( + Function builder) { + this.jsonOutputFiltering = builder + .apply(com.commercetools.api.models.mcp_server.McpServerJsonOutputFilteringBuilder.of()) + .build(); + return this; + } + + /** + *

    Response field-filtering rules applied to tool responses.

    + * @param builder function to build the jsonOutputFiltering value + * @return Builder + */ + + public CommerceMcpServerConfigDraftBuilder withJsonOutputFiltering( + Function builder) { + this.jsonOutputFiltering = builder + .apply(com.commercetools.api.models.mcp_server.McpServerJsonOutputFilteringBuilder.of()); + return this; + } + + /** + *

    Response field-filtering rules applied to tool responses.

    + * @param jsonOutputFiltering value to be set + * @return Builder + */ + + public CommerceMcpServerConfigDraftBuilder jsonOutputFiltering( + @Nullable final com.commercetools.api.models.mcp_server.McpServerJsonOutputFiltering jsonOutputFiltering) { + this.jsonOutputFiltering = jsonOutputFiltering; + return this; + } + + /** + *

    Output formatting applied to tool responses. When absent, responses are left untouched.

    + * @param toolOutputFormatting value to be set + * @return Builder + */ + + public CommerceMcpServerConfigDraftBuilder toolOutputFormatting( + @Nullable final com.commercetools.api.models.mcp_server.McpServerToolOutputFormatting toolOutputFormatting) { + this.toolOutputFormatting = toolOutputFormatting; + return this; + } + + /** + *

    Major version of this MCP Server type. Supported versions are v1 (deprecated) and v4.

    + * @return majorVersion + */ + + public String getMajorVersion() { + return this.majorVersion; + } + + /** + *

    List of tools to enable for this MCP Server. Use all to enable all available tools, or specify individual tool names such as read_products or create_orders. To reduce the number of LLM turns and improve overall performance, it is advisable to expose only the tools that are necessary, or at least minimize the exposure of tools that are unlikely to be used.

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

    Per-tool customizations applied at tools/list and tools/call time, such as overriding a tool's description or constraining its parameters.

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

    Response field-filtering rules applied to tool responses.

    + * @return jsonOutputFiltering + */ + + @Nullable + public com.commercetools.api.models.mcp_server.McpServerJsonOutputFiltering getJsonOutputFiltering() { + return this.jsonOutputFiltering; + } + + /** + *

    Output formatting applied to tool responses. When absent, responses are left untouched.

    + * @return toolOutputFormatting + */ + + @Nullable + public com.commercetools.api.models.mcp_server.McpServerToolOutputFormatting getToolOutputFormatting() { + return this.toolOutputFormatting; + } + + /** + * builds CommerceMcpServerConfigDraft with checking for non-null required values + * @return CommerceMcpServerConfigDraft + */ + public CommerceMcpServerConfigDraft build() { + Objects.requireNonNull(majorVersion, CommerceMcpServerConfigDraft.class + ": majorVersion is missing"); + Objects.requireNonNull(tools, CommerceMcpServerConfigDraft.class + ": tools is missing"); + return new CommerceMcpServerConfigDraftImpl(majorVersion, tools, toolCustomizations, jsonOutputFiltering, + toolOutputFormatting); + } + + /** + * builds CommerceMcpServerConfigDraft without checking for non-null required values + * @return CommerceMcpServerConfigDraft + */ + public CommerceMcpServerConfigDraft buildUnchecked() { + return new CommerceMcpServerConfigDraftImpl(majorVersion, tools, toolCustomizations, jsonOutputFiltering, + toolOutputFormatting); + } + + /** + * factory method for an instance of CommerceMcpServerConfigDraftBuilder + * @return builder + */ + public static CommerceMcpServerConfigDraftBuilder of() { + return new CommerceMcpServerConfigDraftBuilder(); + } + + /** + * create builder for CommerceMcpServerConfigDraft instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CommerceMcpServerConfigDraftBuilder of(final CommerceMcpServerConfigDraft template) { + CommerceMcpServerConfigDraftBuilder builder = new CommerceMcpServerConfigDraftBuilder(); + builder.majorVersion = template.getMajorVersion(); + builder.tools = template.getTools(); + builder.toolCustomizations = template.getToolCustomizations(); + builder.jsonOutputFiltering = template.getJsonOutputFiltering(); + builder.toolOutputFormatting = template.getToolOutputFormatting(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/CommerceMcpServerConfigDraftImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/CommerceMcpServerConfigDraftImpl.java new file mode 100644 index 0000000000..7bd0dcb68a --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/CommerceMcpServerConfigDraftImpl.java @@ -0,0 +1,193 @@ + +package com.commercetools.api.models.mcp_server; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; + +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; + +import tools.jackson.databind.annotation.*; + +/** + *

    Connection configuration for creating or updating a Commerce MCP Server.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CommerceMcpServerConfigDraftImpl implements CommerceMcpServerConfigDraft, ModelBase { + + private String type; + + private String majorVersion; + + private java.util.List tools; + + private java.util.List toolCustomizations; + + private com.commercetools.api.models.mcp_server.McpServerJsonOutputFiltering jsonOutputFiltering; + + private com.commercetools.api.models.mcp_server.McpServerToolOutputFormatting toolOutputFormatting; + + /** + * create instance with all properties + */ + @JsonCreator + CommerceMcpServerConfigDraftImpl(@JsonProperty("majorVersion") final String majorVersion, + @JsonProperty("tools") final java.util.List tools, + @JsonProperty("toolCustomizations") final java.util.List toolCustomizations, + @JsonProperty("jsonOutputFiltering") final com.commercetools.api.models.mcp_server.McpServerJsonOutputFiltering jsonOutputFiltering, + @JsonProperty("toolOutputFormatting") final com.commercetools.api.models.mcp_server.McpServerToolOutputFormatting toolOutputFormatting) { + this.majorVersion = majorVersion; + this.tools = tools; + this.toolCustomizations = toolCustomizations; + this.jsonOutputFiltering = jsonOutputFiltering; + this.toolOutputFormatting = toolOutputFormatting; + this.type = COMMERCE_MCP; + } + + /** + * create empty instance + */ + public CommerceMcpServerConfigDraftImpl() { + this.type = COMMERCE_MCP; + } + + /** + *

    MCP Server type. Determines the shape of the configuration and the set of tools available for this MCP Server.

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

    Major version of this MCP Server type. Supported versions are v1 (deprecated) and v4.

    + */ + + public String getMajorVersion() { + return this.majorVersion; + } + + /** + *

    List of tools to enable for this MCP Server. Use all to enable all available tools, or specify individual tool names such as read_products or create_orders. To reduce the number of LLM turns and improve overall performance, it is advisable to expose only the tools that are necessary, or at least minimize the exposure of tools that are unlikely to be used.

    + */ + + public java.util.List getTools() { + return this.tools; + } + + /** + *

    Per-tool customizations applied at tools/list and tools/call time, such as overriding a tool's description or constraining its parameters.

    + */ + + public java.util.List getToolCustomizations() { + return this.toolCustomizations; + } + + /** + *

    Response field-filtering rules applied to tool responses.

    + */ + + public com.commercetools.api.models.mcp_server.McpServerJsonOutputFiltering getJsonOutputFiltering() { + return this.jsonOutputFiltering; + } + + /** + *

    Output formatting applied to tool responses. When absent, responses are left untouched.

    + */ + + public com.commercetools.api.models.mcp_server.McpServerToolOutputFormatting getToolOutputFormatting() { + return this.toolOutputFormatting; + } + + public void setMajorVersion(final String majorVersion) { + this.majorVersion = majorVersion; + } + + public void setTools(final com.commercetools.api.models.mcp_server.McpServerTool... tools) { + this.tools = new ArrayList<>(Arrays.asList(tools)); + } + + public void setTools(final java.util.List tools) { + this.tools = tools; + } + + public void setToolCustomizations( + final com.commercetools.api.models.mcp_server.ToolCustomization... toolCustomizations) { + this.toolCustomizations = new ArrayList<>(Arrays.asList(toolCustomizations)); + } + + public void setToolCustomizations( + final java.util.List toolCustomizations) { + this.toolCustomizations = toolCustomizations; + } + + public void setJsonOutputFiltering( + final com.commercetools.api.models.mcp_server.McpServerJsonOutputFiltering jsonOutputFiltering) { + this.jsonOutputFiltering = jsonOutputFiltering; + } + + public void setToolOutputFormatting( + final com.commercetools.api.models.mcp_server.McpServerToolOutputFormatting toolOutputFormatting) { + this.toolOutputFormatting = toolOutputFormatting; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + CommerceMcpServerConfigDraftImpl that = (CommerceMcpServerConfigDraftImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(majorVersion, that.majorVersion) + .append(tools, that.tools) + .append(toolCustomizations, that.toolCustomizations) + .append(jsonOutputFiltering, that.jsonOutputFiltering) + .append(toolOutputFormatting, that.toolOutputFormatting) + .append(type, that.type) + .append(majorVersion, that.majorVersion) + .append(tools, that.tools) + .append(toolCustomizations, that.toolCustomizations) + .append(jsonOutputFiltering, that.jsonOutputFiltering) + .append(toolOutputFormatting, that.toolOutputFormatting) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type) + .append(majorVersion) + .append(tools) + .append(toolCustomizations) + .append(jsonOutputFiltering) + .append(toolOutputFormatting) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) + .append("majorVersion", majorVersion) + .append("tools", tools) + .append("toolCustomizations", toolCustomizations) + .append("jsonOutputFiltering", jsonOutputFiltering) + .append("toolOutputFormatting", toolOutputFormatting) + .build(); + } + + @Override + public CommerceMcpServerConfigDraft copyDeep() { + return CommerceMcpServerConfigDraft.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/CommerceMcpServerConfigImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/CommerceMcpServerConfigImpl.java new file mode 100644 index 0000000000..43e92a4805 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/CommerceMcpServerConfigImpl.java @@ -0,0 +1,213 @@ + +package com.commercetools.api.models.mcp_server; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; + +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; + +import tools.jackson.databind.annotation.*; + +/** + *

    Connection configuration of a Commerce MCP Server. Exposes the Commerce MCP Server tools to AI agents.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CommerceMcpServerConfigImpl implements CommerceMcpServerConfig, ModelBase { + + private String type; + + private String majorVersion; + + private String url; + + private java.util.List tools; + + private java.util.List toolCustomizations; + + private com.commercetools.api.models.mcp_server.McpServerJsonOutputFiltering jsonOutputFiltering; + + private com.commercetools.api.models.mcp_server.McpServerToolOutputFormatting toolOutputFormatting; + + /** + * create instance with all properties + */ + @JsonCreator + CommerceMcpServerConfigImpl(@JsonProperty("majorVersion") final String majorVersion, + @JsonProperty("url") final String url, + @JsonProperty("tools") final java.util.List tools, + @JsonProperty("toolCustomizations") final java.util.List toolCustomizations, + @JsonProperty("jsonOutputFiltering") final com.commercetools.api.models.mcp_server.McpServerJsonOutputFiltering jsonOutputFiltering, + @JsonProperty("toolOutputFormatting") final com.commercetools.api.models.mcp_server.McpServerToolOutputFormatting toolOutputFormatting) { + this.majorVersion = majorVersion; + this.url = url; + this.tools = tools; + this.toolCustomizations = toolCustomizations; + this.jsonOutputFiltering = jsonOutputFiltering; + this.toolOutputFormatting = toolOutputFormatting; + this.type = COMMERCE_MCP; + } + + /** + * create empty instance + */ + public CommerceMcpServerConfigImpl() { + this.type = COMMERCE_MCP; + } + + /** + *

    MCP Server type. Determines the shape of the configuration and the set of tools available for this MCP Server.

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

    Major version of this MCP Server type. Supported versions are v1 (deprecated) and v4.

    + */ + + public String getMajorVersion() { + return this.majorVersion; + } + + /** + *

    URL of the MCP Server. Generated by the system from the region, domain, Project key, and MCP Server key. Format: https://mcp.{region}.{domain}/projects/{projectKey}/{mcpServerKey}

    + */ + + public String getUrl() { + return this.url; + } + + /** + *

    List of tools enabled for this MCP Server. Use all to enable all available tools, or specify individual tool names such as read_products or create_orders. To reduce the number of LLM turns and improve overall performance, it is advisable to expose only the tools that are necessary, or at least minimize the exposure of tools that are unlikely to be used.

    + */ + + public java.util.List getTools() { + return this.tools; + } + + /** + *

    Per-tool customizations applied at tools/list and tools/call time, such as overriding a tool's description or constraining its parameters.

    + */ + + public java.util.List getToolCustomizations() { + return this.toolCustomizations; + } + + /** + *

    Response field-filtering rules applied to tool responses.

    + */ + + public com.commercetools.api.models.mcp_server.McpServerJsonOutputFiltering getJsonOutputFiltering() { + return this.jsonOutputFiltering; + } + + /** + *

    Output formatting applied to tool responses. When absent, responses are left untouched.

    + */ + + public com.commercetools.api.models.mcp_server.McpServerToolOutputFormatting getToolOutputFormatting() { + return this.toolOutputFormatting; + } + + public void setMajorVersion(final String majorVersion) { + this.majorVersion = majorVersion; + } + + public void setUrl(final String url) { + this.url = url; + } + + public void setTools(final com.commercetools.api.models.mcp_server.McpServerTool... tools) { + this.tools = new ArrayList<>(Arrays.asList(tools)); + } + + public void setTools(final java.util.List tools) { + this.tools = tools; + } + + public void setToolCustomizations( + final com.commercetools.api.models.mcp_server.ToolCustomization... toolCustomizations) { + this.toolCustomizations = new ArrayList<>(Arrays.asList(toolCustomizations)); + } + + public void setToolCustomizations( + final java.util.List toolCustomizations) { + this.toolCustomizations = toolCustomizations; + } + + public void setJsonOutputFiltering( + final com.commercetools.api.models.mcp_server.McpServerJsonOutputFiltering jsonOutputFiltering) { + this.jsonOutputFiltering = jsonOutputFiltering; + } + + public void setToolOutputFormatting( + final com.commercetools.api.models.mcp_server.McpServerToolOutputFormatting toolOutputFormatting) { + this.toolOutputFormatting = toolOutputFormatting; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + CommerceMcpServerConfigImpl that = (CommerceMcpServerConfigImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(majorVersion, that.majorVersion) + .append(url, that.url) + .append(tools, that.tools) + .append(toolCustomizations, that.toolCustomizations) + .append(jsonOutputFiltering, that.jsonOutputFiltering) + .append(toolOutputFormatting, that.toolOutputFormatting) + .append(type, that.type) + .append(majorVersion, that.majorVersion) + .append(url, that.url) + .append(tools, that.tools) + .append(toolCustomizations, that.toolCustomizations) + .append(jsonOutputFiltering, that.jsonOutputFiltering) + .append(toolOutputFormatting, that.toolOutputFormatting) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type) + .append(majorVersion) + .append(url) + .append(tools) + .append(toolCustomizations) + .append(jsonOutputFiltering) + .append(toolOutputFormatting) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) + .append("majorVersion", majorVersion) + .append("url", url) + .append("tools", tools) + .append("toolCustomizations", toolCustomizations) + .append("jsonOutputFiltering", jsonOutputFiltering) + .append("toolOutputFormatting", toolOutputFormatting) + .build(); + } + + @Override + public CommerceMcpServerConfig copyDeep() { + return CommerceMcpServerConfig.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServer.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServer.java new file mode 100644 index 0000000000..9f62c2f74f --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServer.java @@ -0,0 +1,310 @@ + +package com.commercetools.api.models.mcp_server; + +import java.time.*; +import java.time.ZonedDateTime; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.commercetools.api.models.common.BaseResource; +import com.commercetools.api.models.common.CreatedBy; +import com.commercetools.api.models.common.LastModifiedBy; +import com.commercetools.api.models.common.LocalizedString; +import com.fasterxml.jackson.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; +import tools.jackson.databind.annotation.*; + +/** + *

    Represents an MCP Server configuration that exposes a set of tools to AI agents via the Model Context Protocol.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     McpServer mcpServer = McpServer.builder()
    + *             .id("{id}")
    + *             .version(0.3)
    + *             .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
    + *             .lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
    + *             .key("{key}")
    + *             .state(McpServerState.ENABLED)
    + *             .mcpServer(mcpServerBuilder -> mcpServerBuilder)
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = McpServerImpl.class) +public interface McpServer extends BaseResource { + + /** + *

    Unique identifier of the MCP Server.

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

    Current version of the MCP Server.

    + * @return version + */ + @NotNull + @JsonProperty("version") + public Long getVersion(); + + /** + *

    Date and time (UTC) the MCP Server was initially created.

    + * @return createdAt + */ + @NotNull + @JsonProperty("createdAt") + public ZonedDateTime getCreatedAt(); + + /** + *

    Date and time (UTC) the MCP Server was last updated.

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

    IDs and references that last modified the MCP Server.

    + * @return lastModifiedBy + */ + @Valid + @JsonProperty("lastModifiedBy") + public LastModifiedBy getLastModifiedBy(); + + /** + *

    IDs and references that created the MCP Server.

    + * @return createdBy + */ + @Valid + @JsonProperty("createdBy") + public CreatedBy getCreatedBy(); + + /** + *

    User-defined unique identifier of the MCP Server within a Project.

    + * @return key + */ + @NotNull + @JsonProperty("key") + public String getKey(); + + /** + *

    Name of the MCP Server.

    + * @return name + */ + @Valid + @JsonProperty("name") + public LocalizedString getName(); + + /** + *

    Description of the MCP Server.

    + * @return description + */ + @Valid + @JsonProperty("description") + public LocalizedString getDescription(); + + /** + *

    State of the MCP Server. A Disabled MCP Server rejects all AI agent tool requests.

    + * @return state + */ + @NotNull + @JsonProperty("state") + public McpServerState getState(); + + /** + *

    Configuration of the MCP Server connection.

    + * @return mcpServer + */ + @NotNull + @Valid + @JsonProperty("mcpServer") + public McpServerConfig getMcpServer(); + + /** + *

    Unique identifier of the MCP Server.

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

    Current version of the MCP Server.

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

    Date and time (UTC) the MCP Server was initially created.

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

    Date and time (UTC) the MCP Server was last updated.

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

    IDs and references that last modified the MCP Server.

    + * @param lastModifiedBy value to be set + */ + + public void setLastModifiedBy(final LastModifiedBy lastModifiedBy); + + /** + *

    IDs and references that created the MCP Server.

    + * @param createdBy value to be set + */ + + public void setCreatedBy(final CreatedBy createdBy); + + /** + *

    User-defined unique identifier of the MCP Server within a Project.

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

    Name of the MCP Server.

    + * @param name value to be set + */ + + public void setName(final LocalizedString name); + + /** + *

    Description of the MCP Server.

    + * @param description value to be set + */ + + public void setDescription(final LocalizedString description); + + /** + *

    State of the MCP Server. A Disabled MCP Server rejects all AI agent tool requests.

    + * @param state value to be set + */ + + public void setState(final McpServerState state); + + /** + *

    Configuration of the MCP Server connection.

    + * @param mcpServer value to be set + */ + + public void setMcpServer(final McpServerConfig mcpServer); + + /** + * factory method + * @return instance of McpServer + */ + public static McpServer of() { + return new McpServerImpl(); + } + + /** + * factory method to create a shallow copy McpServer + * @param template instance to be copied + * @return copy instance + */ + public static McpServer of(final McpServer template) { + McpServerImpl instance = new McpServerImpl(); + instance.setId(template.getId()); + instance.setVersion(template.getVersion()); + instance.setCreatedAt(template.getCreatedAt()); + instance.setLastModifiedAt(template.getLastModifiedAt()); + instance.setLastModifiedBy(template.getLastModifiedBy()); + instance.setCreatedBy(template.getCreatedBy()); + instance.setKey(template.getKey()); + instance.setName(template.getName()); + instance.setDescription(template.getDescription()); + instance.setState(template.getState()); + instance.setMcpServer(template.getMcpServer()); + return instance; + } + + public McpServer copyDeep(); + + /** + * factory method to create a deep copy of McpServer + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static McpServer deepCopy(@Nullable final McpServer template) { + if (template == null) { + return null; + } + McpServerImpl instance = new McpServerImpl(); + instance.setId(template.getId()); + instance.setVersion(template.getVersion()); + instance.setCreatedAt(template.getCreatedAt()); + instance.setLastModifiedAt(template.getLastModifiedAt()); + instance.setLastModifiedBy( + com.commercetools.api.models.common.LastModifiedBy.deepCopy(template.getLastModifiedBy())); + instance.setCreatedBy(com.commercetools.api.models.common.CreatedBy.deepCopy(template.getCreatedBy())); + instance.setKey(template.getKey()); + instance.setName(com.commercetools.api.models.common.LocalizedString.deepCopy(template.getName())); + instance.setDescription( + com.commercetools.api.models.common.LocalizedString.deepCopy(template.getDescription())); + instance.setState(template.getState()); + instance.setMcpServer( + com.commercetools.api.models.mcp_server.McpServerConfig.deepCopy(template.getMcpServer())); + return instance; + } + + /** + * builder factory method for McpServer + * @return builder + */ + public static McpServerBuilder builder() { + return McpServerBuilder.of(); + } + + /** + * create builder for McpServer instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static McpServerBuilder builder(final McpServer template) { + return McpServerBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withMcpServer(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static tools.jackson.core.type.TypeReference typeReference() { + return new tools.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/mcp_server/McpServerAddToolAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerAddToolAction.java new file mode 100644 index 0000000000..755f14144c --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerAddToolAction.java @@ -0,0 +1,130 @@ + +package com.commercetools.api.models.mcp_server; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.fasterxml.jackson.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.constraints.NotNull; +import tools.jackson.databind.annotation.*; + +/** + *

    Adds a single tool to the MCP Server's list of enabled tools. Has no effect if the tool is already present.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     McpServerAddToolAction mcpServerAddToolAction = McpServerAddToolAction.builder()
    + *             .tool(McpServerTool.ALL)
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("addTool") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = McpServerAddToolActionImpl.class) +public interface McpServerAddToolAction extends McpServerUpdateAction { + + /** + * discriminator value for McpServerAddToolAction + */ + String ADD_TOOL = "addTool"; + + /** + *

    Name of the tool to add, such as read_products or create_orders.

    + * @return tool + */ + @NotNull + @JsonProperty("tool") + public McpServerTool getTool(); + + /** + *

    Name of the tool to add, such as read_products or create_orders.

    + * @param tool value to be set + */ + + public void setTool(final McpServerTool tool); + + /** + * factory method + * @return instance of McpServerAddToolAction + */ + public static McpServerAddToolAction of() { + return new McpServerAddToolActionImpl(); + } + + /** + * factory method to create a shallow copy McpServerAddToolAction + * @param template instance to be copied + * @return copy instance + */ + public static McpServerAddToolAction of(final McpServerAddToolAction template) { + McpServerAddToolActionImpl instance = new McpServerAddToolActionImpl(); + instance.setTool(template.getTool()); + return instance; + } + + public McpServerAddToolAction copyDeep(); + + /** + * factory method to create a deep copy of McpServerAddToolAction + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static McpServerAddToolAction deepCopy(@Nullable final McpServerAddToolAction template) { + if (template == null) { + return null; + } + McpServerAddToolActionImpl instance = new McpServerAddToolActionImpl(); + instance.setTool(template.getTool()); + return instance; + } + + /** + * builder factory method for McpServerAddToolAction + * @return builder + */ + public static McpServerAddToolActionBuilder builder() { + return McpServerAddToolActionBuilder.of(); + } + + /** + * create builder for McpServerAddToolAction instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static McpServerAddToolActionBuilder builder(final McpServerAddToolAction template) { + return McpServerAddToolActionBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withMcpServerAddToolAction(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static tools.jackson.core.type.TypeReference typeReference() { + return new tools.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/mcp_server/McpServerAddToolActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerAddToolActionBuilder.java new file mode 100644 index 0000000000..9cee35cbe9 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerAddToolActionBuilder.java @@ -0,0 +1,82 @@ + +package com.commercetools.api.models.mcp_server; + +import java.util.*; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * McpServerAddToolActionBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     McpServerAddToolAction mcpServerAddToolAction = McpServerAddToolAction.builder()
    + *             .tool(McpServerTool.ALL)
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class McpServerAddToolActionBuilder implements Builder { + + private com.commercetools.api.models.mcp_server.McpServerTool tool; + + /** + *

    Name of the tool to add, such as read_products or create_orders.

    + * @param tool value to be set + * @return Builder + */ + + public McpServerAddToolActionBuilder tool(final com.commercetools.api.models.mcp_server.McpServerTool tool) { + this.tool = tool; + return this; + } + + /** + *

    Name of the tool to add, such as read_products or create_orders.

    + * @return tool + */ + + public com.commercetools.api.models.mcp_server.McpServerTool getTool() { + return this.tool; + } + + /** + * builds McpServerAddToolAction with checking for non-null required values + * @return McpServerAddToolAction + */ + public McpServerAddToolAction build() { + Objects.requireNonNull(tool, McpServerAddToolAction.class + ": tool is missing"); + return new McpServerAddToolActionImpl(tool); + } + + /** + * builds McpServerAddToolAction without checking for non-null required values + * @return McpServerAddToolAction + */ + public McpServerAddToolAction buildUnchecked() { + return new McpServerAddToolActionImpl(tool); + } + + /** + * factory method for an instance of McpServerAddToolActionBuilder + * @return builder + */ + public static McpServerAddToolActionBuilder of() { + return new McpServerAddToolActionBuilder(); + } + + /** + * create builder for McpServerAddToolAction instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static McpServerAddToolActionBuilder of(final McpServerAddToolAction template) { + McpServerAddToolActionBuilder builder = new McpServerAddToolActionBuilder(); + builder.tool = template.getTool(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerAddToolActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerAddToolActionImpl.java new file mode 100644 index 0000000000..fff677ab59 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerAddToolActionImpl.java @@ -0,0 +1,99 @@ + +package com.commercetools.api.models.mcp_server; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; + +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; + +import tools.jackson.databind.annotation.*; + +/** + *

    Adds a single tool to the MCP Server's list of enabled tools. Has no effect if the tool is already present.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class McpServerAddToolActionImpl implements McpServerAddToolAction, ModelBase { + + private String action; + + private com.commercetools.api.models.mcp_server.McpServerTool tool; + + /** + * create instance with all properties + */ + @JsonCreator + McpServerAddToolActionImpl(@JsonProperty("tool") final com.commercetools.api.models.mcp_server.McpServerTool tool) { + this.tool = tool; + this.action = ADD_TOOL; + } + + /** + * create empty instance + */ + public McpServerAddToolActionImpl() { + this.action = ADD_TOOL; + } + + /** + *

    Identifies the update action to perform, such as addTool, removeTool, or setTools.

    + */ + + public String getAction() { + return this.action; + } + + /** + *

    Name of the tool to add, such as read_products or create_orders.

    + */ + + public com.commercetools.api.models.mcp_server.McpServerTool getTool() { + return this.tool; + } + + public void setTool(final com.commercetools.api.models.mcp_server.McpServerTool tool) { + this.tool = tool; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + McpServerAddToolActionImpl that = (McpServerAddToolActionImpl) o; + + return new EqualsBuilder().append(action, that.action) + .append(tool, that.tool) + .append(action, that.action) + .append(tool, that.tool) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(action).append(tool).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("action", action) + .append("tool", tool) + .build(); + } + + @Override + public McpServerAddToolAction copyDeep() { + return McpServerAddToolAction.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerAddToolCustomizationAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerAddToolCustomizationAction.java new file mode 100644 index 0000000000..959d92aa44 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerAddToolCustomizationAction.java @@ -0,0 +1,135 @@ + +package com.commercetools.api.models.mcp_server; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.fasterxml.jackson.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; +import tools.jackson.databind.annotation.*; + +/** + *

    Adds a single tool customization to the MCP Server. Returns an InvalidOperation error if a customization for the same tool already exists.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     McpServerAddToolCustomizationAction mcpServerAddToolCustomizationAction = McpServerAddToolCustomizationAction.builder()
    + *             .toolCustomization(toolCustomizationBuilder -> toolCustomizationBuilder)
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("addToolCustomization") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = McpServerAddToolCustomizationActionImpl.class) +public interface McpServerAddToolCustomizationAction extends McpServerUpdateAction { + + /** + * discriminator value for McpServerAddToolCustomizationAction + */ + String ADD_TOOL_CUSTOMIZATION = "addToolCustomization"; + + /** + *

    Tool customization to add.

    + * @return toolCustomization + */ + @NotNull + @Valid + @JsonProperty("toolCustomization") + public ToolCustomization getToolCustomization(); + + /** + *

    Tool customization to add.

    + * @param toolCustomization value to be set + */ + + public void setToolCustomization(final ToolCustomization toolCustomization); + + /** + * factory method + * @return instance of McpServerAddToolCustomizationAction + */ + public static McpServerAddToolCustomizationAction of() { + return new McpServerAddToolCustomizationActionImpl(); + } + + /** + * factory method to create a shallow copy McpServerAddToolCustomizationAction + * @param template instance to be copied + * @return copy instance + */ + public static McpServerAddToolCustomizationAction of(final McpServerAddToolCustomizationAction template) { + McpServerAddToolCustomizationActionImpl instance = new McpServerAddToolCustomizationActionImpl(); + instance.setToolCustomization(template.getToolCustomization()); + return instance; + } + + public McpServerAddToolCustomizationAction copyDeep(); + + /** + * factory method to create a deep copy of McpServerAddToolCustomizationAction + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static McpServerAddToolCustomizationAction deepCopy( + @Nullable final McpServerAddToolCustomizationAction template) { + if (template == null) { + return null; + } + McpServerAddToolCustomizationActionImpl instance = new McpServerAddToolCustomizationActionImpl(); + instance.setToolCustomization( + com.commercetools.api.models.mcp_server.ToolCustomization.deepCopy(template.getToolCustomization())); + return instance; + } + + /** + * builder factory method for McpServerAddToolCustomizationAction + * @return builder + */ + public static McpServerAddToolCustomizationActionBuilder builder() { + return McpServerAddToolCustomizationActionBuilder.of(); + } + + /** + * create builder for McpServerAddToolCustomizationAction instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static McpServerAddToolCustomizationActionBuilder builder( + final McpServerAddToolCustomizationAction template) { + return McpServerAddToolCustomizationActionBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withMcpServerAddToolCustomizationAction(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static tools.jackson.core.type.TypeReference typeReference() { + return new tools.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/mcp_server/McpServerAddToolCustomizationActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerAddToolCustomizationActionBuilder.java new file mode 100644 index 0000000000..ae4ba184ec --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerAddToolCustomizationActionBuilder.java @@ -0,0 +1,110 @@ + +package com.commercetools.api.models.mcp_server; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * McpServerAddToolCustomizationActionBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     McpServerAddToolCustomizationAction mcpServerAddToolCustomizationAction = McpServerAddToolCustomizationAction.builder()
    + *             .toolCustomization(toolCustomizationBuilder -> toolCustomizationBuilder)
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class McpServerAddToolCustomizationActionBuilder implements Builder { + + private com.commercetools.api.models.mcp_server.ToolCustomization toolCustomization; + + /** + *

    Tool customization to add.

    + * @param builder function to build the toolCustomization value + * @return Builder + */ + + public McpServerAddToolCustomizationActionBuilder toolCustomization( + Function builder) { + this.toolCustomization = builder.apply(com.commercetools.api.models.mcp_server.ToolCustomizationBuilder.of()) + .build(); + return this; + } + + /** + *

    Tool customization to add.

    + * @param builder function to build the toolCustomization value + * @return Builder + */ + + public McpServerAddToolCustomizationActionBuilder withToolCustomization( + Function builder) { + this.toolCustomization = builder.apply(com.commercetools.api.models.mcp_server.ToolCustomizationBuilder.of()); + return this; + } + + /** + *

    Tool customization to add.

    + * @param toolCustomization value to be set + * @return Builder + */ + + public McpServerAddToolCustomizationActionBuilder toolCustomization( + final com.commercetools.api.models.mcp_server.ToolCustomization toolCustomization) { + this.toolCustomization = toolCustomization; + return this; + } + + /** + *

    Tool customization to add.

    + * @return toolCustomization + */ + + public com.commercetools.api.models.mcp_server.ToolCustomization getToolCustomization() { + return this.toolCustomization; + } + + /** + * builds McpServerAddToolCustomizationAction with checking for non-null required values + * @return McpServerAddToolCustomizationAction + */ + public McpServerAddToolCustomizationAction build() { + Objects.requireNonNull(toolCustomization, + McpServerAddToolCustomizationAction.class + ": toolCustomization is missing"); + return new McpServerAddToolCustomizationActionImpl(toolCustomization); + } + + /** + * builds McpServerAddToolCustomizationAction without checking for non-null required values + * @return McpServerAddToolCustomizationAction + */ + public McpServerAddToolCustomizationAction buildUnchecked() { + return new McpServerAddToolCustomizationActionImpl(toolCustomization); + } + + /** + * factory method for an instance of McpServerAddToolCustomizationActionBuilder + * @return builder + */ + public static McpServerAddToolCustomizationActionBuilder of() { + return new McpServerAddToolCustomizationActionBuilder(); + } + + /** + * create builder for McpServerAddToolCustomizationAction instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static McpServerAddToolCustomizationActionBuilder of(final McpServerAddToolCustomizationAction template) { + McpServerAddToolCustomizationActionBuilder builder = new McpServerAddToolCustomizationActionBuilder(); + builder.toolCustomization = template.getToolCustomization(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerAddToolCustomizationActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerAddToolCustomizationActionImpl.java new file mode 100644 index 0000000000..be1a6b75bf --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerAddToolCustomizationActionImpl.java @@ -0,0 +1,101 @@ + +package com.commercetools.api.models.mcp_server; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; + +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; + +import tools.jackson.databind.annotation.*; + +/** + *

    Adds a single tool customization to the MCP Server. Returns an InvalidOperation error if a customization for the same tool already exists.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class McpServerAddToolCustomizationActionImpl implements McpServerAddToolCustomizationAction, ModelBase { + + private String action; + + private com.commercetools.api.models.mcp_server.ToolCustomization toolCustomization; + + /** + * create instance with all properties + */ + @JsonCreator + McpServerAddToolCustomizationActionImpl( + @JsonProperty("toolCustomization") final com.commercetools.api.models.mcp_server.ToolCustomization toolCustomization) { + this.toolCustomization = toolCustomization; + this.action = ADD_TOOL_CUSTOMIZATION; + } + + /** + * create empty instance + */ + public McpServerAddToolCustomizationActionImpl() { + this.action = ADD_TOOL_CUSTOMIZATION; + } + + /** + *

    Identifies the update action to perform, such as addTool, removeTool, or setTools.

    + */ + + public String getAction() { + return this.action; + } + + /** + *

    Tool customization to add.

    + */ + + public com.commercetools.api.models.mcp_server.ToolCustomization getToolCustomization() { + return this.toolCustomization; + } + + public void setToolCustomization( + final com.commercetools.api.models.mcp_server.ToolCustomization toolCustomization) { + this.toolCustomization = toolCustomization; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + McpServerAddToolCustomizationActionImpl that = (McpServerAddToolCustomizationActionImpl) o; + + return new EqualsBuilder().append(action, that.action) + .append(toolCustomization, that.toolCustomization) + .append(action, that.action) + .append(toolCustomization, that.toolCustomization) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(action).append(toolCustomization).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("action", action) + .append("toolCustomization", toolCustomization) + .build(); + } + + @Override + public McpServerAddToolCustomizationAction copyDeep() { + return McpServerAddToolCustomizationAction.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerBuilder.java new file mode 100644 index 0000000000..43af6f2f41 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerBuilder.java @@ -0,0 +1,447 @@ + +package com.commercetools.api.models.mcp_server; + +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; + +/** + * McpServerBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     McpServer mcpServer = McpServer.builder()
    + *             .id("{id}")
    + *             .version(0.3)
    + *             .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
    + *             .lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
    + *             .key("{key}")
    + *             .state(McpServerState.ENABLED)
    + *             .mcpServer(mcpServerBuilder -> mcpServerBuilder)
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class McpServerBuilder implements Builder { + + private String id; + + private Long version; + + private java.time.ZonedDateTime createdAt; + + private java.time.ZonedDateTime lastModifiedAt; + + @Nullable + private com.commercetools.api.models.common.LastModifiedBy lastModifiedBy; + + @Nullable + private com.commercetools.api.models.common.CreatedBy createdBy; + + private String key; + + @Nullable + private com.commercetools.api.models.common.LocalizedString name; + + @Nullable + private com.commercetools.api.models.common.LocalizedString description; + + private com.commercetools.api.models.mcp_server.McpServerState state; + + private com.commercetools.api.models.mcp_server.McpServerConfig mcpServer; + + /** + *

    Unique identifier of the MCP Server.

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

    Current version of the MCP Server.

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

    Date and time (UTC) the MCP Server was initially created.

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

    Date and time (UTC) the MCP Server was last updated.

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

    IDs and references that last modified the MCP Server.

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

    IDs and references that last modified the MCP Server.

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

    IDs and references that last modified the MCP Server.

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

    IDs and references that created the MCP Server.

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

    IDs and references that created the MCP Server.

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

    IDs and references that created the MCP Server.

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

    User-defined unique identifier of the MCP Server within a Project.

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

    Name of the MCP Server.

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

    Name of the MCP Server.

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

    Name of the MCP Server.

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

    Description of the MCP Server.

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

    Description of the MCP Server.

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

    Description of the MCP Server.

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

    State of the MCP Server. A Disabled MCP Server rejects all AI agent tool requests.

    + * @param state value to be set + * @return Builder + */ + + public McpServerBuilder state(final com.commercetools.api.models.mcp_server.McpServerState state) { + this.state = state; + return this; + } + + /** + *

    Configuration of the MCP Server connection.

    + * @param mcpServer value to be set + * @return Builder + */ + + public McpServerBuilder mcpServer(final com.commercetools.api.models.mcp_server.McpServerConfig mcpServer) { + this.mcpServer = mcpServer; + return this; + } + + /** + *

    Configuration of the MCP Server connection.

    + * @param builder function to build the mcpServer value + * @return Builder + */ + + public McpServerBuilder mcpServer( + Function> builder) { + this.mcpServer = builder.apply(com.commercetools.api.models.mcp_server.McpServerConfigBuilder.of()).build(); + return this; + } + + /** + *

    Unique identifier of the MCP Server.

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

    Current version of the MCP Server.

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

    Date and time (UTC) the MCP Server was initially created.

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

    Date and time (UTC) the MCP Server was last updated.

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

    IDs and references that last modified the MCP Server.

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

    IDs and references that created the MCP Server.

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

    User-defined unique identifier of the MCP Server within a Project.

    + * @return key + */ + + public String getKey() { + return this.key; + } + + /** + *

    Name of the MCP Server.

    + * @return name + */ + + @Nullable + public com.commercetools.api.models.common.LocalizedString getName() { + return this.name; + } + + /** + *

    Description of the MCP Server.

    + * @return description + */ + + @Nullable + public com.commercetools.api.models.common.LocalizedString getDescription() { + return this.description; + } + + /** + *

    State of the MCP Server. A Disabled MCP Server rejects all AI agent tool requests.

    + * @return state + */ + + public com.commercetools.api.models.mcp_server.McpServerState getState() { + return this.state; + } + + /** + *

    Configuration of the MCP Server connection.

    + * @return mcpServer + */ + + public com.commercetools.api.models.mcp_server.McpServerConfig getMcpServer() { + return this.mcpServer; + } + + /** + * builds McpServer with checking for non-null required values + * @return McpServer + */ + public McpServer build() { + Objects.requireNonNull(id, McpServer.class + ": id is missing"); + Objects.requireNonNull(version, McpServer.class + ": version is missing"); + Objects.requireNonNull(createdAt, McpServer.class + ": createdAt is missing"); + Objects.requireNonNull(lastModifiedAt, McpServer.class + ": lastModifiedAt is missing"); + Objects.requireNonNull(key, McpServer.class + ": key is missing"); + Objects.requireNonNull(state, McpServer.class + ": state is missing"); + Objects.requireNonNull(mcpServer, McpServer.class + ": mcpServer is missing"); + return new McpServerImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, createdBy, key, name, + description, state, mcpServer); + } + + /** + * builds McpServer without checking for non-null required values + * @return McpServer + */ + public McpServer buildUnchecked() { + return new McpServerImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, createdBy, key, name, + description, state, mcpServer); + } + + /** + * factory method for an instance of McpServerBuilder + * @return builder + */ + public static McpServerBuilder of() { + return new McpServerBuilder(); + } + + /** + * create builder for McpServer instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static McpServerBuilder of(final McpServer template) { + McpServerBuilder builder = new McpServerBuilder(); + builder.id = template.getId(); + builder.version = template.getVersion(); + builder.createdAt = template.getCreatedAt(); + builder.lastModifiedAt = template.getLastModifiedAt(); + builder.lastModifiedBy = template.getLastModifiedBy(); + builder.createdBy = template.getCreatedBy(); + builder.key = template.getKey(); + builder.name = template.getName(); + builder.description = template.getDescription(); + builder.state = template.getState(); + builder.mcpServer = template.getMcpServer(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerConfig.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerConfig.java new file mode 100644 index 0000000000..57e48e49f2 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerConfig.java @@ -0,0 +1,96 @@ + +package com.commercetools.api.models.mcp_server; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.fasterxml.jackson.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.constraints.NotNull; +import tools.jackson.databind.annotation.*; + +/** + *

    Connection configuration of an MCP Server. The type discriminator determines the concrete configuration shape and the set of tools available for this MCP Server. Only CommerceMcpServerConfig is supported.

    + * + *
    + * Example to create a subtype instance using the builder pattern + *
    + *
    
    + *     McpServerConfig mcpServerConfig = McpServerConfig.commerceMcpBuilder()
    + *             majorVersion("{majorVersion}")
    + *             url("{url}")
    + *             plusTools(toolsBuilder -> toolsBuilder)
    + *             plusToolCustomizations(toolCustomizationsBuilder -> toolCustomizationsBuilder)
    + *             .build()
    + * 
    + *
    + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "type", defaultImpl = McpServerConfigImpl.class, visible = true) +@JsonDeserialize(as = McpServerConfigImpl.class) +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public interface McpServerConfig { + + /** + *

    MCP Server type. Determines the shape of the configuration and the set of tools available for this MCP Server.

    + * @return type + */ + @NotNull + @JsonProperty("type") + public String getType(); + + public McpServerConfig copyDeep(); + + /** + * factory method to create a deep copy of McpServerConfig + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static McpServerConfig deepCopy(@Nullable final McpServerConfig template) { + if (template == null) { + return null; + } + + if (!(template instanceof McpServerConfigImpl)) { + return template.copyDeep(); + } + McpServerConfigImpl instance = new McpServerConfigImpl(); + return instance; + } + + /** + * builder for commerceMcp subtype + * @return builder + */ + public static com.commercetools.api.models.mcp_server.CommerceMcpServerConfigBuilder commerceMcpBuilder() { + return com.commercetools.api.models.mcp_server.CommerceMcpServerConfigBuilder.of(); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withMcpServerConfig(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static tools.jackson.core.type.TypeReference typeReference() { + return new tools.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/mcp_server/McpServerConfigBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerConfigBuilder.java new file mode 100644 index 0000000000..b3ff7c9887 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerConfigBuilder.java @@ -0,0 +1,26 @@ + +package com.commercetools.api.models.mcp_server; + +import java.util.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + * McpServerConfigBuilder + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class McpServerConfigBuilder { + + public com.commercetools.api.models.mcp_server.CommerceMcpServerConfigBuilder commerceMcpBuilder() { + return com.commercetools.api.models.mcp_server.CommerceMcpServerConfigBuilder.of(); + } + + /** + * factory method for an instance of McpServerConfigBuilder + * @return builder + */ + public static McpServerConfigBuilder of() { + return new McpServerConfigBuilder(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerConfigDraft.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerConfigDraft.java new file mode 100644 index 0000000000..a31873c6a4 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerConfigDraft.java @@ -0,0 +1,94 @@ + +package com.commercetools.api.models.mcp_server; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.fasterxml.jackson.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.constraints.NotNull; +import tools.jackson.databind.annotation.*; + +/** + *

    Connection configuration for creating or updating an MCP Server. The type discriminator determines the concrete configuration shape and the set of tools available for this MCP Server. Only CommerceMcpServerConfigDraft is supported.

    + * + *
    + * Example to create a subtype instance using the builder pattern + *
    + *
    
    + *     McpServerConfigDraft mcpServerConfigDraft = McpServerConfigDraft.commerceMcpBuilder()
    + *             majorVersion("{majorVersion}")
    + *             plusTools(toolsBuilder -> toolsBuilder)
    + *             .build()
    + * 
    + *
    + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "type", defaultImpl = McpServerConfigDraftImpl.class, visible = true) +@JsonDeserialize(as = McpServerConfigDraftImpl.class) +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public interface McpServerConfigDraft { + + /** + *

    MCP Server type. Determines the shape of the configuration and the set of tools available for this MCP Server.

    + * @return type + */ + @NotNull + @JsonProperty("type") + public String getType(); + + public McpServerConfigDraft copyDeep(); + + /** + * factory method to create a deep copy of McpServerConfigDraft + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static McpServerConfigDraft deepCopy(@Nullable final McpServerConfigDraft template) { + if (template == null) { + return null; + } + + if (!(template instanceof McpServerConfigDraftImpl)) { + return template.copyDeep(); + } + McpServerConfigDraftImpl instance = new McpServerConfigDraftImpl(); + return instance; + } + + /** + * builder for commerceMcp subtype + * @return builder + */ + public static com.commercetools.api.models.mcp_server.CommerceMcpServerConfigDraftBuilder commerceMcpBuilder() { + return com.commercetools.api.models.mcp_server.CommerceMcpServerConfigDraftBuilder.of(); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withMcpServerConfigDraft(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static tools.jackson.core.type.TypeReference typeReference() { + return new tools.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/mcp_server/McpServerConfigDraftBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerConfigDraftBuilder.java new file mode 100644 index 0000000000..ab659388d9 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerConfigDraftBuilder.java @@ -0,0 +1,26 @@ + +package com.commercetools.api.models.mcp_server; + +import java.util.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + * McpServerConfigDraftBuilder + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class McpServerConfigDraftBuilder { + + public com.commercetools.api.models.mcp_server.CommerceMcpServerConfigDraftBuilder commerceMcpBuilder() { + return com.commercetools.api.models.mcp_server.CommerceMcpServerConfigDraftBuilder.of(); + } + + /** + * factory method for an instance of McpServerConfigDraftBuilder + * @return builder + */ + public static McpServerConfigDraftBuilder of() { + return new McpServerConfigDraftBuilder(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerConfigDraftImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerConfigDraftImpl.java new file mode 100644 index 0000000000..c1bdabba38 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerConfigDraftImpl.java @@ -0,0 +1,77 @@ + +package com.commercetools.api.models.mcp_server; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; + +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; + +import tools.jackson.databind.annotation.*; + +/** + *

    Connection configuration for creating or updating an MCP Server. The type discriminator determines the concrete configuration shape and the set of tools available for this MCP Server. Only CommerceMcpServerConfigDraft is supported.

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

    MCP Server type. Determines the shape of the configuration and the set of tools available for this MCP Server.

    + */ + + public String getType() { + return this.type; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + McpServerConfigDraftImpl that = (McpServerConfigDraftImpl) o; + + return new EqualsBuilder().append(type, that.type).append(type, that.type).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type).build(); + } + + @Override + public McpServerConfigDraft copyDeep() { + return McpServerConfigDraft.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerConfigImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerConfigImpl.java new file mode 100644 index 0000000000..562aec6f23 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerConfigImpl.java @@ -0,0 +1,77 @@ + +package com.commercetools.api.models.mcp_server; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; + +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; + +import tools.jackson.databind.annotation.*; + +/** + *

    Connection configuration of an MCP Server. The type discriminator determines the concrete configuration shape and the set of tools available for this MCP Server. Only CommerceMcpServerConfig is supported.

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

    MCP Server type. Determines the shape of the configuration and the set of tools available for this MCP Server.

    + */ + + public String getType() { + return this.type; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + McpServerConfigImpl that = (McpServerConfigImpl) o; + + return new EqualsBuilder().append(type, that.type).append(type, that.type).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type).build(); + } + + @Override + public McpServerConfig copyDeep() { + return McpServerConfig.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerDraft.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerDraft.java new file mode 100644 index 0000000000..b7c1b0ab20 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerDraft.java @@ -0,0 +1,198 @@ + +package com.commercetools.api.models.mcp_server; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.commercetools.api.models.common.LocalizedString; +import com.fasterxml.jackson.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; +import tools.jackson.databind.annotation.*; + +/** + *

    Draft representation for creating a new MCP Server.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     McpServerDraft mcpServerDraft = McpServerDraft.builder()
    + *             .key("{key}")
    + *             .mcpServer(mcpServerBuilder -> mcpServerBuilder)
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = McpServerDraftImpl.class) +public interface McpServerDraft extends io.vrap.rmf.base.client.Draft { + + /** + *

    User-defined unique identifier for the MCP Server. Must be unique within the Project.

    + * @return key + */ + @NotNull + @JsonProperty("key") + public String getKey(); + + /** + *

    Name of the MCP Server.

    + * @return name + */ + @Valid + @JsonProperty("name") + public LocalizedString getName(); + + /** + *

    Description of the MCP Server.

    + * @return description + */ + @Valid + @JsonProperty("description") + public LocalizedString getDescription(); + + /** + *

    State of the MCP Server.

    + * @return state + */ + + @JsonProperty("state") + public McpServerState getState(); + + /** + *

    Configuration of the MCP Server connection.

    + * @return mcpServer + */ + @NotNull + @Valid + @JsonProperty("mcpServer") + public McpServerConfigDraft getMcpServer(); + + /** + *

    User-defined unique identifier for the MCP Server. Must be unique within the Project.

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

    Name of the MCP Server.

    + * @param name value to be set + */ + + public void setName(final LocalizedString name); + + /** + *

    Description of the MCP Server.

    + * @param description value to be set + */ + + public void setDescription(final LocalizedString description); + + /** + *

    State of the MCP Server.

    + * @param state value to be set + */ + + public void setState(final McpServerState state); + + /** + *

    Configuration of the MCP Server connection.

    + * @param mcpServer value to be set + */ + + public void setMcpServer(final McpServerConfigDraft mcpServer); + + /** + * factory method + * @return instance of McpServerDraft + */ + public static McpServerDraft of() { + return new McpServerDraftImpl(); + } + + /** + * factory method to create a shallow copy McpServerDraft + * @param template instance to be copied + * @return copy instance + */ + public static McpServerDraft of(final McpServerDraft template) { + McpServerDraftImpl instance = new McpServerDraftImpl(); + instance.setKey(template.getKey()); + instance.setName(template.getName()); + instance.setDescription(template.getDescription()); + instance.setState(template.getState()); + instance.setMcpServer(template.getMcpServer()); + return instance; + } + + public McpServerDraft copyDeep(); + + /** + * factory method to create a deep copy of McpServerDraft + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static McpServerDraft deepCopy(@Nullable final McpServerDraft template) { + if (template == null) { + return null; + } + McpServerDraftImpl instance = new McpServerDraftImpl(); + instance.setKey(template.getKey()); + instance.setName(com.commercetools.api.models.common.LocalizedString.deepCopy(template.getName())); + instance.setDescription( + com.commercetools.api.models.common.LocalizedString.deepCopy(template.getDescription())); + instance.setState(template.getState()); + instance.setMcpServer( + com.commercetools.api.models.mcp_server.McpServerConfigDraft.deepCopy(template.getMcpServer())); + return instance; + } + + /** + * builder factory method for McpServerDraft + * @return builder + */ + public static McpServerDraftBuilder builder() { + return McpServerDraftBuilder.of(); + } + + /** + * create builder for McpServerDraft instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static McpServerDraftBuilder builder(final McpServerDraft template) { + return McpServerDraftBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withMcpServerDraft(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static tools.jackson.core.type.TypeReference typeReference() { + return new tools.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/mcp_server/McpServerDraftBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerDraftBuilder.java new file mode 100644 index 0000000000..79925cbf60 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerDraftBuilder.java @@ -0,0 +1,248 @@ + +package com.commercetools.api.models.mcp_server; + +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; + +/** + * McpServerDraftBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     McpServerDraft mcpServerDraft = McpServerDraft.builder()
    + *             .key("{key}")
    + *             .mcpServer(mcpServerBuilder -> mcpServerBuilder)
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class McpServerDraftBuilder implements Builder { + + private String key; + + @Nullable + private com.commercetools.api.models.common.LocalizedString name; + + @Nullable + private com.commercetools.api.models.common.LocalizedString description; + + @Nullable + private com.commercetools.api.models.mcp_server.McpServerState state; + + private com.commercetools.api.models.mcp_server.McpServerConfigDraft mcpServer; + + /** + *

    User-defined unique identifier for the MCP Server. Must be unique within the Project.

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

    Name of the MCP Server.

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

    Name of the MCP Server.

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

    Name of the MCP Server.

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

    Description of the MCP Server.

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

    Description of the MCP Server.

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

    Description of the MCP Server.

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

    State of the MCP Server.

    + * @param state value to be set + * @return Builder + */ + + public McpServerDraftBuilder state(@Nullable final com.commercetools.api.models.mcp_server.McpServerState state) { + this.state = state; + return this; + } + + /** + *

    Configuration of the MCP Server connection.

    + * @param mcpServer value to be set + * @return Builder + */ + + public McpServerDraftBuilder mcpServer( + final com.commercetools.api.models.mcp_server.McpServerConfigDraft mcpServer) { + this.mcpServer = mcpServer; + return this; + } + + /** + *

    Configuration of the MCP Server connection.

    + * @param builder function to build the mcpServer value + * @return Builder + */ + + public McpServerDraftBuilder mcpServer( + Function> builder) { + this.mcpServer = builder.apply(com.commercetools.api.models.mcp_server.McpServerConfigDraftBuilder.of()) + .build(); + return this; + } + + /** + *

    User-defined unique identifier for the MCP Server. Must be unique within the Project.

    + * @return key + */ + + public String getKey() { + return this.key; + } + + /** + *

    Name of the MCP Server.

    + * @return name + */ + + @Nullable + public com.commercetools.api.models.common.LocalizedString getName() { + return this.name; + } + + /** + *

    Description of the MCP Server.

    + * @return description + */ + + @Nullable + public com.commercetools.api.models.common.LocalizedString getDescription() { + return this.description; + } + + /** + *

    State of the MCP Server.

    + * @return state + */ + + @Nullable + public com.commercetools.api.models.mcp_server.McpServerState getState() { + return this.state; + } + + /** + *

    Configuration of the MCP Server connection.

    + * @return mcpServer + */ + + public com.commercetools.api.models.mcp_server.McpServerConfigDraft getMcpServer() { + return this.mcpServer; + } + + /** + * builds McpServerDraft with checking for non-null required values + * @return McpServerDraft + */ + public McpServerDraft build() { + Objects.requireNonNull(key, McpServerDraft.class + ": key is missing"); + Objects.requireNonNull(mcpServer, McpServerDraft.class + ": mcpServer is missing"); + return new McpServerDraftImpl(key, name, description, state, mcpServer); + } + + /** + * builds McpServerDraft without checking for non-null required values + * @return McpServerDraft + */ + public McpServerDraft buildUnchecked() { + return new McpServerDraftImpl(key, name, description, state, mcpServer); + } + + /** + * factory method for an instance of McpServerDraftBuilder + * @return builder + */ + public static McpServerDraftBuilder of() { + return new McpServerDraftBuilder(); + } + + /** + * create builder for McpServerDraft instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static McpServerDraftBuilder of(final McpServerDraft template) { + McpServerDraftBuilder builder = new McpServerDraftBuilder(); + builder.key = template.getKey(); + builder.name = template.getName(); + builder.description = template.getDescription(); + builder.state = template.getState(); + builder.mcpServer = template.getMcpServer(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerDraftImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerDraftImpl.java new file mode 100644 index 0000000000..cd066614ae --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerDraftImpl.java @@ -0,0 +1,165 @@ + +package com.commercetools.api.models.mcp_server; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; + +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; + +import tools.jackson.databind.annotation.*; + +/** + *

    Draft representation for creating a new MCP Server.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class McpServerDraftImpl implements McpServerDraft, ModelBase { + + private String key; + + private com.commercetools.api.models.common.LocalizedString name; + + private com.commercetools.api.models.common.LocalizedString description; + + private com.commercetools.api.models.mcp_server.McpServerState state; + + private com.commercetools.api.models.mcp_server.McpServerConfigDraft mcpServer; + + /** + * create instance with all properties + */ + @JsonCreator + McpServerDraftImpl(@JsonProperty("key") final String key, + @JsonProperty("name") final com.commercetools.api.models.common.LocalizedString name, + @JsonProperty("description") final com.commercetools.api.models.common.LocalizedString description, + @JsonProperty("state") final com.commercetools.api.models.mcp_server.McpServerState state, + @JsonProperty("mcpServer") final com.commercetools.api.models.mcp_server.McpServerConfigDraft mcpServer) { + this.key = key; + this.name = name; + this.description = description; + this.state = state; + this.mcpServer = mcpServer; + } + + /** + * create empty instance + */ + public McpServerDraftImpl() { + } + + /** + *

    User-defined unique identifier for the MCP Server. Must be unique within the Project.

    + */ + + public String getKey() { + return this.key; + } + + /** + *

    Name of the MCP Server.

    + */ + + public com.commercetools.api.models.common.LocalizedString getName() { + return this.name; + } + + /** + *

    Description of the MCP Server.

    + */ + + public com.commercetools.api.models.common.LocalizedString getDescription() { + return this.description; + } + + /** + *

    State of the MCP Server.

    + */ + + public com.commercetools.api.models.mcp_server.McpServerState getState() { + return this.state; + } + + /** + *

    Configuration of the MCP Server connection.

    + */ + + public com.commercetools.api.models.mcp_server.McpServerConfigDraft getMcpServer() { + return this.mcpServer; + } + + public void setKey(final String key) { + this.key = key; + } + + public void setName(final com.commercetools.api.models.common.LocalizedString name) { + this.name = name; + } + + public void setDescription(final com.commercetools.api.models.common.LocalizedString description) { + this.description = description; + } + + public void setState(final com.commercetools.api.models.mcp_server.McpServerState state) { + this.state = state; + } + + public void setMcpServer(final com.commercetools.api.models.mcp_server.McpServerConfigDraft mcpServer) { + this.mcpServer = mcpServer; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + McpServerDraftImpl that = (McpServerDraftImpl) o; + + return new EqualsBuilder().append(key, that.key) + .append(name, that.name) + .append(description, that.description) + .append(state, that.state) + .append(mcpServer, that.mcpServer) + .append(key, that.key) + .append(name, that.name) + .append(description, that.description) + .append(state, that.state) + .append(mcpServer, that.mcpServer) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(key) + .append(name) + .append(description) + .append(state) + .append(mcpServer) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("key", key) + .append("name", name) + .append("description", description) + .append("state", state) + .append("mcpServer", mcpServer) + .build(); + } + + @Override + public McpServerDraft copyDeep() { + return McpServerDraft.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerImpl.java new file mode 100644 index 0000000000..b1e1c7a328 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerImpl.java @@ -0,0 +1,284 @@ + +package com.commercetools.api.models.mcp_server; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; + +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; + +import tools.jackson.databind.annotation.*; + +/** + *

    Represents an MCP Server configuration that exposes a set of tools to AI agents via the Model Context Protocol.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class McpServerImpl implements McpServer, ModelBase { + + private String id; + + private Long version; + + private java.time.ZonedDateTime createdAt; + + private java.time.ZonedDateTime lastModifiedAt; + + private com.commercetools.api.models.common.LastModifiedBy lastModifiedBy; + + private com.commercetools.api.models.common.CreatedBy createdBy; + + private String key; + + private com.commercetools.api.models.common.LocalizedString name; + + private com.commercetools.api.models.common.LocalizedString description; + + private com.commercetools.api.models.mcp_server.McpServerState state; + + private com.commercetools.api.models.mcp_server.McpServerConfig mcpServer; + + /** + * create instance with all properties + */ + @JsonCreator + McpServerImpl(@JsonProperty("id") final String id, @JsonProperty("version") final Long version, + @JsonProperty("createdAt") final java.time.ZonedDateTime createdAt, + @JsonProperty("lastModifiedAt") final java.time.ZonedDateTime lastModifiedAt, + @JsonProperty("lastModifiedBy") final com.commercetools.api.models.common.LastModifiedBy lastModifiedBy, + @JsonProperty("createdBy") final com.commercetools.api.models.common.CreatedBy createdBy, + @JsonProperty("key") final String key, + @JsonProperty("name") final com.commercetools.api.models.common.LocalizedString name, + @JsonProperty("description") final com.commercetools.api.models.common.LocalizedString description, + @JsonProperty("state") final com.commercetools.api.models.mcp_server.McpServerState state, + @JsonProperty("mcpServer") final com.commercetools.api.models.mcp_server.McpServerConfig mcpServer) { + this.id = id; + this.version = version; + this.createdAt = createdAt; + this.lastModifiedAt = lastModifiedAt; + this.lastModifiedBy = lastModifiedBy; + this.createdBy = createdBy; + this.key = key; + this.name = name; + this.description = description; + this.state = state; + this.mcpServer = mcpServer; + } + + /** + * create empty instance + */ + public McpServerImpl() { + } + + /** + *

    Unique identifier of the MCP Server.

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

    Current version of the MCP Server.

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

    Date and time (UTC) the MCP Server was initially created.

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

    Date and time (UTC) the MCP Server was last updated.

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

    IDs and references that last modified the MCP Server.

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

    IDs and references that created the MCP Server.

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

    User-defined unique identifier of the MCP Server within a Project.

    + */ + + public String getKey() { + return this.key; + } + + /** + *

    Name of the MCP Server.

    + */ + + public com.commercetools.api.models.common.LocalizedString getName() { + return this.name; + } + + /** + *

    Description of the MCP Server.

    + */ + + public com.commercetools.api.models.common.LocalizedString getDescription() { + return this.description; + } + + /** + *

    State of the MCP Server. A Disabled MCP Server rejects all AI agent tool requests.

    + */ + + public com.commercetools.api.models.mcp_server.McpServerState getState() { + return this.state; + } + + /** + *

    Configuration of the MCP Server connection.

    + */ + + public com.commercetools.api.models.mcp_server.McpServerConfig getMcpServer() { + return this.mcpServer; + } + + public void setId(final String id) { + this.id = id; + } + + public void setVersion(final Long version) { + this.version = version; + } + + public void setCreatedAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + } + + public void setLastModifiedAt(final java.time.ZonedDateTime lastModifiedAt) { + this.lastModifiedAt = lastModifiedAt; + } + + public void setLastModifiedBy(final com.commercetools.api.models.common.LastModifiedBy lastModifiedBy) { + this.lastModifiedBy = lastModifiedBy; + } + + public void setCreatedBy(final com.commercetools.api.models.common.CreatedBy createdBy) { + this.createdBy = createdBy; + } + + public void setKey(final String key) { + this.key = key; + } + + public void setName(final com.commercetools.api.models.common.LocalizedString name) { + this.name = name; + } + + public void setDescription(final com.commercetools.api.models.common.LocalizedString description) { + this.description = description; + } + + public void setState(final com.commercetools.api.models.mcp_server.McpServerState state) { + this.state = state; + } + + public void setMcpServer(final com.commercetools.api.models.mcp_server.McpServerConfig mcpServer) { + this.mcpServer = mcpServer; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + McpServerImpl that = (McpServerImpl) o; + + return new EqualsBuilder().append(id, that.id) + .append(version, that.version) + .append(createdAt, that.createdAt) + .append(lastModifiedAt, that.lastModifiedAt) + .append(lastModifiedBy, that.lastModifiedBy) + .append(createdBy, that.createdBy) + .append(key, that.key) + .append(name, that.name) + .append(description, that.description) + .append(state, that.state) + .append(mcpServer, that.mcpServer) + .append(id, that.id) + .append(version, that.version) + .append(createdAt, that.createdAt) + .append(lastModifiedAt, that.lastModifiedAt) + .append(lastModifiedBy, that.lastModifiedBy) + .append(createdBy, that.createdBy) + .append(key, that.key) + .append(name, that.name) + .append(description, that.description) + .append(state, that.state) + .append(mcpServer, that.mcpServer) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(id) + .append(version) + .append(createdAt) + .append(lastModifiedAt) + .append(lastModifiedBy) + .append(createdBy) + .append(key) + .append(name) + .append(description) + .append(state) + .append(mcpServer) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("id", id) + .append("version", version) + .append("createdAt", createdAt) + .append("lastModifiedAt", lastModifiedAt) + .append("lastModifiedBy", lastModifiedBy) + .append("createdBy", createdBy) + .append("key", key) + .append("name", name) + .append("description", description) + .append("state", state) + .append("mcpServer", mcpServer) + .build(); + } + + @Override + public McpServer copyDeep() { + return McpServer.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerJsonOutputFiltering.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerJsonOutputFiltering.java new file mode 100644 index 0000000000..576dd6a2d5 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerJsonOutputFiltering.java @@ -0,0 +1,185 @@ + +package com.commercetools.api.models.mcp_server; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.fasterxml.jackson.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.Valid; +import tools.jackson.databind.annotation.*; + +/** + *

    Response field-filtering rules applied to tools/call results on the MCP Server. Every field is optional; an empty object filters nothing.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     McpServerJsonOutputFiltering mcpServerJsonOutputFiltering = McpServerJsonOutputFiltering.builder()
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = McpServerJsonOutputFilteringImpl.class) +public interface McpServerJsonOutputFiltering { + + /** + *

    Fields whose values are replaced with a placeholder. The field itself is kept.

    + * @return redact + */ + @Valid + @JsonProperty("redact") + public McpServerJsonOutputFilteringMatcher getRedact(); + + /** + *

    Fields that are removed entirely from the response.

    + * @return drop + */ + @Valid + @JsonProperty("drop") + public McpServerJsonOutputFilteringMatcher getDrop(); + + /** + *

    Exact dotted paths kept even when they would otherwise match redact or drop.

    + * @return fieldPathsToKeep + */ + + @JsonProperty("fieldPathsToKeep") + public List getFieldPathsToKeep(); + + /** + *

    Placeholder written in place of redacted values. When unset, the MCP Server applies its own default ([REDACTED]).

    + * @return redactedWith + */ + + @JsonProperty("redactedWith") + public String getRedactedWith(); + + /** + *

    Fields whose values are replaced with a placeholder. The field itself is kept.

    + * @param redact value to be set + */ + + public void setRedact(final McpServerJsonOutputFilteringMatcher redact); + + /** + *

    Fields that are removed entirely from the response.

    + * @param drop value to be set + */ + + public void setDrop(final McpServerJsonOutputFilteringMatcher drop); + + /** + *

    Exact dotted paths kept even when they would otherwise match redact or drop.

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

    Exact dotted paths kept even when they would otherwise match redact or drop.

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

    Placeholder written in place of redacted values. When unset, the MCP Server applies its own default ([REDACTED]).

    + * @param redactedWith value to be set + */ + + public void setRedactedWith(final String redactedWith); + + /** + * factory method + * @return instance of McpServerJsonOutputFiltering + */ + public static McpServerJsonOutputFiltering of() { + return new McpServerJsonOutputFilteringImpl(); + } + + /** + * factory method to create a shallow copy McpServerJsonOutputFiltering + * @param template instance to be copied + * @return copy instance + */ + public static McpServerJsonOutputFiltering of(final McpServerJsonOutputFiltering template) { + McpServerJsonOutputFilteringImpl instance = new McpServerJsonOutputFilteringImpl(); + instance.setRedact(template.getRedact()); + instance.setDrop(template.getDrop()); + instance.setFieldPathsToKeep(template.getFieldPathsToKeep()); + instance.setRedactedWith(template.getRedactedWith()); + return instance; + } + + public McpServerJsonOutputFiltering copyDeep(); + + /** + * factory method to create a deep copy of McpServerJsonOutputFiltering + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static McpServerJsonOutputFiltering deepCopy(@Nullable final McpServerJsonOutputFiltering template) { + if (template == null) { + return null; + } + McpServerJsonOutputFilteringImpl instance = new McpServerJsonOutputFilteringImpl(); + instance.setRedact( + com.commercetools.api.models.mcp_server.McpServerJsonOutputFilteringMatcher.deepCopy(template.getRedact())); + instance.setDrop( + com.commercetools.api.models.mcp_server.McpServerJsonOutputFilteringMatcher.deepCopy(template.getDrop())); + instance.setFieldPathsToKeep( + Optional.ofNullable(template.getFieldPathsToKeep()).map(ArrayList::new).orElse(null)); + instance.setRedactedWith(template.getRedactedWith()); + return instance; + } + + /** + * builder factory method for McpServerJsonOutputFiltering + * @return builder + */ + public static McpServerJsonOutputFilteringBuilder builder() { + return McpServerJsonOutputFilteringBuilder.of(); + } + + /** + * create builder for McpServerJsonOutputFiltering instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static McpServerJsonOutputFilteringBuilder builder(final McpServerJsonOutputFiltering template) { + return McpServerJsonOutputFilteringBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withMcpServerJsonOutputFiltering(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static tools.jackson.core.type.TypeReference typeReference() { + return new tools.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/mcp_server/McpServerJsonOutputFilteringBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerJsonOutputFilteringBuilder.java new file mode 100644 index 0000000000..43d428e3df --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerJsonOutputFilteringBuilder.java @@ -0,0 +1,242 @@ + +package com.commercetools.api.models.mcp_server; + +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; + +/** + * McpServerJsonOutputFilteringBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     McpServerJsonOutputFiltering mcpServerJsonOutputFiltering = McpServerJsonOutputFiltering.builder()
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class McpServerJsonOutputFilteringBuilder implements Builder { + + @Nullable + private com.commercetools.api.models.mcp_server.McpServerJsonOutputFilteringMatcher redact; + + @Nullable + private com.commercetools.api.models.mcp_server.McpServerJsonOutputFilteringMatcher drop; + + @Nullable + private java.util.List fieldPathsToKeep; + + @Nullable + private String redactedWith; + + /** + *

    Fields whose values are replaced with a placeholder. The field itself is kept.

    + * @param builder function to build the redact value + * @return Builder + */ + + public McpServerJsonOutputFilteringBuilder redact( + Function builder) { + this.redact = builder + .apply(com.commercetools.api.models.mcp_server.McpServerJsonOutputFilteringMatcherBuilder.of()) + .build(); + return this; + } + + /** + *

    Fields whose values are replaced with a placeholder. The field itself is kept.

    + * @param builder function to build the redact value + * @return Builder + */ + + public McpServerJsonOutputFilteringBuilder withRedact( + Function builder) { + this.redact = builder + .apply(com.commercetools.api.models.mcp_server.McpServerJsonOutputFilteringMatcherBuilder.of()); + return this; + } + + /** + *

    Fields whose values are replaced with a placeholder. The field itself is kept.

    + * @param redact value to be set + * @return Builder + */ + + public McpServerJsonOutputFilteringBuilder redact( + @Nullable final com.commercetools.api.models.mcp_server.McpServerJsonOutputFilteringMatcher redact) { + this.redact = redact; + return this; + } + + /** + *

    Fields that are removed entirely from the response.

    + * @param builder function to build the drop value + * @return Builder + */ + + public McpServerJsonOutputFilteringBuilder drop( + Function builder) { + this.drop = builder + .apply(com.commercetools.api.models.mcp_server.McpServerJsonOutputFilteringMatcherBuilder.of()) + .build(); + return this; + } + + /** + *

    Fields that are removed entirely from the response.

    + * @param builder function to build the drop value + * @return Builder + */ + + public McpServerJsonOutputFilteringBuilder withDrop( + Function builder) { + this.drop = builder + .apply(com.commercetools.api.models.mcp_server.McpServerJsonOutputFilteringMatcherBuilder.of()); + return this; + } + + /** + *

    Fields that are removed entirely from the response.

    + * @param drop value to be set + * @return Builder + */ + + public McpServerJsonOutputFilteringBuilder drop( + @Nullable final com.commercetools.api.models.mcp_server.McpServerJsonOutputFilteringMatcher drop) { + this.drop = drop; + return this; + } + + /** + *

    Exact dotted paths kept even when they would otherwise match redact or drop.

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

    Exact dotted paths kept even when they would otherwise match redact or drop.

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

    Exact dotted paths kept even when they would otherwise match redact or drop.

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

    Placeholder written in place of redacted values. When unset, the MCP Server applies its own default ([REDACTED]).

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

    Fields whose values are replaced with a placeholder. The field itself is kept.

    + * @return redact + */ + + @Nullable + public com.commercetools.api.models.mcp_server.McpServerJsonOutputFilteringMatcher getRedact() { + return this.redact; + } + + /** + *

    Fields that are removed entirely from the response.

    + * @return drop + */ + + @Nullable + public com.commercetools.api.models.mcp_server.McpServerJsonOutputFilteringMatcher getDrop() { + return this.drop; + } + + /** + *

    Exact dotted paths kept even when they would otherwise match redact or drop.

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

    Placeholder written in place of redacted values. When unset, the MCP Server applies its own default ([REDACTED]).

    + * @return redactedWith + */ + + @Nullable + public String getRedactedWith() { + return this.redactedWith; + } + + /** + * builds McpServerJsonOutputFiltering with checking for non-null required values + * @return McpServerJsonOutputFiltering + */ + public McpServerJsonOutputFiltering build() { + return new McpServerJsonOutputFilteringImpl(redact, drop, fieldPathsToKeep, redactedWith); + } + + /** + * builds McpServerJsonOutputFiltering without checking for non-null required values + * @return McpServerJsonOutputFiltering + */ + public McpServerJsonOutputFiltering buildUnchecked() { + return new McpServerJsonOutputFilteringImpl(redact, drop, fieldPathsToKeep, redactedWith); + } + + /** + * factory method for an instance of McpServerJsonOutputFilteringBuilder + * @return builder + */ + public static McpServerJsonOutputFilteringBuilder of() { + return new McpServerJsonOutputFilteringBuilder(); + } + + /** + * create builder for McpServerJsonOutputFiltering instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static McpServerJsonOutputFilteringBuilder of(final McpServerJsonOutputFiltering template) { + McpServerJsonOutputFilteringBuilder builder = new McpServerJsonOutputFilteringBuilder(); + builder.redact = template.getRedact(); + builder.drop = template.getDrop(); + builder.fieldPathsToKeep = template.getFieldPathsToKeep(); + builder.redactedWith = template.getRedactedWith(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerJsonOutputFilteringImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerJsonOutputFilteringImpl.java new file mode 100644 index 0000000000..0588200773 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerJsonOutputFilteringImpl.java @@ -0,0 +1,150 @@ + +package com.commercetools.api.models.mcp_server; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; + +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; + +import tools.jackson.databind.annotation.*; + +/** + *

    Response field-filtering rules applied to tools/call results on the MCP Server. Every field is optional; an empty object filters nothing.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class McpServerJsonOutputFilteringImpl implements McpServerJsonOutputFiltering, ModelBase { + + private com.commercetools.api.models.mcp_server.McpServerJsonOutputFilteringMatcher redact; + + private com.commercetools.api.models.mcp_server.McpServerJsonOutputFilteringMatcher drop; + + private java.util.List fieldPathsToKeep; + + private String redactedWith; + + /** + * create instance with all properties + */ + @JsonCreator + McpServerJsonOutputFilteringImpl( + @JsonProperty("redact") final com.commercetools.api.models.mcp_server.McpServerJsonOutputFilteringMatcher redact, + @JsonProperty("drop") final com.commercetools.api.models.mcp_server.McpServerJsonOutputFilteringMatcher drop, + @JsonProperty("fieldPathsToKeep") final java.util.List fieldPathsToKeep, + @JsonProperty("redactedWith") final String redactedWith) { + this.redact = redact; + this.drop = drop; + this.fieldPathsToKeep = fieldPathsToKeep; + this.redactedWith = redactedWith; + } + + /** + * create empty instance + */ + public McpServerJsonOutputFilteringImpl() { + } + + /** + *

    Fields whose values are replaced with a placeholder. The field itself is kept.

    + */ + + public com.commercetools.api.models.mcp_server.McpServerJsonOutputFilteringMatcher getRedact() { + return this.redact; + } + + /** + *

    Fields that are removed entirely from the response.

    + */ + + public com.commercetools.api.models.mcp_server.McpServerJsonOutputFilteringMatcher getDrop() { + return this.drop; + } + + /** + *

    Exact dotted paths kept even when they would otherwise match redact or drop.

    + */ + + public java.util.List getFieldPathsToKeep() { + return this.fieldPathsToKeep; + } + + /** + *

    Placeholder written in place of redacted values. When unset, the MCP Server applies its own default ([REDACTED]).

    + */ + + public String getRedactedWith() { + return this.redactedWith; + } + + public void setRedact(final com.commercetools.api.models.mcp_server.McpServerJsonOutputFilteringMatcher redact) { + this.redact = redact; + } + + public void setDrop(final com.commercetools.api.models.mcp_server.McpServerJsonOutputFilteringMatcher drop) { + this.drop = drop; + } + + public void setFieldPathsToKeep(final String... fieldPathsToKeep) { + this.fieldPathsToKeep = new ArrayList<>(Arrays.asList(fieldPathsToKeep)); + } + + public void setFieldPathsToKeep(final java.util.List fieldPathsToKeep) { + this.fieldPathsToKeep = fieldPathsToKeep; + } + + public void setRedactedWith(final String redactedWith) { + this.redactedWith = redactedWith; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + McpServerJsonOutputFilteringImpl that = (McpServerJsonOutputFilteringImpl) o; + + return new EqualsBuilder().append(redact, that.redact) + .append(drop, that.drop) + .append(fieldPathsToKeep, that.fieldPathsToKeep) + .append(redactedWith, that.redactedWith) + .append(redact, that.redact) + .append(drop, that.drop) + .append(fieldPathsToKeep, that.fieldPathsToKeep) + .append(redactedWith, that.redactedWith) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(redact) + .append(drop) + .append(fieldPathsToKeep) + .append(redactedWith) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("redact", redact) + .append("drop", drop) + .append("fieldPathsToKeep", fieldPathsToKeep) + .append("redactedWith", redactedWith) + .build(); + } + + @Override + public McpServerJsonOutputFiltering copyDeep() { + return McpServerJsonOutputFiltering.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerJsonOutputFilteringMatcher.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerJsonOutputFilteringMatcher.java new file mode 100644 index 0000000000..79b6d276e0 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerJsonOutputFilteringMatcher.java @@ -0,0 +1,188 @@ + +package com.commercetools.api.models.mcp_server; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.fasterxml.jackson.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import tools.jackson.databind.annotation.*; + +/** + *

    One match group for McpServerJsonOutputFiltering. Selects fields three ways, each with a fixed case-sensitivity rule. All fields are optional.

    + *
      + *
    • fieldPaths: exact dotted path, for example customer.password. Matched case-sensitively.
    • + *
    • fieldNames: exact field name at any depth, for example password. Matched case-sensitively.
    • + *
    • fieldNameContains: substring of a field name at any depth, for example secret catching clientSecret. Matched case-insensitively to widen the net.
    • + *
    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     McpServerJsonOutputFilteringMatcher mcpServerJsonOutputFilteringMatcher = McpServerJsonOutputFilteringMatcher.builder()
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = McpServerJsonOutputFilteringMatcherImpl.class) +public interface McpServerJsonOutputFilteringMatcher { + + /** + *

    Exact dotted paths to match, for example customer.password. Matched case-sensitively.

    + * @return fieldPaths + */ + + @JsonProperty("fieldPaths") + public List getFieldPaths(); + + /** + *

    Exact field names to match at any depth, for example password. Matched case-sensitively.

    + * @return fieldNames + */ + + @JsonProperty("fieldNames") + public List getFieldNames(); + + /** + *

    Substrings to match against field names at any depth, for example secret. Matched case-insensitively.

    + * @return fieldNameContains + */ + + @JsonProperty("fieldNameContains") + public List getFieldNameContains(); + + /** + *

    Exact dotted paths to match, for example customer.password. Matched case-sensitively.

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

    Exact dotted paths to match, for example customer.password. Matched case-sensitively.

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

    Exact field names to match at any depth, for example password. Matched case-sensitively.

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

    Exact field names to match at any depth, for example password. Matched case-sensitively.

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

    Substrings to match against field names at any depth, for example secret. Matched case-insensitively.

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

    Substrings to match against field names at any depth, for example secret. Matched case-insensitively.

    + * @param fieldNameContains values to be set + */ + + public void setFieldNameContains(final List fieldNameContains); + + /** + * factory method + * @return instance of McpServerJsonOutputFilteringMatcher + */ + public static McpServerJsonOutputFilteringMatcher of() { + return new McpServerJsonOutputFilteringMatcherImpl(); + } + + /** + * factory method to create a shallow copy McpServerJsonOutputFilteringMatcher + * @param template instance to be copied + * @return copy instance + */ + public static McpServerJsonOutputFilteringMatcher of(final McpServerJsonOutputFilteringMatcher template) { + McpServerJsonOutputFilteringMatcherImpl instance = new McpServerJsonOutputFilteringMatcherImpl(); + instance.setFieldPaths(template.getFieldPaths()); + instance.setFieldNames(template.getFieldNames()); + instance.setFieldNameContains(template.getFieldNameContains()); + return instance; + } + + public McpServerJsonOutputFilteringMatcher copyDeep(); + + /** + * factory method to create a deep copy of McpServerJsonOutputFilteringMatcher + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static McpServerJsonOutputFilteringMatcher deepCopy( + @Nullable final McpServerJsonOutputFilteringMatcher template) { + if (template == null) { + return null; + } + McpServerJsonOutputFilteringMatcherImpl instance = new McpServerJsonOutputFilteringMatcherImpl(); + instance.setFieldPaths(Optional.ofNullable(template.getFieldPaths()).map(ArrayList::new).orElse(null)); + instance.setFieldNames(Optional.ofNullable(template.getFieldNames()).map(ArrayList::new).orElse(null)); + instance.setFieldNameContains( + Optional.ofNullable(template.getFieldNameContains()).map(ArrayList::new).orElse(null)); + return instance; + } + + /** + * builder factory method for McpServerJsonOutputFilteringMatcher + * @return builder + */ + public static McpServerJsonOutputFilteringMatcherBuilder builder() { + return McpServerJsonOutputFilteringMatcherBuilder.of(); + } + + /** + * create builder for McpServerJsonOutputFilteringMatcher instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static McpServerJsonOutputFilteringMatcherBuilder builder( + final McpServerJsonOutputFilteringMatcher template) { + return McpServerJsonOutputFilteringMatcherBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withMcpServerJsonOutputFilteringMatcher(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static tools.jackson.core.type.TypeReference typeReference() { + return new tools.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/mcp_server/McpServerJsonOutputFilteringMatcherBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerJsonOutputFilteringMatcherBuilder.java new file mode 100644 index 0000000000..195c0ba695 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerJsonOutputFilteringMatcherBuilder.java @@ -0,0 +1,211 @@ + +package com.commercetools.api.models.mcp_server; + +import java.util.*; + +import javax.annotation.Nullable; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * McpServerJsonOutputFilteringMatcherBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     McpServerJsonOutputFilteringMatcher mcpServerJsonOutputFilteringMatcher = McpServerJsonOutputFilteringMatcher.builder()
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class McpServerJsonOutputFilteringMatcherBuilder implements Builder { + + @Nullable + private java.util.List fieldPaths; + + @Nullable + private java.util.List fieldNames; + + @Nullable + private java.util.List fieldNameContains; + + /** + *

    Exact dotted paths to match, for example customer.password. Matched case-sensitively.

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

    Exact dotted paths to match, for example customer.password. Matched case-sensitively.

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

    Exact dotted paths to match, for example customer.password. Matched case-sensitively.

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

    Exact field names to match at any depth, for example password. Matched case-sensitively.

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

    Exact field names to match at any depth, for example password. Matched case-sensitively.

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

    Exact field names to match at any depth, for example password. Matched case-sensitively.

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

    Substrings to match against field names at any depth, for example secret. Matched case-insensitively.

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

    Substrings to match against field names at any depth, for example secret. Matched case-insensitively.

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

    Substrings to match against field names at any depth, for example secret. Matched case-insensitively.

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

    Exact dotted paths to match, for example customer.password. Matched case-sensitively.

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

    Exact field names to match at any depth, for example password. Matched case-sensitively.

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

    Substrings to match against field names at any depth, for example secret. Matched case-insensitively.

    + * @return fieldNameContains + */ + + @Nullable + public java.util.List getFieldNameContains() { + return this.fieldNameContains; + } + + /** + * builds McpServerJsonOutputFilteringMatcher with checking for non-null required values + * @return McpServerJsonOutputFilteringMatcher + */ + public McpServerJsonOutputFilteringMatcher build() { + return new McpServerJsonOutputFilteringMatcherImpl(fieldPaths, fieldNames, fieldNameContains); + } + + /** + * builds McpServerJsonOutputFilteringMatcher without checking for non-null required values + * @return McpServerJsonOutputFilteringMatcher + */ + public McpServerJsonOutputFilteringMatcher buildUnchecked() { + return new McpServerJsonOutputFilteringMatcherImpl(fieldPaths, fieldNames, fieldNameContains); + } + + /** + * factory method for an instance of McpServerJsonOutputFilteringMatcherBuilder + * @return builder + */ + public static McpServerJsonOutputFilteringMatcherBuilder of() { + return new McpServerJsonOutputFilteringMatcherBuilder(); + } + + /** + * create builder for McpServerJsonOutputFilteringMatcher instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static McpServerJsonOutputFilteringMatcherBuilder of(final McpServerJsonOutputFilteringMatcher template) { + McpServerJsonOutputFilteringMatcherBuilder builder = new McpServerJsonOutputFilteringMatcherBuilder(); + builder.fieldPaths = template.getFieldPaths(); + builder.fieldNames = template.getFieldNames(); + builder.fieldNameContains = template.getFieldNameContains(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerJsonOutputFilteringMatcherImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerJsonOutputFilteringMatcherImpl.java new file mode 100644 index 0000000000..7db96dcde3 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerJsonOutputFilteringMatcherImpl.java @@ -0,0 +1,139 @@ + +package com.commercetools.api.models.mcp_server; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; + +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; + +import tools.jackson.databind.annotation.*; + +/** + *

    One match group for McpServerJsonOutputFiltering. Selects fields three ways, each with a fixed case-sensitivity rule. All fields are optional.

    + *
      + *
    • fieldPaths: exact dotted path, for example customer.password. Matched case-sensitively.
    • + *
    • fieldNames: exact field name at any depth, for example password. Matched case-sensitively.
    • + *
    • fieldNameContains: substring of a field name at any depth, for example secret catching clientSecret. Matched case-insensitively to widen the net.
    • + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class McpServerJsonOutputFilteringMatcherImpl implements McpServerJsonOutputFilteringMatcher, ModelBase { + + private java.util.List fieldPaths; + + private java.util.List fieldNames; + + private java.util.List fieldNameContains; + + /** + * create instance with all properties + */ + @JsonCreator + McpServerJsonOutputFilteringMatcherImpl(@JsonProperty("fieldPaths") final java.util.List fieldPaths, + @JsonProperty("fieldNames") final java.util.List fieldNames, + @JsonProperty("fieldNameContains") final java.util.List fieldNameContains) { + this.fieldPaths = fieldPaths; + this.fieldNames = fieldNames; + this.fieldNameContains = fieldNameContains; + } + + /** + * create empty instance + */ + public McpServerJsonOutputFilteringMatcherImpl() { + } + + /** + *

    Exact dotted paths to match, for example customer.password. Matched case-sensitively.

    + */ + + public java.util.List getFieldPaths() { + return this.fieldPaths; + } + + /** + *

    Exact field names to match at any depth, for example password. Matched case-sensitively.

    + */ + + public java.util.List getFieldNames() { + return this.fieldNames; + } + + /** + *

    Substrings to match against field names at any depth, for example secret. Matched case-insensitively.

    + */ + + public java.util.List getFieldNameContains() { + return this.fieldNameContains; + } + + public void setFieldPaths(final String... fieldPaths) { + this.fieldPaths = new ArrayList<>(Arrays.asList(fieldPaths)); + } + + public void setFieldPaths(final java.util.List fieldPaths) { + this.fieldPaths = fieldPaths; + } + + public void setFieldNames(final String... fieldNames) { + this.fieldNames = new ArrayList<>(Arrays.asList(fieldNames)); + } + + public void setFieldNames(final java.util.List fieldNames) { + this.fieldNames = fieldNames; + } + + public void setFieldNameContains(final String... fieldNameContains) { + this.fieldNameContains = new ArrayList<>(Arrays.asList(fieldNameContains)); + } + + public void setFieldNameContains(final java.util.List fieldNameContains) { + this.fieldNameContains = fieldNameContains; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + McpServerJsonOutputFilteringMatcherImpl that = (McpServerJsonOutputFilteringMatcherImpl) o; + + return new EqualsBuilder().append(fieldPaths, that.fieldPaths) + .append(fieldNames, that.fieldNames) + .append(fieldNameContains, that.fieldNameContains) + .append(fieldPaths, that.fieldPaths) + .append(fieldNames, that.fieldNames) + .append(fieldNameContains, that.fieldNameContains) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(fieldPaths).append(fieldNames).append(fieldNameContains).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("fieldPaths", fieldPaths) + .append("fieldNames", fieldNames) + .append("fieldNameContains", fieldNameContains) + .build(); + } + + @Override + public McpServerJsonOutputFilteringMatcher copyDeep() { + return McpServerJsonOutputFilteringMatcher.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerPagedQueryResponse.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerPagedQueryResponse.java new file mode 100644 index 0000000000..3531679e7c --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerPagedQueryResponse.java @@ -0,0 +1,210 @@ + +package com.commercetools.api.models.mcp_server; + +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 io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; +import tools.jackson.databind.annotation.*; + +/** + *

    PagedQueryResult with results containing an array of McpServer.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     McpServerPagedQueryResponse mcpServerPagedQueryResponse = McpServerPagedQueryResponse.builder()
    + *             .limit(0.3)
    + *             .offset(0.3)
    + *             .count(0.3)
    + *             .plusResults(resultsBuilder -> resultsBuilder)
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = McpServerPagedQueryResponseImpl.class) +public interface McpServerPagedQueryResponse { + + /** + *

    Number of results requested.

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

    Number of elements skipped.

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

    Actual number of results returned.

    + * @return count + */ + @NotNull + @JsonProperty("count") + public Long getCount(); + + /** + *

    Total number of results matching the query. This field is returned by default. For improved performance, calculating this field can be deactivated by using the query parameter withTotal=false.

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

    MCP Servers matching the query.

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

    Number of results requested.

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

    Number of elements skipped.

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

    Actual number of results returned.

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

    Total number of results matching the query. This field is returned by default. For improved performance, calculating this field can be deactivated by using the query parameter withTotal=false.

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

    MCP Servers matching the query.

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

    MCP Servers matching the query.

    + * @param results values to be set + */ + + public void setResults(final List results); + + /** + * factory method + * @return instance of McpServerPagedQueryResponse + */ + public static McpServerPagedQueryResponse of() { + return new McpServerPagedQueryResponseImpl(); + } + + /** + * factory method to create a shallow copy McpServerPagedQueryResponse + * @param template instance to be copied + * @return copy instance + */ + public static McpServerPagedQueryResponse of(final McpServerPagedQueryResponse template) { + McpServerPagedQueryResponseImpl instance = new McpServerPagedQueryResponseImpl(); + instance.setLimit(template.getLimit()); + instance.setOffset(template.getOffset()); + instance.setCount(template.getCount()); + instance.setTotal(template.getTotal()); + instance.setResults(template.getResults()); + return instance; + } + + public McpServerPagedQueryResponse copyDeep(); + + /** + * factory method to create a deep copy of McpServerPagedQueryResponse + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static McpServerPagedQueryResponse deepCopy(@Nullable final McpServerPagedQueryResponse template) { + if (template == null) { + return null; + } + McpServerPagedQueryResponseImpl instance = new McpServerPagedQueryResponseImpl(); + instance.setLimit(template.getLimit()); + instance.setOffset(template.getOffset()); + instance.setCount(template.getCount()); + instance.setTotal(template.getTotal()); + instance.setResults(Optional.ofNullable(template.getResults()) + .map(t -> t.stream() + .map(com.commercetools.api.models.mcp_server.McpServer::deepCopy) + .collect(Collectors.toList())) + .orElse(null)); + return instance; + } + + /** + * builder factory method for McpServerPagedQueryResponse + * @return builder + */ + public static McpServerPagedQueryResponseBuilder builder() { + return McpServerPagedQueryResponseBuilder.of(); + } + + /** + * create builder for McpServerPagedQueryResponse instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static McpServerPagedQueryResponseBuilder builder(final McpServerPagedQueryResponse template) { + return McpServerPagedQueryResponseBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withMcpServerPagedQueryResponse(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static tools.jackson.core.type.TypeReference typeReference() { + return new tools.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/mcp_server/McpServerPagedQueryResponseBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerPagedQueryResponseBuilder.java new file mode 100644 index 0000000000..f250fdc0e3 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerPagedQueryResponseBuilder.java @@ -0,0 +1,263 @@ + +package com.commercetools.api.models.mcp_server; + +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; + +/** + * McpServerPagedQueryResponseBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     McpServerPagedQueryResponse mcpServerPagedQueryResponse = McpServerPagedQueryResponse.builder()
    + *             .limit(0.3)
    + *             .offset(0.3)
    + *             .count(0.3)
    + *             .plusResults(resultsBuilder -> resultsBuilder)
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class McpServerPagedQueryResponseBuilder implements Builder { + + private Long limit; + + private Long offset; + + private Long count; + + @Nullable + private Long total; + + private java.util.List results; + + /** + *

    Number of results requested.

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

    Number of elements skipped.

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

    Actual number of results returned.

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

    Total number of results matching the query. This field is returned by default. For improved performance, calculating this field can be deactivated by using the query parameter withTotal=false.

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

    MCP Servers matching the query.

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

    MCP Servers matching the query.

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

    MCP Servers matching the query.

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

    MCP Servers matching the query.

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

    MCP Servers matching the query.

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

    MCP Servers matching the query.

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

    MCP Servers matching the query.

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

    Number of results requested.

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

    Number of elements skipped.

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

    Actual number of results returned.

    + * @return count + */ + + public Long getCount() { + return this.count; + } + + /** + *

    Total number of results matching the query. This field is returned by default. For improved performance, calculating this field can be deactivated by using the query parameter withTotal=false.

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

    MCP Servers matching the query.

    + * @return results + */ + + public java.util.List getResults() { + return this.results; + } + + /** + * builds McpServerPagedQueryResponse with checking for non-null required values + * @return McpServerPagedQueryResponse + */ + public McpServerPagedQueryResponse build() { + Objects.requireNonNull(limit, McpServerPagedQueryResponse.class + ": limit is missing"); + Objects.requireNonNull(offset, McpServerPagedQueryResponse.class + ": offset is missing"); + Objects.requireNonNull(count, McpServerPagedQueryResponse.class + ": count is missing"); + Objects.requireNonNull(results, McpServerPagedQueryResponse.class + ": results is missing"); + return new McpServerPagedQueryResponseImpl(limit, offset, count, total, results); + } + + /** + * builds McpServerPagedQueryResponse without checking for non-null required values + * @return McpServerPagedQueryResponse + */ + public McpServerPagedQueryResponse buildUnchecked() { + return new McpServerPagedQueryResponseImpl(limit, offset, count, total, results); + } + + /** + * factory method for an instance of McpServerPagedQueryResponseBuilder + * @return builder + */ + public static McpServerPagedQueryResponseBuilder of() { + return new McpServerPagedQueryResponseBuilder(); + } + + /** + * create builder for McpServerPagedQueryResponse instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static McpServerPagedQueryResponseBuilder of(final McpServerPagedQueryResponse template) { + McpServerPagedQueryResponseBuilder builder = new McpServerPagedQueryResponseBuilder(); + builder.limit = template.getLimit(); + builder.offset = template.getOffset(); + builder.count = template.getCount(); + builder.total = template.getTotal(); + builder.results = template.getResults(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerPagedQueryResponseImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerPagedQueryResponseImpl.java new file mode 100644 index 0000000000..2d96974cea --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerPagedQueryResponseImpl.java @@ -0,0 +1,167 @@ + +package com.commercetools.api.models.mcp_server; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; + +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; + +import tools.jackson.databind.annotation.*; + +/** + *

    PagedQueryResult with results containing an array of McpServer.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class McpServerPagedQueryResponseImpl implements McpServerPagedQueryResponse, ModelBase { + + private Long limit; + + private Long offset; + + private Long count; + + private Long total; + + private java.util.List results; + + /** + * create instance with all properties + */ + @JsonCreator + McpServerPagedQueryResponseImpl(@JsonProperty("limit") final Long limit, @JsonProperty("offset") final Long offset, + @JsonProperty("count") final Long count, @JsonProperty("total") final Long total, + @JsonProperty("results") final java.util.List results) { + this.limit = limit; + this.offset = offset; + this.count = count; + this.total = total; + this.results = results; + } + + /** + * create empty instance + */ + public McpServerPagedQueryResponseImpl() { + } + + /** + *

    Number of results requested.

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

    Number of elements skipped.

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

    Actual number of results returned.

    + */ + + public Long getCount() { + return this.count; + } + + /** + *

    Total number of results matching the query. This field is returned by default. For improved performance, calculating this field can be deactivated by using the query parameter withTotal=false.

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

    MCP Servers matching the query.

    + */ + + public java.util.List getResults() { + return this.results; + } + + public void setLimit(final Long limit) { + this.limit = limit; + } + + public void setOffset(final Long offset) { + this.offset = offset; + } + + public void setCount(final Long count) { + this.count = count; + } + + public void setTotal(final Long total) { + this.total = total; + } + + public void setResults(final com.commercetools.api.models.mcp_server.McpServer... 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; + + McpServerPagedQueryResponseImpl that = (McpServerPagedQueryResponseImpl) o; + + return new EqualsBuilder().append(limit, that.limit) + .append(offset, that.offset) + .append(count, that.count) + .append(total, that.total) + .append(results, that.results) + .append(limit, that.limit) + .append(offset, that.offset) + .append(count, that.count) + .append(total, that.total) + .append(results, that.results) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(limit) + .append(offset) + .append(count) + .append(total) + .append(results) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("limit", limit) + .append("offset", offset) + .append("count", count) + .append("total", total) + .append("results", results) + .build(); + } + + @Override + public McpServerPagedQueryResponse copyDeep() { + return McpServerPagedQueryResponse.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerRemoveToolAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerRemoveToolAction.java new file mode 100644 index 0000000000..8ade99cf82 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerRemoveToolAction.java @@ -0,0 +1,130 @@ + +package com.commercetools.api.models.mcp_server; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.fasterxml.jackson.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.constraints.NotNull; +import tools.jackson.databind.annotation.*; + +/** + *

    Removes a single tool from the MCP Server's list of enabled tools. Returns an InvalidOperation error if the tool is not in the current list.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     McpServerRemoveToolAction mcpServerRemoveToolAction = McpServerRemoveToolAction.builder()
    + *             .tool(McpServerTool.ALL)
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("removeTool") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = McpServerRemoveToolActionImpl.class) +public interface McpServerRemoveToolAction extends McpServerUpdateAction { + + /** + * discriminator value for McpServerRemoveToolAction + */ + String REMOVE_TOOL = "removeTool"; + + /** + *

    Name of the tool to remove, such as read_products or create_orders.

    + * @return tool + */ + @NotNull + @JsonProperty("tool") + public McpServerTool getTool(); + + /** + *

    Name of the tool to remove, such as read_products or create_orders.

    + * @param tool value to be set + */ + + public void setTool(final McpServerTool tool); + + /** + * factory method + * @return instance of McpServerRemoveToolAction + */ + public static McpServerRemoveToolAction of() { + return new McpServerRemoveToolActionImpl(); + } + + /** + * factory method to create a shallow copy McpServerRemoveToolAction + * @param template instance to be copied + * @return copy instance + */ + public static McpServerRemoveToolAction of(final McpServerRemoveToolAction template) { + McpServerRemoveToolActionImpl instance = new McpServerRemoveToolActionImpl(); + instance.setTool(template.getTool()); + return instance; + } + + public McpServerRemoveToolAction copyDeep(); + + /** + * factory method to create a deep copy of McpServerRemoveToolAction + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static McpServerRemoveToolAction deepCopy(@Nullable final McpServerRemoveToolAction template) { + if (template == null) { + return null; + } + McpServerRemoveToolActionImpl instance = new McpServerRemoveToolActionImpl(); + instance.setTool(template.getTool()); + return instance; + } + + /** + * builder factory method for McpServerRemoveToolAction + * @return builder + */ + public static McpServerRemoveToolActionBuilder builder() { + return McpServerRemoveToolActionBuilder.of(); + } + + /** + * create builder for McpServerRemoveToolAction instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static McpServerRemoveToolActionBuilder builder(final McpServerRemoveToolAction template) { + return McpServerRemoveToolActionBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withMcpServerRemoveToolAction(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static tools.jackson.core.type.TypeReference typeReference() { + return new tools.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/mcp_server/McpServerRemoveToolActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerRemoveToolActionBuilder.java new file mode 100644 index 0000000000..301288d1d7 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerRemoveToolActionBuilder.java @@ -0,0 +1,82 @@ + +package com.commercetools.api.models.mcp_server; + +import java.util.*; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * McpServerRemoveToolActionBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     McpServerRemoveToolAction mcpServerRemoveToolAction = McpServerRemoveToolAction.builder()
    + *             .tool(McpServerTool.ALL)
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class McpServerRemoveToolActionBuilder implements Builder { + + private com.commercetools.api.models.mcp_server.McpServerTool tool; + + /** + *

    Name of the tool to remove, such as read_products or create_orders.

    + * @param tool value to be set + * @return Builder + */ + + public McpServerRemoveToolActionBuilder tool(final com.commercetools.api.models.mcp_server.McpServerTool tool) { + this.tool = tool; + return this; + } + + /** + *

    Name of the tool to remove, such as read_products or create_orders.

    + * @return tool + */ + + public com.commercetools.api.models.mcp_server.McpServerTool getTool() { + return this.tool; + } + + /** + * builds McpServerRemoveToolAction with checking for non-null required values + * @return McpServerRemoveToolAction + */ + public McpServerRemoveToolAction build() { + Objects.requireNonNull(tool, McpServerRemoveToolAction.class + ": tool is missing"); + return new McpServerRemoveToolActionImpl(tool); + } + + /** + * builds McpServerRemoveToolAction without checking for non-null required values + * @return McpServerRemoveToolAction + */ + public McpServerRemoveToolAction buildUnchecked() { + return new McpServerRemoveToolActionImpl(tool); + } + + /** + * factory method for an instance of McpServerRemoveToolActionBuilder + * @return builder + */ + public static McpServerRemoveToolActionBuilder of() { + return new McpServerRemoveToolActionBuilder(); + } + + /** + * create builder for McpServerRemoveToolAction instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static McpServerRemoveToolActionBuilder of(final McpServerRemoveToolAction template) { + McpServerRemoveToolActionBuilder builder = new McpServerRemoveToolActionBuilder(); + builder.tool = template.getTool(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerRemoveToolActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerRemoveToolActionImpl.java new file mode 100644 index 0000000000..48a5d78d02 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerRemoveToolActionImpl.java @@ -0,0 +1,100 @@ + +package com.commercetools.api.models.mcp_server; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; + +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; + +import tools.jackson.databind.annotation.*; + +/** + *

    Removes a single tool from the MCP Server's list of enabled tools. Returns an InvalidOperation error if the tool is not in the current list.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class McpServerRemoveToolActionImpl implements McpServerRemoveToolAction, ModelBase { + + private String action; + + private com.commercetools.api.models.mcp_server.McpServerTool tool; + + /** + * create instance with all properties + */ + @JsonCreator + McpServerRemoveToolActionImpl( + @JsonProperty("tool") final com.commercetools.api.models.mcp_server.McpServerTool tool) { + this.tool = tool; + this.action = REMOVE_TOOL; + } + + /** + * create empty instance + */ + public McpServerRemoveToolActionImpl() { + this.action = REMOVE_TOOL; + } + + /** + *

    Identifies the update action to perform, such as addTool, removeTool, or setTools.

    + */ + + public String getAction() { + return this.action; + } + + /** + *

    Name of the tool to remove, such as read_products or create_orders.

    + */ + + public com.commercetools.api.models.mcp_server.McpServerTool getTool() { + return this.tool; + } + + public void setTool(final com.commercetools.api.models.mcp_server.McpServerTool tool) { + this.tool = tool; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + McpServerRemoveToolActionImpl that = (McpServerRemoveToolActionImpl) o; + + return new EqualsBuilder().append(action, that.action) + .append(tool, that.tool) + .append(action, that.action) + .append(tool, that.tool) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(action).append(tool).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("action", action) + .append("tool", tool) + .build(); + } + + @Override + public McpServerRemoveToolAction copyDeep() { + return McpServerRemoveToolAction.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerRemoveToolCustomizationAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerRemoveToolCustomizationAction.java new file mode 100644 index 0000000000..4cfa565306 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerRemoveToolCustomizationAction.java @@ -0,0 +1,136 @@ + +package com.commercetools.api.models.mcp_server; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.fasterxml.jackson.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; +import tools.jackson.databind.annotation.*; + +/** + *

    Removes the tool customization matching the given tool name. Has no effect if no customization exists for that tool.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     McpServerRemoveToolCustomizationAction mcpServerRemoveToolCustomizationAction = McpServerRemoveToolCustomizationAction.builder()
    + *             .toolCustomization(toolCustomizationBuilder -> toolCustomizationBuilder)
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("removeToolCustomization") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = McpServerRemoveToolCustomizationActionImpl.class) +public interface McpServerRemoveToolCustomizationAction extends McpServerUpdateAction { + + /** + * discriminator value for McpServerRemoveToolCustomizationAction + */ + String REMOVE_TOOL_CUSTOMIZATION = "removeToolCustomization"; + + /** + *

    Identifies the tool customization to remove by its tool name.

    + * @return toolCustomization + */ + @NotNull + @Valid + @JsonProperty("toolCustomization") + public RemoveToolCustomizationTarget getToolCustomization(); + + /** + *

    Identifies the tool customization to remove by its tool name.

    + * @param toolCustomization value to be set + */ + + public void setToolCustomization(final RemoveToolCustomizationTarget toolCustomization); + + /** + * factory method + * @return instance of McpServerRemoveToolCustomizationAction + */ + public static McpServerRemoveToolCustomizationAction of() { + return new McpServerRemoveToolCustomizationActionImpl(); + } + + /** + * factory method to create a shallow copy McpServerRemoveToolCustomizationAction + * @param template instance to be copied + * @return copy instance + */ + public static McpServerRemoveToolCustomizationAction of(final McpServerRemoveToolCustomizationAction template) { + McpServerRemoveToolCustomizationActionImpl instance = new McpServerRemoveToolCustomizationActionImpl(); + instance.setToolCustomization(template.getToolCustomization()); + return instance; + } + + public McpServerRemoveToolCustomizationAction copyDeep(); + + /** + * factory method to create a deep copy of McpServerRemoveToolCustomizationAction + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static McpServerRemoveToolCustomizationAction deepCopy( + @Nullable final McpServerRemoveToolCustomizationAction template) { + if (template == null) { + return null; + } + McpServerRemoveToolCustomizationActionImpl instance = new McpServerRemoveToolCustomizationActionImpl(); + instance.setToolCustomization(com.commercetools.api.models.mcp_server.RemoveToolCustomizationTarget + .deepCopy(template.getToolCustomization())); + return instance; + } + + /** + * builder factory method for McpServerRemoveToolCustomizationAction + * @return builder + */ + public static McpServerRemoveToolCustomizationActionBuilder builder() { + return McpServerRemoveToolCustomizationActionBuilder.of(); + } + + /** + * create builder for McpServerRemoveToolCustomizationAction instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static McpServerRemoveToolCustomizationActionBuilder builder( + final McpServerRemoveToolCustomizationAction template) { + return McpServerRemoveToolCustomizationActionBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withMcpServerRemoveToolCustomizationAction( + Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static tools.jackson.core.type.TypeReference typeReference() { + return new tools.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/mcp_server/McpServerRemoveToolCustomizationActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerRemoveToolCustomizationActionBuilder.java new file mode 100644 index 0000000000..f0451f5dcd --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerRemoveToolCustomizationActionBuilder.java @@ -0,0 +1,113 @@ + +package com.commercetools.api.models.mcp_server; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * McpServerRemoveToolCustomizationActionBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     McpServerRemoveToolCustomizationAction mcpServerRemoveToolCustomizationAction = McpServerRemoveToolCustomizationAction.builder()
    + *             .toolCustomization(toolCustomizationBuilder -> toolCustomizationBuilder)
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class McpServerRemoveToolCustomizationActionBuilder implements Builder { + + private com.commercetools.api.models.mcp_server.RemoveToolCustomizationTarget toolCustomization; + + /** + *

    Identifies the tool customization to remove by its tool name.

    + * @param builder function to build the toolCustomization value + * @return Builder + */ + + public McpServerRemoveToolCustomizationActionBuilder toolCustomization( + Function builder) { + this.toolCustomization = builder + .apply(com.commercetools.api.models.mcp_server.RemoveToolCustomizationTargetBuilder.of()) + .build(); + return this; + } + + /** + *

    Identifies the tool customization to remove by its tool name.

    + * @param builder function to build the toolCustomization value + * @return Builder + */ + + public McpServerRemoveToolCustomizationActionBuilder withToolCustomization( + Function builder) { + this.toolCustomization = builder + .apply(com.commercetools.api.models.mcp_server.RemoveToolCustomizationTargetBuilder.of()); + return this; + } + + /** + *

    Identifies the tool customization to remove by its tool name.

    + * @param toolCustomization value to be set + * @return Builder + */ + + public McpServerRemoveToolCustomizationActionBuilder toolCustomization( + final com.commercetools.api.models.mcp_server.RemoveToolCustomizationTarget toolCustomization) { + this.toolCustomization = toolCustomization; + return this; + } + + /** + *

    Identifies the tool customization to remove by its tool name.

    + * @return toolCustomization + */ + + public com.commercetools.api.models.mcp_server.RemoveToolCustomizationTarget getToolCustomization() { + return this.toolCustomization; + } + + /** + * builds McpServerRemoveToolCustomizationAction with checking for non-null required values + * @return McpServerRemoveToolCustomizationAction + */ + public McpServerRemoveToolCustomizationAction build() { + Objects.requireNonNull(toolCustomization, + McpServerRemoveToolCustomizationAction.class + ": toolCustomization is missing"); + return new McpServerRemoveToolCustomizationActionImpl(toolCustomization); + } + + /** + * builds McpServerRemoveToolCustomizationAction without checking for non-null required values + * @return McpServerRemoveToolCustomizationAction + */ + public McpServerRemoveToolCustomizationAction buildUnchecked() { + return new McpServerRemoveToolCustomizationActionImpl(toolCustomization); + } + + /** + * factory method for an instance of McpServerRemoveToolCustomizationActionBuilder + * @return builder + */ + public static McpServerRemoveToolCustomizationActionBuilder of() { + return new McpServerRemoveToolCustomizationActionBuilder(); + } + + /** + * create builder for McpServerRemoveToolCustomizationAction instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static McpServerRemoveToolCustomizationActionBuilder of( + final McpServerRemoveToolCustomizationAction template) { + McpServerRemoveToolCustomizationActionBuilder builder = new McpServerRemoveToolCustomizationActionBuilder(); + builder.toolCustomization = template.getToolCustomization(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerRemoveToolCustomizationActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerRemoveToolCustomizationActionImpl.java new file mode 100644 index 0000000000..5617903a11 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerRemoveToolCustomizationActionImpl.java @@ -0,0 +1,101 @@ + +package com.commercetools.api.models.mcp_server; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; + +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; + +import tools.jackson.databind.annotation.*; + +/** + *

    Removes the tool customization matching the given tool name. Has no effect if no customization exists for that tool.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class McpServerRemoveToolCustomizationActionImpl implements McpServerRemoveToolCustomizationAction, ModelBase { + + private String action; + + private com.commercetools.api.models.mcp_server.RemoveToolCustomizationTarget toolCustomization; + + /** + * create instance with all properties + */ + @JsonCreator + McpServerRemoveToolCustomizationActionImpl( + @JsonProperty("toolCustomization") final com.commercetools.api.models.mcp_server.RemoveToolCustomizationTarget toolCustomization) { + this.toolCustomization = toolCustomization; + this.action = REMOVE_TOOL_CUSTOMIZATION; + } + + /** + * create empty instance + */ + public McpServerRemoveToolCustomizationActionImpl() { + this.action = REMOVE_TOOL_CUSTOMIZATION; + } + + /** + *

    Identifies the update action to perform, such as addTool, removeTool, or setTools.

    + */ + + public String getAction() { + return this.action; + } + + /** + *

    Identifies the tool customization to remove by its tool name.

    + */ + + public com.commercetools.api.models.mcp_server.RemoveToolCustomizationTarget getToolCustomization() { + return this.toolCustomization; + } + + public void setToolCustomization( + final com.commercetools.api.models.mcp_server.RemoveToolCustomizationTarget toolCustomization) { + this.toolCustomization = toolCustomization; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + McpServerRemoveToolCustomizationActionImpl that = (McpServerRemoveToolCustomizationActionImpl) o; + + return new EqualsBuilder().append(action, that.action) + .append(toolCustomization, that.toolCustomization) + .append(action, that.action) + .append(toolCustomization, that.toolCustomization) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(action).append(toolCustomization).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("action", action) + .append("toolCustomization", toolCustomization) + .build(); + } + + @Override + public McpServerRemoveToolCustomizationAction copyDeep() { + return McpServerRemoveToolCustomizationAction.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetDescriptionAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetDescriptionAction.java new file mode 100644 index 0000000000..56b9243ac1 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetDescriptionAction.java @@ -0,0 +1,131 @@ + +package com.commercetools.api.models.mcp_server; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.commercetools.api.models.common.LocalizedString; +import com.fasterxml.jackson.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.Valid; +import tools.jackson.databind.annotation.*; + +/** + *

    Sets the localized description of the MCP Server.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     McpServerSetDescriptionAction mcpServerSetDescriptionAction = McpServerSetDescriptionAction.builder()
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("setDescription") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = McpServerSetDescriptionActionImpl.class) +public interface McpServerSetDescriptionAction extends McpServerUpdateAction { + + /** + * discriminator value for McpServerSetDescriptionAction + */ + String SET_DESCRIPTION = "setDescription"; + + /** + *

    Value to set. If empty or absent, the existing description is removed.

    + * @return description + */ + @Valid + @JsonProperty("description") + public LocalizedString getDescription(); + + /** + *

    Value to set. If empty or absent, the existing description is removed.

    + * @param description value to be set + */ + + public void setDescription(final LocalizedString description); + + /** + * factory method + * @return instance of McpServerSetDescriptionAction + */ + public static McpServerSetDescriptionAction of() { + return new McpServerSetDescriptionActionImpl(); + } + + /** + * factory method to create a shallow copy McpServerSetDescriptionAction + * @param template instance to be copied + * @return copy instance + */ + public static McpServerSetDescriptionAction of(final McpServerSetDescriptionAction template) { + McpServerSetDescriptionActionImpl instance = new McpServerSetDescriptionActionImpl(); + instance.setDescription(template.getDescription()); + return instance; + } + + public McpServerSetDescriptionAction copyDeep(); + + /** + * factory method to create a deep copy of McpServerSetDescriptionAction + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static McpServerSetDescriptionAction deepCopy(@Nullable final McpServerSetDescriptionAction template) { + if (template == null) { + return null; + } + McpServerSetDescriptionActionImpl instance = new McpServerSetDescriptionActionImpl(); + instance.setDescription( + com.commercetools.api.models.common.LocalizedString.deepCopy(template.getDescription())); + return instance; + } + + /** + * builder factory method for McpServerSetDescriptionAction + * @return builder + */ + public static McpServerSetDescriptionActionBuilder builder() { + return McpServerSetDescriptionActionBuilder.of(); + } + + /** + * create builder for McpServerSetDescriptionAction instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static McpServerSetDescriptionActionBuilder builder(final McpServerSetDescriptionAction template) { + return McpServerSetDescriptionActionBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withMcpServerSetDescriptionAction(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static tools.jackson.core.type.TypeReference typeReference() { + return new tools.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/mcp_server/McpServerSetDescriptionActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetDescriptionActionBuilder.java new file mode 100644 index 0000000000..2b08069a07 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetDescriptionActionBuilder.java @@ -0,0 +1,110 @@ + +package com.commercetools.api.models.mcp_server; + +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; + +/** + * McpServerSetDescriptionActionBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     McpServerSetDescriptionAction mcpServerSetDescriptionAction = McpServerSetDescriptionAction.builder()
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class McpServerSetDescriptionActionBuilder implements Builder { + + @Nullable + private com.commercetools.api.models.common.LocalizedString description; + + /** + *

    Value to set. If empty or absent, the existing description is removed.

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

    Value to set. If empty or absent, the existing description is removed.

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

    Value to set. If empty or absent, the existing description is removed.

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

    Value to set. If empty or absent, the existing description is removed.

    + * @return description + */ + + @Nullable + public com.commercetools.api.models.common.LocalizedString getDescription() { + return this.description; + } + + /** + * builds McpServerSetDescriptionAction with checking for non-null required values + * @return McpServerSetDescriptionAction + */ + public McpServerSetDescriptionAction build() { + return new McpServerSetDescriptionActionImpl(description); + } + + /** + * builds McpServerSetDescriptionAction without checking for non-null required values + * @return McpServerSetDescriptionAction + */ + public McpServerSetDescriptionAction buildUnchecked() { + return new McpServerSetDescriptionActionImpl(description); + } + + /** + * factory method for an instance of McpServerSetDescriptionActionBuilder + * @return builder + */ + public static McpServerSetDescriptionActionBuilder of() { + return new McpServerSetDescriptionActionBuilder(); + } + + /** + * create builder for McpServerSetDescriptionAction instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static McpServerSetDescriptionActionBuilder of(final McpServerSetDescriptionAction template) { + McpServerSetDescriptionActionBuilder builder = new McpServerSetDescriptionActionBuilder(); + builder.description = template.getDescription(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetDescriptionActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetDescriptionActionImpl.java new file mode 100644 index 0000000000..25c08a210e --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetDescriptionActionImpl.java @@ -0,0 +1,100 @@ + +package com.commercetools.api.models.mcp_server; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; + +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; + +import tools.jackson.databind.annotation.*; + +/** + *

    Sets the localized description of the MCP Server.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class McpServerSetDescriptionActionImpl implements McpServerSetDescriptionAction, ModelBase { + + private String action; + + private com.commercetools.api.models.common.LocalizedString description; + + /** + * create instance with all properties + */ + @JsonCreator + McpServerSetDescriptionActionImpl( + @JsonProperty("description") final com.commercetools.api.models.common.LocalizedString description) { + this.description = description; + this.action = SET_DESCRIPTION; + } + + /** + * create empty instance + */ + public McpServerSetDescriptionActionImpl() { + this.action = SET_DESCRIPTION; + } + + /** + *

    Identifies the update action to perform, such as addTool, removeTool, or setTools.

    + */ + + public String getAction() { + return this.action; + } + + /** + *

    Value to set. If empty or absent, the existing description is removed.

    + */ + + public com.commercetools.api.models.common.LocalizedString getDescription() { + return this.description; + } + + public void setDescription(final com.commercetools.api.models.common.LocalizedString description) { + this.description = description; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + McpServerSetDescriptionActionImpl that = (McpServerSetDescriptionActionImpl) o; + + return new EqualsBuilder().append(action, that.action) + .append(description, that.description) + .append(action, that.action) + .append(description, that.description) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(action).append(description).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("action", action) + .append("description", description) + .build(); + } + + @Override + public McpServerSetDescriptionAction copyDeep() { + return McpServerSetDescriptionAction.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetJsonOutputFilteringAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetJsonOutputFilteringAction.java new file mode 100644 index 0000000000..4a14b50132 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetJsonOutputFilteringAction.java @@ -0,0 +1,132 @@ + +package com.commercetools.api.models.mcp_server; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.fasterxml.jackson.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.Valid; +import tools.jackson.databind.annotation.*; + +/** + *

    Sets the response field-filtering rules applied to tool responses.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     McpServerSetJsonOutputFilteringAction mcpServerSetJsonOutputFilteringAction = McpServerSetJsonOutputFilteringAction.builder()
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("setJsonOutputFiltering") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = McpServerSetJsonOutputFilteringActionImpl.class) +public interface McpServerSetJsonOutputFilteringAction extends McpServerUpdateAction { + + /** + * discriminator value for McpServerSetJsonOutputFilteringAction + */ + String SET_JSON_OUTPUT_FILTERING = "setJsonOutputFiltering"; + + /** + *

    Value to set. The existing configuration is entirely replaced with this value. If absent, the existing filtering configuration is removed.

    + * @return jsonOutputFiltering + */ + @Valid + @JsonProperty("jsonOutputFiltering") + public McpServerJsonOutputFiltering getJsonOutputFiltering(); + + /** + *

    Value to set. The existing configuration is entirely replaced with this value. If absent, the existing filtering configuration is removed.

    + * @param jsonOutputFiltering value to be set + */ + + public void setJsonOutputFiltering(final McpServerJsonOutputFiltering jsonOutputFiltering); + + /** + * factory method + * @return instance of McpServerSetJsonOutputFilteringAction + */ + public static McpServerSetJsonOutputFilteringAction of() { + return new McpServerSetJsonOutputFilteringActionImpl(); + } + + /** + * factory method to create a shallow copy McpServerSetJsonOutputFilteringAction + * @param template instance to be copied + * @return copy instance + */ + public static McpServerSetJsonOutputFilteringAction of(final McpServerSetJsonOutputFilteringAction template) { + McpServerSetJsonOutputFilteringActionImpl instance = new McpServerSetJsonOutputFilteringActionImpl(); + instance.setJsonOutputFiltering(template.getJsonOutputFiltering()); + return instance; + } + + public McpServerSetJsonOutputFilteringAction copyDeep(); + + /** + * factory method to create a deep copy of McpServerSetJsonOutputFilteringAction + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static McpServerSetJsonOutputFilteringAction deepCopy( + @Nullable final McpServerSetJsonOutputFilteringAction template) { + if (template == null) { + return null; + } + McpServerSetJsonOutputFilteringActionImpl instance = new McpServerSetJsonOutputFilteringActionImpl(); + instance.setJsonOutputFiltering(com.commercetools.api.models.mcp_server.McpServerJsonOutputFiltering + .deepCopy(template.getJsonOutputFiltering())); + return instance; + } + + /** + * builder factory method for McpServerSetJsonOutputFilteringAction + * @return builder + */ + public static McpServerSetJsonOutputFilteringActionBuilder builder() { + return McpServerSetJsonOutputFilteringActionBuilder.of(); + } + + /** + * create builder for McpServerSetJsonOutputFilteringAction instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static McpServerSetJsonOutputFilteringActionBuilder builder( + final McpServerSetJsonOutputFilteringAction template) { + return McpServerSetJsonOutputFilteringActionBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withMcpServerSetJsonOutputFilteringAction(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static tools.jackson.core.type.TypeReference typeReference() { + return new tools.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/mcp_server/McpServerSetJsonOutputFilteringActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetJsonOutputFilteringActionBuilder.java new file mode 100644 index 0000000000..6f53055f78 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetJsonOutputFilteringActionBuilder.java @@ -0,0 +1,114 @@ + +package com.commercetools.api.models.mcp_server; + +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; + +/** + * McpServerSetJsonOutputFilteringActionBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     McpServerSetJsonOutputFilteringAction mcpServerSetJsonOutputFilteringAction = McpServerSetJsonOutputFilteringAction.builder()
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class McpServerSetJsonOutputFilteringActionBuilder implements Builder { + + @Nullable + private com.commercetools.api.models.mcp_server.McpServerJsonOutputFiltering jsonOutputFiltering; + + /** + *

    Value to set. The existing configuration is entirely replaced with this value. If absent, the existing filtering configuration is removed.

    + * @param builder function to build the jsonOutputFiltering value + * @return Builder + */ + + public McpServerSetJsonOutputFilteringActionBuilder jsonOutputFiltering( + Function builder) { + this.jsonOutputFiltering = builder + .apply(com.commercetools.api.models.mcp_server.McpServerJsonOutputFilteringBuilder.of()) + .build(); + return this; + } + + /** + *

    Value to set. The existing configuration is entirely replaced with this value. If absent, the existing filtering configuration is removed.

    + * @param builder function to build the jsonOutputFiltering value + * @return Builder + */ + + public McpServerSetJsonOutputFilteringActionBuilder withJsonOutputFiltering( + Function builder) { + this.jsonOutputFiltering = builder + .apply(com.commercetools.api.models.mcp_server.McpServerJsonOutputFilteringBuilder.of()); + return this; + } + + /** + *

    Value to set. The existing configuration is entirely replaced with this value. If absent, the existing filtering configuration is removed.

    + * @param jsonOutputFiltering value to be set + * @return Builder + */ + + public McpServerSetJsonOutputFilteringActionBuilder jsonOutputFiltering( + @Nullable final com.commercetools.api.models.mcp_server.McpServerJsonOutputFiltering jsonOutputFiltering) { + this.jsonOutputFiltering = jsonOutputFiltering; + return this; + } + + /** + *

    Value to set. The existing configuration is entirely replaced with this value. If absent, the existing filtering configuration is removed.

    + * @return jsonOutputFiltering + */ + + @Nullable + public com.commercetools.api.models.mcp_server.McpServerJsonOutputFiltering getJsonOutputFiltering() { + return this.jsonOutputFiltering; + } + + /** + * builds McpServerSetJsonOutputFilteringAction with checking for non-null required values + * @return McpServerSetJsonOutputFilteringAction + */ + public McpServerSetJsonOutputFilteringAction build() { + return new McpServerSetJsonOutputFilteringActionImpl(jsonOutputFiltering); + } + + /** + * builds McpServerSetJsonOutputFilteringAction without checking for non-null required values + * @return McpServerSetJsonOutputFilteringAction + */ + public McpServerSetJsonOutputFilteringAction buildUnchecked() { + return new McpServerSetJsonOutputFilteringActionImpl(jsonOutputFiltering); + } + + /** + * factory method for an instance of McpServerSetJsonOutputFilteringActionBuilder + * @return builder + */ + public static McpServerSetJsonOutputFilteringActionBuilder of() { + return new McpServerSetJsonOutputFilteringActionBuilder(); + } + + /** + * create builder for McpServerSetJsonOutputFilteringAction instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static McpServerSetJsonOutputFilteringActionBuilder of( + final McpServerSetJsonOutputFilteringAction template) { + McpServerSetJsonOutputFilteringActionBuilder builder = new McpServerSetJsonOutputFilteringActionBuilder(); + builder.jsonOutputFiltering = template.getJsonOutputFiltering(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetJsonOutputFilteringActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetJsonOutputFilteringActionImpl.java new file mode 100644 index 0000000000..3160b042a8 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetJsonOutputFilteringActionImpl.java @@ -0,0 +1,101 @@ + +package com.commercetools.api.models.mcp_server; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; + +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; + +import tools.jackson.databind.annotation.*; + +/** + *

    Sets the response field-filtering rules applied to tool responses.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class McpServerSetJsonOutputFilteringActionImpl implements McpServerSetJsonOutputFilteringAction, ModelBase { + + private String action; + + private com.commercetools.api.models.mcp_server.McpServerJsonOutputFiltering jsonOutputFiltering; + + /** + * create instance with all properties + */ + @JsonCreator + McpServerSetJsonOutputFilteringActionImpl( + @JsonProperty("jsonOutputFiltering") final com.commercetools.api.models.mcp_server.McpServerJsonOutputFiltering jsonOutputFiltering) { + this.jsonOutputFiltering = jsonOutputFiltering; + this.action = SET_JSON_OUTPUT_FILTERING; + } + + /** + * create empty instance + */ + public McpServerSetJsonOutputFilteringActionImpl() { + this.action = SET_JSON_OUTPUT_FILTERING; + } + + /** + *

    Identifies the update action to perform, such as addTool, removeTool, or setTools.

    + */ + + public String getAction() { + return this.action; + } + + /** + *

    Value to set. The existing configuration is entirely replaced with this value. If absent, the existing filtering configuration is removed.

    + */ + + public com.commercetools.api.models.mcp_server.McpServerJsonOutputFiltering getJsonOutputFiltering() { + return this.jsonOutputFiltering; + } + + public void setJsonOutputFiltering( + final com.commercetools.api.models.mcp_server.McpServerJsonOutputFiltering jsonOutputFiltering) { + this.jsonOutputFiltering = jsonOutputFiltering; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + McpServerSetJsonOutputFilteringActionImpl that = (McpServerSetJsonOutputFilteringActionImpl) o; + + return new EqualsBuilder().append(action, that.action) + .append(jsonOutputFiltering, that.jsonOutputFiltering) + .append(action, that.action) + .append(jsonOutputFiltering, that.jsonOutputFiltering) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(action).append(jsonOutputFiltering).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("action", action) + .append("jsonOutputFiltering", jsonOutputFiltering) + .build(); + } + + @Override + public McpServerSetJsonOutputFilteringAction copyDeep() { + return McpServerSetJsonOutputFilteringAction.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetNameAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetNameAction.java new file mode 100644 index 0000000000..2dedaa1e2a --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetNameAction.java @@ -0,0 +1,130 @@ + +package com.commercetools.api.models.mcp_server; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.commercetools.api.models.common.LocalizedString; +import com.fasterxml.jackson.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.Valid; +import tools.jackson.databind.annotation.*; + +/** + *

    Sets the localized name of the MCP Server.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     McpServerSetNameAction mcpServerSetNameAction = McpServerSetNameAction.builder()
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("setName") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = McpServerSetNameActionImpl.class) +public interface McpServerSetNameAction extends McpServerUpdateAction { + + /** + * discriminator value for McpServerSetNameAction + */ + String SET_NAME = "setName"; + + /** + *

    Value to set. If empty or absent, the existing name is removed.

    + * @return name + */ + @Valid + @JsonProperty("name") + public LocalizedString getName(); + + /** + *

    Value to set. If empty or absent, the existing name is removed.

    + * @param name value to be set + */ + + public void setName(final LocalizedString name); + + /** + * factory method + * @return instance of McpServerSetNameAction + */ + public static McpServerSetNameAction of() { + return new McpServerSetNameActionImpl(); + } + + /** + * factory method to create a shallow copy McpServerSetNameAction + * @param template instance to be copied + * @return copy instance + */ + public static McpServerSetNameAction of(final McpServerSetNameAction template) { + McpServerSetNameActionImpl instance = new McpServerSetNameActionImpl(); + instance.setName(template.getName()); + return instance; + } + + public McpServerSetNameAction copyDeep(); + + /** + * factory method to create a deep copy of McpServerSetNameAction + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static McpServerSetNameAction deepCopy(@Nullable final McpServerSetNameAction template) { + if (template == null) { + return null; + } + McpServerSetNameActionImpl instance = new McpServerSetNameActionImpl(); + instance.setName(com.commercetools.api.models.common.LocalizedString.deepCopy(template.getName())); + return instance; + } + + /** + * builder factory method for McpServerSetNameAction + * @return builder + */ + public static McpServerSetNameActionBuilder builder() { + return McpServerSetNameActionBuilder.of(); + } + + /** + * create builder for McpServerSetNameAction instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static McpServerSetNameActionBuilder builder(final McpServerSetNameAction template) { + return McpServerSetNameActionBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withMcpServerSetNameAction(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static tools.jackson.core.type.TypeReference typeReference() { + return new tools.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/mcp_server/McpServerSetNameActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetNameActionBuilder.java new file mode 100644 index 0000000000..3f6b46e239 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetNameActionBuilder.java @@ -0,0 +1,110 @@ + +package com.commercetools.api.models.mcp_server; + +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; + +/** + * McpServerSetNameActionBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     McpServerSetNameAction mcpServerSetNameAction = McpServerSetNameAction.builder()
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class McpServerSetNameActionBuilder implements Builder { + + @Nullable + private com.commercetools.api.models.common.LocalizedString name; + + /** + *

    Value to set. If empty or absent, the existing name is removed.

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

    Value to set. If empty or absent, the existing name is removed.

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

    Value to set. If empty or absent, the existing name is removed.

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

    Value to set. If empty or absent, the existing name is removed.

    + * @return name + */ + + @Nullable + public com.commercetools.api.models.common.LocalizedString getName() { + return this.name; + } + + /** + * builds McpServerSetNameAction with checking for non-null required values + * @return McpServerSetNameAction + */ + public McpServerSetNameAction build() { + return new McpServerSetNameActionImpl(name); + } + + /** + * builds McpServerSetNameAction without checking for non-null required values + * @return McpServerSetNameAction + */ + public McpServerSetNameAction buildUnchecked() { + return new McpServerSetNameActionImpl(name); + } + + /** + * factory method for an instance of McpServerSetNameActionBuilder + * @return builder + */ + public static McpServerSetNameActionBuilder of() { + return new McpServerSetNameActionBuilder(); + } + + /** + * create builder for McpServerSetNameAction instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static McpServerSetNameActionBuilder of(final McpServerSetNameAction template) { + McpServerSetNameActionBuilder builder = new McpServerSetNameActionBuilder(); + builder.name = template.getName(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetNameActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetNameActionImpl.java new file mode 100644 index 0000000000..d3ac7abff8 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetNameActionImpl.java @@ -0,0 +1,99 @@ + +package com.commercetools.api.models.mcp_server; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; + +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; + +import tools.jackson.databind.annotation.*; + +/** + *

    Sets the localized name of the MCP Server.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class McpServerSetNameActionImpl implements McpServerSetNameAction, ModelBase { + + private String action; + + private com.commercetools.api.models.common.LocalizedString name; + + /** + * create instance with all properties + */ + @JsonCreator + McpServerSetNameActionImpl(@JsonProperty("name") final com.commercetools.api.models.common.LocalizedString name) { + this.name = name; + this.action = SET_NAME; + } + + /** + * create empty instance + */ + public McpServerSetNameActionImpl() { + this.action = SET_NAME; + } + + /** + *

    Identifies the update action to perform, such as addTool, removeTool, or setTools.

    + */ + + public String getAction() { + return this.action; + } + + /** + *

    Value to set. If empty or absent, the existing name is removed.

    + */ + + public com.commercetools.api.models.common.LocalizedString getName() { + return this.name; + } + + public void setName(final com.commercetools.api.models.common.LocalizedString name) { + this.name = name; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + McpServerSetNameActionImpl that = (McpServerSetNameActionImpl) o; + + return new EqualsBuilder().append(action, that.action) + .append(name, that.name) + .append(action, that.action) + .append(name, that.name) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(action).append(name).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("action", action) + .append("name", name) + .build(); + } + + @Override + public McpServerSetNameAction copyDeep() { + return McpServerSetNameAction.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetStateAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetStateAction.java new file mode 100644 index 0000000000..208bef5f6a --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetStateAction.java @@ -0,0 +1,130 @@ + +package com.commercetools.api.models.mcp_server; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.fasterxml.jackson.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.constraints.NotNull; +import tools.jackson.databind.annotation.*; + +/** + *

    Sets the state of the MCP Server. A Disabled MCP Server rejects all AI agent tool requests.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     McpServerSetStateAction mcpServerSetStateAction = McpServerSetStateAction.builder()
    + *             .state(McpServerState.ENABLED)
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("setState") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = McpServerSetStateActionImpl.class) +public interface McpServerSetStateAction extends McpServerUpdateAction { + + /** + * discriminator value for McpServerSetStateAction + */ + String SET_STATE = "setState"; + + /** + *

    New state to set.

    + * @return state + */ + @NotNull + @JsonProperty("state") + public McpServerState getState(); + + /** + *

    New state to set.

    + * @param state value to be set + */ + + public void setState(final McpServerState state); + + /** + * factory method + * @return instance of McpServerSetStateAction + */ + public static McpServerSetStateAction of() { + return new McpServerSetStateActionImpl(); + } + + /** + * factory method to create a shallow copy McpServerSetStateAction + * @param template instance to be copied + * @return copy instance + */ + public static McpServerSetStateAction of(final McpServerSetStateAction template) { + McpServerSetStateActionImpl instance = new McpServerSetStateActionImpl(); + instance.setState(template.getState()); + return instance; + } + + public McpServerSetStateAction copyDeep(); + + /** + * factory method to create a deep copy of McpServerSetStateAction + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static McpServerSetStateAction deepCopy(@Nullable final McpServerSetStateAction template) { + if (template == null) { + return null; + } + McpServerSetStateActionImpl instance = new McpServerSetStateActionImpl(); + instance.setState(template.getState()); + return instance; + } + + /** + * builder factory method for McpServerSetStateAction + * @return builder + */ + public static McpServerSetStateActionBuilder builder() { + return McpServerSetStateActionBuilder.of(); + } + + /** + * create builder for McpServerSetStateAction instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static McpServerSetStateActionBuilder builder(final McpServerSetStateAction template) { + return McpServerSetStateActionBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withMcpServerSetStateAction(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static tools.jackson.core.type.TypeReference typeReference() { + return new tools.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/mcp_server/McpServerSetStateActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetStateActionBuilder.java new file mode 100644 index 0000000000..8e88bf1708 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetStateActionBuilder.java @@ -0,0 +1,82 @@ + +package com.commercetools.api.models.mcp_server; + +import java.util.*; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * McpServerSetStateActionBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     McpServerSetStateAction mcpServerSetStateAction = McpServerSetStateAction.builder()
    + *             .state(McpServerState.ENABLED)
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class McpServerSetStateActionBuilder implements Builder { + + private com.commercetools.api.models.mcp_server.McpServerState state; + + /** + *

    New state to set.

    + * @param state value to be set + * @return Builder + */ + + public McpServerSetStateActionBuilder state(final com.commercetools.api.models.mcp_server.McpServerState state) { + this.state = state; + return this; + } + + /** + *

    New state to set.

    + * @return state + */ + + public com.commercetools.api.models.mcp_server.McpServerState getState() { + return this.state; + } + + /** + * builds McpServerSetStateAction with checking for non-null required values + * @return McpServerSetStateAction + */ + public McpServerSetStateAction build() { + Objects.requireNonNull(state, McpServerSetStateAction.class + ": state is missing"); + return new McpServerSetStateActionImpl(state); + } + + /** + * builds McpServerSetStateAction without checking for non-null required values + * @return McpServerSetStateAction + */ + public McpServerSetStateAction buildUnchecked() { + return new McpServerSetStateActionImpl(state); + } + + /** + * factory method for an instance of McpServerSetStateActionBuilder + * @return builder + */ + public static McpServerSetStateActionBuilder of() { + return new McpServerSetStateActionBuilder(); + } + + /** + * create builder for McpServerSetStateAction instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static McpServerSetStateActionBuilder of(final McpServerSetStateAction template) { + McpServerSetStateActionBuilder builder = new McpServerSetStateActionBuilder(); + builder.state = template.getState(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetStateActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetStateActionImpl.java new file mode 100644 index 0000000000..e23526df2e --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetStateActionImpl.java @@ -0,0 +1,100 @@ + +package com.commercetools.api.models.mcp_server; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; + +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; + +import tools.jackson.databind.annotation.*; + +/** + *

    Sets the state of the MCP Server. A Disabled MCP Server rejects all AI agent tool requests.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class McpServerSetStateActionImpl implements McpServerSetStateAction, ModelBase { + + private String action; + + private com.commercetools.api.models.mcp_server.McpServerState state; + + /** + * create instance with all properties + */ + @JsonCreator + McpServerSetStateActionImpl( + @JsonProperty("state") final com.commercetools.api.models.mcp_server.McpServerState state) { + this.state = state; + this.action = SET_STATE; + } + + /** + * create empty instance + */ + public McpServerSetStateActionImpl() { + this.action = SET_STATE; + } + + /** + *

    Identifies the update action to perform, such as addTool, removeTool, or setTools.

    + */ + + public String getAction() { + return this.action; + } + + /** + *

    New state to set.

    + */ + + public com.commercetools.api.models.mcp_server.McpServerState getState() { + return this.state; + } + + public void setState(final com.commercetools.api.models.mcp_server.McpServerState state) { + this.state = state; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + McpServerSetStateActionImpl that = (McpServerSetStateActionImpl) o; + + return new EqualsBuilder().append(action, that.action) + .append(state, that.state) + .append(action, that.action) + .append(state, that.state) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(action).append(state).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("action", action) + .append("state", state) + .build(); + } + + @Override + public McpServerSetStateAction copyDeep() { + return McpServerSetStateAction.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetToolCustomizationsAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetToolCustomizationsAction.java new file mode 100644 index 0000000000..298222b6e0 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetToolCustomizationsAction.java @@ -0,0 +1,147 @@ + +package com.commercetools.api.models.mcp_server; + +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 io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; +import tools.jackson.databind.annotation.*; + +/** + *

    Replaces the entire list of tool customizations on the MCP Server.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     McpServerSetToolCustomizationsAction mcpServerSetToolCustomizationsAction = McpServerSetToolCustomizationsAction.builder()
    + *             .plusToolCustomizations(toolCustomizationsBuilder -> toolCustomizationsBuilder)
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("setToolCustomizations") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = McpServerSetToolCustomizationsActionImpl.class) +public interface McpServerSetToolCustomizationsAction extends McpServerUpdateAction { + + /** + * discriminator value for McpServerSetToolCustomizationsAction + */ + String SET_TOOL_CUSTOMIZATIONS = "setToolCustomizations"; + + /** + *

    New list of tool customizations. Replaces the existing list entirely.

    + * @return toolCustomizations + */ + @NotNull + @Valid + @JsonProperty("toolCustomizations") + public List getToolCustomizations(); + + /** + *

    New list of tool customizations. Replaces the existing list entirely.

    + * @param toolCustomizations values to be set + */ + + @JsonIgnore + public void setToolCustomizations(final ToolCustomization... toolCustomizations); + + /** + *

    New list of tool customizations. Replaces the existing list entirely.

    + * @param toolCustomizations values to be set + */ + + public void setToolCustomizations(final List toolCustomizations); + + /** + * factory method + * @return instance of McpServerSetToolCustomizationsAction + */ + public static McpServerSetToolCustomizationsAction of() { + return new McpServerSetToolCustomizationsActionImpl(); + } + + /** + * factory method to create a shallow copy McpServerSetToolCustomizationsAction + * @param template instance to be copied + * @return copy instance + */ + public static McpServerSetToolCustomizationsAction of(final McpServerSetToolCustomizationsAction template) { + McpServerSetToolCustomizationsActionImpl instance = new McpServerSetToolCustomizationsActionImpl(); + instance.setToolCustomizations(template.getToolCustomizations()); + return instance; + } + + public McpServerSetToolCustomizationsAction copyDeep(); + + /** + * factory method to create a deep copy of McpServerSetToolCustomizationsAction + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static McpServerSetToolCustomizationsAction deepCopy( + @Nullable final McpServerSetToolCustomizationsAction template) { + if (template == null) { + return null; + } + McpServerSetToolCustomizationsActionImpl instance = new McpServerSetToolCustomizationsActionImpl(); + instance.setToolCustomizations(Optional.ofNullable(template.getToolCustomizations()) + .map(t -> t.stream() + .map(com.commercetools.api.models.mcp_server.ToolCustomization::deepCopy) + .collect(Collectors.toList())) + .orElse(null)); + return instance; + } + + /** + * builder factory method for McpServerSetToolCustomizationsAction + * @return builder + */ + public static McpServerSetToolCustomizationsActionBuilder builder() { + return McpServerSetToolCustomizationsActionBuilder.of(); + } + + /** + * create builder for McpServerSetToolCustomizationsAction instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static McpServerSetToolCustomizationsActionBuilder builder( + final McpServerSetToolCustomizationsAction template) { + return McpServerSetToolCustomizationsActionBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withMcpServerSetToolCustomizationsAction(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static tools.jackson.core.type.TypeReference typeReference() { + return new tools.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/mcp_server/McpServerSetToolCustomizationsActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetToolCustomizationsActionBuilder.java new file mode 100644 index 0000000000..8869a38354 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetToolCustomizationsActionBuilder.java @@ -0,0 +1,165 @@ + +package com.commercetools.api.models.mcp_server; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * McpServerSetToolCustomizationsActionBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     McpServerSetToolCustomizationsAction mcpServerSetToolCustomizationsAction = McpServerSetToolCustomizationsAction.builder()
    + *             .plusToolCustomizations(toolCustomizationsBuilder -> toolCustomizationsBuilder)
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class McpServerSetToolCustomizationsActionBuilder implements Builder { + + private java.util.List toolCustomizations; + + /** + *

    New list of tool customizations. Replaces the existing list entirely.

    + * @param toolCustomizations value to be set + * @return Builder + */ + + public McpServerSetToolCustomizationsActionBuilder toolCustomizations( + final com.commercetools.api.models.mcp_server.ToolCustomization... toolCustomizations) { + this.toolCustomizations = new ArrayList<>(Arrays.asList(toolCustomizations)); + return this; + } + + /** + *

    New list of tool customizations. Replaces the existing list entirely.

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

    New list of tool customizations. Replaces the existing list entirely.

    + * @param toolCustomizations value to be set + * @return Builder + */ + + public McpServerSetToolCustomizationsActionBuilder plusToolCustomizations( + final com.commercetools.api.models.mcp_server.ToolCustomization... toolCustomizations) { + if (this.toolCustomizations == null) { + this.toolCustomizations = new ArrayList<>(); + } + this.toolCustomizations.addAll(Arrays.asList(toolCustomizations)); + return this; + } + + /** + *

    New list of tool customizations. Replaces the existing list entirely.

    + * @param builder function to build the toolCustomizations value + * @return Builder + */ + + public McpServerSetToolCustomizationsActionBuilder plusToolCustomizations( + Function builder) { + if (this.toolCustomizations == null) { + this.toolCustomizations = new ArrayList<>(); + } + this.toolCustomizations + .add(builder.apply(com.commercetools.api.models.mcp_server.ToolCustomizationBuilder.of()).build()); + return this; + } + + /** + *

    New list of tool customizations. Replaces the existing list entirely.

    + * @param builder function to build the toolCustomizations value + * @return Builder + */ + + public McpServerSetToolCustomizationsActionBuilder withToolCustomizations( + Function builder) { + this.toolCustomizations = new ArrayList<>(); + this.toolCustomizations + .add(builder.apply(com.commercetools.api.models.mcp_server.ToolCustomizationBuilder.of()).build()); + return this; + } + + /** + *

    New list of tool customizations. Replaces the existing list entirely.

    + * @param builder function to build the toolCustomizations value + * @return Builder + */ + + public McpServerSetToolCustomizationsActionBuilder addToolCustomizations( + Function builder) { + return plusToolCustomizations( + builder.apply(com.commercetools.api.models.mcp_server.ToolCustomizationBuilder.of())); + } + + /** + *

    New list of tool customizations. Replaces the existing list entirely.

    + * @param builder function to build the toolCustomizations value + * @return Builder + */ + + public McpServerSetToolCustomizationsActionBuilder setToolCustomizations( + Function builder) { + return toolCustomizations(builder.apply(com.commercetools.api.models.mcp_server.ToolCustomizationBuilder.of())); + } + + /** + *

    New list of tool customizations. Replaces the existing list entirely.

    + * @return toolCustomizations + */ + + public java.util.List getToolCustomizations() { + return this.toolCustomizations; + } + + /** + * builds McpServerSetToolCustomizationsAction with checking for non-null required values + * @return McpServerSetToolCustomizationsAction + */ + public McpServerSetToolCustomizationsAction build() { + Objects.requireNonNull(toolCustomizations, + McpServerSetToolCustomizationsAction.class + ": toolCustomizations is missing"); + return new McpServerSetToolCustomizationsActionImpl(toolCustomizations); + } + + /** + * builds McpServerSetToolCustomizationsAction without checking for non-null required values + * @return McpServerSetToolCustomizationsAction + */ + public McpServerSetToolCustomizationsAction buildUnchecked() { + return new McpServerSetToolCustomizationsActionImpl(toolCustomizations); + } + + /** + * factory method for an instance of McpServerSetToolCustomizationsActionBuilder + * @return builder + */ + public static McpServerSetToolCustomizationsActionBuilder of() { + return new McpServerSetToolCustomizationsActionBuilder(); + } + + /** + * create builder for McpServerSetToolCustomizationsAction instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static McpServerSetToolCustomizationsActionBuilder of(final McpServerSetToolCustomizationsAction template) { + McpServerSetToolCustomizationsActionBuilder builder = new McpServerSetToolCustomizationsActionBuilder(); + builder.toolCustomizations = template.getToolCustomizations(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetToolCustomizationsActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetToolCustomizationsActionImpl.java new file mode 100644 index 0000000000..cb05be8c52 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetToolCustomizationsActionImpl.java @@ -0,0 +1,106 @@ + +package com.commercetools.api.models.mcp_server; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; + +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; + +import tools.jackson.databind.annotation.*; + +/** + *

    Replaces the entire list of tool customizations on the MCP Server.

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

    Identifies the update action to perform, such as addTool, removeTool, or setTools.

    + */ + + public String getAction() { + return this.action; + } + + /** + *

    New list of tool customizations. Replaces the existing list entirely.

    + */ + + public java.util.List getToolCustomizations() { + return this.toolCustomizations; + } + + public void setToolCustomizations( + final com.commercetools.api.models.mcp_server.ToolCustomization... toolCustomizations) { + this.toolCustomizations = new ArrayList<>(Arrays.asList(toolCustomizations)); + } + + public void setToolCustomizations( + final java.util.List toolCustomizations) { + this.toolCustomizations = toolCustomizations; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + McpServerSetToolCustomizationsActionImpl that = (McpServerSetToolCustomizationsActionImpl) o; + + return new EqualsBuilder().append(action, that.action) + .append(toolCustomizations, that.toolCustomizations) + .append(action, that.action) + .append(toolCustomizations, that.toolCustomizations) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(action).append(toolCustomizations).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("action", action) + .append("toolCustomizations", toolCustomizations) + .build(); + } + + @Override + public McpServerSetToolCustomizationsAction copyDeep() { + return McpServerSetToolCustomizationsAction.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetToolOutputFormattingAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetToolOutputFormattingAction.java new file mode 100644 index 0000000000..d5e392bd0e --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetToolOutputFormattingAction.java @@ -0,0 +1,131 @@ + +package com.commercetools.api.models.mcp_server; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.fasterxml.jackson.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import tools.jackson.databind.annotation.*; + +/** + *

    Sets the output formatting applied to tool responses.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     McpServerSetToolOutputFormattingAction mcpServerSetToolOutputFormattingAction = McpServerSetToolOutputFormattingAction.builder()
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("setToolOutputFormatting") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = McpServerSetToolOutputFormattingActionImpl.class) +public interface McpServerSetToolOutputFormattingAction extends McpServerUpdateAction { + + /** + * discriminator value for McpServerSetToolOutputFormattingAction + */ + String SET_TOOL_OUTPUT_FORMATTING = "setToolOutputFormatting"; + + /** + *

    Value to set. If absent, the existing formatting is removed.

    + * @return toolOutputFormatting + */ + + @JsonProperty("toolOutputFormatting") + public McpServerToolOutputFormatting getToolOutputFormatting(); + + /** + *

    Value to set. If absent, the existing formatting is removed.

    + * @param toolOutputFormatting value to be set + */ + + public void setToolOutputFormatting(final McpServerToolOutputFormatting toolOutputFormatting); + + /** + * factory method + * @return instance of McpServerSetToolOutputFormattingAction + */ + public static McpServerSetToolOutputFormattingAction of() { + return new McpServerSetToolOutputFormattingActionImpl(); + } + + /** + * factory method to create a shallow copy McpServerSetToolOutputFormattingAction + * @param template instance to be copied + * @return copy instance + */ + public static McpServerSetToolOutputFormattingAction of(final McpServerSetToolOutputFormattingAction template) { + McpServerSetToolOutputFormattingActionImpl instance = new McpServerSetToolOutputFormattingActionImpl(); + instance.setToolOutputFormatting(template.getToolOutputFormatting()); + return instance; + } + + public McpServerSetToolOutputFormattingAction copyDeep(); + + /** + * factory method to create a deep copy of McpServerSetToolOutputFormattingAction + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static McpServerSetToolOutputFormattingAction deepCopy( + @Nullable final McpServerSetToolOutputFormattingAction template) { + if (template == null) { + return null; + } + McpServerSetToolOutputFormattingActionImpl instance = new McpServerSetToolOutputFormattingActionImpl(); + instance.setToolOutputFormatting(template.getToolOutputFormatting()); + return instance; + } + + /** + * builder factory method for McpServerSetToolOutputFormattingAction + * @return builder + */ + public static McpServerSetToolOutputFormattingActionBuilder builder() { + return McpServerSetToolOutputFormattingActionBuilder.of(); + } + + /** + * create builder for McpServerSetToolOutputFormattingAction instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static McpServerSetToolOutputFormattingActionBuilder builder( + final McpServerSetToolOutputFormattingAction template) { + return McpServerSetToolOutputFormattingActionBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withMcpServerSetToolOutputFormattingAction( + Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static tools.jackson.core.type.TypeReference typeReference() { + return new tools.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/mcp_server/McpServerSetToolOutputFormattingActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetToolOutputFormattingActionBuilder.java new file mode 100644 index 0000000000..57fc159020 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetToolOutputFormattingActionBuilder.java @@ -0,0 +1,86 @@ + +package com.commercetools.api.models.mcp_server; + +import java.util.*; + +import javax.annotation.Nullable; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * McpServerSetToolOutputFormattingActionBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     McpServerSetToolOutputFormattingAction mcpServerSetToolOutputFormattingAction = McpServerSetToolOutputFormattingAction.builder()
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class McpServerSetToolOutputFormattingActionBuilder implements Builder { + + @Nullable + private com.commercetools.api.models.mcp_server.McpServerToolOutputFormatting toolOutputFormatting; + + /** + *

    Value to set. If absent, the existing formatting is removed.

    + * @param toolOutputFormatting value to be set + * @return Builder + */ + + public McpServerSetToolOutputFormattingActionBuilder toolOutputFormatting( + @Nullable final com.commercetools.api.models.mcp_server.McpServerToolOutputFormatting toolOutputFormatting) { + this.toolOutputFormatting = toolOutputFormatting; + return this; + } + + /** + *

    Value to set. If absent, the existing formatting is removed.

    + * @return toolOutputFormatting + */ + + @Nullable + public com.commercetools.api.models.mcp_server.McpServerToolOutputFormatting getToolOutputFormatting() { + return this.toolOutputFormatting; + } + + /** + * builds McpServerSetToolOutputFormattingAction with checking for non-null required values + * @return McpServerSetToolOutputFormattingAction + */ + public McpServerSetToolOutputFormattingAction build() { + return new McpServerSetToolOutputFormattingActionImpl(toolOutputFormatting); + } + + /** + * builds McpServerSetToolOutputFormattingAction without checking for non-null required values + * @return McpServerSetToolOutputFormattingAction + */ + public McpServerSetToolOutputFormattingAction buildUnchecked() { + return new McpServerSetToolOutputFormattingActionImpl(toolOutputFormatting); + } + + /** + * factory method for an instance of McpServerSetToolOutputFormattingActionBuilder + * @return builder + */ + public static McpServerSetToolOutputFormattingActionBuilder of() { + return new McpServerSetToolOutputFormattingActionBuilder(); + } + + /** + * create builder for McpServerSetToolOutputFormattingAction instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static McpServerSetToolOutputFormattingActionBuilder of( + final McpServerSetToolOutputFormattingAction template) { + McpServerSetToolOutputFormattingActionBuilder builder = new McpServerSetToolOutputFormattingActionBuilder(); + builder.toolOutputFormatting = template.getToolOutputFormatting(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetToolOutputFormattingActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetToolOutputFormattingActionImpl.java new file mode 100644 index 0000000000..1573a97810 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetToolOutputFormattingActionImpl.java @@ -0,0 +1,101 @@ + +package com.commercetools.api.models.mcp_server; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; + +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; + +import tools.jackson.databind.annotation.*; + +/** + *

    Sets the output formatting applied to tool responses.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class McpServerSetToolOutputFormattingActionImpl implements McpServerSetToolOutputFormattingAction, ModelBase { + + private String action; + + private com.commercetools.api.models.mcp_server.McpServerToolOutputFormatting toolOutputFormatting; + + /** + * create instance with all properties + */ + @JsonCreator + McpServerSetToolOutputFormattingActionImpl( + @JsonProperty("toolOutputFormatting") final com.commercetools.api.models.mcp_server.McpServerToolOutputFormatting toolOutputFormatting) { + this.toolOutputFormatting = toolOutputFormatting; + this.action = SET_TOOL_OUTPUT_FORMATTING; + } + + /** + * create empty instance + */ + public McpServerSetToolOutputFormattingActionImpl() { + this.action = SET_TOOL_OUTPUT_FORMATTING; + } + + /** + *

    Identifies the update action to perform, such as addTool, removeTool, or setTools.

    + */ + + public String getAction() { + return this.action; + } + + /** + *

    Value to set. If absent, the existing formatting is removed.

    + */ + + public com.commercetools.api.models.mcp_server.McpServerToolOutputFormatting getToolOutputFormatting() { + return this.toolOutputFormatting; + } + + public void setToolOutputFormatting( + final com.commercetools.api.models.mcp_server.McpServerToolOutputFormatting toolOutputFormatting) { + this.toolOutputFormatting = toolOutputFormatting; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + McpServerSetToolOutputFormattingActionImpl that = (McpServerSetToolOutputFormattingActionImpl) o; + + return new EqualsBuilder().append(action, that.action) + .append(toolOutputFormatting, that.toolOutputFormatting) + .append(action, that.action) + .append(toolOutputFormatting, that.toolOutputFormatting) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(action).append(toolOutputFormatting).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("action", action) + .append("toolOutputFormatting", toolOutputFormatting) + .build(); + } + + @Override + public McpServerSetToolOutputFormattingAction copyDeep() { + return McpServerSetToolOutputFormattingAction.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetToolsAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetToolsAction.java new file mode 100644 index 0000000000..a80eafe8bd --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetToolsAction.java @@ -0,0 +1,138 @@ + +package com.commercetools.api.models.mcp_server; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.fasterxml.jackson.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.constraints.NotNull; +import tools.jackson.databind.annotation.*; + +/** + *

    Replaces the entire list of tools enabled for the MCP Server.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     McpServerSetToolsAction mcpServerSetToolsAction = McpServerSetToolsAction.builder()
    + *             .plusTools(toolsBuilder -> toolsBuilder)
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("setTools") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = McpServerSetToolsActionImpl.class) +public interface McpServerSetToolsAction extends McpServerUpdateAction { + + /** + * discriminator value for McpServerSetToolsAction + */ + String SET_TOOLS = "setTools"; + + /** + *

    New list of tools to set. Replaces the existing tools list entirely. Use all to enable all available tools, or specify individual tool names such as read_products or create_orders.

    + * @return tools + */ + @NotNull + @JsonProperty("tools") + public List getTools(); + + /** + *

    New list of tools to set. Replaces the existing tools list entirely. Use all to enable all available tools, or specify individual tool names such as read_products or create_orders.

    + * @param tools values to be set + */ + + @JsonIgnore + public void setTools(final McpServerTool... tools); + + /** + *

    New list of tools to set. Replaces the existing tools list entirely. Use all to enable all available tools, or specify individual tool names such as read_products or create_orders.

    + * @param tools values to be set + */ + + public void setTools(final List tools); + + /** + * factory method + * @return instance of McpServerSetToolsAction + */ + public static McpServerSetToolsAction of() { + return new McpServerSetToolsActionImpl(); + } + + /** + * factory method to create a shallow copy McpServerSetToolsAction + * @param template instance to be copied + * @return copy instance + */ + public static McpServerSetToolsAction of(final McpServerSetToolsAction template) { + McpServerSetToolsActionImpl instance = new McpServerSetToolsActionImpl(); + instance.setTools(template.getTools()); + return instance; + } + + public McpServerSetToolsAction copyDeep(); + + /** + * factory method to create a deep copy of McpServerSetToolsAction + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static McpServerSetToolsAction deepCopy(@Nullable final McpServerSetToolsAction template) { + if (template == null) { + return null; + } + McpServerSetToolsActionImpl instance = new McpServerSetToolsActionImpl(); + instance.setTools(Optional.ofNullable(template.getTools()).map(ArrayList::new).orElse(null)); + return instance; + } + + /** + * builder factory method for McpServerSetToolsAction + * @return builder + */ + public static McpServerSetToolsActionBuilder builder() { + return McpServerSetToolsActionBuilder.of(); + } + + /** + * create builder for McpServerSetToolsAction instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static McpServerSetToolsActionBuilder builder(final McpServerSetToolsAction template) { + return McpServerSetToolsActionBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withMcpServerSetToolsAction(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static tools.jackson.core.type.TypeReference typeReference() { + return new tools.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/mcp_server/McpServerSetToolsActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetToolsActionBuilder.java new file mode 100644 index 0000000000..ffa647adf9 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetToolsActionBuilder.java @@ -0,0 +1,109 @@ + +package com.commercetools.api.models.mcp_server; + +import java.util.*; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * McpServerSetToolsActionBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     McpServerSetToolsAction mcpServerSetToolsAction = McpServerSetToolsAction.builder()
    + *             .plusTools(toolsBuilder -> toolsBuilder)
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class McpServerSetToolsActionBuilder implements Builder { + + private java.util.List tools; + + /** + *

    New list of tools to set. Replaces the existing tools list entirely. Use all to enable all available tools, or specify individual tool names such as read_products or create_orders.

    + * @param tools value to be set + * @return Builder + */ + + public McpServerSetToolsActionBuilder tools(final com.commercetools.api.models.mcp_server.McpServerTool... tools) { + this.tools = new ArrayList<>(Arrays.asList(tools)); + return this; + } + + /** + *

    New list of tools to set. Replaces the existing tools list entirely. Use all to enable all available tools, or specify individual tool names such as read_products or create_orders.

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

    New list of tools to set. Replaces the existing tools list entirely. Use all to enable all available tools, or specify individual tool names such as read_products or create_orders.

    + * @param tools value to be set + * @return Builder + */ + + public McpServerSetToolsActionBuilder plusTools( + final com.commercetools.api.models.mcp_server.McpServerTool... tools) { + if (this.tools == null) { + this.tools = new ArrayList<>(); + } + this.tools.addAll(Arrays.asList(tools)); + return this; + } + + /** + *

    New list of tools to set. Replaces the existing tools list entirely. Use all to enable all available tools, or specify individual tool names such as read_products or create_orders.

    + * @return tools + */ + + public java.util.List getTools() { + return this.tools; + } + + /** + * builds McpServerSetToolsAction with checking for non-null required values + * @return McpServerSetToolsAction + */ + public McpServerSetToolsAction build() { + Objects.requireNonNull(tools, McpServerSetToolsAction.class + ": tools is missing"); + return new McpServerSetToolsActionImpl(tools); + } + + /** + * builds McpServerSetToolsAction without checking for non-null required values + * @return McpServerSetToolsAction + */ + public McpServerSetToolsAction buildUnchecked() { + return new McpServerSetToolsActionImpl(tools); + } + + /** + * factory method for an instance of McpServerSetToolsActionBuilder + * @return builder + */ + public static McpServerSetToolsActionBuilder of() { + return new McpServerSetToolsActionBuilder(); + } + + /** + * create builder for McpServerSetToolsAction instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static McpServerSetToolsActionBuilder of(final McpServerSetToolsAction template) { + McpServerSetToolsActionBuilder builder = new McpServerSetToolsActionBuilder(); + builder.tools = template.getTools(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetToolsActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetToolsActionImpl.java new file mode 100644 index 0000000000..e7d1248696 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerSetToolsActionImpl.java @@ -0,0 +1,104 @@ + +package com.commercetools.api.models.mcp_server; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; + +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; + +import tools.jackson.databind.annotation.*; + +/** + *

    Replaces the entire list of tools enabled for the MCP Server.

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

    Identifies the update action to perform, such as addTool, removeTool, or setTools.

    + */ + + public String getAction() { + return this.action; + } + + /** + *

    New list of tools to set. Replaces the existing tools list entirely. Use all to enable all available tools, or specify individual tool names such as read_products or create_orders.

    + */ + + public java.util.List getTools() { + return this.tools; + } + + public void setTools(final com.commercetools.api.models.mcp_server.McpServerTool... tools) { + this.tools = new ArrayList<>(Arrays.asList(tools)); + } + + public void setTools(final java.util.List tools) { + this.tools = tools; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + McpServerSetToolsActionImpl that = (McpServerSetToolsActionImpl) o; + + return new EqualsBuilder().append(action, that.action) + .append(tools, that.tools) + .append(action, that.action) + .append(tools, that.tools) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(action).append(tools).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("action", action) + .append("tools", tools) + .build(); + } + + @Override + public McpServerSetToolsAction copyDeep() { + return McpServerSetToolsAction.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerState.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerState.java new file mode 100644 index 0000000000..0af71bd39e --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerState.java @@ -0,0 +1,115 @@ + +package com.commercetools.api.models.mcp_server; + +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; + +/** + *

    State of the MCP Server. A Disabled MCP Server rejects all AI agent tool requests while keeping its configuration editable. Defaults to Enabled when not provided on creation.

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

    The MCP Server is active and accepts AI agent tool requests.

    */ + McpServerState ENABLED = McpServerStateEnum.ENABLED; + /** +

    The MCP Server rejects all AI agent tool requests while keeping its configuration editable.

    */ + McpServerState DISABLED = McpServerStateEnum.DISABLED; + + /** + * possible values of McpServerState + */ + enum McpServerStateEnum implements McpServerState { + /** + * Enabled + */ + ENABLED("Enabled"), + + /** + * Disabled + */ + DISABLED("Disabled"); + private final String jsonName; + + private McpServerStateEnum(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 McpServerState + * 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 McpServerState findEnum(String value) { + return findEnumViaJsonName(value).orElse(new McpServerState() { + @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 McpServerState[] values() { + return McpServerStateEnum.values(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerTool.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerTool.java new file mode 100644 index 0000000000..9e87beb116 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerTool.java @@ -0,0 +1,1075 @@ + +package com.commercetools.api.models.mcp_server; + +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; + +/** + *

    Identifies a tool that can be enabled on an MCP Server. For more information about the functions of each tool, see Commerce MCP Server tools.

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

    Enables all available tools, including read, create, and update operations. For security and performance, enable this only when broad access is required.

    */ + McpServerTool ALL = McpServerToolEnum.ALL; + /** +

    Enables all read-only tools.

    */ + McpServerTool READ_ALL = McpServerToolEnum.READ_ALL; + /** +

    Creates Applications.

    */ + McpServerTool CREATE_APPLICATIONS = McpServerToolEnum.CREATE_APPLICATIONS; + /** +

    Reads Applications.

    */ + McpServerTool READ_APPLICATIONS = McpServerToolEnum.READ_APPLICATIONS; + /** +

    Updates Applications.

    */ + McpServerTool UPDATE_APPLICATIONS = McpServerToolEnum.UPDATE_APPLICATIONS; + /** +

    Creates Attribute Groups.

    */ + McpServerTool CREATE_ATTRIBUTE_GROUPS = McpServerToolEnum.CREATE_ATTRIBUTE_GROUPS; + /** +

    Reads Attribute Groups.

    */ + McpServerTool READ_ATTRIBUTE_GROUPS = McpServerToolEnum.READ_ATTRIBUTE_GROUPS; + /** +

    Updates Attribute Groups.

    */ + McpServerTool UPDATE_ATTRIBUTE_GROUPS = McpServerToolEnum.UPDATE_ATTRIBUTE_GROUPS; + /** +

    Creates resources in bulk.

    */ + McpServerTool CREATE_BULK = McpServerToolEnum.CREATE_BULK; + /** +

    Updates resources in bulk.

    */ + McpServerTool UPDATE_BULK = McpServerToolEnum.UPDATE_BULK; + /** +

    Creates Business Units.

    */ + McpServerTool CREATE_BUSINESS_UNITS = McpServerToolEnum.CREATE_BUSINESS_UNITS; + /** +

    Reads Business Units.

    */ + McpServerTool READ_BUSINESS_UNITS = McpServerToolEnum.READ_BUSINESS_UNITS; + /** +

    Updates Business Units.

    */ + McpServerTool UPDATE_BUSINESS_UNITS = McpServerToolEnum.UPDATE_BUSINESS_UNITS; + /** +

    Creates Cart Discounts.

    */ + McpServerTool CREATE_CART_DISCOUNTS = McpServerToolEnum.CREATE_CART_DISCOUNTS; + /** +

    Reads Cart Discounts.

    */ + McpServerTool READ_CART_DISCOUNTS = McpServerToolEnum.READ_CART_DISCOUNTS; + /** +

    Updates Cart Discounts.

    */ + McpServerTool UPDATE_CART_DISCOUNTS = McpServerToolEnum.UPDATE_CART_DISCOUNTS; + /** +

    Creates Carts.

    */ + McpServerTool CREATE_CARTS = McpServerToolEnum.CREATE_CARTS; + /** +

    Reads Carts.

    */ + McpServerTool READ_CARTS = McpServerToolEnum.READ_CARTS; + /** +

    Updates Carts.

    */ + McpServerTool UPDATE_CARTS = McpServerToolEnum.UPDATE_CARTS; + /** +

    Replicates an existing Cart or Order into a new Cart.

    */ + McpServerTool REPLICATE_CARTS = McpServerToolEnum.REPLICATE_CARTS; + /** +

    Creates Categories.

    */ + McpServerTool CREATE_CATEGORIES = McpServerToolEnum.CREATE_CATEGORIES; + /** +

    Reads Categories.

    */ + McpServerTool READ_CATEGORIES = McpServerToolEnum.READ_CATEGORIES; + /** +

    Updates Categories.

    */ + McpServerTool UPDATE_CATEGORIES = McpServerToolEnum.UPDATE_CATEGORIES; + /** +

    Creates Channels.

    */ + McpServerTool CREATE_CHANNELS = McpServerToolEnum.CREATE_CHANNELS; + /** +

    Reads Channels.

    */ + McpServerTool READ_CHANNELS = McpServerToolEnum.READ_CHANNELS; + /** +

    Updates Channels.

    */ + McpServerTool UPDATE_CHANNELS = McpServerToolEnum.UPDATE_CHANNELS; + /** +

    Creates Custom Objects.

    */ + McpServerTool CREATE_CUSTOM_OBJECTS = McpServerToolEnum.CREATE_CUSTOM_OBJECTS; + /** +

    Reads Custom Objects.

    */ + McpServerTool READ_CUSTOM_OBJECTS = McpServerToolEnum.READ_CUSTOM_OBJECTS; + /** +

    Updates Custom Objects.

    */ + McpServerTool UPDATE_CUSTOM_OBJECTS = McpServerToolEnum.UPDATE_CUSTOM_OBJECTS; + /** +

    Creates Customer Groups.

    */ + McpServerTool CREATE_CUSTOMER_GROUPS = McpServerToolEnum.CREATE_CUSTOMER_GROUPS; + /** +

    Reads Customer Groups.

    */ + McpServerTool READ_CUSTOMER_GROUPS = McpServerToolEnum.READ_CUSTOMER_GROUPS; + /** +

    Updates Customer Groups.

    */ + McpServerTool UPDATE_CUSTOMER_GROUPS = McpServerToolEnum.UPDATE_CUSTOMER_GROUPS; + /** +

    Searches for Customers.

    */ + McpServerTool READ_CUSTOMER_SEARCH = McpServerToolEnum.READ_CUSTOMER_SEARCH; + /** +

    Creates Customers.

    */ + McpServerTool CREATE_CUSTOMERS = McpServerToolEnum.CREATE_CUSTOMERS; + /** +

    Reads Customers.

    */ + McpServerTool READ_CUSTOMERS = McpServerToolEnum.READ_CUSTOMERS; + /** +

    Updates Customers.

    */ + McpServerTool UPDATE_CUSTOMERS = McpServerToolEnum.UPDATE_CUSTOMERS; + /** +

    Creates Discount Codes.

    */ + McpServerTool CREATE_DISCOUNT_CODES = McpServerToolEnum.CREATE_DISCOUNT_CODES; + /** +

    Reads Discount Codes.

    */ + McpServerTool READ_DISCOUNT_CODES = McpServerToolEnum.READ_DISCOUNT_CODES; + /** +

    Updates Discount Codes.

    */ + McpServerTool UPDATE_DISCOUNT_CODES = McpServerToolEnum.UPDATE_DISCOUNT_CODES; + /** +

    Creates API Extensions.

    */ + McpServerTool CREATE_EXTENSIONS = McpServerToolEnum.CREATE_EXTENSIONS; + /** +

    Reads API Extensions.

    */ + McpServerTool READ_EXTENSIONS = McpServerToolEnum.READ_EXTENSIONS; + /** +

    Updates API Extensions.

    */ + McpServerTool UPDATE_EXTENSIONS = McpServerToolEnum.UPDATE_EXTENSIONS; + /** +

    Creates Inventory.

    */ + McpServerTool CREATE_INVENTORY = McpServerToolEnum.CREATE_INVENTORY; + /** +

    Reads Inventory.

    */ + McpServerTool READ_INVENTORY = McpServerToolEnum.READ_INVENTORY; + /** +

    Updates Inventory.

    */ + McpServerTool UPDATE_INVENTORY = McpServerToolEnum.UPDATE_INVENTORY; + /** +

    Reads Messages.

    */ + McpServerTool READ_MESSAGES = McpServerToolEnum.READ_MESSAGES; + /** +

    Creates Orders.

    */ + McpServerTool CREATE_ORDERS = McpServerToolEnum.CREATE_ORDERS; + /** +

    Reads Orders.

    */ + McpServerTool READ_ORDERS = McpServerToolEnum.READ_ORDERS; + /** +

    Updates Orders.

    */ + McpServerTool UPDATE_ORDERS = McpServerToolEnum.UPDATE_ORDERS; + /** +

    Creates Payment Integrations.

    */ + McpServerTool CREATE_PAYMENT_INTEGRATIONS = McpServerToolEnum.CREATE_PAYMENT_INTEGRATIONS; + /** +

    Reads Payment Integrations.

    */ + McpServerTool READ_PAYMENT_INTEGRATIONS = McpServerToolEnum.READ_PAYMENT_INTEGRATIONS; + /** +

    Updates Payment Integrations.

    */ + McpServerTool UPDATE_PAYMENT_INTEGRATIONS = McpServerToolEnum.UPDATE_PAYMENT_INTEGRATIONS; + /** +

    Updates Payment Intents.

    */ + McpServerTool UPDATE_PAYMENT_INTENTS = McpServerToolEnum.UPDATE_PAYMENT_INTENTS; + /** +

    Creates Payment Methods.

    */ + McpServerTool CREATE_PAYMENT_METHODS = McpServerToolEnum.CREATE_PAYMENT_METHODS; + /** +

    Reads Payment Methods.

    */ + McpServerTool READ_PAYMENT_METHODS = McpServerToolEnum.READ_PAYMENT_METHODS; + /** +

    Updates Payment Methods.

    */ + McpServerTool UPDATE_PAYMENT_METHODS = McpServerToolEnum.UPDATE_PAYMENT_METHODS; + /** +

    Creates Payments.

    */ + McpServerTool CREATE_PAYMENTS = McpServerToolEnum.CREATE_PAYMENTS; + /** +

    Reads Payments.

    */ + McpServerTool READ_PAYMENTS = McpServerToolEnum.READ_PAYMENTS; + /** +

    Updates Payments.

    */ + McpServerTool UPDATE_PAYMENTS = McpServerToolEnum.UPDATE_PAYMENTS; + /** +

    Creates Product Discounts.

    */ + McpServerTool CREATE_PRODUCT_DISCOUNTS = McpServerToolEnum.CREATE_PRODUCT_DISCOUNTS; + /** +

    Reads Product Discounts.

    */ + McpServerTool READ_PRODUCT_DISCOUNTS = McpServerToolEnum.READ_PRODUCT_DISCOUNTS; + /** +

    Updates Product Discounts.

    */ + McpServerTool UPDATE_PRODUCT_DISCOUNTS = McpServerToolEnum.UPDATE_PRODUCT_DISCOUNTS; + /** +

    Reads Product Projections.

    */ + McpServerTool READ_PRODUCT_PROJECTIONS = McpServerToolEnum.READ_PRODUCT_PROJECTIONS; + /** +

    Searches for Products.

    */ + McpServerTool READ_PRODUCT_SEARCH = McpServerToolEnum.READ_PRODUCT_SEARCH; + /** +

    Creates Product Selections.

    */ + McpServerTool CREATE_PRODUCT_SELECTIONS = McpServerToolEnum.CREATE_PRODUCT_SELECTIONS; + /** +

    Reads Product Selections.

    */ + McpServerTool READ_PRODUCT_SELECTIONS = McpServerToolEnum.READ_PRODUCT_SELECTIONS; + /** +

    Updates Product Selections.

    */ + McpServerTool UPDATE_PRODUCT_SELECTIONS = McpServerToolEnum.UPDATE_PRODUCT_SELECTIONS; + /** +

    Creates Product Tailoring.

    */ + McpServerTool CREATE_PRODUCT_TAILORING = McpServerToolEnum.CREATE_PRODUCT_TAILORING; + /** +

    Reads Product Tailoring.

    */ + McpServerTool READ_PRODUCT_TAILORING = McpServerToolEnum.READ_PRODUCT_TAILORING; + /** +

    Updates Product Tailoring.

    */ + McpServerTool UPDATE_PRODUCT_TAILORING = McpServerToolEnum.UPDATE_PRODUCT_TAILORING; + /** +

    Creates Product Types.

    */ + McpServerTool CREATE_PRODUCT_TYPES = McpServerToolEnum.CREATE_PRODUCT_TYPES; + /** +

    Reads Product Types.

    */ + McpServerTool READ_PRODUCT_TYPES = McpServerToolEnum.READ_PRODUCT_TYPES; + /** +

    Updates Product Types.

    */ + McpServerTool UPDATE_PRODUCT_TYPES = McpServerToolEnum.UPDATE_PRODUCT_TYPES; + /** +

    Creates Products.

    */ + McpServerTool CREATE_PRODUCTS = McpServerToolEnum.CREATE_PRODUCTS; + /** +

    Reads Products.

    */ + McpServerTool READ_PRODUCTS = McpServerToolEnum.READ_PRODUCTS; + /** +

    Updates Products.

    */ + McpServerTool UPDATE_PRODUCTS = McpServerToolEnum.UPDATE_PRODUCTS; + /** +

    Reads Project settings.

    */ + McpServerTool READ_PROJECT = McpServerToolEnum.READ_PROJECT; + /** +

    Updates Project settings.

    */ + McpServerTool UPDATE_PROJECT = McpServerToolEnum.UPDATE_PROJECT; + /** +

    Creates Quote Requests.

    */ + McpServerTool CREATE_QUOTE_REQUESTS = McpServerToolEnum.CREATE_QUOTE_REQUESTS; + /** +

    Reads Quote Requests.

    */ + McpServerTool READ_QUOTE_REQUESTS = McpServerToolEnum.READ_QUOTE_REQUESTS; + /** +

    Updates Quote Requests.

    */ + McpServerTool UPDATE_QUOTE_REQUESTS = McpServerToolEnum.UPDATE_QUOTE_REQUESTS; + /** +

    Creates Quotes.

    */ + McpServerTool CREATE_QUOTES = McpServerToolEnum.CREATE_QUOTES; + /** +

    Reads Quotes.

    */ + McpServerTool READ_QUOTES = McpServerToolEnum.READ_QUOTES; + /** +

    Updates Quotes.

    */ + McpServerTool UPDATE_QUOTES = McpServerToolEnum.UPDATE_QUOTES; + /** +

    Creates Recurring Orders.

    */ + McpServerTool CREATE_RECURRING_ORDERS = McpServerToolEnum.CREATE_RECURRING_ORDERS; + /** +

    Reads Recurring Orders.

    */ + McpServerTool READ_RECURRING_ORDERS = McpServerToolEnum.READ_RECURRING_ORDERS; + /** +

    Updates Recurring Orders.

    */ + McpServerTool UPDATE_RECURRING_ORDERS = McpServerToolEnum.UPDATE_RECURRING_ORDERS; + /** +

    Creates Reviews.

    */ + McpServerTool CREATE_REVIEWS = McpServerToolEnum.CREATE_REVIEWS; + /** +

    Reads Reviews.

    */ + McpServerTool READ_REVIEWS = McpServerToolEnum.READ_REVIEWS; + /** +

    Updates Reviews.

    */ + McpServerTool UPDATE_REVIEWS = McpServerToolEnum.UPDATE_REVIEWS; + /** +

    Creates Shipping Methods.

    */ + McpServerTool CREATE_SHIPPING_METHODS = McpServerToolEnum.CREATE_SHIPPING_METHODS; + /** +

    Reads Shipping Methods.

    */ + McpServerTool READ_SHIPPING_METHODS = McpServerToolEnum.READ_SHIPPING_METHODS; + /** +

    Updates Shipping Methods.

    */ + McpServerTool UPDATE_SHIPPING_METHODS = McpServerToolEnum.UPDATE_SHIPPING_METHODS; + /** +

    Creates Shopping Lists.

    */ + McpServerTool CREATE_SHOPPING_LISTS = McpServerToolEnum.CREATE_SHOPPING_LISTS; + /** +

    Reads Shopping Lists.

    */ + McpServerTool READ_SHOPPING_LISTS = McpServerToolEnum.READ_SHOPPING_LISTS; + /** +

    Updates Shopping Lists.

    */ + McpServerTool UPDATE_SHOPPING_LISTS = McpServerToolEnum.UPDATE_SHOPPING_LISTS; + /** +

    Creates Staged Quotes.

    */ + McpServerTool CREATE_STAGED_QUOTES = McpServerToolEnum.CREATE_STAGED_QUOTES; + /** +

    Reads Staged Quotes.

    */ + McpServerTool READ_STAGED_QUOTES = McpServerToolEnum.READ_STAGED_QUOTES; + /** +

    Updates Staged Quotes.

    */ + McpServerTool UPDATE_STAGED_QUOTES = McpServerToolEnum.UPDATE_STAGED_QUOTES; + /** +

    Creates Standalone Prices.

    */ + McpServerTool CREATE_STANDALONE_PRICES = McpServerToolEnum.CREATE_STANDALONE_PRICES; + /** +

    Reads Standalone Prices.

    */ + McpServerTool READ_STANDALONE_PRICES = McpServerToolEnum.READ_STANDALONE_PRICES; + /** +

    Updates Standalone Prices.

    */ + McpServerTool UPDATE_STANDALONE_PRICES = McpServerToolEnum.UPDATE_STANDALONE_PRICES; + /** +

    Creates States.

    */ + McpServerTool CREATE_STATES = McpServerToolEnum.CREATE_STATES; + /** +

    Reads States.

    */ + McpServerTool READ_STATES = McpServerToolEnum.READ_STATES; + /** +

    Updates States.

    */ + McpServerTool UPDATE_STATES = McpServerToolEnum.UPDATE_STATES; + /** +

    Creates Stores.

    */ + McpServerTool CREATE_STORES = McpServerToolEnum.CREATE_STORES; + /** +

    Reads Stores.

    */ + McpServerTool READ_STORES = McpServerToolEnum.READ_STORES; + /** +

    Updates Stores.

    */ + McpServerTool UPDATE_STORES = McpServerToolEnum.UPDATE_STORES; + /** +

    Creates Subscriptions.

    */ + McpServerTool CREATE_SUBSCRIPTIONS = McpServerToolEnum.CREATE_SUBSCRIPTIONS; + /** +

    Reads Subscriptions.

    */ + McpServerTool READ_SUBSCRIPTIONS = McpServerToolEnum.READ_SUBSCRIPTIONS; + /** +

    Updates Subscriptions.

    */ + McpServerTool UPDATE_SUBSCRIPTIONS = McpServerToolEnum.UPDATE_SUBSCRIPTIONS; + /** +

    Creates Tax Categories.

    */ + McpServerTool CREATE_TAX_CATEGORIES = McpServerToolEnum.CREATE_TAX_CATEGORIES; + /** +

    Reads Tax Categories.

    */ + McpServerTool READ_TAX_CATEGORIES = McpServerToolEnum.READ_TAX_CATEGORIES; + /** +

    Updates Tax Categories.

    */ + McpServerTool UPDATE_TAX_CATEGORIES = McpServerToolEnum.UPDATE_TAX_CATEGORIES; + /** +

    Creates Transactions.

    */ + McpServerTool CREATE_TRANSACTIONS = McpServerToolEnum.CREATE_TRANSACTIONS; + /** +

    Reads Transactions.

    */ + McpServerTool READ_TRANSACTIONS = McpServerToolEnum.READ_TRANSACTIONS; + /** +

    Creates Types.

    */ + McpServerTool CREATE_TYPES = McpServerToolEnum.CREATE_TYPES; + /** +

    Reads Types.

    */ + McpServerTool READ_TYPES = McpServerToolEnum.READ_TYPES; + /** +

    Updates Types.

    */ + McpServerTool UPDATE_TYPES = McpServerToolEnum.UPDATE_TYPES; + /** +

    Creates Zones.

    */ + McpServerTool CREATE_ZONES = McpServerToolEnum.CREATE_ZONES; + /** +

    Reads Zones.

    */ + McpServerTool READ_ZONES = McpServerToolEnum.READ_ZONES; + /** +

    Updates Zones.

    */ + McpServerTool UPDATE_ZONES = McpServerToolEnum.UPDATE_ZONES; + + /** + * possible values of McpServerTool + */ + enum McpServerToolEnum implements McpServerTool { + /** + * all + */ + ALL("all"), + + /** + * read_all + */ + READ_ALL("read_all"), + + /** + * create_applications + */ + CREATE_APPLICATIONS("create_applications"), + + /** + * read_applications + */ + READ_APPLICATIONS("read_applications"), + + /** + * update_applications + */ + UPDATE_APPLICATIONS("update_applications"), + + /** + * create_attribute_groups + */ + CREATE_ATTRIBUTE_GROUPS("create_attribute_groups"), + + /** + * read_attribute_groups + */ + READ_ATTRIBUTE_GROUPS("read_attribute_groups"), + + /** + * update_attribute_groups + */ + UPDATE_ATTRIBUTE_GROUPS("update_attribute_groups"), + + /** + * create_bulk + */ + CREATE_BULK("create_bulk"), + + /** + * update_bulk + */ + UPDATE_BULK("update_bulk"), + + /** + * create_business_units + */ + CREATE_BUSINESS_UNITS("create_business_units"), + + /** + * read_business_units + */ + READ_BUSINESS_UNITS("read_business_units"), + + /** + * update_business_units + */ + UPDATE_BUSINESS_UNITS("update_business_units"), + + /** + * create_cart_discounts + */ + CREATE_CART_DISCOUNTS("create_cart_discounts"), + + /** + * read_cart_discounts + */ + READ_CART_DISCOUNTS("read_cart_discounts"), + + /** + * update_cart_discounts + */ + UPDATE_CART_DISCOUNTS("update_cart_discounts"), + + /** + * create_carts + */ + CREATE_CARTS("create_carts"), + + /** + * read_carts + */ + READ_CARTS("read_carts"), + + /** + * update_carts + */ + UPDATE_CARTS("update_carts"), + + /** + * replicate_carts + */ + REPLICATE_CARTS("replicate_carts"), + + /** + * create_categories + */ + CREATE_CATEGORIES("create_categories"), + + /** + * read_categories + */ + READ_CATEGORIES("read_categories"), + + /** + * update_categories + */ + UPDATE_CATEGORIES("update_categories"), + + /** + * create_channels + */ + CREATE_CHANNELS("create_channels"), + + /** + * read_channels + */ + READ_CHANNELS("read_channels"), + + /** + * update_channels + */ + UPDATE_CHANNELS("update_channels"), + + /** + * create_custom_objects + */ + CREATE_CUSTOM_OBJECTS("create_custom_objects"), + + /** + * read_custom_objects + */ + READ_CUSTOM_OBJECTS("read_custom_objects"), + + /** + * update_custom_objects + */ + UPDATE_CUSTOM_OBJECTS("update_custom_objects"), + + /** + * create_customer_groups + */ + CREATE_CUSTOMER_GROUPS("create_customer_groups"), + + /** + * read_customer_groups + */ + READ_CUSTOMER_GROUPS("read_customer_groups"), + + /** + * update_customer_groups + */ + UPDATE_CUSTOMER_GROUPS("update_customer_groups"), + + /** + * read_customer_search + */ + READ_CUSTOMER_SEARCH("read_customer_search"), + + /** + * create_customers + */ + CREATE_CUSTOMERS("create_customers"), + + /** + * read_customers + */ + READ_CUSTOMERS("read_customers"), + + /** + * update_customers + */ + UPDATE_CUSTOMERS("update_customers"), + + /** + * create_discount_codes + */ + CREATE_DISCOUNT_CODES("create_discount_codes"), + + /** + * read_discount_codes + */ + READ_DISCOUNT_CODES("read_discount_codes"), + + /** + * update_discount_codes + */ + UPDATE_DISCOUNT_CODES("update_discount_codes"), + + /** + * create_extensions + */ + CREATE_EXTENSIONS("create_extensions"), + + /** + * read_extensions + */ + READ_EXTENSIONS("read_extensions"), + + /** + * update_extensions + */ + UPDATE_EXTENSIONS("update_extensions"), + + /** + * create_inventory + */ + CREATE_INVENTORY("create_inventory"), + + /** + * read_inventory + */ + READ_INVENTORY("read_inventory"), + + /** + * update_inventory + */ + UPDATE_INVENTORY("update_inventory"), + + /** + * read_messages + */ + READ_MESSAGES("read_messages"), + + /** + * create_orders + */ + CREATE_ORDERS("create_orders"), + + /** + * read_orders + */ + READ_ORDERS("read_orders"), + + /** + * update_orders + */ + UPDATE_ORDERS("update_orders"), + + /** + * create_payment_integrations + */ + CREATE_PAYMENT_INTEGRATIONS("create_payment_integrations"), + + /** + * read_payment_integrations + */ + READ_PAYMENT_INTEGRATIONS("read_payment_integrations"), + + /** + * update_payment_integrations + */ + UPDATE_PAYMENT_INTEGRATIONS("update_payment_integrations"), + + /** + * update_payment_intents + */ + UPDATE_PAYMENT_INTENTS("update_payment_intents"), + + /** + * create_payment_methods + */ + CREATE_PAYMENT_METHODS("create_payment_methods"), + + /** + * read_payment_methods + */ + READ_PAYMENT_METHODS("read_payment_methods"), + + /** + * update_payment_methods + */ + UPDATE_PAYMENT_METHODS("update_payment_methods"), + + /** + * create_payments + */ + CREATE_PAYMENTS("create_payments"), + + /** + * read_payments + */ + READ_PAYMENTS("read_payments"), + + /** + * update_payments + */ + UPDATE_PAYMENTS("update_payments"), + + /** + * create_product_discounts + */ + CREATE_PRODUCT_DISCOUNTS("create_product_discounts"), + + /** + * read_product_discounts + */ + READ_PRODUCT_DISCOUNTS("read_product_discounts"), + + /** + * update_product_discounts + */ + UPDATE_PRODUCT_DISCOUNTS("update_product_discounts"), + + /** + * read_product_projections + */ + READ_PRODUCT_PROJECTIONS("read_product_projections"), + + /** + * read_product_search + */ + READ_PRODUCT_SEARCH("read_product_search"), + + /** + * create_product_selections + */ + CREATE_PRODUCT_SELECTIONS("create_product_selections"), + + /** + * read_product_selections + */ + READ_PRODUCT_SELECTIONS("read_product_selections"), + + /** + * update_product_selections + */ + UPDATE_PRODUCT_SELECTIONS("update_product_selections"), + + /** + * create_product_tailoring + */ + CREATE_PRODUCT_TAILORING("create_product_tailoring"), + + /** + * read_product_tailoring + */ + READ_PRODUCT_TAILORING("read_product_tailoring"), + + /** + * update_product_tailoring + */ + UPDATE_PRODUCT_TAILORING("update_product_tailoring"), + + /** + * create_product_types + */ + CREATE_PRODUCT_TYPES("create_product_types"), + + /** + * read_product_types + */ + READ_PRODUCT_TYPES("read_product_types"), + + /** + * update_product_types + */ + UPDATE_PRODUCT_TYPES("update_product_types"), + + /** + * create_products + */ + CREATE_PRODUCTS("create_products"), + + /** + * read_products + */ + READ_PRODUCTS("read_products"), + + /** + * update_products + */ + UPDATE_PRODUCTS("update_products"), + + /** + * read_project + */ + READ_PROJECT("read_project"), + + /** + * update_project + */ + UPDATE_PROJECT("update_project"), + + /** + * create_quote_requests + */ + CREATE_QUOTE_REQUESTS("create_quote_requests"), + + /** + * read_quote_requests + */ + READ_QUOTE_REQUESTS("read_quote_requests"), + + /** + * update_quote_requests + */ + UPDATE_QUOTE_REQUESTS("update_quote_requests"), + + /** + * create_quotes + */ + CREATE_QUOTES("create_quotes"), + + /** + * read_quotes + */ + READ_QUOTES("read_quotes"), + + /** + * update_quotes + */ + UPDATE_QUOTES("update_quotes"), + + /** + * create_recurring_orders + */ + CREATE_RECURRING_ORDERS("create_recurring_orders"), + + /** + * read_recurring_orders + */ + READ_RECURRING_ORDERS("read_recurring_orders"), + + /** + * update_recurring_orders + */ + UPDATE_RECURRING_ORDERS("update_recurring_orders"), + + /** + * create_reviews + */ + CREATE_REVIEWS("create_reviews"), + + /** + * read_reviews + */ + READ_REVIEWS("read_reviews"), + + /** + * update_reviews + */ + UPDATE_REVIEWS("update_reviews"), + + /** + * create_shipping_methods + */ + CREATE_SHIPPING_METHODS("create_shipping_methods"), + + /** + * read_shipping_methods + */ + READ_SHIPPING_METHODS("read_shipping_methods"), + + /** + * update_shipping_methods + */ + UPDATE_SHIPPING_METHODS("update_shipping_methods"), + + /** + * create_shopping_lists + */ + CREATE_SHOPPING_LISTS("create_shopping_lists"), + + /** + * read_shopping_lists + */ + READ_SHOPPING_LISTS("read_shopping_lists"), + + /** + * update_shopping_lists + */ + UPDATE_SHOPPING_LISTS("update_shopping_lists"), + + /** + * create_staged_quotes + */ + CREATE_STAGED_QUOTES("create_staged_quotes"), + + /** + * read_staged_quotes + */ + READ_STAGED_QUOTES("read_staged_quotes"), + + /** + * update_staged_quotes + */ + UPDATE_STAGED_QUOTES("update_staged_quotes"), + + /** + * create_standalone_prices + */ + CREATE_STANDALONE_PRICES("create_standalone_prices"), + + /** + * read_standalone_prices + */ + READ_STANDALONE_PRICES("read_standalone_prices"), + + /** + * update_standalone_prices + */ + UPDATE_STANDALONE_PRICES("update_standalone_prices"), + + /** + * create_states + */ + CREATE_STATES("create_states"), + + /** + * read_states + */ + READ_STATES("read_states"), + + /** + * update_states + */ + UPDATE_STATES("update_states"), + + /** + * create_stores + */ + CREATE_STORES("create_stores"), + + /** + * read_stores + */ + READ_STORES("read_stores"), + + /** + * update_stores + */ + UPDATE_STORES("update_stores"), + + /** + * create_subscriptions + */ + CREATE_SUBSCRIPTIONS("create_subscriptions"), + + /** + * read_subscriptions + */ + READ_SUBSCRIPTIONS("read_subscriptions"), + + /** + * update_subscriptions + */ + UPDATE_SUBSCRIPTIONS("update_subscriptions"), + + /** + * create_tax_categories + */ + CREATE_TAX_CATEGORIES("create_tax_categories"), + + /** + * read_tax_categories + */ + READ_TAX_CATEGORIES("read_tax_categories"), + + /** + * update_tax_categories + */ + UPDATE_TAX_CATEGORIES("update_tax_categories"), + + /** + * create_transactions + */ + CREATE_TRANSACTIONS("create_transactions"), + + /** + * read_transactions + */ + READ_TRANSACTIONS("read_transactions"), + + /** + * create_types + */ + CREATE_TYPES("create_types"), + + /** + * read_types + */ + READ_TYPES("read_types"), + + /** + * update_types + */ + UPDATE_TYPES("update_types"), + + /** + * create_zones + */ + CREATE_ZONES("create_zones"), + + /** + * read_zones + */ + READ_ZONES("read_zones"), + + /** + * update_zones + */ + UPDATE_ZONES("update_zones"); + private final String jsonName; + + private McpServerToolEnum(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 McpServerTool + * 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 McpServerTool findEnum(String value) { + return findEnumViaJsonName(value).orElse(new McpServerTool() { + @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 McpServerTool[] values() { + return McpServerToolEnum.values(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerToolOutputFormatting.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerToolOutputFormatting.java new file mode 100644 index 0000000000..1e4a11d912 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerToolOutputFormatting.java @@ -0,0 +1,110 @@ + +package com.commercetools.api.models.mcp_server; + +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; + +/** + *

    Output formatting applied to every tools/call response on the MCP Server. The value names the conversion performed; when the field is absent, the response content shape is left untouched.

    + *
      + *
    • JsonToTabular: converts JSON tool output into a tabular representation.
    • + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public interface McpServerToolOutputFormatting extends JsonEnum { + + /** +

    Converts JSON tool output into a tabular representation to reduce token count.

    */ + McpServerToolOutputFormatting JSON_TO_TABULAR = McpServerToolOutputFormattingEnum.JSON_TO_TABULAR; + + /** + * possible values of McpServerToolOutputFormatting + */ + enum McpServerToolOutputFormattingEnum implements McpServerToolOutputFormatting { + /** + * JsonToTabular + */ + JSON_TO_TABULAR("JsonToTabular"); + private final String jsonName; + + private McpServerToolOutputFormattingEnum(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 McpServerToolOutputFormatting + * 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 McpServerToolOutputFormatting findEnum(String value) { + return findEnumViaJsonName(value).orElse(new McpServerToolOutputFormatting() { + @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 McpServerToolOutputFormatting[] values() { + return McpServerToolOutputFormattingEnum.values(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerType.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerType.java new file mode 100644 index 0000000000..5af4cecadc --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerType.java @@ -0,0 +1,175 @@ + +package com.commercetools.api.models.mcp_server; + +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 io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; +import tools.jackson.databind.annotation.*; + +/** + *

    Describes an MCP Server type and one of its major versions, including the catalog of tools available for it. Use this catalog to discover which tools you can enable on a McpServer of this type.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     McpServerType mcpServerType = McpServerType.builder()
    + *             .type("{type}")
    + *             .majorVersion("{majorVersion}")
    + *             .plusTools(toolsBuilder -> toolsBuilder)
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = McpServerTypeImpl.class) +public interface McpServerType { + + /** + *

    Identifier of the MCP Server type, such as CommerceMCP.

    + * @return type + */ + @NotNull + @JsonProperty("type") + public String getType(); + + /** + *

    Major version of the MCP Server type, such as v4.

    + * @return majorVersion + */ + @NotNull + @JsonProperty("majorVersion") + public String getMajorVersion(); + + /** + *

    Tools available for this MCP Server type and major version.

    + * @return tools + */ + @NotNull + @Valid + @JsonProperty("tools") + public List getTools(); + + /** + *

    Identifier of the MCP Server type, such as CommerceMCP.

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

    Major version of the MCP Server type, such as v4.

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

    Tools available for this MCP Server type and major version.

    + * @param tools values to be set + */ + + @JsonIgnore + public void setTools(final McpServerTypeTool... tools); + + /** + *

    Tools available for this MCP Server type and major version.

    + * @param tools values to be set + */ + + public void setTools(final List tools); + + /** + * factory method + * @return instance of McpServerType + */ + public static McpServerType of() { + return new McpServerTypeImpl(); + } + + /** + * factory method to create a shallow copy McpServerType + * @param template instance to be copied + * @return copy instance + */ + public static McpServerType of(final McpServerType template) { + McpServerTypeImpl instance = new McpServerTypeImpl(); + instance.setType(template.getType()); + instance.setMajorVersion(template.getMajorVersion()); + instance.setTools(template.getTools()); + return instance; + } + + public McpServerType copyDeep(); + + /** + * factory method to create a deep copy of McpServerType + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static McpServerType deepCopy(@Nullable final McpServerType template) { + if (template == null) { + return null; + } + McpServerTypeImpl instance = new McpServerTypeImpl(); + instance.setType(template.getType()); + instance.setMajorVersion(template.getMajorVersion()); + instance.setTools(Optional.ofNullable(template.getTools()) + .map(t -> t.stream() + .map(com.commercetools.api.models.mcp_server.McpServerTypeTool::deepCopy) + .collect(Collectors.toList())) + .orElse(null)); + return instance; + } + + /** + * builder factory method for McpServerType + * @return builder + */ + public static McpServerTypeBuilder builder() { + return McpServerTypeBuilder.of(); + } + + /** + * create builder for McpServerType instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static McpServerTypeBuilder builder(final McpServerType template) { + return McpServerTypeBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withMcpServerType(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static tools.jackson.core.type.TypeReference typeReference() { + return new tools.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/mcp_server/McpServerTypeBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerTypeBuilder.java new file mode 100644 index 0000000000..fdeea32e58 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerTypeBuilder.java @@ -0,0 +1,209 @@ + +package com.commercetools.api.models.mcp_server; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * McpServerTypeBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     McpServerType mcpServerType = McpServerType.builder()
    + *             .type("{type}")
    + *             .majorVersion("{majorVersion}")
    + *             .plusTools(toolsBuilder -> toolsBuilder)
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class McpServerTypeBuilder implements Builder { + + private String type; + + private String majorVersion; + + private java.util.List tools; + + /** + *

    Identifier of the MCP Server type, such as CommerceMCP.

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

    Major version of the MCP Server type, such as v4.

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

    Tools available for this MCP Server type and major version.

    + * @param tools value to be set + * @return Builder + */ + + public McpServerTypeBuilder tools(final com.commercetools.api.models.mcp_server.McpServerTypeTool... tools) { + this.tools = new ArrayList<>(Arrays.asList(tools)); + return this; + } + + /** + *

    Tools available for this MCP Server type and major version.

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

    Tools available for this MCP Server type and major version.

    + * @param tools value to be set + * @return Builder + */ + + public McpServerTypeBuilder plusTools(final com.commercetools.api.models.mcp_server.McpServerTypeTool... tools) { + if (this.tools == null) { + this.tools = new ArrayList<>(); + } + this.tools.addAll(Arrays.asList(tools)); + return this; + } + + /** + *

    Tools available for this MCP Server type and major version.

    + * @param builder function to build the tools value + * @return Builder + */ + + public McpServerTypeBuilder plusTools( + Function builder) { + if (this.tools == null) { + this.tools = new ArrayList<>(); + } + this.tools.add(builder.apply(com.commercetools.api.models.mcp_server.McpServerTypeToolBuilder.of()).build()); + return this; + } + + /** + *

    Tools available for this MCP Server type and major version.

    + * @param builder function to build the tools value + * @return Builder + */ + + public McpServerTypeBuilder withTools( + Function builder) { + this.tools = new ArrayList<>(); + this.tools.add(builder.apply(com.commercetools.api.models.mcp_server.McpServerTypeToolBuilder.of()).build()); + return this; + } + + /** + *

    Tools available for this MCP Server type and major version.

    + * @param builder function to build the tools value + * @return Builder + */ + + public McpServerTypeBuilder addTools( + Function builder) { + return plusTools(builder.apply(com.commercetools.api.models.mcp_server.McpServerTypeToolBuilder.of())); + } + + /** + *

    Tools available for this MCP Server type and major version.

    + * @param builder function to build the tools value + * @return Builder + */ + + public McpServerTypeBuilder setTools( + Function builder) { + return tools(builder.apply(com.commercetools.api.models.mcp_server.McpServerTypeToolBuilder.of())); + } + + /** + *

    Identifier of the MCP Server type, such as CommerceMCP.

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

    Major version of the MCP Server type, such as v4.

    + * @return majorVersion + */ + + public String getMajorVersion() { + return this.majorVersion; + } + + /** + *

    Tools available for this MCP Server type and major version.

    + * @return tools + */ + + public java.util.List getTools() { + return this.tools; + } + + /** + * builds McpServerType with checking for non-null required values + * @return McpServerType + */ + public McpServerType build() { + Objects.requireNonNull(type, McpServerType.class + ": type is missing"); + Objects.requireNonNull(majorVersion, McpServerType.class + ": majorVersion is missing"); + Objects.requireNonNull(tools, McpServerType.class + ": tools is missing"); + return new McpServerTypeImpl(type, majorVersion, tools); + } + + /** + * builds McpServerType without checking for non-null required values + * @return McpServerType + */ + public McpServerType buildUnchecked() { + return new McpServerTypeImpl(type, majorVersion, tools); + } + + /** + * factory method for an instance of McpServerTypeBuilder + * @return builder + */ + public static McpServerTypeBuilder of() { + return new McpServerTypeBuilder(); + } + + /** + * create builder for McpServerType instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static McpServerTypeBuilder of(final McpServerType template) { + McpServerTypeBuilder builder = new McpServerTypeBuilder(); + builder.type = template.getType(); + builder.majorVersion = template.getMajorVersion(); + builder.tools = template.getTools(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerTypeImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerTypeImpl.java new file mode 100644 index 0000000000..ffb47336df --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerTypeImpl.java @@ -0,0 +1,125 @@ + +package com.commercetools.api.models.mcp_server; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; + +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; + +import tools.jackson.databind.annotation.*; + +/** + *

    Describes an MCP Server type and one of its major versions, including the catalog of tools available for it. Use this catalog to discover which tools you can enable on a McpServer of this type.

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

    Identifier of the MCP Server type, such as CommerceMCP.

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

    Major version of the MCP Server type, such as v4.

    + */ + + public String getMajorVersion() { + return this.majorVersion; + } + + /** + *

    Tools available for this MCP Server type and major version.

    + */ + + public java.util.List getTools() { + return this.tools; + } + + public void setType(final String type) { + this.type = type; + } + + public void setMajorVersion(final String majorVersion) { + this.majorVersion = majorVersion; + } + + public void setTools(final com.commercetools.api.models.mcp_server.McpServerTypeTool... tools) { + this.tools = new ArrayList<>(Arrays.asList(tools)); + } + + public void setTools(final java.util.List tools) { + this.tools = tools; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + McpServerTypeImpl that = (McpServerTypeImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(majorVersion, that.majorVersion) + .append(tools, that.tools) + .append(type, that.type) + .append(majorVersion, that.majorVersion) + .append(tools, that.tools) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type).append(majorVersion).append(tools).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) + .append("majorVersion", majorVersion) + .append("tools", tools) + .build(); + } + + @Override + public McpServerType copyDeep() { + return McpServerType.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerTypeTool.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerTypeTool.java new file mode 100644 index 0000000000..223d49ec9d --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerTypeTool.java @@ -0,0 +1,183 @@ + +package com.commercetools.api.models.mcp_server; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.fasterxml.jackson.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.constraints.NotNull; +import tools.jackson.databind.annotation.*; + +/** + *

    Describes a single tool available for an MCP Server type and major version.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     McpServerTypeTool mcpServerTypeTool = McpServerTypeTool.builder()
    + *             .name("{name}")
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = McpServerTypeToolImpl.class) +public interface McpServerTypeTool { + + /** + *

    Identifier of the tool, such as read_products or create_orders. Matches a value of McpServerTool.

    + * @return name + */ + @NotNull + @JsonProperty("name") + public String getName(); + + /** + *

    Human-readable description of what the tool does. Omitted when no description is available.

    + * @return description + */ + + @JsonProperty("description") + public String getDescription(); + + /** + *

    Whether the tool reads (read) or modifies (write) data.

    + * @return operationType + */ + + @JsonProperty("operationType") + public String getOperationType(); + + /** + *

    Group identifiers the tool belongs to, such as all or read_all. Empty when the tool belongs to no group.

    + * @return groups + */ + + @JsonProperty("groups") + public List getGroups(); + + /** + *

    Identifier of the tool, such as read_products or create_orders. Matches a value of McpServerTool.

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

    Human-readable description of what the tool does. Omitted when no description is available.

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

    Whether the tool reads (read) or modifies (write) data.

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

    Group identifiers the tool belongs to, such as all or read_all. Empty when the tool belongs to no group.

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

    Group identifiers the tool belongs to, such as all or read_all. Empty when the tool belongs to no group.

    + * @param groups values to be set + */ + + public void setGroups(final List groups); + + /** + * factory method + * @return instance of McpServerTypeTool + */ + public static McpServerTypeTool of() { + return new McpServerTypeToolImpl(); + } + + /** + * factory method to create a shallow copy McpServerTypeTool + * @param template instance to be copied + * @return copy instance + */ + public static McpServerTypeTool of(final McpServerTypeTool template) { + McpServerTypeToolImpl instance = new McpServerTypeToolImpl(); + instance.setName(template.getName()); + instance.setDescription(template.getDescription()); + instance.setOperationType(template.getOperationType()); + instance.setGroups(template.getGroups()); + return instance; + } + + public McpServerTypeTool copyDeep(); + + /** + * factory method to create a deep copy of McpServerTypeTool + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static McpServerTypeTool deepCopy(@Nullable final McpServerTypeTool template) { + if (template == null) { + return null; + } + McpServerTypeToolImpl instance = new McpServerTypeToolImpl(); + instance.setName(template.getName()); + instance.setDescription(template.getDescription()); + instance.setOperationType(template.getOperationType()); + instance.setGroups(Optional.ofNullable(template.getGroups()).map(ArrayList::new).orElse(null)); + return instance; + } + + /** + * builder factory method for McpServerTypeTool + * @return builder + */ + public static McpServerTypeToolBuilder builder() { + return McpServerTypeToolBuilder.of(); + } + + /** + * create builder for McpServerTypeTool instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static McpServerTypeToolBuilder builder(final McpServerTypeTool template) { + return McpServerTypeToolBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withMcpServerTypeTool(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static tools.jackson.core.type.TypeReference typeReference() { + return new tools.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/mcp_server/McpServerTypeToolBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerTypeToolBuilder.java new file mode 100644 index 0000000000..062f5774d3 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerTypeToolBuilder.java @@ -0,0 +1,184 @@ + +package com.commercetools.api.models.mcp_server; + +import java.util.*; + +import javax.annotation.Nullable; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * McpServerTypeToolBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     McpServerTypeTool mcpServerTypeTool = McpServerTypeTool.builder()
    + *             .name("{name}")
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class McpServerTypeToolBuilder implements Builder { + + private String name; + + @Nullable + private String description; + + @Nullable + private String operationType; + + @Nullable + private java.util.List groups; + + /** + *

    Identifier of the tool, such as read_products or create_orders. Matches a value of McpServerTool.

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

    Human-readable description of what the tool does. Omitted when no description is available.

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

    Whether the tool reads (read) or modifies (write) data.

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

    Group identifiers the tool belongs to, such as all or read_all. Empty when the tool belongs to no group.

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

    Group identifiers the tool belongs to, such as all or read_all. Empty when the tool belongs to no group.

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

    Group identifiers the tool belongs to, such as all or read_all. Empty when the tool belongs to no group.

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

    Identifier of the tool, such as read_products or create_orders. Matches a value of McpServerTool.

    + * @return name + */ + + public String getName() { + return this.name; + } + + /** + *

    Human-readable description of what the tool does. Omitted when no description is available.

    + * @return description + */ + + @Nullable + public String getDescription() { + return this.description; + } + + /** + *

    Whether the tool reads (read) or modifies (write) data.

    + * @return operationType + */ + + @Nullable + public String getOperationType() { + return this.operationType; + } + + /** + *

    Group identifiers the tool belongs to, such as all or read_all. Empty when the tool belongs to no group.

    + * @return groups + */ + + @Nullable + public java.util.List getGroups() { + return this.groups; + } + + /** + * builds McpServerTypeTool with checking for non-null required values + * @return McpServerTypeTool + */ + public McpServerTypeTool build() { + Objects.requireNonNull(name, McpServerTypeTool.class + ": name is missing"); + return new McpServerTypeToolImpl(name, description, operationType, groups); + } + + /** + * builds McpServerTypeTool without checking for non-null required values + * @return McpServerTypeTool + */ + public McpServerTypeTool buildUnchecked() { + return new McpServerTypeToolImpl(name, description, operationType, groups); + } + + /** + * factory method for an instance of McpServerTypeToolBuilder + * @return builder + */ + public static McpServerTypeToolBuilder of() { + return new McpServerTypeToolBuilder(); + } + + /** + * create builder for McpServerTypeTool instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static McpServerTypeToolBuilder of(final McpServerTypeTool template) { + McpServerTypeToolBuilder builder = new McpServerTypeToolBuilder(); + builder.name = template.getName(); + builder.description = template.getDescription(); + builder.operationType = template.getOperationType(); + builder.groups = template.getGroups(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerTypeToolImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerTypeToolImpl.java new file mode 100644 index 0000000000..3c8eb40a67 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerTypeToolImpl.java @@ -0,0 +1,149 @@ + +package com.commercetools.api.models.mcp_server; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; + +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; + +import tools.jackson.databind.annotation.*; + +/** + *

    Describes a single tool available for an MCP Server type and major version.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class McpServerTypeToolImpl implements McpServerTypeTool, ModelBase { + + private String name; + + private String description; + + private String operationType; + + private java.util.List groups; + + /** + * create instance with all properties + */ + @JsonCreator + McpServerTypeToolImpl(@JsonProperty("name") final String name, + @JsonProperty("description") final String description, + @JsonProperty("operationType") final String operationType, + @JsonProperty("groups") final java.util.List groups) { + this.name = name; + this.description = description; + this.operationType = operationType; + this.groups = groups; + } + + /** + * create empty instance + */ + public McpServerTypeToolImpl() { + } + + /** + *

    Identifier of the tool, such as read_products or create_orders. Matches a value of McpServerTool.

    + */ + + public String getName() { + return this.name; + } + + /** + *

    Human-readable description of what the tool does. Omitted when no description is available.

    + */ + + public String getDescription() { + return this.description; + } + + /** + *

    Whether the tool reads (read) or modifies (write) data.

    + */ + + public String getOperationType() { + return this.operationType; + } + + /** + *

    Group identifiers the tool belongs to, such as all or read_all. Empty when the tool belongs to no group.

    + */ + + public java.util.List getGroups() { + return this.groups; + } + + public void setName(final String name) { + this.name = name; + } + + public void setDescription(final String description) { + this.description = description; + } + + public void setOperationType(final String operationType) { + this.operationType = operationType; + } + + public void setGroups(final String... groups) { + this.groups = new ArrayList<>(Arrays.asList(groups)); + } + + public void setGroups(final java.util.List groups) { + this.groups = groups; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + McpServerTypeToolImpl that = (McpServerTypeToolImpl) o; + + return new EqualsBuilder().append(name, that.name) + .append(description, that.description) + .append(operationType, that.operationType) + .append(groups, that.groups) + .append(name, that.name) + .append(description, that.description) + .append(operationType, that.operationType) + .append(groups, that.groups) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(name) + .append(description) + .append(operationType) + .append(groups) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("name", name) + .append("description", description) + .append("operationType", operationType) + .append("groups", groups) + .build(); + } + + @Override + public McpServerTypeTool copyDeep() { + return McpServerTypeTool.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerUpdate.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerUpdate.java new file mode 100644 index 0000000000..3755e369d5 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerUpdate.java @@ -0,0 +1,157 @@ + +package com.commercetools.api.models.mcp_server; + +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 io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; +import tools.jackson.databind.annotation.*; + +/** + *

    Update payload for an MCP Server. Specifies the expected version and the update actions to apply.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     McpServerUpdate mcpServerUpdate = McpServerUpdate.builder()
    + *             .version(0.3)
    + *             .plusActions(actionsBuilder -> actionsBuilder)
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = McpServerUpdateImpl.class) +public interface McpServerUpdate { + + /** + *

    Expected version of the MCP Server on which the changes should be applied. If the expected version does not match the actual version, a ConcurrentModification error is returned.

    + * @return version + */ + @NotNull + @JsonProperty("version") + public Long getVersion(); + + /** + *

    Update actions to be performed on the MCP Server.

    + * @return actions + */ + @NotNull + @Valid + @JsonProperty("actions") + public List getActions(); + + /** + *

    Expected version of the MCP Server on which the changes should be applied. If the expected version does not match the actual version, a ConcurrentModification error is returned.

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

    Update actions to be performed on the MCP Server.

    + * @param actions values to be set + */ + + @JsonIgnore + public void setActions(final McpServerUpdateAction... actions); + + /** + *

    Update actions to be performed on the MCP Server.

    + * @param actions values to be set + */ + + public void setActions(final List actions); + + /** + * factory method + * @return instance of McpServerUpdate + */ + public static McpServerUpdate of() { + return new McpServerUpdateImpl(); + } + + /** + * factory method to create a shallow copy McpServerUpdate + * @param template instance to be copied + * @return copy instance + */ + public static McpServerUpdate of(final McpServerUpdate template) { + McpServerUpdateImpl instance = new McpServerUpdateImpl(); + instance.setVersion(template.getVersion()); + instance.setActions(template.getActions()); + return instance; + } + + public McpServerUpdate copyDeep(); + + /** + * factory method to create a deep copy of McpServerUpdate + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static McpServerUpdate deepCopy(@Nullable final McpServerUpdate template) { + if (template == null) { + return null; + } + McpServerUpdateImpl instance = new McpServerUpdateImpl(); + instance.setVersion(template.getVersion()); + instance.setActions(Optional.ofNullable(template.getActions()) + .map(t -> t.stream() + .map(com.commercetools.api.models.mcp_server.McpServerUpdateAction::deepCopy) + .collect(Collectors.toList())) + .orElse(null)); + return instance; + } + + /** + * builder factory method for McpServerUpdate + * @return builder + */ + public static McpServerUpdateBuilder builder() { + return McpServerUpdateBuilder.of(); + } + + /** + * create builder for McpServerUpdate instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static McpServerUpdateBuilder builder(final McpServerUpdate template) { + return McpServerUpdateBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withMcpServerUpdate(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static tools.jackson.core.type.TypeReference typeReference() { + return new tools.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/mcp_server/McpServerUpdateAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerUpdateAction.java new file mode 100644 index 0000000000..e9c26eefff --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerUpdateAction.java @@ -0,0 +1,173 @@ + +package com.commercetools.api.models.mcp_server; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.fasterxml.jackson.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.constraints.NotNull; +import tools.jackson.databind.annotation.*; + +/** + *

    Base type for MCP Server update actions. The action discriminator identifies the concrete update action to perform.

    + * + *
    + * Example to create a subtype instance using the builder pattern + *
    + *
    
    + *     McpServerUpdateAction mcpServerUpdateAction = McpServerUpdateAction.addToolBuilder()
    + *             tool(McpServerTool.ALL)
    + *             .build()
    + * 
    + *
    + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "action", defaultImpl = McpServerUpdateActionImpl.class, visible = true) +@JsonDeserialize(as = McpServerUpdateActionImpl.class) +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public interface McpServerUpdateAction { + + /** + *

    Identifies the update action to perform, such as addTool, removeTool, or setTools.

    + * @return action + */ + @NotNull + @JsonProperty("action") + public String getAction(); + + public McpServerUpdateAction copyDeep(); + + /** + * factory method to create a deep copy of McpServerUpdateAction + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static McpServerUpdateAction deepCopy(@Nullable final McpServerUpdateAction template) { + if (template == null) { + return null; + } + + if (!(template instanceof McpServerUpdateActionImpl)) { + return template.copyDeep(); + } + McpServerUpdateActionImpl instance = new McpServerUpdateActionImpl(); + return instance; + } + + /** + * builder for addTool subtype + * @return builder + */ + public static com.commercetools.api.models.mcp_server.McpServerAddToolActionBuilder addToolBuilder() { + return com.commercetools.api.models.mcp_server.McpServerAddToolActionBuilder.of(); + } + + /** + * builder for addToolCustomization subtype + * @return builder + */ + public static com.commercetools.api.models.mcp_server.McpServerAddToolCustomizationActionBuilder addToolCustomizationBuilder() { + return com.commercetools.api.models.mcp_server.McpServerAddToolCustomizationActionBuilder.of(); + } + + /** + * builder for removeTool subtype + * @return builder + */ + public static com.commercetools.api.models.mcp_server.McpServerRemoveToolActionBuilder removeToolBuilder() { + return com.commercetools.api.models.mcp_server.McpServerRemoveToolActionBuilder.of(); + } + + /** + * builder for removeToolCustomization subtype + * @return builder + */ + public static com.commercetools.api.models.mcp_server.McpServerRemoveToolCustomizationActionBuilder removeToolCustomizationBuilder() { + return com.commercetools.api.models.mcp_server.McpServerRemoveToolCustomizationActionBuilder.of(); + } + + /** + * builder for setDescription subtype + * @return builder + */ + public static com.commercetools.api.models.mcp_server.McpServerSetDescriptionActionBuilder setDescriptionBuilder() { + return com.commercetools.api.models.mcp_server.McpServerSetDescriptionActionBuilder.of(); + } + + /** + * builder for setJsonOutputFiltering subtype + * @return builder + */ + public static com.commercetools.api.models.mcp_server.McpServerSetJsonOutputFilteringActionBuilder setJsonOutputFilteringBuilder() { + return com.commercetools.api.models.mcp_server.McpServerSetJsonOutputFilteringActionBuilder.of(); + } + + /** + * builder for setName subtype + * @return builder + */ + public static com.commercetools.api.models.mcp_server.McpServerSetNameActionBuilder setNameBuilder() { + return com.commercetools.api.models.mcp_server.McpServerSetNameActionBuilder.of(); + } + + /** + * builder for setState subtype + * @return builder + */ + public static com.commercetools.api.models.mcp_server.McpServerSetStateActionBuilder setStateBuilder() { + return com.commercetools.api.models.mcp_server.McpServerSetStateActionBuilder.of(); + } + + /** + * builder for setToolCustomizations subtype + * @return builder + */ + public static com.commercetools.api.models.mcp_server.McpServerSetToolCustomizationsActionBuilder setToolCustomizationsBuilder() { + return com.commercetools.api.models.mcp_server.McpServerSetToolCustomizationsActionBuilder.of(); + } + + /** + * builder for setToolOutputFormatting subtype + * @return builder + */ + public static com.commercetools.api.models.mcp_server.McpServerSetToolOutputFormattingActionBuilder setToolOutputFormattingBuilder() { + return com.commercetools.api.models.mcp_server.McpServerSetToolOutputFormattingActionBuilder.of(); + } + + /** + * builder for setTools subtype + * @return builder + */ + public static com.commercetools.api.models.mcp_server.McpServerSetToolsActionBuilder setToolsBuilder() { + return com.commercetools.api.models.mcp_server.McpServerSetToolsActionBuilder.of(); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withMcpServerUpdateAction(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static tools.jackson.core.type.TypeReference typeReference() { + return new tools.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/mcp_server/McpServerUpdateActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerUpdateActionBuilder.java new file mode 100644 index 0000000000..f1b331bafc --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerUpdateActionBuilder.java @@ -0,0 +1,66 @@ + +package com.commercetools.api.models.mcp_server; + +import java.util.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + * McpServerUpdateActionBuilder + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class McpServerUpdateActionBuilder { + + public com.commercetools.api.models.mcp_server.McpServerAddToolActionBuilder addToolBuilder() { + return com.commercetools.api.models.mcp_server.McpServerAddToolActionBuilder.of(); + } + + public com.commercetools.api.models.mcp_server.McpServerAddToolCustomizationActionBuilder addToolCustomizationBuilder() { + return com.commercetools.api.models.mcp_server.McpServerAddToolCustomizationActionBuilder.of(); + } + + public com.commercetools.api.models.mcp_server.McpServerRemoveToolActionBuilder removeToolBuilder() { + return com.commercetools.api.models.mcp_server.McpServerRemoveToolActionBuilder.of(); + } + + public com.commercetools.api.models.mcp_server.McpServerRemoveToolCustomizationActionBuilder removeToolCustomizationBuilder() { + return com.commercetools.api.models.mcp_server.McpServerRemoveToolCustomizationActionBuilder.of(); + } + + public com.commercetools.api.models.mcp_server.McpServerSetDescriptionActionBuilder setDescriptionBuilder() { + return com.commercetools.api.models.mcp_server.McpServerSetDescriptionActionBuilder.of(); + } + + public com.commercetools.api.models.mcp_server.McpServerSetJsonOutputFilteringActionBuilder setJsonOutputFilteringBuilder() { + return com.commercetools.api.models.mcp_server.McpServerSetJsonOutputFilteringActionBuilder.of(); + } + + public com.commercetools.api.models.mcp_server.McpServerSetNameActionBuilder setNameBuilder() { + return com.commercetools.api.models.mcp_server.McpServerSetNameActionBuilder.of(); + } + + public com.commercetools.api.models.mcp_server.McpServerSetStateActionBuilder setStateBuilder() { + return com.commercetools.api.models.mcp_server.McpServerSetStateActionBuilder.of(); + } + + public com.commercetools.api.models.mcp_server.McpServerSetToolCustomizationsActionBuilder setToolCustomizationsBuilder() { + return com.commercetools.api.models.mcp_server.McpServerSetToolCustomizationsActionBuilder.of(); + } + + public com.commercetools.api.models.mcp_server.McpServerSetToolOutputFormattingActionBuilder setToolOutputFormattingBuilder() { + return com.commercetools.api.models.mcp_server.McpServerSetToolOutputFormattingActionBuilder.of(); + } + + public com.commercetools.api.models.mcp_server.McpServerSetToolsActionBuilder setToolsBuilder() { + return com.commercetools.api.models.mcp_server.McpServerSetToolsActionBuilder.of(); + } + + /** + * factory method for an instance of McpServerUpdateActionBuilder + * @return builder + */ + public static McpServerUpdateActionBuilder of() { + return new McpServerUpdateActionBuilder(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerUpdateActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerUpdateActionImpl.java new file mode 100644 index 0000000000..7dde06b655 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerUpdateActionImpl.java @@ -0,0 +1,77 @@ + +package com.commercetools.api.models.mcp_server; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; + +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; + +import tools.jackson.databind.annotation.*; + +/** + *

    Base type for MCP Server update actions. The action discriminator identifies the concrete update action to perform.

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

    Identifies the update action to perform, such as addTool, removeTool, or setTools.

    + */ + + public String getAction() { + return this.action; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + McpServerUpdateActionImpl that = (McpServerUpdateActionImpl) o; + + return new EqualsBuilder().append(action, that.action).append(action, that.action).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(action).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("action", action).build(); + } + + @Override + public McpServerUpdateAction copyDeep() { + return McpServerUpdateAction.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerUpdateBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerUpdateBuilder.java new file mode 100644 index 0000000000..23f7781e1e --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerUpdateBuilder.java @@ -0,0 +1,166 @@ + +package com.commercetools.api.models.mcp_server; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * McpServerUpdateBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     McpServerUpdate mcpServerUpdate = McpServerUpdate.builder()
    + *             .version(0.3)
    + *             .plusActions(actionsBuilder -> actionsBuilder)
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class McpServerUpdateBuilder implements Builder { + + private Long version; + + private java.util.List actions; + + /** + *

    Expected version of the MCP Server on which the changes should be applied. If the expected version does not match the actual version, a ConcurrentModification error is returned.

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

    Update actions to be performed on the MCP Server.

    + * @param actions value to be set + * @return Builder + */ + + public McpServerUpdateBuilder actions( + final com.commercetools.api.models.mcp_server.McpServerUpdateAction... actions) { + this.actions = new ArrayList<>(Arrays.asList(actions)); + return this; + } + + /** + *

    Update actions to be performed on the MCP Server.

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

    Update actions to be performed on the MCP Server.

    + * @param actions value to be set + * @return Builder + */ + + public McpServerUpdateBuilder plusActions( + final com.commercetools.api.models.mcp_server.McpServerUpdateAction... actions) { + if (this.actions == null) { + this.actions = new ArrayList<>(); + } + this.actions.addAll(Arrays.asList(actions)); + return this; + } + + /** + *

    Update actions to be performed on the MCP Server.

    + * @param builder function to build the actions value + * @return Builder + */ + + public McpServerUpdateBuilder plusActions( + Function> builder) { + if (this.actions == null) { + this.actions = new ArrayList<>(); + } + this.actions + .add(builder.apply(com.commercetools.api.models.mcp_server.McpServerUpdateActionBuilder.of()).build()); + return this; + } + + /** + *

    Update actions to be performed on the MCP Server.

    + * @param builder function to build the actions value + * @return Builder + */ + + public McpServerUpdateBuilder withActions( + Function> builder) { + this.actions = new ArrayList<>(); + this.actions + .add(builder.apply(com.commercetools.api.models.mcp_server.McpServerUpdateActionBuilder.of()).build()); + return this; + } + + /** + *

    Expected version of the MCP Server on which the changes should be applied. If the expected version does not match the actual version, a ConcurrentModification error is returned.

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

    Update actions to be performed on the MCP Server.

    + * @return actions + */ + + public java.util.List getActions() { + return this.actions; + } + + /** + * builds McpServerUpdate with checking for non-null required values + * @return McpServerUpdate + */ + public McpServerUpdate build() { + Objects.requireNonNull(version, McpServerUpdate.class + ": version is missing"); + Objects.requireNonNull(actions, McpServerUpdate.class + ": actions is missing"); + return new McpServerUpdateImpl(version, actions); + } + + /** + * builds McpServerUpdate without checking for non-null required values + * @return McpServerUpdate + */ + public McpServerUpdate buildUnchecked() { + return new McpServerUpdateImpl(version, actions); + } + + /** + * factory method for an instance of McpServerUpdateBuilder + * @return builder + */ + public static McpServerUpdateBuilder of() { + return new McpServerUpdateBuilder(); + } + + /** + * create builder for McpServerUpdate instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static McpServerUpdateBuilder of(final McpServerUpdate template) { + McpServerUpdateBuilder builder = new McpServerUpdateBuilder(); + builder.version = template.getVersion(); + builder.actions = template.getActions(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerUpdateImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerUpdateImpl.java new file mode 100644 index 0000000000..acc834e0ea --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/McpServerUpdateImpl.java @@ -0,0 +1,108 @@ + +package com.commercetools.api.models.mcp_server; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; + +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; + +import tools.jackson.databind.annotation.*; + +/** + *

    Update payload for an MCP Server. Specifies the expected version and the update actions to apply.

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

    Expected version of the MCP Server on which the changes should be applied. If the expected version does not match the actual version, a ConcurrentModification error is returned.

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

    Update actions to be performed on the MCP Server.

    + */ + + public java.util.List getActions() { + return this.actions; + } + + public void setVersion(final Long version) { + this.version = version; + } + + public void setActions(final com.commercetools.api.models.mcp_server.McpServerUpdateAction... actions) { + this.actions = new ArrayList<>(Arrays.asList(actions)); + } + + public void setActions( + final java.util.List actions) { + this.actions = actions; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + McpServerUpdateImpl that = (McpServerUpdateImpl) o; + + return new EqualsBuilder().append(version, that.version) + .append(actions, that.actions) + .append(version, that.version) + .append(actions, that.actions) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(version).append(actions).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("version", version) + .append("actions", actions) + .build(); + } + + @Override + public McpServerUpdate copyDeep() { + return McpServerUpdate.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/ParameterOverride.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/ParameterOverride.java new file mode 100644 index 0000000000..1f11188c57 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/ParameterOverride.java @@ -0,0 +1,200 @@ + +package com.commercetools.api.models.mcp_server; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.fasterxml.jackson.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.constraints.NotNull; +import tools.jackson.databind.annotation.*; + +/** + *

    Override applied to a single parameter of a tool's input schema. At least one of description, const, default, or allowedTypes must be present. const is mutually exclusive with both default and allowedTypes. Parameter values are JSON values.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     ParameterOverride parameterOverride = ParameterOverride.builder()
    + *             .name("{name}")
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ParameterOverrideImpl.class) +public interface ParameterOverride { + + /** + *

    Name of the parameter in the tool's input schema to override.

    + * @return name + */ + @NotNull + @JsonProperty("name") + public String getName(); + + /** + *

    Replacement description for the parameter, shown to the AI agent.

    + * @return description + */ + + @JsonProperty("description") + public String getDescription(); + + /** + *

    Pins the parameter to a fixed value. Mutually exclusive with default and allowedTypes.

    + * @return const + */ + + @JsonProperty("const") + public Object getConst(); + + /** + *

    Default value applied when the caller omits the parameter. Mutually exclusive with const.

    + * @return default + */ + + @JsonProperty("default") + public Object getDefault(); + + /** + *

    Restricts accepted values to this set. Mutually exclusive with const.

    + * @return allowedTypes + */ + + @JsonProperty("allowedTypes") + public List getAllowedTypes(); + + /** + *

    Name of the parameter in the tool's input schema to override.

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

    Replacement description for the parameter, shown to the AI agent.

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

    Pins the parameter to a fixed value. Mutually exclusive with default and allowedTypes.

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

    Default value applied when the caller omits the parameter. Mutually exclusive with const.

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

    Restricts accepted values to this set. Mutually exclusive with const.

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

    Restricts accepted values to this set. Mutually exclusive with const.

    + * @param allowedTypes values to be set + */ + + public void setAllowedTypes(final List allowedTypes); + + /** + * factory method + * @return instance of ParameterOverride + */ + public static ParameterOverride of() { + return new ParameterOverrideImpl(); + } + + /** + * factory method to create a shallow copy ParameterOverride + * @param template instance to be copied + * @return copy instance + */ + public static ParameterOverride of(final ParameterOverride template) { + ParameterOverrideImpl instance = new ParameterOverrideImpl(); + instance.setName(template.getName()); + instance.setDescription(template.getDescription()); + instance.setConst(template.getConst()); + instance.setDefault(template.getDefault()); + instance.setAllowedTypes(template.getAllowedTypes()); + return instance; + } + + public ParameterOverride copyDeep(); + + /** + * factory method to create a deep copy of ParameterOverride + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ParameterOverride deepCopy(@Nullable final ParameterOverride template) { + if (template == null) { + return null; + } + ParameterOverrideImpl instance = new ParameterOverrideImpl(); + instance.setName(template.getName()); + instance.setDescription(template.getDescription()); + instance.setConst(template.getConst()); + instance.setDefault(template.getDefault()); + instance.setAllowedTypes(Optional.ofNullable(template.getAllowedTypes()).map(ArrayList::new).orElse(null)); + return instance; + } + + /** + * builder factory method for ParameterOverride + * @return builder + */ + public static ParameterOverrideBuilder builder() { + return ParameterOverrideBuilder.of(); + } + + /** + * create builder for ParameterOverride instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ParameterOverrideBuilder builder(final ParameterOverride template) { + return ParameterOverrideBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withParameterOverride(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static tools.jackson.core.type.TypeReference typeReference() { + return new tools.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/mcp_server/ParameterOverrideBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/ParameterOverrideBuilder.java new file mode 100644 index 0000000000..141ed3e6d4 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/ParameterOverrideBuilder.java @@ -0,0 +1,209 @@ + +package com.commercetools.api.models.mcp_server; + +import java.util.*; + +import javax.annotation.Nullable; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ParameterOverrideBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     ParameterOverride parameterOverride = ParameterOverride.builder()
    + *             .name("{name}")
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ParameterOverrideBuilder implements Builder { + + private String name; + + @Nullable + private String description; + + @Nullable + private java.lang.Object _const; + + @Nullable + private java.lang.Object _default; + + @Nullable + private java.util.List allowedTypes; + + /** + *

    Name of the parameter in the tool's input schema to override.

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

    Replacement description for the parameter, shown to the AI agent.

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

    Pins the parameter to a fixed value. Mutually exclusive with default and allowedTypes.

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

    Default value applied when the caller omits the parameter. Mutually exclusive with const.

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

    Restricts accepted values to this set. Mutually exclusive with const.

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

    Restricts accepted values to this set. Mutually exclusive with const.

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

    Restricts accepted values to this set. Mutually exclusive with const.

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

    Name of the parameter in the tool's input schema to override.

    + * @return name + */ + + public String getName() { + return this.name; + } + + /** + *

    Replacement description for the parameter, shown to the AI agent.

    + * @return description + */ + + @Nullable + public String getDescription() { + return this.description; + } + + /** + *

    Pins the parameter to a fixed value. Mutually exclusive with default and allowedTypes.

    + * @return const + */ + + @Nullable + public java.lang.Object getConst() { + return this._const; + } + + /** + *

    Default value applied when the caller omits the parameter. Mutually exclusive with const.

    + * @return default + */ + + @Nullable + public java.lang.Object getDefault() { + return this._default; + } + + /** + *

    Restricts accepted values to this set. Mutually exclusive with const.

    + * @return allowedTypes + */ + + @Nullable + public java.util.List getAllowedTypes() { + return this.allowedTypes; + } + + /** + * builds ParameterOverride with checking for non-null required values + * @return ParameterOverride + */ + public ParameterOverride build() { + Objects.requireNonNull(name, ParameterOverride.class + ": name is missing"); + return new ParameterOverrideImpl(name, description, _const, _default, allowedTypes); + } + + /** + * builds ParameterOverride without checking for non-null required values + * @return ParameterOverride + */ + public ParameterOverride buildUnchecked() { + return new ParameterOverrideImpl(name, description, _const, _default, allowedTypes); + } + + /** + * factory method for an instance of ParameterOverrideBuilder + * @return builder + */ + public static ParameterOverrideBuilder of() { + return new ParameterOverrideBuilder(); + } + + /** + * create builder for ParameterOverride instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ParameterOverrideBuilder of(final ParameterOverride template) { + ParameterOverrideBuilder builder = new ParameterOverrideBuilder(); + builder.name = template.getName(); + builder.description = template.getDescription(); + builder._const = template.getConst(); + builder._default = template.getDefault(); + builder.allowedTypes = template.getAllowedTypes(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/ParameterOverrideImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/ParameterOverrideImpl.java new file mode 100644 index 0000000000..6d011db062 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/ParameterOverrideImpl.java @@ -0,0 +1,168 @@ + +package com.commercetools.api.models.mcp_server; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; + +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; + +import tools.jackson.databind.annotation.*; + +/** + *

    Override applied to a single parameter of a tool's input schema. At least one of description, const, default, or allowedTypes must be present. const is mutually exclusive with both default and allowedTypes. Parameter values are JSON values.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ParameterOverrideImpl implements ParameterOverride, ModelBase { + + private String name; + + private String description; + + private java.lang.Object _const; + + private java.lang.Object _default; + + private java.util.List allowedTypes; + + /** + * create instance with all properties + */ + @JsonCreator + ParameterOverrideImpl(@JsonProperty("name") final String name, + @JsonProperty("description") final String description, @JsonProperty("const") final java.lang.Object _const, + @JsonProperty("default") final java.lang.Object _default, + @JsonProperty("allowedTypes") final java.util.List allowedTypes) { + this.name = name; + this.description = description; + this._const = _const; + this._default = _default; + this.allowedTypes = allowedTypes; + } + + /** + * create empty instance + */ + public ParameterOverrideImpl() { + } + + /** + *

    Name of the parameter in the tool's input schema to override.

    + */ + + public String getName() { + return this.name; + } + + /** + *

    Replacement description for the parameter, shown to the AI agent.

    + */ + + public String getDescription() { + return this.description; + } + + /** + *

    Pins the parameter to a fixed value. Mutually exclusive with default and allowedTypes.

    + */ + + public java.lang.Object getConst() { + return this._const; + } + + /** + *

    Default value applied when the caller omits the parameter. Mutually exclusive with const.

    + */ + + public java.lang.Object getDefault() { + return this._default; + } + + /** + *

    Restricts accepted values to this set. Mutually exclusive with const.

    + */ + + public java.util.List getAllowedTypes() { + return this.allowedTypes; + } + + public void setName(final String name) { + this.name = name; + } + + public void setDescription(final String description) { + this.description = description; + } + + public void setConst(final java.lang.Object _const) { + this._const = _const; + } + + public void setDefault(final java.lang.Object _default) { + this._default = _default; + } + + public void setAllowedTypes(final java.lang.Object... allowedTypes) { + this.allowedTypes = new ArrayList<>(Arrays.asList(allowedTypes)); + } + + public void setAllowedTypes(final java.util.List allowedTypes) { + this.allowedTypes = allowedTypes; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ParameterOverrideImpl that = (ParameterOverrideImpl) o; + + return new EqualsBuilder().append(name, that.name) + .append(description, that.description) + .append(_const, that._const) + .append(_default, that._default) + .append(allowedTypes, that.allowedTypes) + .append(name, that.name) + .append(description, that.description) + .append(_const, that._const) + .append(_default, that._default) + .append(allowedTypes, that.allowedTypes) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(name) + .append(description) + .append(_const) + .append(_default) + .append(allowedTypes) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("name", name) + .append("description", description) + .append("const", _const) + .append("default", _default) + .append("allowedTypes", allowedTypes) + .build(); + } + + @Override + public ParameterOverride copyDeep() { + return ParameterOverride.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/RemoveToolCustomizationTarget.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/RemoveToolCustomizationTarget.java new file mode 100644 index 0000000000..a4bc8b28be --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/RemoveToolCustomizationTarget.java @@ -0,0 +1,124 @@ + +package com.commercetools.api.models.mcp_server; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.fasterxml.jackson.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.constraints.NotNull; +import tools.jackson.databind.annotation.*; + +/** + *

    Identifies a tool customization to remove by its tool name.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     RemoveToolCustomizationTarget removeToolCustomizationTarget = RemoveToolCustomizationTarget.builder()
    + *             .tool(McpServerTool.ALL)
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = RemoveToolCustomizationTargetImpl.class) +public interface RemoveToolCustomizationTarget { + + /** + *

    Name of the tool whose customization is removed.

    + * @return tool + */ + @NotNull + @JsonProperty("tool") + public McpServerTool getTool(); + + /** + *

    Name of the tool whose customization is removed.

    + * @param tool value to be set + */ + + public void setTool(final McpServerTool tool); + + /** + * factory method + * @return instance of RemoveToolCustomizationTarget + */ + public static RemoveToolCustomizationTarget of() { + return new RemoveToolCustomizationTargetImpl(); + } + + /** + * factory method to create a shallow copy RemoveToolCustomizationTarget + * @param template instance to be copied + * @return copy instance + */ + public static RemoveToolCustomizationTarget of(final RemoveToolCustomizationTarget template) { + RemoveToolCustomizationTargetImpl instance = new RemoveToolCustomizationTargetImpl(); + instance.setTool(template.getTool()); + return instance; + } + + public RemoveToolCustomizationTarget copyDeep(); + + /** + * factory method to create a deep copy of RemoveToolCustomizationTarget + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static RemoveToolCustomizationTarget deepCopy(@Nullable final RemoveToolCustomizationTarget template) { + if (template == null) { + return null; + } + RemoveToolCustomizationTargetImpl instance = new RemoveToolCustomizationTargetImpl(); + instance.setTool(template.getTool()); + return instance; + } + + /** + * builder factory method for RemoveToolCustomizationTarget + * @return builder + */ + public static RemoveToolCustomizationTargetBuilder builder() { + return RemoveToolCustomizationTargetBuilder.of(); + } + + /** + * create builder for RemoveToolCustomizationTarget instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static RemoveToolCustomizationTargetBuilder builder(final RemoveToolCustomizationTarget template) { + return RemoveToolCustomizationTargetBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withRemoveToolCustomizationTarget(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static tools.jackson.core.type.TypeReference typeReference() { + return new tools.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/mcp_server/RemoveToolCustomizationTargetBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/RemoveToolCustomizationTargetBuilder.java new file mode 100644 index 0000000000..074a033c26 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/RemoveToolCustomizationTargetBuilder.java @@ -0,0 +1,82 @@ + +package com.commercetools.api.models.mcp_server; + +import java.util.*; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * RemoveToolCustomizationTargetBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     RemoveToolCustomizationTarget removeToolCustomizationTarget = RemoveToolCustomizationTarget.builder()
    + *             .tool(McpServerTool.ALL)
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class RemoveToolCustomizationTargetBuilder implements Builder { + + private com.commercetools.api.models.mcp_server.McpServerTool tool; + + /** + *

    Name of the tool whose customization is removed.

    + * @param tool value to be set + * @return Builder + */ + + public RemoveToolCustomizationTargetBuilder tool(final com.commercetools.api.models.mcp_server.McpServerTool tool) { + this.tool = tool; + return this; + } + + /** + *

    Name of the tool whose customization is removed.

    + * @return tool + */ + + public com.commercetools.api.models.mcp_server.McpServerTool getTool() { + return this.tool; + } + + /** + * builds RemoveToolCustomizationTarget with checking for non-null required values + * @return RemoveToolCustomizationTarget + */ + public RemoveToolCustomizationTarget build() { + Objects.requireNonNull(tool, RemoveToolCustomizationTarget.class + ": tool is missing"); + return new RemoveToolCustomizationTargetImpl(tool); + } + + /** + * builds RemoveToolCustomizationTarget without checking for non-null required values + * @return RemoveToolCustomizationTarget + */ + public RemoveToolCustomizationTarget buildUnchecked() { + return new RemoveToolCustomizationTargetImpl(tool); + } + + /** + * factory method for an instance of RemoveToolCustomizationTargetBuilder + * @return builder + */ + public static RemoveToolCustomizationTargetBuilder of() { + return new RemoveToolCustomizationTargetBuilder(); + } + + /** + * create builder for RemoveToolCustomizationTarget instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static RemoveToolCustomizationTargetBuilder of(final RemoveToolCustomizationTarget template) { + RemoveToolCustomizationTargetBuilder builder = new RemoveToolCustomizationTargetBuilder(); + builder.tool = template.getTool(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/RemoveToolCustomizationTargetImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/RemoveToolCustomizationTargetImpl.java new file mode 100644 index 0000000000..a8eb4b3fc7 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/RemoveToolCustomizationTargetImpl.java @@ -0,0 +1,82 @@ + +package com.commercetools.api.models.mcp_server; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; + +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; + +import tools.jackson.databind.annotation.*; + +/** + *

    Identifies a tool customization to remove by its tool name.

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

    Name of the tool whose customization is removed.

    + */ + + public com.commercetools.api.models.mcp_server.McpServerTool getTool() { + return this.tool; + } + + public void setTool(final com.commercetools.api.models.mcp_server.McpServerTool tool) { + this.tool = tool; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + RemoveToolCustomizationTargetImpl that = (RemoveToolCustomizationTargetImpl) o; + + return new EqualsBuilder().append(tool, that.tool).append(tool, that.tool).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(tool).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("tool", tool).build(); + } + + @Override + public RemoveToolCustomizationTarget copyDeep() { + return RemoveToolCustomizationTarget.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/ToolCustomization.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/ToolCustomization.java new file mode 100644 index 0000000000..34ee8cfe39 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/ToolCustomization.java @@ -0,0 +1,172 @@ + +package com.commercetools.api.models.mcp_server; + +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 io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; +import tools.jackson.databind.annotation.*; + +/** + *

    Customization applied to a single tool at tools/list and tools/call time. At least one of description or a non-empty parameters list must be present; a customization with neither has no effect and is rejected. Parameter names within parameters must be unique.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     ToolCustomization toolCustomization = ToolCustomization.builder()
    + *             .tool(McpServerTool.ALL)
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ToolCustomizationImpl.class) +public interface ToolCustomization { + + /** + *

    Name of the tool to customize, such as read_products or create_orders. Must be one of the tools enabled on the MCP Server.

    + * @return tool + */ + @NotNull + @JsonProperty("tool") + public McpServerTool getTool(); + + /** + *

    Replacement description for the tool, shown to the AI agent.

    + * @return description + */ + + @JsonProperty("description") + public String getDescription(); + + /** + *

    Overrides applied to individual parameters of the tool's input schema.

    + * @return parameters + */ + @Valid + @JsonProperty("parameters") + public List getParameters(); + + /** + *

    Name of the tool to customize, such as read_products or create_orders. Must be one of the tools enabled on the MCP Server.

    + * @param tool value to be set + */ + + public void setTool(final McpServerTool tool); + + /** + *

    Replacement description for the tool, shown to the AI agent.

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

    Overrides applied to individual parameters of the tool's input schema.

    + * @param parameters values to be set + */ + + @JsonIgnore + public void setParameters(final ParameterOverride... parameters); + + /** + *

    Overrides applied to individual parameters of the tool's input schema.

    + * @param parameters values to be set + */ + + public void setParameters(final List parameters); + + /** + * factory method + * @return instance of ToolCustomization + */ + public static ToolCustomization of() { + return new ToolCustomizationImpl(); + } + + /** + * factory method to create a shallow copy ToolCustomization + * @param template instance to be copied + * @return copy instance + */ + public static ToolCustomization of(final ToolCustomization template) { + ToolCustomizationImpl instance = new ToolCustomizationImpl(); + instance.setTool(template.getTool()); + instance.setDescription(template.getDescription()); + instance.setParameters(template.getParameters()); + return instance; + } + + public ToolCustomization copyDeep(); + + /** + * factory method to create a deep copy of ToolCustomization + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ToolCustomization deepCopy(@Nullable final ToolCustomization template) { + if (template == null) { + return null; + } + ToolCustomizationImpl instance = new ToolCustomizationImpl(); + instance.setTool(template.getTool()); + instance.setDescription(template.getDescription()); + instance.setParameters(Optional.ofNullable(template.getParameters()) + .map(t -> t.stream() + .map(com.commercetools.api.models.mcp_server.ParameterOverride::deepCopy) + .collect(Collectors.toList())) + .orElse(null)); + return instance; + } + + /** + * builder factory method for ToolCustomization + * @return builder + */ + public static ToolCustomizationBuilder builder() { + return ToolCustomizationBuilder.of(); + } + + /** + * create builder for ToolCustomization instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ToolCustomizationBuilder builder(final ToolCustomization template) { + return ToolCustomizationBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withToolCustomization(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static tools.jackson.core.type.TypeReference typeReference() { + return new tools.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/mcp_server/ToolCustomizationBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/ToolCustomizationBuilder.java new file mode 100644 index 0000000000..94329507a4 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/ToolCustomizationBuilder.java @@ -0,0 +1,215 @@ + +package com.commercetools.api.models.mcp_server; + +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; + +/** + * ToolCustomizationBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     ToolCustomization toolCustomization = ToolCustomization.builder()
    + *             .tool(McpServerTool.ALL)
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ToolCustomizationBuilder implements Builder { + + private com.commercetools.api.models.mcp_server.McpServerTool tool; + + @Nullable + private String description; + + @Nullable + private java.util.List parameters; + + /** + *

    Name of the tool to customize, such as read_products or create_orders. Must be one of the tools enabled on the MCP Server.

    + * @param tool value to be set + * @return Builder + */ + + public ToolCustomizationBuilder tool(final com.commercetools.api.models.mcp_server.McpServerTool tool) { + this.tool = tool; + return this; + } + + /** + *

    Replacement description for the tool, shown to the AI agent.

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

    Overrides applied to individual parameters of the tool's input schema.

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

    Overrides applied to individual parameters of the tool's input schema.

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

    Overrides applied to individual parameters of the tool's input schema.

    + * @param parameters value to be set + * @return Builder + */ + + public ToolCustomizationBuilder plusParameters( + @Nullable final com.commercetools.api.models.mcp_server.ParameterOverride... parameters) { + if (this.parameters == null) { + this.parameters = new ArrayList<>(); + } + this.parameters.addAll(Arrays.asList(parameters)); + return this; + } + + /** + *

    Overrides applied to individual parameters of the tool's input schema.

    + * @param builder function to build the parameters value + * @return Builder + */ + + public ToolCustomizationBuilder plusParameters( + Function builder) { + if (this.parameters == null) { + this.parameters = new ArrayList<>(); + } + this.parameters + .add(builder.apply(com.commercetools.api.models.mcp_server.ParameterOverrideBuilder.of()).build()); + return this; + } + + /** + *

    Overrides applied to individual parameters of the tool's input schema.

    + * @param builder function to build the parameters value + * @return Builder + */ + + public ToolCustomizationBuilder withParameters( + Function builder) { + this.parameters = new ArrayList<>(); + this.parameters + .add(builder.apply(com.commercetools.api.models.mcp_server.ParameterOverrideBuilder.of()).build()); + return this; + } + + /** + *

    Overrides applied to individual parameters of the tool's input schema.

    + * @param builder function to build the parameters value + * @return Builder + */ + + public ToolCustomizationBuilder addParameters( + Function builder) { + return plusParameters(builder.apply(com.commercetools.api.models.mcp_server.ParameterOverrideBuilder.of())); + } + + /** + *

    Overrides applied to individual parameters of the tool's input schema.

    + * @param builder function to build the parameters value + * @return Builder + */ + + public ToolCustomizationBuilder setParameters( + Function builder) { + return parameters(builder.apply(com.commercetools.api.models.mcp_server.ParameterOverrideBuilder.of())); + } + + /** + *

    Name of the tool to customize, such as read_products or create_orders. Must be one of the tools enabled on the MCP Server.

    + * @return tool + */ + + public com.commercetools.api.models.mcp_server.McpServerTool getTool() { + return this.tool; + } + + /** + *

    Replacement description for the tool, shown to the AI agent.

    + * @return description + */ + + @Nullable + public String getDescription() { + return this.description; + } + + /** + *

    Overrides applied to individual parameters of the tool's input schema.

    + * @return parameters + */ + + @Nullable + public java.util.List getParameters() { + return this.parameters; + } + + /** + * builds ToolCustomization with checking for non-null required values + * @return ToolCustomization + */ + public ToolCustomization build() { + Objects.requireNonNull(tool, ToolCustomization.class + ": tool is missing"); + return new ToolCustomizationImpl(tool, description, parameters); + } + + /** + * builds ToolCustomization without checking for non-null required values + * @return ToolCustomization + */ + public ToolCustomization buildUnchecked() { + return new ToolCustomizationImpl(tool, description, parameters); + } + + /** + * factory method for an instance of ToolCustomizationBuilder + * @return builder + */ + public static ToolCustomizationBuilder of() { + return new ToolCustomizationBuilder(); + } + + /** + * create builder for ToolCustomization instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ToolCustomizationBuilder of(final ToolCustomization template) { + ToolCustomizationBuilder builder = new ToolCustomizationBuilder(); + builder.tool = template.getTool(); + builder.description = template.getDescription(); + builder.parameters = template.getParameters(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/ToolCustomizationImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/ToolCustomizationImpl.java new file mode 100644 index 0000000000..19ca86acb9 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/mcp_server/ToolCustomizationImpl.java @@ -0,0 +1,127 @@ + +package com.commercetools.api.models.mcp_server; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; + +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; + +import tools.jackson.databind.annotation.*; + +/** + *

    Customization applied to a single tool at tools/list and tools/call time. At least one of description or a non-empty parameters list must be present; a customization with neither has no effect and is rejected. Parameter names within parameters must be unique.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ToolCustomizationImpl implements ToolCustomization, ModelBase { + + private com.commercetools.api.models.mcp_server.McpServerTool tool; + + private String description; + + private java.util.List parameters; + + /** + * create instance with all properties + */ + @JsonCreator + ToolCustomizationImpl(@JsonProperty("tool") final com.commercetools.api.models.mcp_server.McpServerTool tool, + @JsonProperty("description") final String description, + @JsonProperty("parameters") final java.util.List parameters) { + this.tool = tool; + this.description = description; + this.parameters = parameters; + } + + /** + * create empty instance + */ + public ToolCustomizationImpl() { + } + + /** + *

    Name of the tool to customize, such as read_products or create_orders. Must be one of the tools enabled on the MCP Server.

    + */ + + public com.commercetools.api.models.mcp_server.McpServerTool getTool() { + return this.tool; + } + + /** + *

    Replacement description for the tool, shown to the AI agent.

    + */ + + public String getDescription() { + return this.description; + } + + /** + *

    Overrides applied to individual parameters of the tool's input schema.

    + */ + + public java.util.List getParameters() { + return this.parameters; + } + + public void setTool(final com.commercetools.api.models.mcp_server.McpServerTool tool) { + this.tool = tool; + } + + public void setDescription(final String description) { + this.description = description; + } + + public void setParameters(final com.commercetools.api.models.mcp_server.ParameterOverride... parameters) { + this.parameters = new ArrayList<>(Arrays.asList(parameters)); + } + + public void setParameters( + final java.util.List parameters) { + this.parameters = parameters; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ToolCustomizationImpl that = (ToolCustomizationImpl) o; + + return new EqualsBuilder().append(tool, that.tool) + .append(description, that.description) + .append(parameters, that.parameters) + .append(tool, that.tool) + .append(description, that.description) + .append(parameters, that.parameters) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(tool).append(description).append(parameters).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("tool", tool) + .append("description", description) + .append("parameters", parameters) + .build(); + } + + @Override + public ToolCustomization copyDeep() { + return ToolCustomization.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/expansion/mcp_server/McpServerExpansionBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/expansion/mcp_server/McpServerExpansionBuilderDsl.java new file mode 100644 index 0000000000..a4ce3de150 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/expansion/mcp_server/McpServerExpansionBuilderDsl.java @@ -0,0 +1,41 @@ + +package com.commercetools.api.predicates.expansion.mcp_server; + +import static com.commercetools.api.predicates.expansion.ExpansionUtil.appendOne; + +import java.util.Collections; +import java.util.List; + +import com.commercetools.api.predicates.expansion.ExpansionDsl; + +public class McpServerExpansionBuilderDsl implements ExpansionDsl { + + private final List path; + + private McpServerExpansionBuilderDsl(final List path) { + this.path = path; + } + + public static McpServerExpansionBuilderDsl of() { + return new McpServerExpansionBuilderDsl(Collections.emptyList()); + } + + public static McpServerExpansionBuilderDsl of(final List path) { + return new McpServerExpansionBuilderDsl(path); + } + + @Override + public List getPath() { + return path; + } + + public com.commercetools.api.predicates.expansion.common.LastModifiedByExpansionBuilderDsl lastModifiedBy() { + return com.commercetools.api.predicates.expansion.common.LastModifiedByExpansionBuilderDsl + .of(appendOne(path, "lastModifiedBy")); + } + + public com.commercetools.api.predicates.expansion.common.CreatedByExpansionBuilderDsl createdBy() { + return com.commercetools.api.predicates.expansion.common.CreatedByExpansionBuilderDsl + .of(appendOne(path, "createdBy")); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/common/BaseResourceQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/common/BaseResourceQueryBuilderDsl.java index 3c59606678..4b10b96337 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/common/BaseResourceQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/common/BaseResourceQueryBuilderDsl.java @@ -148,6 +148,13 @@ public CombinationQueryPredicate asInventoryEntry( BaseResourceQueryBuilderDsl::of); } + public CombinationQueryPredicate asMcpServer( + Function> fn) { + return new CombinationQueryPredicate<>( + fn.apply(com.commercetools.api.predicates.query.mcp_server.McpServerQueryBuilderDsl.of()), + BaseResourceQueryBuilderDsl::of); + } + public CombinationQueryPredicate asMessage( Function> fn) { return new CombinationQueryPredicate<>( diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/CommerceMcpServerConfigDraftQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/CommerceMcpServerConfigDraftQueryBuilderDsl.java new file mode 100644 index 0000000000..aadf93aa5d --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/CommerceMcpServerConfigDraftQueryBuilderDsl.java @@ -0,0 +1,66 @@ + +package com.commercetools.api.predicates.query.mcp_server; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class CommerceMcpServerConfigDraftQueryBuilderDsl { + public CommerceMcpServerConfigDraftQueryBuilderDsl() { + } + + public static CommerceMcpServerConfigDraftQueryBuilderDsl of() { + return new CommerceMcpServerConfigDraftQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder type() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("type")), + p -> new CombinationQueryPredicate<>(p, CommerceMcpServerConfigDraftQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder majorVersion() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("majorVersion")), + p -> new CombinationQueryPredicate<>(p, CommerceMcpServerConfigDraftQueryBuilderDsl::of)); + } + + public StringCollectionPredicateBuilder tools() { + return new StringCollectionPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("tools")), + p -> new CombinationQueryPredicate<>(p, CommerceMcpServerConfigDraftQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate toolCustomizations( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("toolCustomizations")) + .inner(fn.apply( + com.commercetools.api.predicates.query.mcp_server.ToolCustomizationQueryBuilderDsl.of())), + CommerceMcpServerConfigDraftQueryBuilderDsl::of); + } + + public CollectionPredicateBuilder toolCustomizations() { + return new CollectionPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("toolCustomizations")), + p -> new CombinationQueryPredicate<>(p, CommerceMcpServerConfigDraftQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate jsonOutputFiltering( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("jsonOutputFiltering")) + .inner(fn.apply( + com.commercetools.api.predicates.query.mcp_server.McpServerJsonOutputFilteringQueryBuilderDsl + .of())), + CommerceMcpServerConfigDraftQueryBuilderDsl::of); + } + + public StringComparisonPredicateBuilder toolOutputFormatting() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("toolOutputFormatting")), + p -> new CombinationQueryPredicate<>(p, CommerceMcpServerConfigDraftQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/CommerceMcpServerConfigQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/CommerceMcpServerConfigQueryBuilderDsl.java new file mode 100644 index 0000000000..88aef5d048 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/CommerceMcpServerConfigQueryBuilderDsl.java @@ -0,0 +1,71 @@ + +package com.commercetools.api.predicates.query.mcp_server; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class CommerceMcpServerConfigQueryBuilderDsl { + public CommerceMcpServerConfigQueryBuilderDsl() { + } + + public static CommerceMcpServerConfigQueryBuilderDsl of() { + return new CommerceMcpServerConfigQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder type() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("type")), + p -> new CombinationQueryPredicate<>(p, CommerceMcpServerConfigQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder majorVersion() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("majorVersion")), + p -> new CombinationQueryPredicate<>(p, CommerceMcpServerConfigQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder url() { + return new StringComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("url")), + p -> new CombinationQueryPredicate<>(p, CommerceMcpServerConfigQueryBuilderDsl::of)); + } + + public StringCollectionPredicateBuilder tools() { + return new StringCollectionPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("tools")), + p -> new CombinationQueryPredicate<>(p, CommerceMcpServerConfigQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate toolCustomizations( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("toolCustomizations")) + .inner(fn.apply( + com.commercetools.api.predicates.query.mcp_server.ToolCustomizationQueryBuilderDsl.of())), + CommerceMcpServerConfigQueryBuilderDsl::of); + } + + public CollectionPredicateBuilder toolCustomizations() { + return new CollectionPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("toolCustomizations")), + p -> new CombinationQueryPredicate<>(p, CommerceMcpServerConfigQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate jsonOutputFiltering( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("jsonOutputFiltering")) + .inner(fn.apply( + com.commercetools.api.predicates.query.mcp_server.McpServerJsonOutputFilteringQueryBuilderDsl + .of())), + CommerceMcpServerConfigQueryBuilderDsl::of); + } + + public StringComparisonPredicateBuilder toolOutputFormatting() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("toolOutputFormatting")), + p -> new CombinationQueryPredicate<>(p, CommerceMcpServerConfigQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerAddToolActionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerAddToolActionQueryBuilderDsl.java new file mode 100644 index 0000000000..eece03e713 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerAddToolActionQueryBuilderDsl.java @@ -0,0 +1,26 @@ + +package com.commercetools.api.predicates.query.mcp_server; + +import com.commercetools.api.predicates.query.*; + +public class McpServerAddToolActionQueryBuilderDsl { + public McpServerAddToolActionQueryBuilderDsl() { + } + + public static McpServerAddToolActionQueryBuilderDsl of() { + return new McpServerAddToolActionQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder action() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("action")), + p -> new CombinationQueryPredicate<>(p, McpServerAddToolActionQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder tool() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("tool")), + p -> new CombinationQueryPredicate<>(p, McpServerAddToolActionQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerAddToolCustomizationActionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerAddToolCustomizationActionQueryBuilderDsl.java new file mode 100644 index 0000000000..e0440b2a6d --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerAddToolCustomizationActionQueryBuilderDsl.java @@ -0,0 +1,32 @@ + +package com.commercetools.api.predicates.query.mcp_server; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class McpServerAddToolCustomizationActionQueryBuilderDsl { + public McpServerAddToolCustomizationActionQueryBuilderDsl() { + } + + public static McpServerAddToolCustomizationActionQueryBuilderDsl of() { + return new McpServerAddToolCustomizationActionQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder action() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("action")), + p -> new CombinationQueryPredicate<>(p, McpServerAddToolCustomizationActionQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate toolCustomization( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("toolCustomization")) + .inner(fn.apply( + com.commercetools.api.predicates.query.mcp_server.ToolCustomizationQueryBuilderDsl.of())), + McpServerAddToolCustomizationActionQueryBuilderDsl::of); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerConfigDraftQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerConfigDraftQueryBuilderDsl.java new file mode 100644 index 0000000000..158bdddbba --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerConfigDraftQueryBuilderDsl.java @@ -0,0 +1,29 @@ + +package com.commercetools.api.predicates.query.mcp_server; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class McpServerConfigDraftQueryBuilderDsl { + public McpServerConfigDraftQueryBuilderDsl() { + } + + public static McpServerConfigDraftQueryBuilderDsl of() { + return new McpServerConfigDraftQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder type() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("type")), + p -> new CombinationQueryPredicate<>(p, McpServerConfigDraftQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate asCommerceMcp( + Function> fn) { + return new CombinationQueryPredicate<>( + fn.apply( + com.commercetools.api.predicates.query.mcp_server.CommerceMcpServerConfigDraftQueryBuilderDsl.of()), + McpServerConfigDraftQueryBuilderDsl::of); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerConfigQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerConfigQueryBuilderDsl.java new file mode 100644 index 0000000000..29c31790f4 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerConfigQueryBuilderDsl.java @@ -0,0 +1,28 @@ + +package com.commercetools.api.predicates.query.mcp_server; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class McpServerConfigQueryBuilderDsl { + public McpServerConfigQueryBuilderDsl() { + } + + public static McpServerConfigQueryBuilderDsl of() { + return new McpServerConfigQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder type() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("type")), + p -> new CombinationQueryPredicate<>(p, McpServerConfigQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate asCommerceMcp( + Function> fn) { + return new CombinationQueryPredicate<>( + fn.apply(com.commercetools.api.predicates.query.mcp_server.CommerceMcpServerConfigQueryBuilderDsl.of()), + McpServerConfigQueryBuilderDsl::of); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerDraftQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerDraftQueryBuilderDsl.java new file mode 100644 index 0000000000..3185ae52cf --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerDraftQueryBuilderDsl.java @@ -0,0 +1,55 @@ + +package com.commercetools.api.predicates.query.mcp_server; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class McpServerDraftQueryBuilderDsl { + public McpServerDraftQueryBuilderDsl() { + } + + public static McpServerDraftQueryBuilderDsl of() { + return new McpServerDraftQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder key() { + return new StringComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("key")), + p -> new CombinationQueryPredicate<>(p, McpServerDraftQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate name( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("name")) + .inner(fn.apply(com.commercetools.api.predicates.query.common.LocalizedStringQueryBuilderDsl.of())), + McpServerDraftQueryBuilderDsl::of); + } + + public CombinationQueryPredicate description( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("description")) + .inner(fn.apply(com.commercetools.api.predicates.query.common.LocalizedStringQueryBuilderDsl.of())), + McpServerDraftQueryBuilderDsl::of); + } + + public StringComparisonPredicateBuilder state() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("state")), + p -> new CombinationQueryPredicate<>(p, McpServerDraftQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate mcpServer( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("mcpServer")) + .inner(fn.apply( + com.commercetools.api.predicates.query.mcp_server.McpServerConfigDraftQueryBuilderDsl.of())), + McpServerDraftQueryBuilderDsl::of); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerJsonOutputFilteringMatcherQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerJsonOutputFilteringMatcherQueryBuilderDsl.java new file mode 100644 index 0000000000..d4909dc2b3 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerJsonOutputFilteringMatcherQueryBuilderDsl.java @@ -0,0 +1,32 @@ + +package com.commercetools.api.predicates.query.mcp_server; + +import com.commercetools.api.predicates.query.*; + +public class McpServerJsonOutputFilteringMatcherQueryBuilderDsl { + public McpServerJsonOutputFilteringMatcherQueryBuilderDsl() { + } + + public static McpServerJsonOutputFilteringMatcherQueryBuilderDsl of() { + return new McpServerJsonOutputFilteringMatcherQueryBuilderDsl(); + } + + public StringCollectionPredicateBuilder fieldPaths() { + return new StringCollectionPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("fieldPaths")), + p -> new CombinationQueryPredicate<>(p, McpServerJsonOutputFilteringMatcherQueryBuilderDsl::of)); + } + + public StringCollectionPredicateBuilder fieldNames() { + return new StringCollectionPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("fieldNames")), + p -> new CombinationQueryPredicate<>(p, McpServerJsonOutputFilteringMatcherQueryBuilderDsl::of)); + } + + public StringCollectionPredicateBuilder fieldNameContains() { + return new StringCollectionPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("fieldNameContains")), + p -> new CombinationQueryPredicate<>(p, McpServerJsonOutputFilteringMatcherQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerJsonOutputFilteringQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerJsonOutputFilteringQueryBuilderDsl.java new file mode 100644 index 0000000000..c10662b1ff --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerJsonOutputFilteringQueryBuilderDsl.java @@ -0,0 +1,48 @@ + +package com.commercetools.api.predicates.query.mcp_server; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class McpServerJsonOutputFilteringQueryBuilderDsl { + public McpServerJsonOutputFilteringQueryBuilderDsl() { + } + + public static McpServerJsonOutputFilteringQueryBuilderDsl of() { + return new McpServerJsonOutputFilteringQueryBuilderDsl(); + } + + public CombinationQueryPredicate redact( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("redact")) + .inner(fn.apply( + com.commercetools.api.predicates.query.mcp_server.McpServerJsonOutputFilteringMatcherQueryBuilderDsl + .of())), + McpServerJsonOutputFilteringQueryBuilderDsl::of); + } + + public CombinationQueryPredicate drop( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("drop")) + .inner(fn.apply( + com.commercetools.api.predicates.query.mcp_server.McpServerJsonOutputFilteringMatcherQueryBuilderDsl + .of())), + McpServerJsonOutputFilteringQueryBuilderDsl::of); + } + + public StringCollectionPredicateBuilder fieldPathsToKeep() { + return new StringCollectionPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("fieldPathsToKeep")), + p -> new CombinationQueryPredicate<>(p, McpServerJsonOutputFilteringQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder redactedWith() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("redactedWith")), + p -> new CombinationQueryPredicate<>(p, McpServerJsonOutputFilteringQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerPagedQueryResponseQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerPagedQueryResponseQueryBuilderDsl.java new file mode 100644 index 0000000000..46f081adff --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerPagedQueryResponseQueryBuilderDsl.java @@ -0,0 +1,51 @@ + +package com.commercetools.api.predicates.query.mcp_server; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class McpServerPagedQueryResponseQueryBuilderDsl { + public McpServerPagedQueryResponseQueryBuilderDsl() { + } + + public static McpServerPagedQueryResponseQueryBuilderDsl of() { + return new McpServerPagedQueryResponseQueryBuilderDsl(); + } + + public LongComparisonPredicateBuilder limit() { + return new LongComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("limit")), + p -> new CombinationQueryPredicate<>(p, McpServerPagedQueryResponseQueryBuilderDsl::of)); + } + + public LongComparisonPredicateBuilder offset() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("offset")), + p -> new CombinationQueryPredicate<>(p, McpServerPagedQueryResponseQueryBuilderDsl::of)); + } + + public LongComparisonPredicateBuilder count() { + return new LongComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("count")), + p -> new CombinationQueryPredicate<>(p, McpServerPagedQueryResponseQueryBuilderDsl::of)); + } + + public LongComparisonPredicateBuilder total() { + return new LongComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("total")), + p -> new CombinationQueryPredicate<>(p, McpServerPagedQueryResponseQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate results( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("results")) + .inner(fn.apply(com.commercetools.api.predicates.query.mcp_server.McpServerQueryBuilderDsl.of())), + McpServerPagedQueryResponseQueryBuilderDsl::of); + } + + public CollectionPredicateBuilder results() { + return new CollectionPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("results")), + p -> new CombinationQueryPredicate<>(p, McpServerPagedQueryResponseQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerQueryBuilderDsl.java new file mode 100644 index 0000000000..b224f667ce --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerQueryBuilderDsl.java @@ -0,0 +1,96 @@ + +package com.commercetools.api.predicates.query.mcp_server; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class McpServerQueryBuilderDsl { + public McpServerQueryBuilderDsl() { + } + + public static McpServerQueryBuilderDsl of() { + return new McpServerQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder id() { + return new StringComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("id")), + p -> new CombinationQueryPredicate<>(p, McpServerQueryBuilderDsl::of)); + } + + public LongComparisonPredicateBuilder version() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("version")), + p -> new CombinationQueryPredicate<>(p, McpServerQueryBuilderDsl::of)); + } + + public DateTimeComparisonPredicateBuilder createdAt() { + return new DateTimeComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("createdAt")), + p -> new CombinationQueryPredicate<>(p, McpServerQueryBuilderDsl::of)); + } + + public DateTimeComparisonPredicateBuilder lastModifiedAt() { + return new DateTimeComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("lastModifiedAt")), + p -> new CombinationQueryPredicate<>(p, McpServerQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate lastModifiedBy( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("lastModifiedBy")) + .inner(fn.apply(com.commercetools.api.predicates.query.common.LastModifiedByQueryBuilderDsl.of())), + McpServerQueryBuilderDsl::of); + } + + public CombinationQueryPredicate createdBy( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("createdBy")) + .inner(fn.apply(com.commercetools.api.predicates.query.common.CreatedByQueryBuilderDsl.of())), + McpServerQueryBuilderDsl::of); + } + + public StringComparisonPredicateBuilder key() { + return new StringComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("key")), + p -> new CombinationQueryPredicate<>(p, McpServerQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate name( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("name")) + .inner(fn.apply(com.commercetools.api.predicates.query.common.LocalizedStringQueryBuilderDsl.of())), + McpServerQueryBuilderDsl::of); + } + + public CombinationQueryPredicate description( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("description")) + .inner(fn.apply(com.commercetools.api.predicates.query.common.LocalizedStringQueryBuilderDsl.of())), + McpServerQueryBuilderDsl::of); + } + + public StringComparisonPredicateBuilder state() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("state")), + p -> new CombinationQueryPredicate<>(p, McpServerQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate mcpServer( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("mcpServer")) + .inner(fn.apply( + com.commercetools.api.predicates.query.mcp_server.McpServerConfigQueryBuilderDsl.of())), + McpServerQueryBuilderDsl::of); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerRemoveToolActionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerRemoveToolActionQueryBuilderDsl.java new file mode 100644 index 0000000000..edfd798918 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerRemoveToolActionQueryBuilderDsl.java @@ -0,0 +1,26 @@ + +package com.commercetools.api.predicates.query.mcp_server; + +import com.commercetools.api.predicates.query.*; + +public class McpServerRemoveToolActionQueryBuilderDsl { + public McpServerRemoveToolActionQueryBuilderDsl() { + } + + public static McpServerRemoveToolActionQueryBuilderDsl of() { + return new McpServerRemoveToolActionQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder action() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("action")), + p -> new CombinationQueryPredicate<>(p, McpServerRemoveToolActionQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder tool() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("tool")), + p -> new CombinationQueryPredicate<>(p, McpServerRemoveToolActionQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerRemoveToolCustomizationActionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerRemoveToolCustomizationActionQueryBuilderDsl.java new file mode 100644 index 0000000000..46cc66f8d3 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerRemoveToolCustomizationActionQueryBuilderDsl.java @@ -0,0 +1,32 @@ + +package com.commercetools.api.predicates.query.mcp_server; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class McpServerRemoveToolCustomizationActionQueryBuilderDsl { + public McpServerRemoveToolCustomizationActionQueryBuilderDsl() { + } + + public static McpServerRemoveToolCustomizationActionQueryBuilderDsl of() { + return new McpServerRemoveToolCustomizationActionQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder action() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("action")), + p -> new CombinationQueryPredicate<>(p, McpServerRemoveToolCustomizationActionQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate toolCustomization( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("toolCustomization")) + .inner(fn.apply( + com.commercetools.api.predicates.query.mcp_server.RemoveToolCustomizationTargetQueryBuilderDsl + .of())), + McpServerRemoveToolCustomizationActionQueryBuilderDsl::of); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerSetDescriptionActionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerSetDescriptionActionQueryBuilderDsl.java new file mode 100644 index 0000000000..9f060099cc --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerSetDescriptionActionQueryBuilderDsl.java @@ -0,0 +1,31 @@ + +package com.commercetools.api.predicates.query.mcp_server; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class McpServerSetDescriptionActionQueryBuilderDsl { + public McpServerSetDescriptionActionQueryBuilderDsl() { + } + + public static McpServerSetDescriptionActionQueryBuilderDsl of() { + return new McpServerSetDescriptionActionQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder action() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("action")), + p -> new CombinationQueryPredicate<>(p, McpServerSetDescriptionActionQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate description( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("description")) + .inner(fn.apply(com.commercetools.api.predicates.query.common.LocalizedStringQueryBuilderDsl.of())), + McpServerSetDescriptionActionQueryBuilderDsl::of); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerSetJsonOutputFilteringActionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerSetJsonOutputFilteringActionQueryBuilderDsl.java new file mode 100644 index 0000000000..eb341383c4 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerSetJsonOutputFilteringActionQueryBuilderDsl.java @@ -0,0 +1,32 @@ + +package com.commercetools.api.predicates.query.mcp_server; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class McpServerSetJsonOutputFilteringActionQueryBuilderDsl { + public McpServerSetJsonOutputFilteringActionQueryBuilderDsl() { + } + + public static McpServerSetJsonOutputFilteringActionQueryBuilderDsl of() { + return new McpServerSetJsonOutputFilteringActionQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder action() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("action")), + p -> new CombinationQueryPredicate<>(p, McpServerSetJsonOutputFilteringActionQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate jsonOutputFiltering( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("jsonOutputFiltering")) + .inner(fn.apply( + com.commercetools.api.predicates.query.mcp_server.McpServerJsonOutputFilteringQueryBuilderDsl + .of())), + McpServerSetJsonOutputFilteringActionQueryBuilderDsl::of); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerSetNameActionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerSetNameActionQueryBuilderDsl.java new file mode 100644 index 0000000000..66572b98da --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerSetNameActionQueryBuilderDsl.java @@ -0,0 +1,31 @@ + +package com.commercetools.api.predicates.query.mcp_server; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class McpServerSetNameActionQueryBuilderDsl { + public McpServerSetNameActionQueryBuilderDsl() { + } + + public static McpServerSetNameActionQueryBuilderDsl of() { + return new McpServerSetNameActionQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder action() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("action")), + p -> new CombinationQueryPredicate<>(p, McpServerSetNameActionQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate name( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("name")) + .inner(fn.apply(com.commercetools.api.predicates.query.common.LocalizedStringQueryBuilderDsl.of())), + McpServerSetNameActionQueryBuilderDsl::of); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerSetStateActionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerSetStateActionQueryBuilderDsl.java new file mode 100644 index 0000000000..3b01471e80 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerSetStateActionQueryBuilderDsl.java @@ -0,0 +1,26 @@ + +package com.commercetools.api.predicates.query.mcp_server; + +import com.commercetools.api.predicates.query.*; + +public class McpServerSetStateActionQueryBuilderDsl { + public McpServerSetStateActionQueryBuilderDsl() { + } + + public static McpServerSetStateActionQueryBuilderDsl of() { + return new McpServerSetStateActionQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder action() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("action")), + p -> new CombinationQueryPredicate<>(p, McpServerSetStateActionQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder state() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("state")), + p -> new CombinationQueryPredicate<>(p, McpServerSetStateActionQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerSetToolCustomizationsActionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerSetToolCustomizationsActionQueryBuilderDsl.java new file mode 100644 index 0000000000..6f187e5c14 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerSetToolCustomizationsActionQueryBuilderDsl.java @@ -0,0 +1,38 @@ + +package com.commercetools.api.predicates.query.mcp_server; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class McpServerSetToolCustomizationsActionQueryBuilderDsl { + public McpServerSetToolCustomizationsActionQueryBuilderDsl() { + } + + public static McpServerSetToolCustomizationsActionQueryBuilderDsl of() { + return new McpServerSetToolCustomizationsActionQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder action() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("action")), + p -> new CombinationQueryPredicate<>(p, McpServerSetToolCustomizationsActionQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate toolCustomizations( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("toolCustomizations")) + .inner(fn.apply( + com.commercetools.api.predicates.query.mcp_server.ToolCustomizationQueryBuilderDsl.of())), + McpServerSetToolCustomizationsActionQueryBuilderDsl::of); + } + + public CollectionPredicateBuilder toolCustomizations() { + return new CollectionPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("toolCustomizations")), + p -> new CombinationQueryPredicate<>(p, McpServerSetToolCustomizationsActionQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerSetToolOutputFormattingActionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerSetToolOutputFormattingActionQueryBuilderDsl.java new file mode 100644 index 0000000000..bc8852d181 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerSetToolOutputFormattingActionQueryBuilderDsl.java @@ -0,0 +1,26 @@ + +package com.commercetools.api.predicates.query.mcp_server; + +import com.commercetools.api.predicates.query.*; + +public class McpServerSetToolOutputFormattingActionQueryBuilderDsl { + public McpServerSetToolOutputFormattingActionQueryBuilderDsl() { + } + + public static McpServerSetToolOutputFormattingActionQueryBuilderDsl of() { + return new McpServerSetToolOutputFormattingActionQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder action() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("action")), + p -> new CombinationQueryPredicate<>(p, McpServerSetToolOutputFormattingActionQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder toolOutputFormatting() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("toolOutputFormatting")), + p -> new CombinationQueryPredicate<>(p, McpServerSetToolOutputFormattingActionQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerSetToolsActionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerSetToolsActionQueryBuilderDsl.java new file mode 100644 index 0000000000..da65759316 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerSetToolsActionQueryBuilderDsl.java @@ -0,0 +1,26 @@ + +package com.commercetools.api.predicates.query.mcp_server; + +import com.commercetools.api.predicates.query.*; + +public class McpServerSetToolsActionQueryBuilderDsl { + public McpServerSetToolsActionQueryBuilderDsl() { + } + + public static McpServerSetToolsActionQueryBuilderDsl of() { + return new McpServerSetToolsActionQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder action() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("action")), + p -> new CombinationQueryPredicate<>(p, McpServerSetToolsActionQueryBuilderDsl::of)); + } + + public StringCollectionPredicateBuilder tools() { + return new StringCollectionPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("tools")), + p -> new CombinationQueryPredicate<>(p, McpServerSetToolsActionQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerTypeQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerTypeQueryBuilderDsl.java new file mode 100644 index 0000000000..ff787e7907 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerTypeQueryBuilderDsl.java @@ -0,0 +1,43 @@ + +package com.commercetools.api.predicates.query.mcp_server; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class McpServerTypeQueryBuilderDsl { + public McpServerTypeQueryBuilderDsl() { + } + + public static McpServerTypeQueryBuilderDsl of() { + return new McpServerTypeQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder type() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("type")), + p -> new CombinationQueryPredicate<>(p, McpServerTypeQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder majorVersion() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("majorVersion")), + p -> new CombinationQueryPredicate<>(p, McpServerTypeQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate tools( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("tools")) + .inner(fn.apply( + com.commercetools.api.predicates.query.mcp_server.McpServerTypeToolQueryBuilderDsl.of())), + McpServerTypeQueryBuilderDsl::of); + } + + public CollectionPredicateBuilder tools() { + return new CollectionPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("tools")), + p -> new CombinationQueryPredicate<>(p, McpServerTypeQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerTypeToolQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerTypeToolQueryBuilderDsl.java new file mode 100644 index 0000000000..8809dc49de --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerTypeToolQueryBuilderDsl.java @@ -0,0 +1,38 @@ + +package com.commercetools.api.predicates.query.mcp_server; + +import com.commercetools.api.predicates.query.*; + +public class McpServerTypeToolQueryBuilderDsl { + public McpServerTypeToolQueryBuilderDsl() { + } + + public static McpServerTypeToolQueryBuilderDsl of() { + return new McpServerTypeToolQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder name() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("name")), + p -> new CombinationQueryPredicate<>(p, McpServerTypeToolQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder description() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("description")), + p -> new CombinationQueryPredicate<>(p, McpServerTypeToolQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder operationType() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("operationType")), + p -> new CombinationQueryPredicate<>(p, McpServerTypeToolQueryBuilderDsl::of)); + } + + public StringCollectionPredicateBuilder groups() { + return new StringCollectionPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("groups")), + p -> new CombinationQueryPredicate<>(p, McpServerTypeToolQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerUpdateActionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerUpdateActionQueryBuilderDsl.java new file mode 100644 index 0000000000..9e654a8b02 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerUpdateActionQueryBuilderDsl.java @@ -0,0 +1,102 @@ + +package com.commercetools.api.predicates.query.mcp_server; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class McpServerUpdateActionQueryBuilderDsl { + public McpServerUpdateActionQueryBuilderDsl() { + } + + public static McpServerUpdateActionQueryBuilderDsl of() { + return new McpServerUpdateActionQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder action() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("action")), + p -> new CombinationQueryPredicate<>(p, McpServerUpdateActionQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate asAddTool( + Function> fn) { + return new CombinationQueryPredicate<>( + fn.apply(com.commercetools.api.predicates.query.mcp_server.McpServerAddToolActionQueryBuilderDsl.of()), + McpServerUpdateActionQueryBuilderDsl::of); + } + + public CombinationQueryPredicate asAddToolCustomization( + Function> fn) { + return new CombinationQueryPredicate<>(fn.apply( + com.commercetools.api.predicates.query.mcp_server.McpServerAddToolCustomizationActionQueryBuilderDsl.of()), + McpServerUpdateActionQueryBuilderDsl::of); + } + + public CombinationQueryPredicate asRemoveTool( + Function> fn) { + return new CombinationQueryPredicate<>( + fn.apply(com.commercetools.api.predicates.query.mcp_server.McpServerRemoveToolActionQueryBuilderDsl.of()), + McpServerUpdateActionQueryBuilderDsl::of); + } + + public CombinationQueryPredicate asRemoveToolCustomization( + Function> fn) { + return new CombinationQueryPredicate<>(fn.apply( + com.commercetools.api.predicates.query.mcp_server.McpServerRemoveToolCustomizationActionQueryBuilderDsl + .of()), + McpServerUpdateActionQueryBuilderDsl::of); + } + + public CombinationQueryPredicate asSetDescription( + Function> fn) { + return new CombinationQueryPredicate<>( + fn.apply( + com.commercetools.api.predicates.query.mcp_server.McpServerSetDescriptionActionQueryBuilderDsl.of()), + McpServerUpdateActionQueryBuilderDsl::of); + } + + public CombinationQueryPredicate asSetJsonOutputFiltering( + Function> fn) { + return new CombinationQueryPredicate<>(fn.apply( + com.commercetools.api.predicates.query.mcp_server.McpServerSetJsonOutputFilteringActionQueryBuilderDsl + .of()), + McpServerUpdateActionQueryBuilderDsl::of); + } + + public CombinationQueryPredicate asSetName( + Function> fn) { + return new CombinationQueryPredicate<>( + fn.apply(com.commercetools.api.predicates.query.mcp_server.McpServerSetNameActionQueryBuilderDsl.of()), + McpServerUpdateActionQueryBuilderDsl::of); + } + + public CombinationQueryPredicate asSetState( + Function> fn) { + return new CombinationQueryPredicate<>( + fn.apply(com.commercetools.api.predicates.query.mcp_server.McpServerSetStateActionQueryBuilderDsl.of()), + McpServerUpdateActionQueryBuilderDsl::of); + } + + public CombinationQueryPredicate asSetToolCustomizations( + Function> fn) { + return new CombinationQueryPredicate<>(fn.apply( + com.commercetools.api.predicates.query.mcp_server.McpServerSetToolCustomizationsActionQueryBuilderDsl.of()), + McpServerUpdateActionQueryBuilderDsl::of); + } + + public CombinationQueryPredicate asSetToolOutputFormatting( + Function> fn) { + return new CombinationQueryPredicate<>(fn.apply( + com.commercetools.api.predicates.query.mcp_server.McpServerSetToolOutputFormattingActionQueryBuilderDsl + .of()), + McpServerUpdateActionQueryBuilderDsl::of); + } + + public CombinationQueryPredicate asSetTools( + Function> fn) { + return new CombinationQueryPredicate<>( + fn.apply(com.commercetools.api.predicates.query.mcp_server.McpServerSetToolsActionQueryBuilderDsl.of()), + McpServerUpdateActionQueryBuilderDsl::of); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerUpdateQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerUpdateQueryBuilderDsl.java new file mode 100644 index 0000000000..299b755d94 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/McpServerUpdateQueryBuilderDsl.java @@ -0,0 +1,37 @@ + +package com.commercetools.api.predicates.query.mcp_server; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class McpServerUpdateQueryBuilderDsl { + public McpServerUpdateQueryBuilderDsl() { + } + + public static McpServerUpdateQueryBuilderDsl of() { + return new McpServerUpdateQueryBuilderDsl(); + } + + public LongComparisonPredicateBuilder version() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("version")), + p -> new CombinationQueryPredicate<>(p, McpServerUpdateQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate actions( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("actions")) + .inner(fn.apply( + com.commercetools.api.predicates.query.mcp_server.McpServerUpdateActionQueryBuilderDsl.of())), + McpServerUpdateQueryBuilderDsl::of); + } + + public CollectionPredicateBuilder actions() { + return new CollectionPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("actions")), + p -> new CombinationQueryPredicate<>(p, McpServerUpdateQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/ParameterOverrideQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/ParameterOverrideQueryBuilderDsl.java new file mode 100644 index 0000000000..fde0b3d8d6 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/ParameterOverrideQueryBuilderDsl.java @@ -0,0 +1,44 @@ + +package com.commercetools.api.predicates.query.mcp_server; + +import com.commercetools.api.predicates.query.*; + +public class ParameterOverrideQueryBuilderDsl { + public ParameterOverrideQueryBuilderDsl() { + } + + public static ParameterOverrideQueryBuilderDsl of() { + return new ParameterOverrideQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder name() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("name")), + p -> new CombinationQueryPredicate<>(p, ParameterOverrideQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder description() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("description")), + p -> new CombinationQueryPredicate<>(p, ParameterOverrideQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder _const() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("const")), + p -> new CombinationQueryPredicate<>(p, ParameterOverrideQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder _default() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("default")), + p -> new CombinationQueryPredicate<>(p, ParameterOverrideQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder allowedTypes() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("allowedTypes")), + p -> new CombinationQueryPredicate<>(p, ParameterOverrideQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/RemoveToolCustomizationTargetQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/RemoveToolCustomizationTargetQueryBuilderDsl.java new file mode 100644 index 0000000000..1474ce6b68 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/RemoveToolCustomizationTargetQueryBuilderDsl.java @@ -0,0 +1,20 @@ + +package com.commercetools.api.predicates.query.mcp_server; + +import com.commercetools.api.predicates.query.*; + +public class RemoveToolCustomizationTargetQueryBuilderDsl { + public RemoveToolCustomizationTargetQueryBuilderDsl() { + } + + public static RemoveToolCustomizationTargetQueryBuilderDsl of() { + return new RemoveToolCustomizationTargetQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder tool() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("tool")), + p -> new CombinationQueryPredicate<>(p, RemoveToolCustomizationTargetQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/ToolCustomizationQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/ToolCustomizationQueryBuilderDsl.java new file mode 100644 index 0000000000..9d70baae84 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/mcp_server/ToolCustomizationQueryBuilderDsl.java @@ -0,0 +1,44 @@ + +package com.commercetools.api.predicates.query.mcp_server; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class ToolCustomizationQueryBuilderDsl { + public ToolCustomizationQueryBuilderDsl() { + } + + public static ToolCustomizationQueryBuilderDsl of() { + return new ToolCustomizationQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder tool() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("tool")), + p -> new CombinationQueryPredicate<>(p, ToolCustomizationQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder description() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("description")), + p -> new CombinationQueryPredicate<>(p, ToolCustomizationQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate parameters( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("parameters")) + .inner(fn.apply( + com.commercetools.api.predicates.query.mcp_server.ParameterOverrideQueryBuilderDsl.of())), + ToolCustomizationQueryBuilderDsl::of); + } + + public CollectionPredicateBuilder parameters() { + return new CollectionPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("parameters")), + p -> new CombinationQueryPredicate<>(p, ToolCustomizationQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMcpServersByIDTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMcpServersByIDTest.java new file mode 100644 index 0000000000..e457a44102 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMcpServersByIDTest.java @@ -0,0 +1,94 @@ + +package com.commercetools.api.client.resource; + +import java.nio.charset.StandardCharsets; +import java.util.concurrent.CompletableFuture; + +import com.commercetools.api.client.ApiRoot; + +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.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; +import org.mockito.Mockito; + +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyMcpServersByIDTest { + 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(); + + @ParameterizedTest + @MethodSource("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()); + } + + @ParameterizedTest + @MethodSource("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); + } + + @ParameterizedTest + @MethodSource("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); + } + + public static Object[][] requestWithMethodParameters() { + return new Object[][] { new Object[] { + apiRoot.withProjectKey("test_projectKey").mcpServers().withId("test_ID").get().createHttpRequest(), + "get", "test_projectKey/mcp-servers/test_ID", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .mcpServers() + .withId("test_ID") + .post(com.commercetools.api.models.mcp_server.McpServerUpdate.of()) + .createHttpRequest(), "post", "test_projectKey/mcp-servers/test_ID", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .mcpServers() + .withId("test_ID") + .delete() + .withVersion(2) + .createHttpRequest(), "delete", "test_projectKey/mcp-servers/test_ID?version=2", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .mcpServers() + .withId("test_ID") + .delete() + .createHttpRequest(), "delete", "test_projectKey/mcp-servers/test_ID", } }; + } + + public static Object[][] executeMethodParameters() { + return new Object[][] { + new Object[] { apiRoot.withProjectKey("test_projectKey").mcpServers().withId("test_ID").get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .mcpServers() + .withId("test_ID") + .post(com.commercetools.api.models.mcp_server.McpServerUpdate.of()), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .mcpServers() + .withId("test_ID") + .delete() + .withVersion(2), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").mcpServers().withId("test_ID").delete(), } }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMcpServersKeyByKeyTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMcpServersKeyByKeyTest.java new file mode 100644 index 0000000000..ad542b673b --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMcpServersKeyByKeyTest.java @@ -0,0 +1,94 @@ + +package com.commercetools.api.client.resource; + +import java.nio.charset.StandardCharsets; +import java.util.concurrent.CompletableFuture; + +import com.commercetools.api.client.ApiRoot; + +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.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; +import org.mockito.Mockito; + +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyMcpServersKeyByKeyTest { + 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(); + + @ParameterizedTest + @MethodSource("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()); + } + + @ParameterizedTest + @MethodSource("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); + } + + @ParameterizedTest + @MethodSource("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); + } + + public static Object[][] requestWithMethodParameters() { + return new Object[][] { new Object[] { + apiRoot.withProjectKey("test_projectKey").mcpServers().withKey("test_key").get().createHttpRequest(), + "get", "test_projectKey/mcp-servers/key=test_key", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .mcpServers() + .withKey("test_key") + .post(com.commercetools.api.models.mcp_server.McpServerUpdate.of()) + .createHttpRequest(), "post", "test_projectKey/mcp-servers/key=test_key", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .mcpServers() + .withKey("test_key") + .delete() + .withVersion(2) + .createHttpRequest(), "delete", "test_projectKey/mcp-servers/key=test_key?version=2", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .mcpServers() + .withKey("test_key") + .delete() + .createHttpRequest(), "delete", "test_projectKey/mcp-servers/key=test_key", } }; + } + + public static Object[][] executeMethodParameters() { + return new Object[][] { + new Object[] { apiRoot.withProjectKey("test_projectKey").mcpServers().withKey("test_key").get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .mcpServers() + .withKey("test_key") + .post(com.commercetools.api.models.mcp_server.McpServerUpdate.of()), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .mcpServers() + .withKey("test_key") + .delete() + .withVersion(2), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").mcpServers().withKey("test_key").delete(), } }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMcpServersTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMcpServersTest.java new file mode 100644 index 0000000000..076fd22b03 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMcpServersTest.java @@ -0,0 +1,92 @@ + +package com.commercetools.api.client.resource; + +import java.nio.charset.StandardCharsets; +import java.util.concurrent.CompletableFuture; + +import com.commercetools.api.client.ApiRoot; + +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.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; +import org.mockito.Mockito; + +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyMcpServersTest { + 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(); + + @ParameterizedTest + @MethodSource("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()); + } + + @ParameterizedTest + @MethodSource("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); + } + + @ParameterizedTest + @MethodSource("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); + } + + public static Object[][] requestWithMethodParameters() { + return new Object[][] { new Object[] { + apiRoot.withProjectKey("test_projectKey").mcpServers().get().withSort("sort").createHttpRequest(), + "get", "test_projectKey/mcp-servers?sort=sort", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey").mcpServers().get().withLimit(7).createHttpRequest(), + "get", "test_projectKey/mcp-servers?limit=7", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey").mcpServers().get().withOffset(3).createHttpRequest(), + "get", "test_projectKey/mcp-servers?offset=3", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .mcpServers() + .get() + .withWithTotal(true) + .createHttpRequest(), "get", "test_projectKey/mcp-servers?withTotal=true", }, + new Object[] { apiRoot.withProjectKey("test_projectKey").mcpServers().get().createHttpRequest(), "get", + "test_projectKey/mcp-servers", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .mcpServers() + .post(com.commercetools.api.models.mcp_server.McpServerDraft.of()) + .createHttpRequest(), "post", "test_projectKey/mcp-servers", } }; + } + + public static Object[][] executeMethodParameters() { + return new Object[][] { + new Object[] { apiRoot.withProjectKey("test_projectKey").mcpServers().get().withSort("sort"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").mcpServers().get().withLimit(7), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").mcpServers().get().withOffset(3), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").mcpServers().get().withWithTotal(true), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").mcpServers().get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .mcpServers() + .post(com.commercetools.api.models.mcp_server.McpServerDraft.of()), } }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMcpServersTypesByMcpServerTypeTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMcpServersTypesByMcpServerTypeTest.java new file mode 100644 index 0000000000..8c08a14eac --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMcpServersTypesByMcpServerTypeTest.java @@ -0,0 +1,93 @@ + +package com.commercetools.api.client.resource; + +import java.nio.charset.StandardCharsets; +import java.util.concurrent.CompletableFuture; + +import com.commercetools.api.client.ApiRoot; + +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.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; +import org.mockito.Mockito; + +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyMcpServersTypesByMcpServerTypeTest { + 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(); + + @ParameterizedTest + @MethodSource("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()); + } + + @ParameterizedTest + @MethodSource("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); + } + + @ParameterizedTest + @MethodSource("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); + } + + public static Object[][] requestWithMethodParameters() { + return new Object[][] { + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .mcpServers() + .types() + .withMcpServerType("test_mcpServerType") + .get() + .withMajorVersion("majorVersion") + .createHttpRequest(), + "get", "test_projectKey/mcp-servers/types/test_mcpServerType?majorVersion=majorVersion", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .mcpServers() + .types() + .withMcpServerType("test_mcpServerType") + .get() + .createHttpRequest(), + "get", "test_projectKey/mcp-servers/types/test_mcpServerType", } }; + } + + public static Object[][] executeMethodParameters() { + return new Object[][] { + new Object[] { apiRoot.withProjectKey("test_projectKey") + .mcpServers() + .types() + .withMcpServerType("test_mcpServerType") + .get() + .withMajorVersion("majorVersion"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .mcpServers() + .types() + .withMcpServerType("test_mcpServerType") + .get(), } }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMcpServersTypesTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMcpServersTypesTest.java new file mode 100644 index 0000000000..fb06c9a7a7 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMcpServersTypesTest.java @@ -0,0 +1,68 @@ + +package com.commercetools.api.client.resource; + +import java.nio.charset.StandardCharsets; +import java.util.concurrent.CompletableFuture; + +import com.commercetools.api.client.ApiRoot; + +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.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; +import org.mockito.Mockito; + +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyMcpServersTypesTest { + 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(); + + @ParameterizedTest + @MethodSource("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()); + } + + @ParameterizedTest + @MethodSource("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); + } + + @ParameterizedTest + @MethodSource("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); + } + + public static Object[][] requestWithMethodParameters() { + return new Object[][] { + new Object[] { apiRoot.withProjectKey("test_projectKey").mcpServers().types().get().createHttpRequest(), + "get", "test_projectKey/mcp-servers/types", } }; + } + + public static Object[][] executeMethodParameters() { + return new Object[][] { + new Object[] { apiRoot.withProjectKey("test_projectKey").mcpServers().types().get(), } }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/CommerceMcpServerConfigDraftTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/CommerceMcpServerConfigDraftTest.java new file mode 100644 index 0000000000..a8be941a98 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/CommerceMcpServerConfigDraftTest.java @@ -0,0 +1,84 @@ + +package com.commercetools.api.models.mcp_server; + +import java.util.Collections; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class CommerceMcpServerConfigDraftTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, CommerceMcpServerConfigDraftBuilder builder) { + CommerceMcpServerConfigDraft commerceMcpServerConfigDraft = builder.buildUnchecked(); + Assertions.assertThat(commerceMcpServerConfigDraft).isInstanceOf(CommerceMcpServerConfigDraft.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { + new Object[] { "majorVersion", CommerceMcpServerConfigDraft.builder().majorVersion("majorVersion") }, + new Object[] { "tools", + CommerceMcpServerConfigDraft.builder() + .tools(Collections.singletonList( + com.commercetools.api.models.mcp_server.McpServerTool.findEnum("all"))) }, + new Object[] { "toolCustomizations", + CommerceMcpServerConfigDraft.builder() + .toolCustomizations(Collections.singletonList( + new com.commercetools.api.models.mcp_server.ToolCustomizationImpl())) }, + new Object[] { "jsonOutputFiltering", + CommerceMcpServerConfigDraft.builder() + .jsonOutputFiltering( + new com.commercetools.api.models.mcp_server.McpServerJsonOutputFilteringImpl()) }, + new Object[] { "toolOutputFormatting", CommerceMcpServerConfigDraft.builder() + .toolOutputFormatting(com.commercetools.api.models.mcp_server.McpServerToolOutputFormatting + .findEnum("JsonToTabular")) } }; + } + + @Test + public void majorVersion() { + CommerceMcpServerConfigDraft value = CommerceMcpServerConfigDraft.of(); + value.setMajorVersion("majorVersion"); + Assertions.assertThat(value.getMajorVersion()).isEqualTo("majorVersion"); + } + + @Test + public void tools() { + CommerceMcpServerConfigDraft value = CommerceMcpServerConfigDraft.of(); + value.setTools( + Collections.singletonList(com.commercetools.api.models.mcp_server.McpServerTool.findEnum("all"))); + Assertions.assertThat(value.getTools()) + .isEqualTo( + Collections.singletonList(com.commercetools.api.models.mcp_server.McpServerTool.findEnum("all"))); + } + + @Test + public void toolCustomizations() { + CommerceMcpServerConfigDraft value = CommerceMcpServerConfigDraft.of(); + value.setToolCustomizations( + Collections.singletonList(new com.commercetools.api.models.mcp_server.ToolCustomizationImpl())); + Assertions.assertThat(value.getToolCustomizations()) + .isEqualTo( + Collections.singletonList(new com.commercetools.api.models.mcp_server.ToolCustomizationImpl())); + } + + @Test + public void jsonOutputFiltering() { + CommerceMcpServerConfigDraft value = CommerceMcpServerConfigDraft.of(); + value.setJsonOutputFiltering(new com.commercetools.api.models.mcp_server.McpServerJsonOutputFilteringImpl()); + Assertions.assertThat(value.getJsonOutputFiltering()) + .isEqualTo(new com.commercetools.api.models.mcp_server.McpServerJsonOutputFilteringImpl()); + } + + @Test + public void toolOutputFormatting() { + CommerceMcpServerConfigDraft value = CommerceMcpServerConfigDraft.of(); + value.setToolOutputFormatting( + com.commercetools.api.models.mcp_server.McpServerToolOutputFormatting.findEnum("JsonToTabular")); + Assertions.assertThat(value.getToolOutputFormatting()) + .isEqualTo( + com.commercetools.api.models.mcp_server.McpServerToolOutputFormatting.findEnum("JsonToTabular")); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/CommerceMcpServerConfigTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/CommerceMcpServerConfigTest.java new file mode 100644 index 0000000000..464efdfb92 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/CommerceMcpServerConfigTest.java @@ -0,0 +1,92 @@ + +package com.commercetools.api.models.mcp_server; + +import java.util.Collections; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class CommerceMcpServerConfigTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, CommerceMcpServerConfigBuilder builder) { + CommerceMcpServerConfig commerceMcpServerConfig = builder.buildUnchecked(); + Assertions.assertThat(commerceMcpServerConfig).isInstanceOf(CommerceMcpServerConfig.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { + new Object[] { "majorVersion", CommerceMcpServerConfig.builder().majorVersion("majorVersion") }, + new Object[] { "url", CommerceMcpServerConfig.builder().url("url") }, + new Object[] { "tools", + CommerceMcpServerConfig.builder() + .tools(Collections.singletonList( + com.commercetools.api.models.mcp_server.McpServerTool.findEnum("all"))) }, + new Object[] { "toolCustomizations", + CommerceMcpServerConfig.builder() + .toolCustomizations(Collections.singletonList( + new com.commercetools.api.models.mcp_server.ToolCustomizationImpl())) }, + new Object[] { "jsonOutputFiltering", + CommerceMcpServerConfig.builder() + .jsonOutputFiltering( + new com.commercetools.api.models.mcp_server.McpServerJsonOutputFilteringImpl()) }, + new Object[] { "toolOutputFormatting", CommerceMcpServerConfig.builder() + .toolOutputFormatting(com.commercetools.api.models.mcp_server.McpServerToolOutputFormatting + .findEnum("JsonToTabular")) } }; + } + + @Test + public void majorVersion() { + CommerceMcpServerConfig value = CommerceMcpServerConfig.of(); + value.setMajorVersion("majorVersion"); + Assertions.assertThat(value.getMajorVersion()).isEqualTo("majorVersion"); + } + + @Test + public void url() { + CommerceMcpServerConfig value = CommerceMcpServerConfig.of(); + value.setUrl("url"); + Assertions.assertThat(value.getUrl()).isEqualTo("url"); + } + + @Test + public void tools() { + CommerceMcpServerConfig value = CommerceMcpServerConfig.of(); + value.setTools( + Collections.singletonList(com.commercetools.api.models.mcp_server.McpServerTool.findEnum("all"))); + Assertions.assertThat(value.getTools()) + .isEqualTo( + Collections.singletonList(com.commercetools.api.models.mcp_server.McpServerTool.findEnum("all"))); + } + + @Test + public void toolCustomizations() { + CommerceMcpServerConfig value = CommerceMcpServerConfig.of(); + value.setToolCustomizations( + Collections.singletonList(new com.commercetools.api.models.mcp_server.ToolCustomizationImpl())); + Assertions.assertThat(value.getToolCustomizations()) + .isEqualTo( + Collections.singletonList(new com.commercetools.api.models.mcp_server.ToolCustomizationImpl())); + } + + @Test + public void jsonOutputFiltering() { + CommerceMcpServerConfig value = CommerceMcpServerConfig.of(); + value.setJsonOutputFiltering(new com.commercetools.api.models.mcp_server.McpServerJsonOutputFilteringImpl()); + Assertions.assertThat(value.getJsonOutputFiltering()) + .isEqualTo(new com.commercetools.api.models.mcp_server.McpServerJsonOutputFilteringImpl()); + } + + @Test + public void toolOutputFormatting() { + CommerceMcpServerConfig value = CommerceMcpServerConfig.of(); + value.setToolOutputFormatting( + com.commercetools.api.models.mcp_server.McpServerToolOutputFormatting.findEnum("JsonToTabular")); + Assertions.assertThat(value.getToolOutputFormatting()) + .isEqualTo( + com.commercetools.api.models.mcp_server.McpServerToolOutputFormatting.findEnum("JsonToTabular")); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerAddToolActionTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerAddToolActionTest.java new file mode 100644 index 0000000000..2e8263126a --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerAddToolActionTest.java @@ -0,0 +1,30 @@ + +package com.commercetools.api.models.mcp_server; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class McpServerAddToolActionTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, McpServerAddToolActionBuilder builder) { + McpServerAddToolAction mcpServerAddToolAction = builder.buildUnchecked(); + Assertions.assertThat(mcpServerAddToolAction).isInstanceOf(McpServerAddToolAction.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { "tool", McpServerAddToolAction.builder() + .tool(com.commercetools.api.models.mcp_server.McpServerTool.findEnum("all")) } }; + } + + @Test + public void tool() { + McpServerAddToolAction value = McpServerAddToolAction.of(); + value.setTool(com.commercetools.api.models.mcp_server.McpServerTool.findEnum("all")); + Assertions.assertThat(value.getTool()) + .isEqualTo(com.commercetools.api.models.mcp_server.McpServerTool.findEnum("all")); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerAddToolCustomizationActionTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerAddToolCustomizationActionTest.java new file mode 100644 index 0000000000..f7b769b804 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerAddToolCustomizationActionTest.java @@ -0,0 +1,31 @@ + +package com.commercetools.api.models.mcp_server; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class McpServerAddToolCustomizationActionTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, McpServerAddToolCustomizationActionBuilder builder) { + McpServerAddToolCustomizationAction mcpServerAddToolCustomizationAction = builder.buildUnchecked(); + Assertions.assertThat(mcpServerAddToolCustomizationAction) + .isInstanceOf(McpServerAddToolCustomizationAction.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { "toolCustomization", McpServerAddToolCustomizationAction.builder() + .toolCustomization(new com.commercetools.api.models.mcp_server.ToolCustomizationImpl()) } }; + } + + @Test + public void toolCustomization() { + McpServerAddToolCustomizationAction value = McpServerAddToolCustomizationAction.of(); + value.setToolCustomization(new com.commercetools.api.models.mcp_server.ToolCustomizationImpl()); + Assertions.assertThat(value.getToolCustomization()) + .isEqualTo(new com.commercetools.api.models.mcp_server.ToolCustomizationImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerDraftTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerDraftTest.java new file mode 100644 index 0000000000..3312e9f868 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerDraftTest.java @@ -0,0 +1,69 @@ + +package com.commercetools.api.models.mcp_server; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class McpServerDraftTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, McpServerDraftBuilder builder) { + McpServerDraft mcpServerDraft = builder.buildUnchecked(); + Assertions.assertThat(mcpServerDraft).isInstanceOf(McpServerDraft.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { "key", McpServerDraft.builder().key("key") }, + new Object[] { "name", + McpServerDraft.builder().name(new com.commercetools.api.models.common.LocalizedStringImpl()) }, + new Object[] { "description", + McpServerDraft.builder() + .description(new com.commercetools.api.models.common.LocalizedStringImpl()) }, + new Object[] { "state", + McpServerDraft.builder() + .state(com.commercetools.api.models.mcp_server.McpServerState.findEnum("Enabled")) }, + new Object[] { "mcpServer", McpServerDraft.builder() + .mcpServer(new com.commercetools.api.models.mcp_server.McpServerConfigDraftImpl()) } }; + } + + @Test + public void key() { + McpServerDraft value = McpServerDraft.of(); + value.setKey("key"); + Assertions.assertThat(value.getKey()).isEqualTo("key"); + } + + @Test + public void name() { + McpServerDraft value = McpServerDraft.of(); + value.setName(new com.commercetools.api.models.common.LocalizedStringImpl()); + Assertions.assertThat(value.getName()).isEqualTo(new com.commercetools.api.models.common.LocalizedStringImpl()); + } + + @Test + public void description() { + McpServerDraft value = McpServerDraft.of(); + value.setDescription(new com.commercetools.api.models.common.LocalizedStringImpl()); + Assertions.assertThat(value.getDescription()) + .isEqualTo(new com.commercetools.api.models.common.LocalizedStringImpl()); + } + + @Test + public void state() { + McpServerDraft value = McpServerDraft.of(); + value.setState(com.commercetools.api.models.mcp_server.McpServerState.findEnum("Enabled")); + Assertions.assertThat(value.getState()) + .isEqualTo(com.commercetools.api.models.mcp_server.McpServerState.findEnum("Enabled")); + } + + @Test + public void mcpServer() { + McpServerDraft value = McpServerDraft.of(); + value.setMcpServer(new com.commercetools.api.models.mcp_server.McpServerConfigDraftImpl()); + Assertions.assertThat(value.getMcpServer()) + .isEqualTo(new com.commercetools.api.models.mcp_server.McpServerConfigDraftImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerJsonOutputFilteringMatcherTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerJsonOutputFilteringMatcherTest.java new file mode 100644 index 0000000000..81a7227955 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerJsonOutputFilteringMatcherTest.java @@ -0,0 +1,53 @@ + +package com.commercetools.api.models.mcp_server; + +import java.util.Collections; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class McpServerJsonOutputFilteringMatcherTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, McpServerJsonOutputFilteringMatcherBuilder builder) { + McpServerJsonOutputFilteringMatcher mcpServerJsonOutputFilteringMatcher = builder.buildUnchecked(); + Assertions.assertThat(mcpServerJsonOutputFilteringMatcher) + .isInstanceOf(McpServerJsonOutputFilteringMatcher.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { + new Object[] { "fieldPaths", + McpServerJsonOutputFilteringMatcher.builder() + .fieldPaths(Collections.singletonList("fieldPaths")) }, + new Object[] { "fieldNames", + McpServerJsonOutputFilteringMatcher.builder() + .fieldNames(Collections.singletonList("fieldNames")) }, + new Object[] { "fieldNameContains", McpServerJsonOutputFilteringMatcher.builder() + .fieldNameContains(Collections.singletonList("fieldNameContains")) } }; + } + + @Test + public void fieldPaths() { + McpServerJsonOutputFilteringMatcher value = McpServerJsonOutputFilteringMatcher.of(); + value.setFieldPaths(Collections.singletonList("fieldPaths")); + Assertions.assertThat(value.getFieldPaths()).isEqualTo(Collections.singletonList("fieldPaths")); + } + + @Test + public void fieldNames() { + McpServerJsonOutputFilteringMatcher value = McpServerJsonOutputFilteringMatcher.of(); + value.setFieldNames(Collections.singletonList("fieldNames")); + Assertions.assertThat(value.getFieldNames()).isEqualTo(Collections.singletonList("fieldNames")); + } + + @Test + public void fieldNameContains() { + McpServerJsonOutputFilteringMatcher value = McpServerJsonOutputFilteringMatcher.of(); + value.setFieldNameContains(Collections.singletonList("fieldNameContains")); + Assertions.assertThat(value.getFieldNameContains()).isEqualTo(Collections.singletonList("fieldNameContains")); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerJsonOutputFilteringTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerJsonOutputFilteringTest.java new file mode 100644 index 0000000000..33a7b34601 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerJsonOutputFilteringTest.java @@ -0,0 +1,60 @@ + +package com.commercetools.api.models.mcp_server; + +import java.util.Collections; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class McpServerJsonOutputFilteringTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, McpServerJsonOutputFilteringBuilder builder) { + McpServerJsonOutputFiltering mcpServerJsonOutputFiltering = builder.buildUnchecked(); + Assertions.assertThat(mcpServerJsonOutputFiltering).isInstanceOf(McpServerJsonOutputFiltering.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { "redact", McpServerJsonOutputFiltering.builder() + .redact(new com.commercetools.api.models.mcp_server.McpServerJsonOutputFilteringMatcherImpl()) }, + new Object[] { "drop", McpServerJsonOutputFiltering.builder() + .drop(new com.commercetools.api.models.mcp_server.McpServerJsonOutputFilteringMatcherImpl()) }, + new Object[] { "fieldPathsToKeep", + McpServerJsonOutputFiltering.builder() + .fieldPathsToKeep(Collections.singletonList("fieldPathsToKeep")) }, + new Object[] { "redactedWith", McpServerJsonOutputFiltering.builder().redactedWith("redactedWith") } }; + } + + @Test + public void redact() { + McpServerJsonOutputFiltering value = McpServerJsonOutputFiltering.of(); + value.setRedact(new com.commercetools.api.models.mcp_server.McpServerJsonOutputFilteringMatcherImpl()); + Assertions.assertThat(value.getRedact()) + .isEqualTo(new com.commercetools.api.models.mcp_server.McpServerJsonOutputFilteringMatcherImpl()); + } + + @Test + public void drop() { + McpServerJsonOutputFiltering value = McpServerJsonOutputFiltering.of(); + value.setDrop(new com.commercetools.api.models.mcp_server.McpServerJsonOutputFilteringMatcherImpl()); + Assertions.assertThat(value.getDrop()) + .isEqualTo(new com.commercetools.api.models.mcp_server.McpServerJsonOutputFilteringMatcherImpl()); + } + + @Test + public void fieldPathsToKeep() { + McpServerJsonOutputFiltering value = McpServerJsonOutputFiltering.of(); + value.setFieldPathsToKeep(Collections.singletonList("fieldPathsToKeep")); + Assertions.assertThat(value.getFieldPathsToKeep()).isEqualTo(Collections.singletonList("fieldPathsToKeep")); + } + + @Test + public void redactedWith() { + McpServerJsonOutputFiltering value = McpServerJsonOutputFiltering.of(); + value.setRedactedWith("redactedWith"); + Assertions.assertThat(value.getRedactedWith()).isEqualTo("redactedWith"); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerPagedQueryResponseTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerPagedQueryResponseTest.java new file mode 100644 index 0000000000..67ecc65315 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerPagedQueryResponseTest.java @@ -0,0 +1,65 @@ + +package com.commercetools.api.models.mcp_server; + +import java.util.Collections; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class McpServerPagedQueryResponseTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, McpServerPagedQueryResponseBuilder builder) { + McpServerPagedQueryResponse mcpServerPagedQueryResponse = builder.buildUnchecked(); + Assertions.assertThat(mcpServerPagedQueryResponse).isInstanceOf(McpServerPagedQueryResponse.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { "limit", McpServerPagedQueryResponse.builder().limit(7L) }, + new Object[] { "offset", McpServerPagedQueryResponse.builder().offset(3L) }, + new Object[] { "count", McpServerPagedQueryResponse.builder().count(2L) }, + new Object[] { "total", McpServerPagedQueryResponse.builder().total(1L) }, + new Object[] { "results", McpServerPagedQueryResponse.builder() + .results( + Collections.singletonList(new com.commercetools.api.models.mcp_server.McpServerImpl())) } }; + } + + @Test + public void limit() { + McpServerPagedQueryResponse value = McpServerPagedQueryResponse.of(); + value.setLimit(7L); + Assertions.assertThat(value.getLimit()).isEqualTo(7L); + } + + @Test + public void offset() { + McpServerPagedQueryResponse value = McpServerPagedQueryResponse.of(); + value.setOffset(3L); + Assertions.assertThat(value.getOffset()).isEqualTo(3L); + } + + @Test + public void count() { + McpServerPagedQueryResponse value = McpServerPagedQueryResponse.of(); + value.setCount(2L); + Assertions.assertThat(value.getCount()).isEqualTo(2L); + } + + @Test + public void total() { + McpServerPagedQueryResponse value = McpServerPagedQueryResponse.of(); + value.setTotal(1L); + Assertions.assertThat(value.getTotal()).isEqualTo(1L); + } + + @Test + public void results() { + McpServerPagedQueryResponse value = McpServerPagedQueryResponse.of(); + value.setResults(Collections.singletonList(new com.commercetools.api.models.mcp_server.McpServerImpl())); + Assertions.assertThat(value.getResults()) + .isEqualTo(Collections.singletonList(new com.commercetools.api.models.mcp_server.McpServerImpl())); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerRemoveToolActionTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerRemoveToolActionTest.java new file mode 100644 index 0000000000..be3ca85ce9 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerRemoveToolActionTest.java @@ -0,0 +1,30 @@ + +package com.commercetools.api.models.mcp_server; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class McpServerRemoveToolActionTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, McpServerRemoveToolActionBuilder builder) { + McpServerRemoveToolAction mcpServerRemoveToolAction = builder.buildUnchecked(); + Assertions.assertThat(mcpServerRemoveToolAction).isInstanceOf(McpServerRemoveToolAction.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { "tool", McpServerRemoveToolAction.builder() + .tool(com.commercetools.api.models.mcp_server.McpServerTool.findEnum("all")) } }; + } + + @Test + public void tool() { + McpServerRemoveToolAction value = McpServerRemoveToolAction.of(); + value.setTool(com.commercetools.api.models.mcp_server.McpServerTool.findEnum("all")); + Assertions.assertThat(value.getTool()) + .isEqualTo(com.commercetools.api.models.mcp_server.McpServerTool.findEnum("all")); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerRemoveToolCustomizationActionTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerRemoveToolCustomizationActionTest.java new file mode 100644 index 0000000000..632fa5e1ed --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerRemoveToolCustomizationActionTest.java @@ -0,0 +1,31 @@ + +package com.commercetools.api.models.mcp_server; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class McpServerRemoveToolCustomizationActionTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, McpServerRemoveToolCustomizationActionBuilder builder) { + McpServerRemoveToolCustomizationAction mcpServerRemoveToolCustomizationAction = builder.buildUnchecked(); + Assertions.assertThat(mcpServerRemoveToolCustomizationAction) + .isInstanceOf(McpServerRemoveToolCustomizationAction.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { "toolCustomization", McpServerRemoveToolCustomizationAction.builder() + .toolCustomization(new com.commercetools.api.models.mcp_server.RemoveToolCustomizationTargetImpl()) } }; + } + + @Test + public void toolCustomization() { + McpServerRemoveToolCustomizationAction value = McpServerRemoveToolCustomizationAction.of(); + value.setToolCustomization(new com.commercetools.api.models.mcp_server.RemoveToolCustomizationTargetImpl()); + Assertions.assertThat(value.getToolCustomization()) + .isEqualTo(new com.commercetools.api.models.mcp_server.RemoveToolCustomizationTargetImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerSetDescriptionActionTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerSetDescriptionActionTest.java new file mode 100644 index 0000000000..045a37e22a --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerSetDescriptionActionTest.java @@ -0,0 +1,30 @@ + +package com.commercetools.api.models.mcp_server; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class McpServerSetDescriptionActionTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, McpServerSetDescriptionActionBuilder builder) { + McpServerSetDescriptionAction mcpServerSetDescriptionAction = builder.buildUnchecked(); + Assertions.assertThat(mcpServerSetDescriptionAction).isInstanceOf(McpServerSetDescriptionAction.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { "description", McpServerSetDescriptionAction.builder() + .description(new com.commercetools.api.models.common.LocalizedStringImpl()) } }; + } + + @Test + public void description() { + McpServerSetDescriptionAction value = McpServerSetDescriptionAction.of(); + value.setDescription(new com.commercetools.api.models.common.LocalizedStringImpl()); + Assertions.assertThat(value.getDescription()) + .isEqualTo(new com.commercetools.api.models.common.LocalizedStringImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerSetJsonOutputFilteringActionTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerSetJsonOutputFilteringActionTest.java new file mode 100644 index 0000000000..66655e7e01 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerSetJsonOutputFilteringActionTest.java @@ -0,0 +1,33 @@ + +package com.commercetools.api.models.mcp_server; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class McpServerSetJsonOutputFilteringActionTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, McpServerSetJsonOutputFilteringActionBuilder builder) { + McpServerSetJsonOutputFilteringAction mcpServerSetJsonOutputFilteringAction = builder.buildUnchecked(); + Assertions.assertThat(mcpServerSetJsonOutputFilteringAction) + .isInstanceOf(McpServerSetJsonOutputFilteringAction.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { "jsonOutputFiltering", + McpServerSetJsonOutputFilteringAction.builder() + .jsonOutputFiltering( + new com.commercetools.api.models.mcp_server.McpServerJsonOutputFilteringImpl()) } }; + } + + @Test + public void jsonOutputFiltering() { + McpServerSetJsonOutputFilteringAction value = McpServerSetJsonOutputFilteringAction.of(); + value.setJsonOutputFiltering(new com.commercetools.api.models.mcp_server.McpServerJsonOutputFilteringImpl()); + Assertions.assertThat(value.getJsonOutputFiltering()) + .isEqualTo(new com.commercetools.api.models.mcp_server.McpServerJsonOutputFilteringImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerSetNameActionTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerSetNameActionTest.java new file mode 100644 index 0000000000..d448324ef7 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerSetNameActionTest.java @@ -0,0 +1,29 @@ + +package com.commercetools.api.models.mcp_server; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class McpServerSetNameActionTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, McpServerSetNameActionBuilder builder) { + McpServerSetNameAction mcpServerSetNameAction = builder.buildUnchecked(); + Assertions.assertThat(mcpServerSetNameAction).isInstanceOf(McpServerSetNameAction.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { "name", McpServerSetNameAction.builder() + .name(new com.commercetools.api.models.common.LocalizedStringImpl()) } }; + } + + @Test + public void name() { + McpServerSetNameAction value = McpServerSetNameAction.of(); + value.setName(new com.commercetools.api.models.common.LocalizedStringImpl()); + Assertions.assertThat(value.getName()).isEqualTo(new com.commercetools.api.models.common.LocalizedStringImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerSetStateActionTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerSetStateActionTest.java new file mode 100644 index 0000000000..3b34375eee --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerSetStateActionTest.java @@ -0,0 +1,30 @@ + +package com.commercetools.api.models.mcp_server; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class McpServerSetStateActionTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, McpServerSetStateActionBuilder builder) { + McpServerSetStateAction mcpServerSetStateAction = builder.buildUnchecked(); + Assertions.assertThat(mcpServerSetStateAction).isInstanceOf(McpServerSetStateAction.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { "state", McpServerSetStateAction.builder() + .state(com.commercetools.api.models.mcp_server.McpServerState.findEnum("Enabled")) } }; + } + + @Test + public void state() { + McpServerSetStateAction value = McpServerSetStateAction.of(); + value.setState(com.commercetools.api.models.mcp_server.McpServerState.findEnum("Enabled")); + Assertions.assertThat(value.getState()) + .isEqualTo(com.commercetools.api.models.mcp_server.McpServerState.findEnum("Enabled")); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerSetToolCustomizationsActionTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerSetToolCustomizationsActionTest.java new file mode 100644 index 0000000000..bf385cb4d4 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerSetToolCustomizationsActionTest.java @@ -0,0 +1,36 @@ + +package com.commercetools.api.models.mcp_server; + +import java.util.Collections; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class McpServerSetToolCustomizationsActionTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, McpServerSetToolCustomizationsActionBuilder builder) { + McpServerSetToolCustomizationsAction mcpServerSetToolCustomizationsAction = builder.buildUnchecked(); + Assertions.assertThat(mcpServerSetToolCustomizationsAction) + .isInstanceOf(McpServerSetToolCustomizationsAction.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { "toolCustomizations", McpServerSetToolCustomizationsAction.builder() + .toolCustomizations( + Collections.singletonList(new com.commercetools.api.models.mcp_server.ToolCustomizationImpl())) } }; + } + + @Test + public void toolCustomizations() { + McpServerSetToolCustomizationsAction value = McpServerSetToolCustomizationsAction.of(); + value.setToolCustomizations( + Collections.singletonList(new com.commercetools.api.models.mcp_server.ToolCustomizationImpl())); + Assertions.assertThat(value.getToolCustomizations()) + .isEqualTo( + Collections.singletonList(new com.commercetools.api.models.mcp_server.ToolCustomizationImpl())); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerSetToolOutputFormattingActionTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerSetToolOutputFormattingActionTest.java new file mode 100644 index 0000000000..4a4da34153 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerSetToolOutputFormattingActionTest.java @@ -0,0 +1,35 @@ + +package com.commercetools.api.models.mcp_server; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class McpServerSetToolOutputFormattingActionTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, McpServerSetToolOutputFormattingActionBuilder builder) { + McpServerSetToolOutputFormattingAction mcpServerSetToolOutputFormattingAction = builder.buildUnchecked(); + Assertions.assertThat(mcpServerSetToolOutputFormattingAction) + .isInstanceOf(McpServerSetToolOutputFormattingAction.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { "toolOutputFormatting", + McpServerSetToolOutputFormattingAction.builder() + .toolOutputFormatting(com.commercetools.api.models.mcp_server.McpServerToolOutputFormatting + .findEnum("JsonToTabular")) } }; + } + + @Test + public void toolOutputFormatting() { + McpServerSetToolOutputFormattingAction value = McpServerSetToolOutputFormattingAction.of(); + value.setToolOutputFormatting( + com.commercetools.api.models.mcp_server.McpServerToolOutputFormatting.findEnum("JsonToTabular")); + Assertions.assertThat(value.getToolOutputFormatting()) + .isEqualTo( + com.commercetools.api.models.mcp_server.McpServerToolOutputFormatting.findEnum("JsonToTabular")); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerSetToolsActionTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerSetToolsActionTest.java new file mode 100644 index 0000000000..a20eb9e52c --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerSetToolsActionTest.java @@ -0,0 +1,36 @@ + +package com.commercetools.api.models.mcp_server; + +import java.util.Collections; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class McpServerSetToolsActionTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, McpServerSetToolsActionBuilder builder) { + McpServerSetToolsAction mcpServerSetToolsAction = builder.buildUnchecked(); + Assertions.assertThat(mcpServerSetToolsAction).isInstanceOf(McpServerSetToolsAction.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { "tools", + McpServerSetToolsAction.builder() + .tools(Collections.singletonList( + com.commercetools.api.models.mcp_server.McpServerTool.findEnum("all"))) } }; + } + + @Test + public void tools() { + McpServerSetToolsAction value = McpServerSetToolsAction.of(); + value.setTools( + Collections.singletonList(com.commercetools.api.models.mcp_server.McpServerTool.findEnum("all"))); + Assertions.assertThat(value.getTools()) + .isEqualTo( + Collections.singletonList(com.commercetools.api.models.mcp_server.McpServerTool.findEnum("all"))); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerTest.java new file mode 100644 index 0000000000..81e3c8753c --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerTest.java @@ -0,0 +1,124 @@ + +package com.commercetools.api.models.mcp_server; + +import java.time.ZonedDateTime; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class McpServerTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, McpServerBuilder builder) { + McpServer mcpServer = builder.buildUnchecked(); + Assertions.assertThat(mcpServer).isInstanceOf(McpServer.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { "id", McpServer.builder().id("id") }, + new Object[] { "version", McpServer.builder().version(2L) }, + new Object[] { "createdAt", McpServer.builder().createdAt(ZonedDateTime.parse("2023-06-01T12:00Z")) }, + new Object[] { "lastModifiedAt", + McpServer.builder().lastModifiedAt(ZonedDateTime.parse("2023-06-01T12:00Z")) }, + new Object[] { "lastModifiedBy", + McpServer.builder() + .lastModifiedBy(new com.commercetools.api.models.common.LastModifiedByImpl()) }, + new Object[] { "createdBy", + McpServer.builder().createdBy(new com.commercetools.api.models.common.CreatedByImpl()) }, + new Object[] { "key", McpServer.builder().key("key") }, + new Object[] { "name", + McpServer.builder().name(new com.commercetools.api.models.common.LocalizedStringImpl()) }, + new Object[] { "description", + McpServer.builder() + .description(new com.commercetools.api.models.common.LocalizedStringImpl()) }, + new Object[] { "state", + McpServer.builder() + .state(com.commercetools.api.models.mcp_server.McpServerState.findEnum("Enabled")) }, + new Object[] { "mcpServer", McpServer.builder() + .mcpServer(new com.commercetools.api.models.mcp_server.McpServerConfigImpl()) } }; + } + + @Test + public void id() { + McpServer value = McpServer.of(); + value.setId("id"); + Assertions.assertThat(value.getId()).isEqualTo("id"); + } + + @Test + public void version() { + McpServer value = McpServer.of(); + value.setVersion(2L); + Assertions.assertThat(value.getVersion()).isEqualTo(2L); + } + + @Test + public void createdAt() { + McpServer value = McpServer.of(); + value.setCreatedAt(ZonedDateTime.parse("2023-06-01T12:00Z")); + Assertions.assertThat(value.getCreatedAt()).isEqualTo(ZonedDateTime.parse("2023-06-01T12:00Z")); + } + + @Test + public void lastModifiedAt() { + McpServer value = McpServer.of(); + value.setLastModifiedAt(ZonedDateTime.parse("2023-06-01T12:00Z")); + Assertions.assertThat(value.getLastModifiedAt()).isEqualTo(ZonedDateTime.parse("2023-06-01T12:00Z")); + } + + @Test + public void lastModifiedBy() { + McpServer value = McpServer.of(); + value.setLastModifiedBy(new com.commercetools.api.models.common.LastModifiedByImpl()); + Assertions.assertThat(value.getLastModifiedBy()) + .isEqualTo(new com.commercetools.api.models.common.LastModifiedByImpl()); + } + + @Test + public void createdBy() { + McpServer value = McpServer.of(); + value.setCreatedBy(new com.commercetools.api.models.common.CreatedByImpl()); + Assertions.assertThat(value.getCreatedBy()).isEqualTo(new com.commercetools.api.models.common.CreatedByImpl()); + } + + @Test + public void key() { + McpServer value = McpServer.of(); + value.setKey("key"); + Assertions.assertThat(value.getKey()).isEqualTo("key"); + } + + @Test + public void name() { + McpServer value = McpServer.of(); + value.setName(new com.commercetools.api.models.common.LocalizedStringImpl()); + Assertions.assertThat(value.getName()).isEqualTo(new com.commercetools.api.models.common.LocalizedStringImpl()); + } + + @Test + public void description() { + McpServer value = McpServer.of(); + value.setDescription(new com.commercetools.api.models.common.LocalizedStringImpl()); + Assertions.assertThat(value.getDescription()) + .isEqualTo(new com.commercetools.api.models.common.LocalizedStringImpl()); + } + + @Test + public void state() { + McpServer value = McpServer.of(); + value.setState(com.commercetools.api.models.mcp_server.McpServerState.findEnum("Enabled")); + Assertions.assertThat(value.getState()) + .isEqualTo(com.commercetools.api.models.mcp_server.McpServerState.findEnum("Enabled")); + } + + @Test + public void mcpServer() { + McpServer value = McpServer.of(); + value.setMcpServer(new com.commercetools.api.models.mcp_server.McpServerConfigImpl()); + Assertions.assertThat(value.getMcpServer()) + .isEqualTo(new com.commercetools.api.models.mcp_server.McpServerConfigImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerTypeTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerTypeTest.java new file mode 100644 index 0000000000..c8b203dcfb --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerTypeTest.java @@ -0,0 +1,51 @@ + +package com.commercetools.api.models.mcp_server; + +import java.util.Collections; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class McpServerTypeTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, McpServerTypeBuilder builder) { + McpServerType mcpServerType = builder.buildUnchecked(); + Assertions.assertThat(mcpServerType).isInstanceOf(McpServerType.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { "type", McpServerType.builder().type("type") }, + new Object[] { "majorVersion", McpServerType.builder().majorVersion("majorVersion") }, + new Object[] { "tools", + McpServerType.builder() + .tools(Collections.singletonList( + new com.commercetools.api.models.mcp_server.McpServerTypeToolImpl())) } }; + } + + @Test + public void type() { + McpServerType value = McpServerType.of(); + value.setType("type"); + Assertions.assertThat(value.getType()).isEqualTo("type"); + } + + @Test + public void majorVersion() { + McpServerType value = McpServerType.of(); + value.setMajorVersion("majorVersion"); + Assertions.assertThat(value.getMajorVersion()).isEqualTo("majorVersion"); + } + + @Test + public void tools() { + McpServerType value = McpServerType.of(); + value.setTools(Collections.singletonList(new com.commercetools.api.models.mcp_server.McpServerTypeToolImpl())); + Assertions.assertThat(value.getTools()) + .isEqualTo( + Collections.singletonList(new com.commercetools.api.models.mcp_server.McpServerTypeToolImpl())); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerTypeToolTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerTypeToolTest.java new file mode 100644 index 0000000000..7a9bb99a2e --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerTypeToolTest.java @@ -0,0 +1,54 @@ + +package com.commercetools.api.models.mcp_server; + +import java.util.Collections; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class McpServerTypeToolTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, McpServerTypeToolBuilder builder) { + McpServerTypeTool mcpServerTypeTool = builder.buildUnchecked(); + Assertions.assertThat(mcpServerTypeTool).isInstanceOf(McpServerTypeTool.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { "name", McpServerTypeTool.builder().name("name") }, + new Object[] { "description", McpServerTypeTool.builder().description("description") }, + new Object[] { "operationType", McpServerTypeTool.builder().operationType("operationType") }, + new Object[] { "groups", McpServerTypeTool.builder().groups(Collections.singletonList("groups")) } }; + } + + @Test + public void name() { + McpServerTypeTool value = McpServerTypeTool.of(); + value.setName("name"); + Assertions.assertThat(value.getName()).isEqualTo("name"); + } + + @Test + public void description() { + McpServerTypeTool value = McpServerTypeTool.of(); + value.setDescription("description"); + Assertions.assertThat(value.getDescription()).isEqualTo("description"); + } + + @Test + public void operationType() { + McpServerTypeTool value = McpServerTypeTool.of(); + value.setOperationType("operationType"); + Assertions.assertThat(value.getOperationType()).isEqualTo("operationType"); + } + + @Test + public void groups() { + McpServerTypeTool value = McpServerTypeTool.of(); + value.setGroups(Collections.singletonList("groups")); + Assertions.assertThat(value.getGroups()).isEqualTo(Collections.singletonList("groups")); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerUpdateTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerUpdateTest.java new file mode 100644 index 0000000000..4d2461c4cb --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/McpServerUpdateTest.java @@ -0,0 +1,44 @@ + +package com.commercetools.api.models.mcp_server; + +import java.util.Collections; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class McpServerUpdateTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, McpServerUpdateBuilder builder) { + McpServerUpdate mcpServerUpdate = builder.buildUnchecked(); + Assertions.assertThat(mcpServerUpdate).isInstanceOf(McpServerUpdate.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { "version", McpServerUpdate.builder().version(2L) }, + new Object[] { "actions", + McpServerUpdate.builder() + .actions(Collections.singletonList( + new com.commercetools.api.models.mcp_server.McpServerUpdateActionImpl())) } }; + } + + @Test + public void version() { + McpServerUpdate value = McpServerUpdate.of(); + value.setVersion(2L); + Assertions.assertThat(value.getVersion()).isEqualTo(2L); + } + + @Test + public void actions() { + McpServerUpdate value = McpServerUpdate.of(); + value.setActions( + Collections.singletonList(new com.commercetools.api.models.mcp_server.McpServerUpdateActionImpl())); + Assertions.assertThat(value.getActions()) + .isEqualTo( + Collections.singletonList(new com.commercetools.api.models.mcp_server.McpServerUpdateActionImpl())); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/ParameterOverrideTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/ParameterOverrideTest.java new file mode 100644 index 0000000000..e4888ef0ea --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/ParameterOverrideTest.java @@ -0,0 +1,63 @@ + +package com.commercetools.api.models.mcp_server; + +import java.util.Collections; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class ParameterOverrideTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, ParameterOverrideBuilder builder) { + ParameterOverride parameterOverride = builder.buildUnchecked(); + Assertions.assertThat(parameterOverride).isInstanceOf(ParameterOverride.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { "name", ParameterOverride.builder().name("name") }, + new Object[] { "description", ParameterOverride.builder().description("description") }, + new Object[] { "const", ParameterOverride.builder()._const("_const") }, + new Object[] { "default", ParameterOverride.builder()._default("_default") }, + new Object[] { "allowedTypes", + ParameterOverride.builder().allowedTypes(Collections.singletonList("allowedTypes")) } }; + } + + @Test + public void name() { + ParameterOverride value = ParameterOverride.of(); + value.setName("name"); + Assertions.assertThat(value.getName()).isEqualTo("name"); + } + + @Test + public void description() { + ParameterOverride value = ParameterOverride.of(); + value.setDescription("description"); + Assertions.assertThat(value.getDescription()).isEqualTo("description"); + } + + @Test + public void _const() { + ParameterOverride value = ParameterOverride.of(); + value.setConst("const"); + Assertions.assertThat(value.getConst()).isEqualTo("const"); + } + + @Test + public void _default() { + ParameterOverride value = ParameterOverride.of(); + value.setDefault("default"); + Assertions.assertThat(value.getDefault()).isEqualTo("default"); + } + + @Test + public void allowedTypes() { + ParameterOverride value = ParameterOverride.of(); + value.setAllowedTypes(Collections.singletonList("allowedTypes")); + Assertions.assertThat(value.getAllowedTypes()).isEqualTo(Collections.singletonList("allowedTypes")); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/RemoveToolCustomizationTargetTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/RemoveToolCustomizationTargetTest.java new file mode 100644 index 0000000000..4683c60329 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/RemoveToolCustomizationTargetTest.java @@ -0,0 +1,30 @@ + +package com.commercetools.api.models.mcp_server; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class RemoveToolCustomizationTargetTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, RemoveToolCustomizationTargetBuilder builder) { + RemoveToolCustomizationTarget removeToolCustomizationTarget = builder.buildUnchecked(); + Assertions.assertThat(removeToolCustomizationTarget).isInstanceOf(RemoveToolCustomizationTarget.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { "tool", RemoveToolCustomizationTarget.builder() + .tool(com.commercetools.api.models.mcp_server.McpServerTool.findEnum("all")) } }; + } + + @Test + public void tool() { + RemoveToolCustomizationTarget value = RemoveToolCustomizationTarget.of(); + value.setTool(com.commercetools.api.models.mcp_server.McpServerTool.findEnum("all")); + Assertions.assertThat(value.getTool()) + .isEqualTo(com.commercetools.api.models.mcp_server.McpServerTool.findEnum("all")); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/ToolCustomizationTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/ToolCustomizationTest.java new file mode 100644 index 0000000000..1a93b5334b --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/mcp_server/ToolCustomizationTest.java @@ -0,0 +1,56 @@ + +package com.commercetools.api.models.mcp_server; + +import java.util.Collections; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class ToolCustomizationTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, ToolCustomizationBuilder builder) { + ToolCustomization toolCustomization = builder.buildUnchecked(); + Assertions.assertThat(toolCustomization).isInstanceOf(ToolCustomization.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { + new Object[] { "tool", + ToolCustomization.builder() + .tool(com.commercetools.api.models.mcp_server.McpServerTool.findEnum("all")) }, + new Object[] { "description", ToolCustomization.builder().description("description") }, + new Object[] { "parameters", + ToolCustomization.builder() + .parameters(Collections.singletonList( + new com.commercetools.api.models.mcp_server.ParameterOverrideImpl())) } }; + } + + @Test + public void tool() { + ToolCustomization value = ToolCustomization.of(); + value.setTool(com.commercetools.api.models.mcp_server.McpServerTool.findEnum("all")); + Assertions.assertThat(value.getTool()) + .isEqualTo(com.commercetools.api.models.mcp_server.McpServerTool.findEnum("all")); + } + + @Test + public void description() { + ToolCustomization value = ToolCustomization.of(); + value.setDescription("description"); + Assertions.assertThat(value.getDescription()).isEqualTo("description"); + } + + @Test + public void parameters() { + ToolCustomization value = ToolCustomization.of(); + value.setParameters( + Collections.singletonList(new com.commercetools.api.models.mcp_server.ParameterOverrideImpl())); + Assertions.assertThat(value.getParameters()) + .isEqualTo( + Collections.singletonList(new com.commercetools.api.models.mcp_server.ParameterOverrideImpl())); + } +} diff --git a/references.txt b/references.txt index d10a5916e5..3e7594e7b7 100644 --- a/references.txt +++ b/references.txt @@ -595,3 +595,4 @@ b27bf23c25b1bd52d00dd57159016fd47e3c21e7 c0ff7b23243c9d95736ec183699775a9341f0007 ff7070c0ff123a4d0bb190130d1c83e5ac0356ec 03e55e32b7a0a742fc59eb380d290623105d5cbf +3da8f4b822245fffefa8a9fcae78b2d9d8eea73d From 20976d7db1a0ff64827c73b931ee5af090651625 Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Tue, 21 Jul 2026 12:10:24 +0000 Subject: [PATCH 14/27] build(codegen): updating SDK --- changes.md | 2 + .../api/models/error/ErrorObject.java | 8 + .../api/models/error/ErrorObjectBuilder.java | 4 + .../api/models/error/GraphQLErrorObject.java | 8 + .../error/GraphQLErrorObjectBuilder.java | 4 + .../error/GraphQLUnauthorizedError.java | 155 +++++++++++++++ .../GraphQLUnauthorizedErrorBuilder.java | 153 +++++++++++++++ .../error/GraphQLUnauthorizedErrorImpl.java | 131 +++++++++++++ .../api/models/error/UnauthorizedError.java | 173 +++++++++++++++++ .../error/UnauthorizedErrorBuilder.java | 177 ++++++++++++++++++ .../models/error/UnauthorizedErrorImpl.java | 154 +++++++++++++++ .../error/ErrorObjectQueryBuilderDsl.java | 7 + .../GraphQLErrorObjectQueryBuilderDsl.java | 7 + ...aphQLUnauthorizedErrorQueryBuilderDsl.java | 26 +++ .../UnauthorizedErrorQueryBuilderDsl.java | 32 ++++ .../error/GraphQLUnauthorizedErrorTest.java | 32 ++++ .../models/error/UnauthorizedErrorTest.java | 40 ++++ references.txt | 1 + 18 files changed, 1114 insertions(+) create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLUnauthorizedError.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLUnauthorizedErrorBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLUnauthorizedErrorImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/UnauthorizedError.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/UnauthorizedErrorBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/UnauthorizedErrorImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/error/GraphQLUnauthorizedErrorQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/error/UnauthorizedErrorQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/error/GraphQLUnauthorizedErrorTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/error/UnauthorizedErrorTest.java diff --git a/changes.md b/changes.md index 909cd8c1c9..0bc906bae9 100644 --- a/changes.md +++ b/changes.md @@ -32,6 +32,8 @@
    Added Type(s) +- added type `UnauthorizedError` +- added type `GraphQLUnauthorizedError` - added type `CommerceMcpServerConfig` - added type `CommerceMcpServerConfigDraft` - added type `McpServer` diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ErrorObject.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ErrorObject.java index 7eb4188147..1b25dd0427 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ErrorObject.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ErrorObject.java @@ -823,6 +823,14 @@ public static com.commercetools.api.models.error.SyntaxErrorErrorBuilder syntaxE return com.commercetools.api.models.error.SyntaxErrorErrorBuilder.of(); } + /** + * builder for unauthorized subtype + * @return builder + */ + public static com.commercetools.api.models.error.UnauthorizedErrorBuilder unauthorizedBuilder() { + return com.commercetools.api.models.error.UnauthorizedErrorBuilder.of(); + } + /** * builder for validityLockConflict subtype * @return builder diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ErrorObjectBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ErrorObjectBuilder.java index 471e29acf4..96dca0cbdc 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ErrorObjectBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ErrorObjectBuilder.java @@ -375,6 +375,10 @@ public com.commercetools.api.models.error.SyntaxErrorErrorBuilder syntaxErrorBui return com.commercetools.api.models.error.SyntaxErrorErrorBuilder.of(); } + public com.commercetools.api.models.error.UnauthorizedErrorBuilder unauthorizedBuilder() { + return com.commercetools.api.models.error.UnauthorizedErrorBuilder.of(); + } + public com.commercetools.api.models.error.ValidityLockConflictErrorBuilder validityLockConflictBuilder() { return com.commercetools.api.models.error.ValidityLockConflictErrorBuilder.of(); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLErrorObject.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLErrorObject.java index fd0942f99b..511b73dcf9 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLErrorObject.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLErrorObject.java @@ -805,6 +805,14 @@ public static com.commercetools.api.models.error.GraphQLSyntaxErrorErrorBuilder return com.commercetools.api.models.error.GraphQLSyntaxErrorErrorBuilder.of(); } + /** + * builder for unauthorized subtype + * @return builder + */ + public static com.commercetools.api.models.error.GraphQLUnauthorizedErrorBuilder unauthorizedBuilder() { + return com.commercetools.api.models.error.GraphQLUnauthorizedErrorBuilder.of(); + } + /** * builder for validityLockConflict subtype * @return builder diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLErrorObjectBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLErrorObjectBuilder.java index f34bd3fc4f..63c034bd12 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLErrorObjectBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLErrorObjectBuilder.java @@ -375,6 +375,10 @@ public com.commercetools.api.models.error.GraphQLSyntaxErrorErrorBuilder syntaxE return com.commercetools.api.models.error.GraphQLSyntaxErrorErrorBuilder.of(); } + public com.commercetools.api.models.error.GraphQLUnauthorizedErrorBuilder unauthorizedBuilder() { + return com.commercetools.api.models.error.GraphQLUnauthorizedErrorBuilder.of(); + } + public com.commercetools.api.models.error.GraphQLValidityLockConflictErrorBuilder validityLockConflictBuilder() { return com.commercetools.api.models.error.GraphQLValidityLockConflictErrorBuilder.of(); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLUnauthorizedError.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLUnauthorizedError.java new file mode 100644 index 0000000000..5d5acb2e3a --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLUnauthorizedError.java @@ -0,0 +1,155 @@ + +package com.commercetools.api.models.error; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.fasterxml.jackson.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.constraints.NotNull; +import tools.jackson.databind.annotation.*; + +/** + *

    Returned when one of the following conditions occurs:

    + *
      + *
    • A Customer reference (for example, associates[*].customer or inheritedAssociates[*].customer) is expanded on the My Business Unit endpoint.
    • + *
    • A Cart Discount cannot be modified due to missing permissions for its assigned Stores.
    • + *
    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     GraphQLUnauthorizedError graphQLUnauthorizedError = GraphQLUnauthorizedError.builder()
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("Unauthorized") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = GraphQLUnauthorizedErrorImpl.class) +public interface GraphQLUnauthorizedError extends GraphQLErrorObject { + + /** + * discriminator value for GraphQLUnauthorizedError + */ + String UNAUTHORIZED = "Unauthorized"; + + /** + * + * @return code + */ + @NotNull + @JsonProperty("code") + public String getCode(); + + /** + *

    Keys of Stores for which the required permission to modify is missing.

    + *

    This field is returned only for Cart Discounts.

    + * @return storesWithoutPermission + */ + + @JsonProperty("storesWithoutPermission") + public List getStoresWithoutPermission(); + + /** + *

    Keys of Stores for which the required permission to modify is missing.

    + *

    This field is returned only for Cart Discounts.

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

    Keys of Stores for which the required permission to modify is missing.

    + *

    This field is returned only for Cart Discounts.

    + * @param storesWithoutPermission values to be set + */ + + public void setStoresWithoutPermission(final List storesWithoutPermission); + + /** + * factory method + * @return instance of GraphQLUnauthorizedError + */ + public static GraphQLUnauthorizedError of() { + return new GraphQLUnauthorizedErrorImpl(); + } + + /** + * factory method to create a shallow copy GraphQLUnauthorizedError + * @param template instance to be copied + * @return copy instance + */ + public static GraphQLUnauthorizedError of(final GraphQLUnauthorizedError template) { + GraphQLUnauthorizedErrorImpl instance = new GraphQLUnauthorizedErrorImpl(); + Optional.ofNullable(template.values()).ifPresent(t -> t.forEach(instance::setValue)); + instance.setStoresWithoutPermission(template.getStoresWithoutPermission()); + return instance; + } + + public GraphQLUnauthorizedError copyDeep(); + + /** + * factory method to create a deep copy of GraphQLUnauthorizedError + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static GraphQLUnauthorizedError deepCopy(@Nullable final GraphQLUnauthorizedError template) { + if (template == null) { + return null; + } + GraphQLUnauthorizedErrorImpl instance = new GraphQLUnauthorizedErrorImpl(); + Optional.ofNullable(template.values()).ifPresent(t -> t.forEach(instance::setValue)); + instance.setStoresWithoutPermission( + Optional.ofNullable(template.getStoresWithoutPermission()).map(ArrayList::new).orElse(null)); + return instance; + } + + /** + * builder factory method for GraphQLUnauthorizedError + * @return builder + */ + public static GraphQLUnauthorizedErrorBuilder builder() { + return GraphQLUnauthorizedErrorBuilder.of(); + } + + /** + * create builder for GraphQLUnauthorizedError instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static GraphQLUnauthorizedErrorBuilder builder(final GraphQLUnauthorizedError template) { + return GraphQLUnauthorizedErrorBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withGraphQLUnauthorizedError(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static tools.jackson.core.type.TypeReference typeReference() { + return new tools.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/error/GraphQLUnauthorizedErrorBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLUnauthorizedErrorBuilder.java new file mode 100644 index 0000000000..63e6b52703 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLUnauthorizedErrorBuilder.java @@ -0,0 +1,153 @@ + +package com.commercetools.api.models.error; + +import java.util.*; + +import javax.annotation.Nullable; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * GraphQLUnauthorizedErrorBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     GraphQLUnauthorizedError graphQLUnauthorizedError = GraphQLUnauthorizedError.builder()
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class GraphQLUnauthorizedErrorBuilder implements Builder { + + private Map values = new HashMap<>(); + + @Nullable + private java.util.List storesWithoutPermission; + + /** + *

    Error-specific additional fields.

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

    Error-specific additional fields.

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

    Keys of Stores for which the required permission to modify is missing.

    + *

    This field is returned only for Cart Discounts.

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

    Keys of Stores for which the required permission to modify is missing.

    + *

    This field is returned only for Cart Discounts.

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

    Keys of Stores for which the required permission to modify is missing.

    + *

    This field is returned only for Cart Discounts.

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

    Error-specific additional fields.

    + * @return pattern properties + */ + + public Map getValues() { + return this.values; + } + + /** + *

    Keys of Stores for which the required permission to modify is missing.

    + *

    This field is returned only for Cart Discounts.

    + * @return storesWithoutPermission + */ + + @Nullable + public java.util.List getStoresWithoutPermission() { + return this.storesWithoutPermission; + } + + /** + * builds GraphQLUnauthorizedError with checking for non-null required values + * @return GraphQLUnauthorizedError + */ + public GraphQLUnauthorizedError build() { + return new GraphQLUnauthorizedErrorImpl(values, storesWithoutPermission); + } + + /** + * builds GraphQLUnauthorizedError without checking for non-null required values + * @return GraphQLUnauthorizedError + */ + public GraphQLUnauthorizedError buildUnchecked() { + return new GraphQLUnauthorizedErrorImpl(values, storesWithoutPermission); + } + + /** + * factory method for an instance of GraphQLUnauthorizedErrorBuilder + * @return builder + */ + public static GraphQLUnauthorizedErrorBuilder of() { + return new GraphQLUnauthorizedErrorBuilder(); + } + + /** + * create builder for GraphQLUnauthorizedError instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static GraphQLUnauthorizedErrorBuilder of(final GraphQLUnauthorizedError template) { + GraphQLUnauthorizedErrorBuilder builder = new GraphQLUnauthorizedErrorBuilder(); + builder.values = template.values(); + builder.storesWithoutPermission = template.getStoresWithoutPermission(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLUnauthorizedErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLUnauthorizedErrorImpl.java new file mode 100644 index 0000000000..9231d5c31a --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLUnauthorizedErrorImpl.java @@ -0,0 +1,131 @@ + +package com.commercetools.api.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 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; + +import tools.jackson.databind.annotation.*; + +/** + *

    Returned when one of the following conditions occurs:

    + *
      + *
    • A Customer reference (for example, associates[*].customer or inheritedAssociates[*].customer) is expanded on the My Business Unit endpoint.
    • + *
    • A Cart Discount cannot be modified due to missing permissions for its assigned Stores.
    • + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class GraphQLUnauthorizedErrorImpl implements GraphQLUnauthorizedError, ModelBase { + + private String code; + + private Map values; + + private java.util.List storesWithoutPermission; + + /** + * create instance with all properties + */ + @JsonCreator + GraphQLUnauthorizedErrorImpl(@JsonAnySetter @JsonProperty("values") final Map values, + @JsonProperty("storesWithoutPermission") final java.util.List storesWithoutPermission) { + this.values = values; + this.storesWithoutPermission = storesWithoutPermission; + this.code = UNAUTHORIZED; + } + + /** + * create empty instance + */ + public GraphQLUnauthorizedErrorImpl() { + this.code = UNAUTHORIZED; + } + + /** + * + */ + + public String getCode() { + return this.code; + } + + /** + *

    Error-specific additional fields.

    + */ + + public Map values() { + return values; + } + + /** + *

    Keys of Stores for which the required permission to modify is missing.

    + *

    This field is returned only for Cart Discounts.

    + */ + + public java.util.List getStoresWithoutPermission() { + return this.storesWithoutPermission; + } + + public void setValue(String key, java.lang.Object value) { + if (values == null) { + values = new HashMap<>(); + } + values.put(key, value); + } + + public void setStoresWithoutPermission(final String... storesWithoutPermission) { + this.storesWithoutPermission = new ArrayList<>(Arrays.asList(storesWithoutPermission)); + } + + public void setStoresWithoutPermission(final java.util.List storesWithoutPermission) { + this.storesWithoutPermission = storesWithoutPermission; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + GraphQLUnauthorizedErrorImpl that = (GraphQLUnauthorizedErrorImpl) o; + + return new EqualsBuilder().append(code, that.code) + .append(values, that.values) + .append(storesWithoutPermission, that.storesWithoutPermission) + .append(code, that.code) + .append(values, that.values) + .append(storesWithoutPermission, that.storesWithoutPermission) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(code).append(values).append(storesWithoutPermission).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("code", code) + .append("values", values) + .append("storesWithoutPermission", storesWithoutPermission) + .build(); + } + + @Override + public GraphQLUnauthorizedError copyDeep() { + return GraphQLUnauthorizedError.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/UnauthorizedError.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/UnauthorizedError.java new file mode 100644 index 0000000000..cc2c754970 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/UnauthorizedError.java @@ -0,0 +1,173 @@ + +package com.commercetools.api.models.error; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.fasterxml.jackson.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.constraints.NotNull; +import tools.jackson.databind.annotation.*; + +/** + *

    Returned when one of the following conditions occurs:

    + *
      + *
    • A Customer reference (for example, associates[*].customer or inheritedAssociates[*].customer) is expanded on the My Business Unit endpoint.
    • + *
    • A Cart Discount cannot be modified due to missing permissions for its assigned Stores.
    • + *
    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     UnauthorizedError unauthorizedError = UnauthorizedError.builder()
    + *             .message("{message}")
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("Unauthorized") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = UnauthorizedErrorImpl.class) +public interface UnauthorizedError extends ErrorObject { + + /** + * discriminator value for UnauthorizedError + */ + String UNAUTHORIZED = "Unauthorized"; + + /** + * + * @return code + */ + @NotNull + @JsonProperty("code") + public String getCode(); + + /** + *

    "Customer reference expansion not permitted on my business unit" or "Not allowed to edit this CartDiscount."

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

    Keys of Stores for which the required permission to modify is missing.

    + *

    This field is returned only for Cart Discounts.

    + * @return storesWithoutPermission + */ + + @JsonProperty("storesWithoutPermission") + public List getStoresWithoutPermission(); + + /** + *

    "Customer reference expansion not permitted on my business unit" or "Not allowed to edit this CartDiscount."

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

    Keys of Stores for which the required permission to modify is missing.

    + *

    This field is returned only for Cart Discounts.

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

    Keys of Stores for which the required permission to modify is missing.

    + *

    This field is returned only for Cart Discounts.

    + * @param storesWithoutPermission values to be set + */ + + public void setStoresWithoutPermission(final List storesWithoutPermission); + + /** + * factory method + * @return instance of UnauthorizedError + */ + public static UnauthorizedError of() { + return new UnauthorizedErrorImpl(); + } + + /** + * factory method to create a shallow copy UnauthorizedError + * @param template instance to be copied + * @return copy instance + */ + public static UnauthorizedError of(final UnauthorizedError template) { + UnauthorizedErrorImpl instance = new UnauthorizedErrorImpl(); + instance.setMessage(template.getMessage()); + Optional.ofNullable(template.values()).ifPresent(t -> t.forEach(instance::setValue)); + instance.setStoresWithoutPermission(template.getStoresWithoutPermission()); + return instance; + } + + public UnauthorizedError copyDeep(); + + /** + * factory method to create a deep copy of UnauthorizedError + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static UnauthorizedError deepCopy(@Nullable final UnauthorizedError template) { + if (template == null) { + return null; + } + UnauthorizedErrorImpl instance = new UnauthorizedErrorImpl(); + instance.setMessage(template.getMessage()); + Optional.ofNullable(template.values()).ifPresent(t -> t.forEach(instance::setValue)); + instance.setStoresWithoutPermission( + Optional.ofNullable(template.getStoresWithoutPermission()).map(ArrayList::new).orElse(null)); + return instance; + } + + /** + * builder factory method for UnauthorizedError + * @return builder + */ + public static UnauthorizedErrorBuilder builder() { + return UnauthorizedErrorBuilder.of(); + } + + /** + * create builder for UnauthorizedError instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static UnauthorizedErrorBuilder builder(final UnauthorizedError template) { + return UnauthorizedErrorBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withUnauthorizedError(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static tools.jackson.core.type.TypeReference typeReference() { + return new tools.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/error/UnauthorizedErrorBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/UnauthorizedErrorBuilder.java new file mode 100644 index 0000000000..9fc7b25240 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/UnauthorizedErrorBuilder.java @@ -0,0 +1,177 @@ + +package com.commercetools.api.models.error; + +import java.util.*; + +import javax.annotation.Nullable; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * UnauthorizedErrorBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     UnauthorizedError unauthorizedError = UnauthorizedError.builder()
    + *             .message("{message}")
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class UnauthorizedErrorBuilder implements Builder { + + private String message; + + private Map values = new HashMap<>(); + + @Nullable + private java.util.List storesWithoutPermission; + + /** + *

    "Customer reference expansion not permitted on my business unit" or "Not allowed to edit this CartDiscount."

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

    Error-specific additional fields.

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

    Error-specific additional fields.

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

    Keys of Stores for which the required permission to modify is missing.

    + *

    This field is returned only for Cart Discounts.

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

    Keys of Stores for which the required permission to modify is missing.

    + *

    This field is returned only for Cart Discounts.

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

    Keys of Stores for which the required permission to modify is missing.

    + *

    This field is returned only for Cart Discounts.

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

    "Customer reference expansion not permitted on my business unit" or "Not allowed to edit this CartDiscount."

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

    Error-specific additional fields.

    + * @return pattern properties + */ + + public Map getValues() { + return this.values; + } + + /** + *

    Keys of Stores for which the required permission to modify is missing.

    + *

    This field is returned only for Cart Discounts.

    + * @return storesWithoutPermission + */ + + @Nullable + public java.util.List getStoresWithoutPermission() { + return this.storesWithoutPermission; + } + + /** + * builds UnauthorizedError with checking for non-null required values + * @return UnauthorizedError + */ + public UnauthorizedError build() { + Objects.requireNonNull(message, UnauthorizedError.class + ": message is missing"); + return new UnauthorizedErrorImpl(message, values, storesWithoutPermission); + } + + /** + * builds UnauthorizedError without checking for non-null required values + * @return UnauthorizedError + */ + public UnauthorizedError buildUnchecked() { + return new UnauthorizedErrorImpl(message, values, storesWithoutPermission); + } + + /** + * factory method for an instance of UnauthorizedErrorBuilder + * @return builder + */ + public static UnauthorizedErrorBuilder of() { + return new UnauthorizedErrorBuilder(); + } + + /** + * create builder for UnauthorizedError instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static UnauthorizedErrorBuilder of(final UnauthorizedError template) { + UnauthorizedErrorBuilder builder = new UnauthorizedErrorBuilder(); + builder.message = template.getMessage(); + builder.values = template.values(); + builder.storesWithoutPermission = template.getStoresWithoutPermission(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/UnauthorizedErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/UnauthorizedErrorImpl.java new file mode 100644 index 0000000000..b158eb3a65 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/UnauthorizedErrorImpl.java @@ -0,0 +1,154 @@ + +package com.commercetools.api.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 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; + +import tools.jackson.databind.annotation.*; + +/** + *

    Returned when one of the following conditions occurs:

    + *
      + *
    • A Customer reference (for example, associates[*].customer or inheritedAssociates[*].customer) is expanded on the My Business Unit endpoint.
    • + *
    • A Cart Discount cannot be modified due to missing permissions for its assigned Stores.
    • + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class UnauthorizedErrorImpl implements UnauthorizedError, ModelBase { + + private String code; + + private String message; + + private Map values; + + private java.util.List storesWithoutPermission; + + /** + * create instance with all properties + */ + @JsonCreator + UnauthorizedErrorImpl(@JsonProperty("message") final String message, + @JsonAnySetter @JsonProperty("values") final Map values, + @JsonProperty("storesWithoutPermission") final java.util.List storesWithoutPermission) { + this.message = message; + this.values = values; + this.storesWithoutPermission = storesWithoutPermission; + this.code = UNAUTHORIZED; + } + + /** + * create empty instance + */ + public UnauthorizedErrorImpl() { + this.code = UNAUTHORIZED; + } + + /** + * + */ + + public String getCode() { + return this.code; + } + + /** + *

    "Customer reference expansion not permitted on my business unit" or "Not allowed to edit this CartDiscount."

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

    Error-specific additional fields.

    + */ + + public Map values() { + return values; + } + + /** + *

    Keys of Stores for which the required permission to modify is missing.

    + *

    This field is returned only for Cart Discounts.

    + */ + + public java.util.List getStoresWithoutPermission() { + return this.storesWithoutPermission; + } + + public void setMessage(final String message) { + this.message = message; + } + + public void setValue(String key, java.lang.Object value) { + if (values == null) { + values = new HashMap<>(); + } + values.put(key, value); + } + + public void setStoresWithoutPermission(final String... storesWithoutPermission) { + this.storesWithoutPermission = new ArrayList<>(Arrays.asList(storesWithoutPermission)); + } + + public void setStoresWithoutPermission(final java.util.List storesWithoutPermission) { + this.storesWithoutPermission = storesWithoutPermission; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + UnauthorizedErrorImpl that = (UnauthorizedErrorImpl) o; + + return new EqualsBuilder().append(code, that.code) + .append(message, that.message) + .append(values, that.values) + .append(storesWithoutPermission, that.storesWithoutPermission) + .append(code, that.code) + .append(message, that.message) + .append(values, that.values) + .append(storesWithoutPermission, that.storesWithoutPermission) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(code) + .append(message) + .append(values) + .append(storesWithoutPermission) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("code", code) + .append("message", message) + .append("values", values) + .append("storesWithoutPermission", storesWithoutPermission) + .build(); + } + + @Override + public UnauthorizedError copyDeep() { + return UnauthorizedError.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/error/ErrorObjectQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/error/ErrorObjectQueryBuilderDsl.java index 1d5d4122ca..58b717ff77 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/error/ErrorObjectQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/error/ErrorObjectQueryBuilderDsl.java @@ -675,6 +675,13 @@ public CombinationQueryPredicate asSyntaxError( ErrorObjectQueryBuilderDsl::of); } + public CombinationQueryPredicate asUnauthorized( + Function> fn) { + return new CombinationQueryPredicate<>( + fn.apply(com.commercetools.api.predicates.query.error.UnauthorizedErrorQueryBuilderDsl.of()), + ErrorObjectQueryBuilderDsl::of); + } + public CombinationQueryPredicate asValidityLockConflict( Function> fn) { return new CombinationQueryPredicate<>( diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/error/GraphQLErrorObjectQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/error/GraphQLErrorObjectQueryBuilderDsl.java index ce43ac2daf..1480a96781 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/error/GraphQLErrorObjectQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/error/GraphQLErrorObjectQueryBuilderDsl.java @@ -691,6 +691,13 @@ public CombinationQueryPredicate asSyntaxErro GraphQLErrorObjectQueryBuilderDsl::of); } + public CombinationQueryPredicate asUnauthorized( + Function> fn) { + return new CombinationQueryPredicate<>( + fn.apply(com.commercetools.api.predicates.query.error.GraphQLUnauthorizedErrorQueryBuilderDsl.of()), + GraphQLErrorObjectQueryBuilderDsl::of); + } + public CombinationQueryPredicate asValidityLockConflict( Function> fn) { return new CombinationQueryPredicate<>( diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/error/GraphQLUnauthorizedErrorQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/error/GraphQLUnauthorizedErrorQueryBuilderDsl.java new file mode 100644 index 0000000000..78341017ef --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/error/GraphQLUnauthorizedErrorQueryBuilderDsl.java @@ -0,0 +1,26 @@ + +package com.commercetools.api.predicates.query.error; + +import com.commercetools.api.predicates.query.*; + +public class GraphQLUnauthorizedErrorQueryBuilderDsl { + public GraphQLUnauthorizedErrorQueryBuilderDsl() { + } + + public static GraphQLUnauthorizedErrorQueryBuilderDsl of() { + return new GraphQLUnauthorizedErrorQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder code() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("code")), + p -> new CombinationQueryPredicate<>(p, GraphQLUnauthorizedErrorQueryBuilderDsl::of)); + } + + public StringCollectionPredicateBuilder storesWithoutPermission() { + return new StringCollectionPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("storesWithoutPermission")), + p -> new CombinationQueryPredicate<>(p, GraphQLUnauthorizedErrorQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/error/UnauthorizedErrorQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/error/UnauthorizedErrorQueryBuilderDsl.java new file mode 100644 index 0000000000..692e00712d --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/error/UnauthorizedErrorQueryBuilderDsl.java @@ -0,0 +1,32 @@ + +package com.commercetools.api.predicates.query.error; + +import com.commercetools.api.predicates.query.*; + +public class UnauthorizedErrorQueryBuilderDsl { + public UnauthorizedErrorQueryBuilderDsl() { + } + + public static UnauthorizedErrorQueryBuilderDsl of() { + return new UnauthorizedErrorQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder code() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("code")), + p -> new CombinationQueryPredicate<>(p, UnauthorizedErrorQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder message() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("message")), + p -> new CombinationQueryPredicate<>(p, UnauthorizedErrorQueryBuilderDsl::of)); + } + + public StringCollectionPredicateBuilder storesWithoutPermission() { + return new StringCollectionPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("storesWithoutPermission")), + p -> new CombinationQueryPredicate<>(p, UnauthorizedErrorQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/error/GraphQLUnauthorizedErrorTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/error/GraphQLUnauthorizedErrorTest.java new file mode 100644 index 0000000000..a730d06210 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/error/GraphQLUnauthorizedErrorTest.java @@ -0,0 +1,32 @@ + +package com.commercetools.api.models.error; + +import java.util.Collections; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class GraphQLUnauthorizedErrorTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, GraphQLUnauthorizedErrorBuilder builder) { + GraphQLUnauthorizedError graphQLUnauthorizedError = builder.buildUnchecked(); + Assertions.assertThat(graphQLUnauthorizedError).isInstanceOf(GraphQLUnauthorizedError.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { "storesWithoutPermission", GraphQLUnauthorizedError.builder() + .storesWithoutPermission(Collections.singletonList("storesWithoutPermission")) } }; + } + + @Test + public void storesWithoutPermission() { + GraphQLUnauthorizedError value = GraphQLUnauthorizedError.of(); + value.setStoresWithoutPermission(Collections.singletonList("storesWithoutPermission")); + Assertions.assertThat(value.getStoresWithoutPermission()) + .isEqualTo(Collections.singletonList("storesWithoutPermission")); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/error/UnauthorizedErrorTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/error/UnauthorizedErrorTest.java new file mode 100644 index 0000000000..394b7785cd --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/error/UnauthorizedErrorTest.java @@ -0,0 +1,40 @@ + +package com.commercetools.api.models.error; + +import java.util.Collections; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class UnauthorizedErrorTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, UnauthorizedErrorBuilder builder) { + UnauthorizedError unauthorizedError = builder.buildUnchecked(); + Assertions.assertThat(unauthorizedError).isInstanceOf(UnauthorizedError.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { "message", UnauthorizedError.builder().message("message") }, + new Object[] { "storesWithoutPermission", UnauthorizedError.builder() + .storesWithoutPermission(Collections.singletonList("storesWithoutPermission")) } }; + } + + @Test + public void message() { + UnauthorizedError value = UnauthorizedError.of(); + value.setMessage("message"); + Assertions.assertThat(value.getMessage()).isEqualTo("message"); + } + + @Test + public void storesWithoutPermission() { + UnauthorizedError value = UnauthorizedError.of(); + value.setStoresWithoutPermission(Collections.singletonList("storesWithoutPermission")); + Assertions.assertThat(value.getStoresWithoutPermission()) + .isEqualTo(Collections.singletonList("storesWithoutPermission")); + } +} diff --git a/references.txt b/references.txt index 3e7594e7b7..620e9fbccf 100644 --- a/references.txt +++ b/references.txt @@ -596,3 +596,4 @@ c0ff7b23243c9d95736ec183699775a9341f0007 ff7070c0ff123a4d0bb190130d1c83e5ac0356ec 03e55e32b7a0a742fc59eb380d290623105d5cbf 3da8f4b822245fffefa8a9fcae78b2d9d8eea73d +f1aa67e522f27cdd01e5817f85d2d8ead7dbf5c6 From f4c9c90ba4189b7f65d0683fe1d53aadb686bbea Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Wed, 22 Jul 2026 08:28:58 +0000 Subject: [PATCH 15/27] build(codegen): updating SDK --- .../src/main/resources/graphql/schema.graphqls | 14 ++++++++++++++ references.txt | 1 + 2 files changed, 15 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 ac7cf5ff20..046101b018 100644 --- a/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls +++ b/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls @@ -7549,6 +7549,15 @@ type ProductTailoringImagesSet implements MessagePayload { type: String! } +type ProductTailoringKeySet implements MessagePayload { + key: String + oldKey: String + storeRef: KeyReference! + productRef: Reference! + productKey: String + type: String! +} + type ProductTailoringNameSet implements MessagePayload { storeRef: KeyReference! productRef: Reference! @@ -15448,6 +15457,7 @@ input ProductTailoringUpdateAction { setAttributeInAllVariants: SetProductTailoringAttributeInAllVariants setDescription: SetProductTailoringDescription setImageLabel: SetProductTailoringImageLabel + setKey: SetProductTailoringKey setMetaAttributes: SetProductTailoringMetaAttributes setMetaDescription: SetProductTailoringMetaDescription setMetaKeywords: SetProductTailoringMetaKeywords @@ -17893,6 +17903,10 @@ input SetProductTailoringImages { staged: Boolean = true } +input SetProductTailoringKey { + key: String +} + input SetProductTailoringMetaAttributes { metaDescription: [LocalizedStringItemInputType!] metaKeywords: [LocalizedStringItemInputType!] diff --git a/references.txt b/references.txt index 620e9fbccf..c48f1cbdee 100644 --- a/references.txt +++ b/references.txt @@ -597,3 +597,4 @@ ff7070c0ff123a4d0bb190130d1c83e5ac0356ec 03e55e32b7a0a742fc59eb380d290623105d5cbf 3da8f4b822245fffefa8a9fcae78b2d9d8eea73d f1aa67e522f27cdd01e5817f85d2d8ead7dbf5c6 +2020e89c5cef8597a35ec654b36439e6a3c90d49 From 8c5b5d41b08950713d5da2f6899f9a46aa253c39 Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Fri, 24 Jul 2026 07:59:03 +0000 Subject: [PATCH 16/27] build(codegen): updating SDK --- changes.md | 3 + .../api/models/message/Message.java | 8 + .../api/models/message/MessageBuilder.java | 4 + .../api/models/message/MessagePayload.java | 8 + .../models/message/MessagePayloadBuilder.java | 4 + .../ProductTailoringKeySetMessage.java | 233 +++++++ .../ProductTailoringKeySetMessageBuilder.java | 579 ++++++++++++++++++ .../ProductTailoringKeySetMessageImpl.java | 380 ++++++++++++ .../ProductTailoringKeySetMessagePayload.java | 206 +++++++ ...tTailoringKeySetMessagePayloadBuilder.java | 235 +++++++ ...ductTailoringKeySetMessagePayloadImpl.java | 181 ++++++ .../ProductTailoringSetKeyAction.java | 128 ++++ .../ProductTailoringSetKeyActionBuilder.java | 84 +++ .../ProductTailoringSetKeyActionImpl.java | 99 +++ .../ProductTailoringUpdateAction.java | 8 + .../ProductTailoringUpdateActionBuilder.java | 4 + ...oringKeySetMessageExpansionBuilderDsl.java | 51 ++ .../MessagePayloadQueryBuilderDsl.java | 7 + .../query/message/MessageQueryBuilderDsl.java | 7 + ...ngKeySetMessagePayloadQueryBuilderDsl.java | 55 ++ ...TailoringKeySetMessageQueryBuilderDsl.java | 127 ++++ ...tTailoringSetKeyActionQueryBuilderDsl.java | 25 + ...tTailoringUpdateActionQueryBuilderDsl.java | 7 + ...ductTailoringKeySetMessagePayloadTest.java | 68 ++ .../ProductTailoringKeySetMessageTest.java | 67 ++ .../ProductTailoringSetKeyActionTest.java | 28 + references.txt | 1 + 27 files changed, 2607 insertions(+) create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductTailoringKeySetMessage.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductTailoringKeySetMessageBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductTailoringKeySetMessageImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductTailoringKeySetMessagePayload.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductTailoringKeySetMessagePayloadBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductTailoringKeySetMessagePayloadImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetKeyAction.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetKeyActionBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetKeyActionImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/expansion/message/ProductTailoringKeySetMessageExpansionBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/ProductTailoringKeySetMessagePayloadQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/ProductTailoringKeySetMessageQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_tailoring/ProductTailoringSetKeyActionQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/ProductTailoringKeySetMessagePayloadTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/ProductTailoringKeySetMessageTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetKeyActionTest.java diff --git a/changes.md b/changes.md index 0bc906bae9..924fcbf460 100644 --- a/changes.md +++ b/changes.md @@ -64,6 +64,9 @@ - added type `McpServerSetToolCustomizationsAction` - added type `McpServerSetToolOutputFormattingAction` - added type `McpServerSetToolsAction` +- added type `ProductTailoringKeySetMessage` +- added type `ProductTailoringKeySetMessagePayload` +- added type `ProductTailoringSetKeyAction`
    diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/Message.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/Message.java index 8b53034662..c1b0f845b5 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/Message.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/Message.java @@ -2221,6 +2221,14 @@ public static com.commercetools.api.models.message.ProductTailoringImagesSetMess return com.commercetools.api.models.message.ProductTailoringImagesSetMessageBuilder.of(); } + /** + * builder for productTailoringKeySet subtype + * @return builder + */ + public static com.commercetools.api.models.message.ProductTailoringKeySetMessageBuilder productTailoringKeySetBuilder() { + return com.commercetools.api.models.message.ProductTailoringKeySetMessageBuilder.of(); + } + /** * builder for productTailoringNameSet subtype * @return builder diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/MessageBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/MessageBuilder.java index ea8acc07c3..a4ee6a69de 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/MessageBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/MessageBuilder.java @@ -1003,6 +1003,10 @@ public com.commercetools.api.models.message.ProductTailoringImagesSetMessageBuil return com.commercetools.api.models.message.ProductTailoringImagesSetMessageBuilder.of(); } + public com.commercetools.api.models.message.ProductTailoringKeySetMessageBuilder productTailoringKeySetBuilder() { + return com.commercetools.api.models.message.ProductTailoringKeySetMessageBuilder.of(); + } + public com.commercetools.api.models.message.ProductTailoringNameSetMessageBuilder productTailoringNameSetBuilder() { return com.commercetools.api.models.message.ProductTailoringNameSetMessageBuilder.of(); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/MessagePayload.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/MessagePayload.java index c6aa4990c1..dfbb4f13f7 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/MessagePayload.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/MessagePayload.java @@ -2047,6 +2047,14 @@ public static com.commercetools.api.models.message.ProductTailoringImagesSetMess return com.commercetools.api.models.message.ProductTailoringImagesSetMessagePayloadBuilder.of(); } + /** + * builder for productTailoringKeySet subtype + * @return builder + */ + public static com.commercetools.api.models.message.ProductTailoringKeySetMessagePayloadBuilder productTailoringKeySetBuilder() { + return com.commercetools.api.models.message.ProductTailoringKeySetMessagePayloadBuilder.of(); + } + /** * builder for productTailoringNameSet subtype * @return builder diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/MessagePayloadBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/MessagePayloadBuilder.java index adf3ce8f99..a91a57016d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/MessagePayloadBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/MessagePayloadBuilder.java @@ -1005,6 +1005,10 @@ public com.commercetools.api.models.message.ProductTailoringImagesSetMessagePayl return com.commercetools.api.models.message.ProductTailoringImagesSetMessagePayloadBuilder.of(); } + public com.commercetools.api.models.message.ProductTailoringKeySetMessagePayloadBuilder productTailoringKeySetBuilder() { + return com.commercetools.api.models.message.ProductTailoringKeySetMessagePayloadBuilder.of(); + } + public com.commercetools.api.models.message.ProductTailoringNameSetMessagePayloadBuilder productTailoringNameSetBuilder() { return com.commercetools.api.models.message.ProductTailoringNameSetMessagePayloadBuilder.of(); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductTailoringKeySetMessage.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductTailoringKeySetMessage.java new file mode 100644 index 0000000000..55d2749fbe --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductTailoringKeySetMessage.java @@ -0,0 +1,233 @@ + +package com.commercetools.api.models.message; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.commercetools.api.models.product.ProductReference; +import com.commercetools.api.models.store.StoreKeyReference; +import com.fasterxml.jackson.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; +import tools.jackson.databind.annotation.*; + +/** + *

    Generated after a successful Product Tailoring Set Key update action.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     ProductTailoringKeySetMessage productTailoringKeySetMessage = ProductTailoringKeySetMessage.builder()
    + *             .id("{id}")
    + *             .version(0.3)
    + *             .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
    + *             .lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
    + *             .sequenceNumber(0.3)
    + *             .resource(resourceBuilder -> resourceBuilder)
    + *             .resourceVersion(0.3)
    + *             .store(storeBuilder -> storeBuilder)
    + *             .product(productBuilder -> productBuilder)
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("ProductTailoringKeySet") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ProductTailoringKeySetMessageImpl.class) +public interface ProductTailoringKeySetMessage extends Message { + + /** + * discriminator value for ProductTailoringKeySetMessage + */ + String PRODUCT_TAILORING_KEY_SET = "ProductTailoringKeySet"; + + /** + *

    The Store to which the Product Tailoring belongs.

    + * @return store + */ + @NotNull + @Valid + @JsonProperty("store") + public StoreKeyReference getStore(); + + /** + *

    User-defined unique identifier of the Product this Product Tailoring belongs to.

    + * @return productKey + */ + + @JsonProperty("productKey") + public String getProductKey(); + + /** + *

    Reference to the Product the Product Tailoring belongs to.

    + * @return product + */ + @NotNull + @Valid + @JsonProperty("product") + public ProductReference getProduct(); + + /** + *

    key value of the ProductTailoring after the Set Key update action.

    + * @return key + */ + + @JsonProperty("key") + public String getKey(); + + /** + *

    key value of the ProductTailoring before the Set Key update action.

    + * @return oldKey + */ + + @JsonProperty("oldKey") + public String getOldKey(); + + /** + *

    The Store to which the Product Tailoring belongs.

    + * @param store value to be set + */ + + public void setStore(final StoreKeyReference store); + + /** + *

    User-defined unique identifier of the Product this Product Tailoring belongs to.

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

    Reference to the Product the Product Tailoring belongs to.

    + * @param product value to be set + */ + + public void setProduct(final ProductReference product); + + /** + *

    key value of the ProductTailoring after the Set Key update action.

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

    key value of the ProductTailoring before the Set Key update action.

    + * @param oldKey value to be set + */ + + public void setOldKey(final String oldKey); + + /** + * factory method + * @return instance of ProductTailoringKeySetMessage + */ + public static ProductTailoringKeySetMessage of() { + return new ProductTailoringKeySetMessageImpl(); + } + + /** + * factory method to create a shallow copy ProductTailoringKeySetMessage + * @param template instance to be copied + * @return copy instance + */ + public static ProductTailoringKeySetMessage of(final ProductTailoringKeySetMessage template) { + ProductTailoringKeySetMessageImpl instance = new ProductTailoringKeySetMessageImpl(); + instance.setId(template.getId()); + instance.setVersion(template.getVersion()); + instance.setCreatedAt(template.getCreatedAt()); + instance.setLastModifiedAt(template.getLastModifiedAt()); + instance.setLastModifiedBy(template.getLastModifiedBy()); + instance.setCreatedBy(template.getCreatedBy()); + instance.setSequenceNumber(template.getSequenceNumber()); + instance.setResource(template.getResource()); + instance.setResourceVersion(template.getResourceVersion()); + instance.setResourceUserProvidedIdentifiers(template.getResourceUserProvidedIdentifiers()); + instance.setStore(template.getStore()); + instance.setProductKey(template.getProductKey()); + instance.setProduct(template.getProduct()); + instance.setKey(template.getKey()); + instance.setOldKey(template.getOldKey()); + return instance; + } + + public ProductTailoringKeySetMessage copyDeep(); + + /** + * factory method to create a deep copy of ProductTailoringKeySetMessage + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ProductTailoringKeySetMessage deepCopy(@Nullable final ProductTailoringKeySetMessage template) { + if (template == null) { + return null; + } + ProductTailoringKeySetMessageImpl instance = new ProductTailoringKeySetMessageImpl(); + instance.setId(template.getId()); + instance.setVersion(template.getVersion()); + instance.setCreatedAt(template.getCreatedAt()); + instance.setLastModifiedAt(template.getLastModifiedAt()); + instance.setLastModifiedBy( + com.commercetools.api.models.common.LastModifiedBy.deepCopy(template.getLastModifiedBy())); + instance.setCreatedBy(com.commercetools.api.models.common.CreatedBy.deepCopy(template.getCreatedBy())); + instance.setSequenceNumber(template.getSequenceNumber()); + instance.setResource(com.commercetools.api.models.common.Reference.deepCopy(template.getResource())); + instance.setResourceVersion(template.getResourceVersion()); + instance.setResourceUserProvidedIdentifiers(com.commercetools.api.models.message.UserProvidedIdentifiers + .deepCopy(template.getResourceUserProvidedIdentifiers())); + instance.setStore(com.commercetools.api.models.store.StoreKeyReference.deepCopy(template.getStore())); + instance.setProductKey(template.getProductKey()); + instance.setProduct(com.commercetools.api.models.product.ProductReference.deepCopy(template.getProduct())); + instance.setKey(template.getKey()); + instance.setOldKey(template.getOldKey()); + return instance; + } + + /** + * builder factory method for ProductTailoringKeySetMessage + * @return builder + */ + public static ProductTailoringKeySetMessageBuilder builder() { + return ProductTailoringKeySetMessageBuilder.of(); + } + + /** + * create builder for ProductTailoringKeySetMessage instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductTailoringKeySetMessageBuilder builder(final ProductTailoringKeySetMessage template) { + return ProductTailoringKeySetMessageBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withProductTailoringKeySetMessage(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static tools.jackson.core.type.TypeReference typeReference() { + return new tools.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductTailoringKeySetMessageBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductTailoringKeySetMessageBuilder.java new file mode 100644 index 0000000000..b43b1667c3 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductTailoringKeySetMessageBuilder.java @@ -0,0 +1,579 @@ + +package com.commercetools.api.models.message; + +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductTailoringKeySetMessageBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     ProductTailoringKeySetMessage productTailoringKeySetMessage = ProductTailoringKeySetMessage.builder()
    + *             .id("{id}")
    + *             .version(0.3)
    + *             .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
    + *             .lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
    + *             .sequenceNumber(0.3)
    + *             .resource(resourceBuilder -> resourceBuilder)
    + *             .resourceVersion(0.3)
    + *             .store(storeBuilder -> storeBuilder)
    + *             .product(productBuilder -> productBuilder)
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductTailoringKeySetMessageBuilder implements Builder { + + private String id; + + private Long version; + + private java.time.ZonedDateTime createdAt; + + private java.time.ZonedDateTime lastModifiedAt; + + @Nullable + private com.commercetools.api.models.common.LastModifiedBy lastModifiedBy; + + @Nullable + private com.commercetools.api.models.common.CreatedBy createdBy; + + private Long sequenceNumber; + + private com.commercetools.api.models.common.Reference resource; + + private Long resourceVersion; + + @Nullable + private com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers; + + private com.commercetools.api.models.store.StoreKeyReference store; + + @Nullable + private String productKey; + + private com.commercetools.api.models.product.ProductReference product; + + @Nullable + private String key; + + @Nullable + private String oldKey; + + /** + *

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

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

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

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

    Date and time (UTC) the Message was generated.

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

    Value of createdAt.

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

    IDs and references that last modified the Message.

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

    IDs and references that last modified the Message.

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

    IDs and references that last modified the Message.

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

    IDs and references that created the Message.

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

    IDs and references that created the Message.

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

    IDs and references that created the Message.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    The Store to which the Product Tailoring belongs.

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

    The Store to which the Product Tailoring belongs.

    + * @param builder function to build the store value + * @return Builder + */ + + public ProductTailoringKeySetMessageBuilder withStore( + Function builder) { + this.store = builder.apply(com.commercetools.api.models.store.StoreKeyReferenceBuilder.of()); + return this; + } + + /** + *

    The Store to which the Product Tailoring belongs.

    + * @param store value to be set + * @return Builder + */ + + public ProductTailoringKeySetMessageBuilder store( + final com.commercetools.api.models.store.StoreKeyReference store) { + this.store = store; + return this; + } + + /** + *

    User-defined unique identifier of the Product this Product Tailoring belongs to.

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

    Reference to the Product the Product Tailoring belongs to.

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

    Reference to the Product the Product Tailoring belongs to.

    + * @param builder function to build the product value + * @return Builder + */ + + public ProductTailoringKeySetMessageBuilder withProduct( + Function builder) { + this.product = builder.apply(com.commercetools.api.models.product.ProductReferenceBuilder.of()); + return this; + } + + /** + *

    Reference to the Product the Product Tailoring belongs to.

    + * @param product value to be set + * @return Builder + */ + + public ProductTailoringKeySetMessageBuilder product( + final com.commercetools.api.models.product.ProductReference product) { + this.product = product; + return this; + } + + /** + *

    key value of the ProductTailoring after the Set Key update action.

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

    key value of the ProductTailoring before the Set Key update action.

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

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

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

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

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

    Date and time (UTC) the Message was generated.

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

    Value of createdAt.

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

    IDs and references that last modified the Message.

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

    IDs and references that created the Message.

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

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

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

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

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

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

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

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

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

    The Store to which the Product Tailoring belongs.

    + * @return store + */ + + public com.commercetools.api.models.store.StoreKeyReference getStore() { + return this.store; + } + + /** + *

    User-defined unique identifier of the Product this Product Tailoring belongs to.

    + * @return productKey + */ + + @Nullable + public String getProductKey() { + return this.productKey; + } + + /** + *

    Reference to the Product the Product Tailoring belongs to.

    + * @return product + */ + + public com.commercetools.api.models.product.ProductReference getProduct() { + return this.product; + } + + /** + *

    key value of the ProductTailoring after the Set Key update action.

    + * @return key + */ + + @Nullable + public String getKey() { + return this.key; + } + + /** + *

    key value of the ProductTailoring before the Set Key update action.

    + * @return oldKey + */ + + @Nullable + public String getOldKey() { + return this.oldKey; + } + + /** + * builds ProductTailoringKeySetMessage with checking for non-null required values + * @return ProductTailoringKeySetMessage + */ + public ProductTailoringKeySetMessage build() { + Objects.requireNonNull(id, ProductTailoringKeySetMessage.class + ": id is missing"); + Objects.requireNonNull(version, ProductTailoringKeySetMessage.class + ": version is missing"); + Objects.requireNonNull(createdAt, ProductTailoringKeySetMessage.class + ": createdAt is missing"); + Objects.requireNonNull(lastModifiedAt, ProductTailoringKeySetMessage.class + ": lastModifiedAt is missing"); + Objects.requireNonNull(sequenceNumber, ProductTailoringKeySetMessage.class + ": sequenceNumber is missing"); + Objects.requireNonNull(resource, ProductTailoringKeySetMessage.class + ": resource is missing"); + Objects.requireNonNull(resourceVersion, ProductTailoringKeySetMessage.class + ": resourceVersion is missing"); + Objects.requireNonNull(store, ProductTailoringKeySetMessage.class + ": store is missing"); + Objects.requireNonNull(product, ProductTailoringKeySetMessage.class + ": product is missing"); + return new ProductTailoringKeySetMessageImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, createdBy, + sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, store, productKey, product, key, + oldKey); + } + + /** + * builds ProductTailoringKeySetMessage without checking for non-null required values + * @return ProductTailoringKeySetMessage + */ + public ProductTailoringKeySetMessage buildUnchecked() { + return new ProductTailoringKeySetMessageImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, createdBy, + sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, store, productKey, product, key, + oldKey); + } + + /** + * factory method for an instance of ProductTailoringKeySetMessageBuilder + * @return builder + */ + public static ProductTailoringKeySetMessageBuilder of() { + return new ProductTailoringKeySetMessageBuilder(); + } + + /** + * create builder for ProductTailoringKeySetMessage instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductTailoringKeySetMessageBuilder of(final ProductTailoringKeySetMessage template) { + ProductTailoringKeySetMessageBuilder builder = new ProductTailoringKeySetMessageBuilder(); + builder.id = template.getId(); + builder.version = template.getVersion(); + builder.createdAt = template.getCreatedAt(); + builder.lastModifiedAt = template.getLastModifiedAt(); + builder.lastModifiedBy = template.getLastModifiedBy(); + builder.createdBy = template.getCreatedBy(); + builder.sequenceNumber = template.getSequenceNumber(); + builder.resource = template.getResource(); + builder.resourceVersion = template.getResourceVersion(); + builder.resourceUserProvidedIdentifiers = template.getResourceUserProvidedIdentifiers(); + builder.store = template.getStore(); + builder.productKey = template.getProductKey(); + builder.product = template.getProduct(); + builder.key = template.getKey(); + builder.oldKey = template.getOldKey(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductTailoringKeySetMessageImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductTailoringKeySetMessageImpl.java new file mode 100644 index 0000000000..70f0fca833 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductTailoringKeySetMessageImpl.java @@ -0,0 +1,380 @@ + +package com.commercetools.api.models.message; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; + +import 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; + +import tools.jackson.databind.annotation.*; + +/** + *

    Generated after a successful Product Tailoring Set Key update action.

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

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

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

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

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

    Date and time (UTC) the Message was generated.

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

    Value of createdAt.

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

    IDs and references that last modified the Message.

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

    IDs and references that created the Message.

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

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

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

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

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

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

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

    Message Type of the Message.

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

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

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

    The Store to which the Product Tailoring belongs.

    + */ + + public com.commercetools.api.models.store.StoreKeyReference getStore() { + return this.store; + } + + /** + *

    User-defined unique identifier of the Product this Product Tailoring belongs to.

    + */ + + public String getProductKey() { + return this.productKey; + } + + /** + *

    Reference to the Product the Product Tailoring belongs to.

    + */ + + public com.commercetools.api.models.product.ProductReference getProduct() { + return this.product; + } + + /** + *

    key value of the ProductTailoring after the Set Key update action.

    + */ + + public String getKey() { + return this.key; + } + + /** + *

    key value of the ProductTailoring before the Set Key update action.

    + */ + + public String getOldKey() { + return this.oldKey; + } + + public void setId(final String id) { + this.id = id; + } + + public void setVersion(final Long version) { + this.version = version; + } + + public void setCreatedAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + } + + public void setLastModifiedAt(final java.time.ZonedDateTime lastModifiedAt) { + this.lastModifiedAt = lastModifiedAt; + } + + public void setLastModifiedBy(final com.commercetools.api.models.common.LastModifiedBy lastModifiedBy) { + this.lastModifiedBy = lastModifiedBy; + } + + public void setCreatedBy(final com.commercetools.api.models.common.CreatedBy createdBy) { + this.createdBy = createdBy; + } + + public void setSequenceNumber(final Long sequenceNumber) { + this.sequenceNumber = sequenceNumber; + } + + public void setResource(final com.commercetools.api.models.common.Reference resource) { + this.resource = resource; + } + + public void setResourceVersion(final Long resourceVersion) { + this.resourceVersion = resourceVersion; + } + + public void setResourceUserProvidedIdentifiers( + final com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers) { + this.resourceUserProvidedIdentifiers = resourceUserProvidedIdentifiers; + } + + public void setStore(final com.commercetools.api.models.store.StoreKeyReference store) { + this.store = store; + } + + public void setProductKey(final String productKey) { + this.productKey = productKey; + } + + public void setProduct(final com.commercetools.api.models.product.ProductReference product) { + this.product = product; + } + + public void setKey(final String key) { + this.key = key; + } + + public void setOldKey(final String oldKey) { + this.oldKey = oldKey; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ProductTailoringKeySetMessageImpl that = (ProductTailoringKeySetMessageImpl) o; + + return new EqualsBuilder().append(id, that.id) + .append(version, that.version) + .append(createdAt, that.createdAt) + .append(lastModifiedAt, that.lastModifiedAt) + .append(lastModifiedBy, that.lastModifiedBy) + .append(createdBy, that.createdBy) + .append(sequenceNumber, that.sequenceNumber) + .append(resource, that.resource) + .append(resourceVersion, that.resourceVersion) + .append(type, that.type) + .append(resourceUserProvidedIdentifiers, that.resourceUserProvidedIdentifiers) + .append(store, that.store) + .append(productKey, that.productKey) + .append(product, that.product) + .append(key, that.key) + .append(oldKey, that.oldKey) + .append(id, that.id) + .append(version, that.version) + .append(createdAt, that.createdAt) + .append(lastModifiedAt, that.lastModifiedAt) + .append(lastModifiedBy, that.lastModifiedBy) + .append(createdBy, that.createdBy) + .append(sequenceNumber, that.sequenceNumber) + .append(resource, that.resource) + .append(resourceVersion, that.resourceVersion) + .append(type, that.type) + .append(resourceUserProvidedIdentifiers, that.resourceUserProvidedIdentifiers) + .append(store, that.store) + .append(productKey, that.productKey) + .append(product, that.product) + .append(key, that.key) + .append(oldKey, that.oldKey) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(id) + .append(version) + .append(createdAt) + .append(lastModifiedAt) + .append(lastModifiedBy) + .append(createdBy) + .append(sequenceNumber) + .append(resource) + .append(resourceVersion) + .append(type) + .append(resourceUserProvidedIdentifiers) + .append(store) + .append(productKey) + .append(product) + .append(key) + .append(oldKey) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("id", id) + .append("version", version) + .append("createdAt", createdAt) + .append("lastModifiedAt", lastModifiedAt) + .append("lastModifiedBy", lastModifiedBy) + .append("createdBy", createdBy) + .append("sequenceNumber", sequenceNumber) + .append("resource", resource) + .append("resourceVersion", resourceVersion) + .append("type", type) + .append("resourceUserProvidedIdentifiers", resourceUserProvidedIdentifiers) + .append("store", store) + .append("productKey", productKey) + .append("product", product) + .append("key", key) + .append("oldKey", oldKey) + .build(); + } + + @Override + public ProductTailoringKeySetMessage copyDeep() { + return ProductTailoringKeySetMessage.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductTailoringKeySetMessagePayload.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductTailoringKeySetMessagePayload.java new file mode 100644 index 0000000000..4507756f0a --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductTailoringKeySetMessagePayload.java @@ -0,0 +1,206 @@ + +package com.commercetools.api.models.message; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.commercetools.api.models.product.ProductReference; +import com.commercetools.api.models.store.StoreKeyReference; +import com.fasterxml.jackson.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; +import tools.jackson.databind.annotation.*; + +/** + *

    Generated after a successful Product Tailoring Set Key update action.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     ProductTailoringKeySetMessagePayload productTailoringKeySetMessagePayload = ProductTailoringKeySetMessagePayload.builder()
    + *             .store(storeBuilder -> storeBuilder)
    + *             .product(productBuilder -> productBuilder)
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("ProductTailoringKeySet") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ProductTailoringKeySetMessagePayloadImpl.class) +public interface ProductTailoringKeySetMessagePayload extends MessagePayload { + + /** + * discriminator value for ProductTailoringKeySetMessagePayload + */ + String PRODUCT_TAILORING_KEY_SET = "ProductTailoringKeySet"; + + /** + *

    The Store to which the Product Tailoring belongs.

    + * @return store + */ + @NotNull + @Valid + @JsonProperty("store") + public StoreKeyReference getStore(); + + /** + *

    User-defined unique identifier of the Product this Product Tailoring belongs to.

    + * @return productKey + */ + + @JsonProperty("productKey") + public String getProductKey(); + + /** + *

    Reference to the Product the Product Tailoring belongs to.

    + * @return product + */ + @NotNull + @Valid + @JsonProperty("product") + public ProductReference getProduct(); + + /** + *

    key value of the ProductTailoring after the Set Key update action.

    + * @return key + */ + + @JsonProperty("key") + public String getKey(); + + /** + *

    key value of the ProductTailoring before the Set Key update action.

    + * @return oldKey + */ + + @JsonProperty("oldKey") + public String getOldKey(); + + /** + *

    The Store to which the Product Tailoring belongs.

    + * @param store value to be set + */ + + public void setStore(final StoreKeyReference store); + + /** + *

    User-defined unique identifier of the Product this Product Tailoring belongs to.

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

    Reference to the Product the Product Tailoring belongs to.

    + * @param product value to be set + */ + + public void setProduct(final ProductReference product); + + /** + *

    key value of the ProductTailoring after the Set Key update action.

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

    key value of the ProductTailoring before the Set Key update action.

    + * @param oldKey value to be set + */ + + public void setOldKey(final String oldKey); + + /** + * factory method + * @return instance of ProductTailoringKeySetMessagePayload + */ + public static ProductTailoringKeySetMessagePayload of() { + return new ProductTailoringKeySetMessagePayloadImpl(); + } + + /** + * factory method to create a shallow copy ProductTailoringKeySetMessagePayload + * @param template instance to be copied + * @return copy instance + */ + public static ProductTailoringKeySetMessagePayload of(final ProductTailoringKeySetMessagePayload template) { + ProductTailoringKeySetMessagePayloadImpl instance = new ProductTailoringKeySetMessagePayloadImpl(); + instance.setStore(template.getStore()); + instance.setProductKey(template.getProductKey()); + instance.setProduct(template.getProduct()); + instance.setKey(template.getKey()); + instance.setOldKey(template.getOldKey()); + return instance; + } + + public ProductTailoringKeySetMessagePayload copyDeep(); + + /** + * factory method to create a deep copy of ProductTailoringKeySetMessagePayload + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ProductTailoringKeySetMessagePayload deepCopy( + @Nullable final ProductTailoringKeySetMessagePayload template) { + if (template == null) { + return null; + } + ProductTailoringKeySetMessagePayloadImpl instance = new ProductTailoringKeySetMessagePayloadImpl(); + instance.setStore(com.commercetools.api.models.store.StoreKeyReference.deepCopy(template.getStore())); + instance.setProductKey(template.getProductKey()); + instance.setProduct(com.commercetools.api.models.product.ProductReference.deepCopy(template.getProduct())); + instance.setKey(template.getKey()); + instance.setOldKey(template.getOldKey()); + return instance; + } + + /** + * builder factory method for ProductTailoringKeySetMessagePayload + * @return builder + */ + public static ProductTailoringKeySetMessagePayloadBuilder builder() { + return ProductTailoringKeySetMessagePayloadBuilder.of(); + } + + /** + * create builder for ProductTailoringKeySetMessagePayload instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductTailoringKeySetMessagePayloadBuilder builder( + final ProductTailoringKeySetMessagePayload template) { + return ProductTailoringKeySetMessagePayloadBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withProductTailoringKeySetMessagePayload(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static tools.jackson.core.type.TypeReference typeReference() { + return new tools.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductTailoringKeySetMessagePayloadBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductTailoringKeySetMessagePayloadBuilder.java new file mode 100644 index 0000000000..28d446730d --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductTailoringKeySetMessagePayloadBuilder.java @@ -0,0 +1,235 @@ + +package com.commercetools.api.models.message; + +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductTailoringKeySetMessagePayloadBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     ProductTailoringKeySetMessagePayload productTailoringKeySetMessagePayload = ProductTailoringKeySetMessagePayload.builder()
    + *             .store(storeBuilder -> storeBuilder)
    + *             .product(productBuilder -> productBuilder)
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductTailoringKeySetMessagePayloadBuilder implements Builder { + + private com.commercetools.api.models.store.StoreKeyReference store; + + @Nullable + private String productKey; + + private com.commercetools.api.models.product.ProductReference product; + + @Nullable + private String key; + + @Nullable + private String oldKey; + + /** + *

    The Store to which the Product Tailoring belongs.

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

    The Store to which the Product Tailoring belongs.

    + * @param builder function to build the store value + * @return Builder + */ + + public ProductTailoringKeySetMessagePayloadBuilder withStore( + Function builder) { + this.store = builder.apply(com.commercetools.api.models.store.StoreKeyReferenceBuilder.of()); + return this; + } + + /** + *

    The Store to which the Product Tailoring belongs.

    + * @param store value to be set + * @return Builder + */ + + public ProductTailoringKeySetMessagePayloadBuilder store( + final com.commercetools.api.models.store.StoreKeyReference store) { + this.store = store; + return this; + } + + /** + *

    User-defined unique identifier of the Product this Product Tailoring belongs to.

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

    Reference to the Product the Product Tailoring belongs to.

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

    Reference to the Product the Product Tailoring belongs to.

    + * @param builder function to build the product value + * @return Builder + */ + + public ProductTailoringKeySetMessagePayloadBuilder withProduct( + Function builder) { + this.product = builder.apply(com.commercetools.api.models.product.ProductReferenceBuilder.of()); + return this; + } + + /** + *

    Reference to the Product the Product Tailoring belongs to.

    + * @param product value to be set + * @return Builder + */ + + public ProductTailoringKeySetMessagePayloadBuilder product( + final com.commercetools.api.models.product.ProductReference product) { + this.product = product; + return this; + } + + /** + *

    key value of the ProductTailoring after the Set Key update action.

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

    key value of the ProductTailoring before the Set Key update action.

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

    The Store to which the Product Tailoring belongs.

    + * @return store + */ + + public com.commercetools.api.models.store.StoreKeyReference getStore() { + return this.store; + } + + /** + *

    User-defined unique identifier of the Product this Product Tailoring belongs to.

    + * @return productKey + */ + + @Nullable + public String getProductKey() { + return this.productKey; + } + + /** + *

    Reference to the Product the Product Tailoring belongs to.

    + * @return product + */ + + public com.commercetools.api.models.product.ProductReference getProduct() { + return this.product; + } + + /** + *

    key value of the ProductTailoring after the Set Key update action.

    + * @return key + */ + + @Nullable + public String getKey() { + return this.key; + } + + /** + *

    key value of the ProductTailoring before the Set Key update action.

    + * @return oldKey + */ + + @Nullable + public String getOldKey() { + return this.oldKey; + } + + /** + * builds ProductTailoringKeySetMessagePayload with checking for non-null required values + * @return ProductTailoringKeySetMessagePayload + */ + public ProductTailoringKeySetMessagePayload build() { + Objects.requireNonNull(store, ProductTailoringKeySetMessagePayload.class + ": store is missing"); + Objects.requireNonNull(product, ProductTailoringKeySetMessagePayload.class + ": product is missing"); + return new ProductTailoringKeySetMessagePayloadImpl(store, productKey, product, key, oldKey); + } + + /** + * builds ProductTailoringKeySetMessagePayload without checking for non-null required values + * @return ProductTailoringKeySetMessagePayload + */ + public ProductTailoringKeySetMessagePayload buildUnchecked() { + return new ProductTailoringKeySetMessagePayloadImpl(store, productKey, product, key, oldKey); + } + + /** + * factory method for an instance of ProductTailoringKeySetMessagePayloadBuilder + * @return builder + */ + public static ProductTailoringKeySetMessagePayloadBuilder of() { + return new ProductTailoringKeySetMessagePayloadBuilder(); + } + + /** + * create builder for ProductTailoringKeySetMessagePayload instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductTailoringKeySetMessagePayloadBuilder of(final ProductTailoringKeySetMessagePayload template) { + ProductTailoringKeySetMessagePayloadBuilder builder = new ProductTailoringKeySetMessagePayloadBuilder(); + builder.store = template.getStore(); + builder.productKey = template.getProductKey(); + builder.product = template.getProduct(); + builder.key = template.getKey(); + builder.oldKey = template.getOldKey(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductTailoringKeySetMessagePayloadImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductTailoringKeySetMessagePayloadImpl.java new file mode 100644 index 0000000000..bf43f6304f --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductTailoringKeySetMessagePayloadImpl.java @@ -0,0 +1,181 @@ + +package com.commercetools.api.models.message; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; + +import 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; + +import tools.jackson.databind.annotation.*; + +/** + *

    Generated after a successful Product Tailoring Set Key update action.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductTailoringKeySetMessagePayloadImpl implements ProductTailoringKeySetMessagePayload, ModelBase { + + private String type; + + private com.commercetools.api.models.store.StoreKeyReference store; + + private String productKey; + + private com.commercetools.api.models.product.ProductReference product; + + private String key; + + private String oldKey; + + /** + * create instance with all properties + */ + @JsonCreator + ProductTailoringKeySetMessagePayloadImpl( + @JsonProperty("store") final com.commercetools.api.models.store.StoreKeyReference store, + @JsonProperty("productKey") final String productKey, + @JsonProperty("product") final com.commercetools.api.models.product.ProductReference product, + @JsonProperty("key") final String key, @JsonProperty("oldKey") final String oldKey) { + this.store = store; + this.productKey = productKey; + this.product = product; + this.key = key; + this.oldKey = oldKey; + this.type = PRODUCT_TAILORING_KEY_SET; + } + + /** + * create empty instance + */ + public ProductTailoringKeySetMessagePayloadImpl() { + this.type = PRODUCT_TAILORING_KEY_SET; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + *

    The Store to which the Product Tailoring belongs.

    + */ + + public com.commercetools.api.models.store.StoreKeyReference getStore() { + return this.store; + } + + /** + *

    User-defined unique identifier of the Product this Product Tailoring belongs to.

    + */ + + public String getProductKey() { + return this.productKey; + } + + /** + *

    Reference to the Product the Product Tailoring belongs to.

    + */ + + public com.commercetools.api.models.product.ProductReference getProduct() { + return this.product; + } + + /** + *

    key value of the ProductTailoring after the Set Key update action.

    + */ + + public String getKey() { + return this.key; + } + + /** + *

    key value of the ProductTailoring before the Set Key update action.

    + */ + + public String getOldKey() { + return this.oldKey; + } + + public void setStore(final com.commercetools.api.models.store.StoreKeyReference store) { + this.store = store; + } + + public void setProductKey(final String productKey) { + this.productKey = productKey; + } + + public void setProduct(final com.commercetools.api.models.product.ProductReference product) { + this.product = product; + } + + public void setKey(final String key) { + this.key = key; + } + + public void setOldKey(final String oldKey) { + this.oldKey = oldKey; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ProductTailoringKeySetMessagePayloadImpl that = (ProductTailoringKeySetMessagePayloadImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(store, that.store) + .append(productKey, that.productKey) + .append(product, that.product) + .append(key, that.key) + .append(oldKey, that.oldKey) + .append(type, that.type) + .append(store, that.store) + .append(productKey, that.productKey) + .append(product, that.product) + .append(key, that.key) + .append(oldKey, that.oldKey) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type) + .append(store) + .append(productKey) + .append(product) + .append(key) + .append(oldKey) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) + .append("store", store) + .append("productKey", productKey) + .append("product", product) + .append("key", key) + .append("oldKey", oldKey) + .build(); + } + + @Override + public ProductTailoringKeySetMessagePayload copyDeep() { + return ProductTailoringKeySetMessagePayload.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetKeyAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetKeyAction.java new file mode 100644 index 0000000000..a16dd25ae2 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetKeyAction.java @@ -0,0 +1,128 @@ + +package com.commercetools.api.models.product_tailoring; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.fasterxml.jackson.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import tools.jackson.databind.annotation.*; + +/** + *

    Generates the ProductTailoringKeySet Message.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     ProductTailoringSetKeyAction productTailoringSetKeyAction = ProductTailoringSetKeyAction.builder()
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("setKey") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ProductTailoringSetKeyActionImpl.class) +public interface ProductTailoringSetKeyAction extends ProductTailoringUpdateAction { + + /** + * discriminator value for ProductTailoringSetKeyAction + */ + String SET_KEY = "setKey"; + + /** + *

    Value to set. Must be unique. If empty, any existing value will be removed.

    + * @return key + */ + + @JsonProperty("key") + public String getKey(); + + /** + *

    Value to set. Must be unique. If empty, any existing value will be removed.

    + * @param key value to be set + */ + + public void setKey(final String key); + + /** + * factory method + * @return instance of ProductTailoringSetKeyAction + */ + public static ProductTailoringSetKeyAction of() { + return new ProductTailoringSetKeyActionImpl(); + } + + /** + * factory method to create a shallow copy ProductTailoringSetKeyAction + * @param template instance to be copied + * @return copy instance + */ + public static ProductTailoringSetKeyAction of(final ProductTailoringSetKeyAction template) { + ProductTailoringSetKeyActionImpl instance = new ProductTailoringSetKeyActionImpl(); + instance.setKey(template.getKey()); + return instance; + } + + public ProductTailoringSetKeyAction copyDeep(); + + /** + * factory method to create a deep copy of ProductTailoringSetKeyAction + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ProductTailoringSetKeyAction deepCopy(@Nullable final ProductTailoringSetKeyAction template) { + if (template == null) { + return null; + } + ProductTailoringSetKeyActionImpl instance = new ProductTailoringSetKeyActionImpl(); + instance.setKey(template.getKey()); + return instance; + } + + /** + * builder factory method for ProductTailoringSetKeyAction + * @return builder + */ + public static ProductTailoringSetKeyActionBuilder builder() { + return ProductTailoringSetKeyActionBuilder.of(); + } + + /** + * create builder for ProductTailoringSetKeyAction instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductTailoringSetKeyActionBuilder builder(final ProductTailoringSetKeyAction template) { + return ProductTailoringSetKeyActionBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withProductTailoringSetKeyAction(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static tools.jackson.core.type.TypeReference typeReference() { + return new tools.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/product_tailoring/ProductTailoringSetKeyActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetKeyActionBuilder.java new file mode 100644 index 0000000000..92502cee88 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetKeyActionBuilder.java @@ -0,0 +1,84 @@ + +package com.commercetools.api.models.product_tailoring; + +import java.util.*; + +import javax.annotation.Nullable; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductTailoringSetKeyActionBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     ProductTailoringSetKeyAction productTailoringSetKeyAction = ProductTailoringSetKeyAction.builder()
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductTailoringSetKeyActionBuilder implements Builder { + + @Nullable + private String key; + + /** + *

    Value to set. Must be unique. If empty, any existing value will be removed.

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

    Value to set. Must be unique. If empty, any existing value will be removed.

    + * @return key + */ + + @Nullable + public String getKey() { + return this.key; + } + + /** + * builds ProductTailoringSetKeyAction with checking for non-null required values + * @return ProductTailoringSetKeyAction + */ + public ProductTailoringSetKeyAction build() { + return new ProductTailoringSetKeyActionImpl(key); + } + + /** + * builds ProductTailoringSetKeyAction without checking for non-null required values + * @return ProductTailoringSetKeyAction + */ + public ProductTailoringSetKeyAction buildUnchecked() { + return new ProductTailoringSetKeyActionImpl(key); + } + + /** + * factory method for an instance of ProductTailoringSetKeyActionBuilder + * @return builder + */ + public static ProductTailoringSetKeyActionBuilder of() { + return new ProductTailoringSetKeyActionBuilder(); + } + + /** + * create builder for ProductTailoringSetKeyAction instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductTailoringSetKeyActionBuilder of(final ProductTailoringSetKeyAction template) { + ProductTailoringSetKeyActionBuilder builder = new ProductTailoringSetKeyActionBuilder(); + builder.key = template.getKey(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetKeyActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetKeyActionImpl.java new file mode 100644 index 0000000000..e620ef47d9 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetKeyActionImpl.java @@ -0,0 +1,99 @@ + +package com.commercetools.api.models.product_tailoring; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; + +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; + +import tools.jackson.databind.annotation.*; + +/** + *

    Generates the ProductTailoringKeySet Message.

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

    Value to set. Must be unique. If empty, any existing value will be removed.

    + */ + + public String getKey() { + return this.key; + } + + public void setKey(final String key) { + this.key = key; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ProductTailoringSetKeyActionImpl that = (ProductTailoringSetKeyActionImpl) o; + + return new EqualsBuilder().append(action, that.action) + .append(key, that.key) + .append(action, that.action) + .append(key, that.key) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(action).append(key).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("action", action) + .append("key", key) + .build(); + } + + @Override + public ProductTailoringSetKeyAction copyDeep() { + return ProductTailoringSetKeyAction.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringUpdateAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringUpdateAction.java index 82e62c6903..519b9bb1c6 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringUpdateAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringUpdateAction.java @@ -229,6 +229,14 @@ public static com.commercetools.api.models.product_tailoring.ProductTailoringSet return com.commercetools.api.models.product_tailoring.ProductTailoringSetImageLabelActionBuilder.of(); } + /** + * builder for setKey subtype + * @return builder + */ + public static com.commercetools.api.models.product_tailoring.ProductTailoringSetKeyActionBuilder setKeyBuilder() { + return com.commercetools.api.models.product_tailoring.ProductTailoringSetKeyActionBuilder.of(); + } + /** * builder for setMetaAttributes subtype * @return builder diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringUpdateActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringUpdateActionBuilder.java index a5d467efe3..5d30017d66 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringUpdateActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringUpdateActionBuilder.java @@ -96,6 +96,10 @@ public com.commercetools.api.models.product_tailoring.ProductTailoringSetImageLa return com.commercetools.api.models.product_tailoring.ProductTailoringSetImageLabelActionBuilder.of(); } + public com.commercetools.api.models.product_tailoring.ProductTailoringSetKeyActionBuilder setKeyBuilder() { + return com.commercetools.api.models.product_tailoring.ProductTailoringSetKeyActionBuilder.of(); + } + public com.commercetools.api.models.product_tailoring.ProductTailoringSetMetaAttributesActionBuilder setMetaAttributesBuilder() { return com.commercetools.api.models.product_tailoring.ProductTailoringSetMetaAttributesActionBuilder.of(); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/expansion/message/ProductTailoringKeySetMessageExpansionBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/expansion/message/ProductTailoringKeySetMessageExpansionBuilderDsl.java new file mode 100644 index 0000000000..ad75ad9128 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/expansion/message/ProductTailoringKeySetMessageExpansionBuilderDsl.java @@ -0,0 +1,51 @@ + +package com.commercetools.api.predicates.expansion.message; + +import static com.commercetools.api.predicates.expansion.ExpansionUtil.appendOne; + +import java.util.Collections; +import java.util.List; + +import com.commercetools.api.predicates.expansion.ExpansionDsl; + +public class ProductTailoringKeySetMessageExpansionBuilderDsl implements ExpansionDsl { + + private final List path; + + private ProductTailoringKeySetMessageExpansionBuilderDsl(final List path) { + this.path = path; + } + + public static ProductTailoringKeySetMessageExpansionBuilderDsl of() { + return new ProductTailoringKeySetMessageExpansionBuilderDsl(Collections.emptyList()); + } + + public static ProductTailoringKeySetMessageExpansionBuilderDsl of(final List path) { + return new ProductTailoringKeySetMessageExpansionBuilderDsl(path); + } + + @Override + public List getPath() { + return path; + } + + public com.commercetools.api.predicates.expansion.common.LastModifiedByExpansionBuilderDsl lastModifiedBy() { + return com.commercetools.api.predicates.expansion.common.LastModifiedByExpansionBuilderDsl + .of(appendOne(path, "lastModifiedBy")); + } + + public com.commercetools.api.predicates.expansion.common.CreatedByExpansionBuilderDsl createdBy() { + return com.commercetools.api.predicates.expansion.common.CreatedByExpansionBuilderDsl + .of(appendOne(path, "createdBy")); + } + + public com.commercetools.api.predicates.expansion.common.ReferenceExpansionBuilderDsl resource() { + return com.commercetools.api.predicates.expansion.common.ReferenceExpansionBuilderDsl + .of(appendOne(path, "resource")); + } + + public com.commercetools.api.predicates.expansion.product.ProductReferenceExpansionBuilderDsl product() { + return com.commercetools.api.predicates.expansion.product.ProductReferenceExpansionBuilderDsl + .of(appendOne(path, "product")); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/MessagePayloadQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/MessagePayloadQueryBuilderDsl.java index f8ae75ac07..b4560151a7 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/MessagePayloadQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/MessagePayloadQueryBuilderDsl.java @@ -1540,6 +1540,13 @@ public CombinationQueryPredicate asProductTailori MessagePayloadQueryBuilderDsl::of); } + public CombinationQueryPredicate asProductTailoringKeySet( + Function> fn) { + return new CombinationQueryPredicate<>(fn.apply( + com.commercetools.api.predicates.query.message.ProductTailoringKeySetMessagePayloadQueryBuilderDsl.of()), + MessagePayloadQueryBuilderDsl::of); + } + public CombinationQueryPredicate asProductTailoringNameSet( Function> fn) { return new CombinationQueryPredicate<>(fn.apply( diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/MessageQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/MessageQueryBuilderDsl.java index 955ca61d35..53b2bb650b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/MessageQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/MessageQueryBuilderDsl.java @@ -1549,6 +1549,13 @@ public CombinationQueryPredicate asProductTailoringImage MessageQueryBuilderDsl::of); } + public CombinationQueryPredicate asProductTailoringKeySet( + Function> fn) { + return new CombinationQueryPredicate<>( + fn.apply(com.commercetools.api.predicates.query.message.ProductTailoringKeySetMessageQueryBuilderDsl.of()), + MessageQueryBuilderDsl::of); + } + public CombinationQueryPredicate asProductTailoringNameSet( Function> fn) { return new CombinationQueryPredicate<>( diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/ProductTailoringKeySetMessagePayloadQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/ProductTailoringKeySetMessagePayloadQueryBuilderDsl.java new file mode 100644 index 0000000000..544cb75267 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/ProductTailoringKeySetMessagePayloadQueryBuilderDsl.java @@ -0,0 +1,55 @@ + +package com.commercetools.api.predicates.query.message; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class ProductTailoringKeySetMessagePayloadQueryBuilderDsl { + public ProductTailoringKeySetMessagePayloadQueryBuilderDsl() { + } + + public static ProductTailoringKeySetMessagePayloadQueryBuilderDsl of() { + return new ProductTailoringKeySetMessagePayloadQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder type() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("type")), + p -> new CombinationQueryPredicate<>(p, ProductTailoringKeySetMessagePayloadQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate store( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("store")) + .inner(fn.apply(com.commercetools.api.predicates.query.store.StoreKeyReferenceQueryBuilderDsl.of())), + ProductTailoringKeySetMessagePayloadQueryBuilderDsl::of); + } + + public StringComparisonPredicateBuilder productKey() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("productKey")), + p -> new CombinationQueryPredicate<>(p, ProductTailoringKeySetMessagePayloadQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate product( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("product")) + .inner(fn.apply(com.commercetools.api.predicates.query.product.ProductReferenceQueryBuilderDsl.of())), + ProductTailoringKeySetMessagePayloadQueryBuilderDsl::of); + } + + public StringComparisonPredicateBuilder key() { + return new StringComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("key")), + p -> new CombinationQueryPredicate<>(p, ProductTailoringKeySetMessagePayloadQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder oldKey() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("oldKey")), + p -> new CombinationQueryPredicate<>(p, ProductTailoringKeySetMessagePayloadQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/ProductTailoringKeySetMessageQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/ProductTailoringKeySetMessageQueryBuilderDsl.java new file mode 100644 index 0000000000..f79a533080 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/ProductTailoringKeySetMessageQueryBuilderDsl.java @@ -0,0 +1,127 @@ + +package com.commercetools.api.predicates.query.message; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class ProductTailoringKeySetMessageQueryBuilderDsl { + public ProductTailoringKeySetMessageQueryBuilderDsl() { + } + + public static ProductTailoringKeySetMessageQueryBuilderDsl of() { + return new ProductTailoringKeySetMessageQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder id() { + return new StringComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("id")), + p -> new CombinationQueryPredicate<>(p, ProductTailoringKeySetMessageQueryBuilderDsl::of)); + } + + public LongComparisonPredicateBuilder version() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("version")), + p -> new CombinationQueryPredicate<>(p, ProductTailoringKeySetMessageQueryBuilderDsl::of)); + } + + public DateTimeComparisonPredicateBuilder createdAt() { + return new DateTimeComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("createdAt")), + p -> new CombinationQueryPredicate<>(p, ProductTailoringKeySetMessageQueryBuilderDsl::of)); + } + + public DateTimeComparisonPredicateBuilder lastModifiedAt() { + return new DateTimeComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("lastModifiedAt")), + p -> new CombinationQueryPredicate<>(p, ProductTailoringKeySetMessageQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate lastModifiedBy( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("lastModifiedBy")) + .inner(fn.apply(com.commercetools.api.predicates.query.common.LastModifiedByQueryBuilderDsl.of())), + ProductTailoringKeySetMessageQueryBuilderDsl::of); + } + + public CombinationQueryPredicate createdBy( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("createdBy")) + .inner(fn.apply(com.commercetools.api.predicates.query.common.CreatedByQueryBuilderDsl.of())), + ProductTailoringKeySetMessageQueryBuilderDsl::of); + } + + public LongComparisonPredicateBuilder sequenceNumber() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("sequenceNumber")), + p -> new CombinationQueryPredicate<>(p, ProductTailoringKeySetMessageQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate resource( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("resource")) + .inner(fn.apply(com.commercetools.api.predicates.query.common.ReferenceQueryBuilderDsl.of())), + ProductTailoringKeySetMessageQueryBuilderDsl::of); + } + + public LongComparisonPredicateBuilder resourceVersion() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("resourceVersion")), + p -> new CombinationQueryPredicate<>(p, ProductTailoringKeySetMessageQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder type() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("type")), + p -> new CombinationQueryPredicate<>(p, ProductTailoringKeySetMessageQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate resourceUserProvidedIdentifiers( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("resourceUserProvidedIdentifiers")) + .inner(fn.apply( + com.commercetools.api.predicates.query.message.UserProvidedIdentifiersQueryBuilderDsl.of())), + ProductTailoringKeySetMessageQueryBuilderDsl::of); + } + + public CombinationQueryPredicate store( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("store")) + .inner(fn.apply(com.commercetools.api.predicates.query.store.StoreKeyReferenceQueryBuilderDsl.of())), + ProductTailoringKeySetMessageQueryBuilderDsl::of); + } + + public StringComparisonPredicateBuilder productKey() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("productKey")), + p -> new CombinationQueryPredicate<>(p, ProductTailoringKeySetMessageQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate product( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("product")) + .inner(fn.apply(com.commercetools.api.predicates.query.product.ProductReferenceQueryBuilderDsl.of())), + ProductTailoringKeySetMessageQueryBuilderDsl::of); + } + + public StringComparisonPredicateBuilder key() { + return new StringComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("key")), + p -> new CombinationQueryPredicate<>(p, ProductTailoringKeySetMessageQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder oldKey() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("oldKey")), + p -> new CombinationQueryPredicate<>(p, ProductTailoringKeySetMessageQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_tailoring/ProductTailoringSetKeyActionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_tailoring/ProductTailoringSetKeyActionQueryBuilderDsl.java new file mode 100644 index 0000000000..125068672d --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_tailoring/ProductTailoringSetKeyActionQueryBuilderDsl.java @@ -0,0 +1,25 @@ + +package com.commercetools.api.predicates.query.product_tailoring; + +import com.commercetools.api.predicates.query.*; + +public class ProductTailoringSetKeyActionQueryBuilderDsl { + public ProductTailoringSetKeyActionQueryBuilderDsl() { + } + + public static ProductTailoringSetKeyActionQueryBuilderDsl of() { + return new ProductTailoringSetKeyActionQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder action() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("action")), + p -> new CombinationQueryPredicate<>(p, ProductTailoringSetKeyActionQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder key() { + return new StringComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("key")), + p -> new CombinationQueryPredicate<>(p, ProductTailoringSetKeyActionQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_tailoring/ProductTailoringUpdateActionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_tailoring/ProductTailoringUpdateActionQueryBuilderDsl.java index 476b02a31a..267efa2d53 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_tailoring/ProductTailoringUpdateActionQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_tailoring/ProductTailoringUpdateActionQueryBuilderDsl.java @@ -186,6 +186,13 @@ public CombinationQueryPredicate as ProductTailoringUpdateActionQueryBuilderDsl::of); } + public CombinationQueryPredicate asSetKey( + Function> fn) { + return new CombinationQueryPredicate<>(fn.apply( + com.commercetools.api.predicates.query.product_tailoring.ProductTailoringSetKeyActionQueryBuilderDsl.of()), + ProductTailoringUpdateActionQueryBuilderDsl::of); + } + public CombinationQueryPredicate asSetMetaAttributes( Function> fn) { return new CombinationQueryPredicate<>(fn.apply( diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/ProductTailoringKeySetMessagePayloadTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/ProductTailoringKeySetMessagePayloadTest.java new file mode 100644 index 0000000000..7fa4afeb22 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/ProductTailoringKeySetMessagePayloadTest.java @@ -0,0 +1,68 @@ + +package com.commercetools.api.models.message; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class ProductTailoringKeySetMessagePayloadTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, ProductTailoringKeySetMessagePayloadBuilder builder) { + ProductTailoringKeySetMessagePayload productTailoringKeySetMessagePayload = builder.buildUnchecked(); + Assertions.assertThat(productTailoringKeySetMessagePayload) + .isInstanceOf(ProductTailoringKeySetMessagePayload.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { + new Object[] { "store", + ProductTailoringKeySetMessagePayload.builder() + .store(new com.commercetools.api.models.store.StoreKeyReferenceImpl()) }, + new Object[] { "productKey", ProductTailoringKeySetMessagePayload.builder().productKey("productKey") }, + new Object[] { "product", + ProductTailoringKeySetMessagePayload.builder() + .product(new com.commercetools.api.models.product.ProductReferenceImpl()) }, + new Object[] { "key", ProductTailoringKeySetMessagePayload.builder().key("key") }, + new Object[] { "oldKey", ProductTailoringKeySetMessagePayload.builder().oldKey("oldKey") } }; + } + + @Test + public void store() { + ProductTailoringKeySetMessagePayload value = ProductTailoringKeySetMessagePayload.of(); + value.setStore(new com.commercetools.api.models.store.StoreKeyReferenceImpl()); + Assertions.assertThat(value.getStore()) + .isEqualTo(new com.commercetools.api.models.store.StoreKeyReferenceImpl()); + } + + @Test + public void productKey() { + ProductTailoringKeySetMessagePayload value = ProductTailoringKeySetMessagePayload.of(); + value.setProductKey("productKey"); + Assertions.assertThat(value.getProductKey()).isEqualTo("productKey"); + } + + @Test + public void product() { + ProductTailoringKeySetMessagePayload value = ProductTailoringKeySetMessagePayload.of(); + value.setProduct(new com.commercetools.api.models.product.ProductReferenceImpl()); + Assertions.assertThat(value.getProduct()) + .isEqualTo(new com.commercetools.api.models.product.ProductReferenceImpl()); + } + + @Test + public void key() { + ProductTailoringKeySetMessagePayload value = ProductTailoringKeySetMessagePayload.of(); + value.setKey("key"); + Assertions.assertThat(value.getKey()).isEqualTo("key"); + } + + @Test + public void oldKey() { + ProductTailoringKeySetMessagePayload value = ProductTailoringKeySetMessagePayload.of(); + value.setOldKey("oldKey"); + Assertions.assertThat(value.getOldKey()).isEqualTo("oldKey"); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/ProductTailoringKeySetMessageTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/ProductTailoringKeySetMessageTest.java new file mode 100644 index 0000000000..479b84bb3a --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/ProductTailoringKeySetMessageTest.java @@ -0,0 +1,67 @@ + +package com.commercetools.api.models.message; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class ProductTailoringKeySetMessageTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, ProductTailoringKeySetMessageBuilder builder) { + ProductTailoringKeySetMessage productTailoringKeySetMessage = builder.buildUnchecked(); + Assertions.assertThat(productTailoringKeySetMessage).isInstanceOf(ProductTailoringKeySetMessage.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { + new Object[] { "store", + ProductTailoringKeySetMessage.builder() + .store(new com.commercetools.api.models.store.StoreKeyReferenceImpl()) }, + new Object[] { "productKey", ProductTailoringKeySetMessage.builder().productKey("productKey") }, + new Object[] { "product", + ProductTailoringKeySetMessage.builder() + .product(new com.commercetools.api.models.product.ProductReferenceImpl()) }, + new Object[] { "key", ProductTailoringKeySetMessage.builder().key("key") }, + new Object[] { "oldKey", ProductTailoringKeySetMessage.builder().oldKey("oldKey") } }; + } + + @Test + public void store() { + ProductTailoringKeySetMessage value = ProductTailoringKeySetMessage.of(); + value.setStore(new com.commercetools.api.models.store.StoreKeyReferenceImpl()); + Assertions.assertThat(value.getStore()) + .isEqualTo(new com.commercetools.api.models.store.StoreKeyReferenceImpl()); + } + + @Test + public void productKey() { + ProductTailoringKeySetMessage value = ProductTailoringKeySetMessage.of(); + value.setProductKey("productKey"); + Assertions.assertThat(value.getProductKey()).isEqualTo("productKey"); + } + + @Test + public void product() { + ProductTailoringKeySetMessage value = ProductTailoringKeySetMessage.of(); + value.setProduct(new com.commercetools.api.models.product.ProductReferenceImpl()); + Assertions.assertThat(value.getProduct()) + .isEqualTo(new com.commercetools.api.models.product.ProductReferenceImpl()); + } + + @Test + public void key() { + ProductTailoringKeySetMessage value = ProductTailoringKeySetMessage.of(); + value.setKey("key"); + Assertions.assertThat(value.getKey()).isEqualTo("key"); + } + + @Test + public void oldKey() { + ProductTailoringKeySetMessage value = ProductTailoringKeySetMessage.of(); + value.setOldKey("oldKey"); + Assertions.assertThat(value.getOldKey()).isEqualTo("oldKey"); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetKeyActionTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetKeyActionTest.java new file mode 100644 index 0000000000..5a3ba962c0 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetKeyActionTest.java @@ -0,0 +1,28 @@ + +package com.commercetools.api.models.product_tailoring; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class ProductTailoringSetKeyActionTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, ProductTailoringSetKeyActionBuilder builder) { + ProductTailoringSetKeyAction productTailoringSetKeyAction = builder.buildUnchecked(); + Assertions.assertThat(productTailoringSetKeyAction).isInstanceOf(ProductTailoringSetKeyAction.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { "key", ProductTailoringSetKeyAction.builder().key("key") } }; + } + + @Test + public void key() { + ProductTailoringSetKeyAction value = ProductTailoringSetKeyAction.of(); + value.setKey("key"); + Assertions.assertThat(value.getKey()).isEqualTo("key"); + } +} diff --git a/references.txt b/references.txt index c48f1cbdee..248efad3ef 100644 --- a/references.txt +++ b/references.txt @@ -598,3 +598,4 @@ ff7070c0ff123a4d0bb190130d1c83e5ac0356ec 3da8f4b822245fffefa8a9fcae78b2d9d8eea73d f1aa67e522f27cdd01e5817f85d2d8ead7dbf5c6 2020e89c5cef8597a35ec654b36439e6a3c90d49 +6ec5a2fd3780a332812cb9642da1546fb44f0a8d From fd56879775fa3dc58146a27af42c7a0e538dc49c Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Mon, 27 Jul 2026 12:58:48 +0000 Subject: [PATCH 17/27] build(codegen): updating SDK --- .../src/main/resources/graphql/schema.graphqls | 1 + references.txt | 1 + 2 files changed, 2 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 046101b018..faa4c41d5e 100644 --- a/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls +++ b/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls @@ -10157,6 +10157,7 @@ BETA: This feature can be subject to change and should be used carefully in prod """ type Variant implements Versioned { productRef: Reference! + product: Product variantId: Int! key: String current: VariantData! diff --git a/references.txt b/references.txt index 248efad3ef..0beee75fec 100644 --- a/references.txt +++ b/references.txt @@ -599,3 +599,4 @@ ff7070c0ff123a4d0bb190130d1c83e5ac0356ec f1aa67e522f27cdd01e5817f85d2d8ead7dbf5c6 2020e89c5cef8597a35ec654b36439e6a3c90d49 6ec5a2fd3780a332812cb9642da1546fb44f0a8d +876a1577cad1f3e2c2f3f2c07c9c957208a31594 From b5de911ac54ab338bfb52f7673d159ad04f6d61a Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Tue, 28 Jul 2026 08:28:24 +0000 Subject: [PATCH 18/27] build(codegen): updating SDK --- .../main/resources/graphql/schema.graphqls | 32 +++++++++++++++++++ references.txt | 1 + 2 files changed, 33 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 faa4c41d5e..0d87cc73e9 100644 --- a/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls +++ b/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls @@ -5183,6 +5183,8 @@ type LineItem { priceMode: LineItemPriceMode! custom: CustomFieldsType inventoryMode: InventoryMode + reservation: Reservation + reservationRef: Reference shippingDetails: ItemShippingDetails perMethodTaxRate: [MethodTaxRate!]! taxedPricePortions: [MethodTaxedPrice!]! @@ -8457,6 +8459,26 @@ type RemoveStagedOrderPaymentOutput implements StagedOrderUpdateActionOutput { paymentResId: ResourceIdentifier! } +""" +A Reservation holds inventory of an InventoryEntry for a Cart line item until the reservation expires or the Cart is ordered. +""" +type Reservation implements Versioned { + inventoryEntry: InventoryEntry + inventoryEntryRef: Reference! + lineItemId: String! + quantity: Long! + ownerRef: Reference! + state: ReservationState! + inventoryMode: String! + expiresAt: DateTime + id: String! + version: Long! + createdAt: DateTime! + lastModifiedAt: DateTime! + createdBy: Initiator + lastModifiedBy: Initiator +} + type ResourceIdentifier { typeId: String! key: String @@ -11563,6 +11585,16 @@ enum RecurringOrderState { Failed Paused } +enum ReservationState { + CommitInProgress + Committed + Created + CreationInProgress + Expired + Released + UpdateInProgress + Updated +} enum SearchIndexingStatus { Activated Indexing diff --git a/references.txt b/references.txt index 0beee75fec..0c0e22669d 100644 --- a/references.txt +++ b/references.txt @@ -600,3 +600,4 @@ f1aa67e522f27cdd01e5817f85d2d8ead7dbf5c6 2020e89c5cef8597a35ec654b36439e6a3c90d49 6ec5a2fd3780a332812cb9642da1546fb44f0a8d 876a1577cad1f3e2c2f3f2c07c9c957208a31594 +7f177acb96f6685ef66580019bacddb13fc368e5 From 6dff5663451ce15bf43a2f077ac1a14e63c6eaa6 Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Tue, 28 Jul 2026 12:59:13 +0000 Subject: [PATCH 19/27] build(codegen): updating SDK --- .../main/resources/graphql/schema.graphqls | 20 +++++++++++++++++++ references.txt | 1 + 2 files changed, 21 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 0d87cc73e9..504cd3d727 100644 --- a/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls +++ b/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls @@ -14706,6 +14706,15 @@ input MoneyInput { centAmount: Long! } +""" +BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta +""" +input MoveImageToPosition { + imageUrl: String! + position: Int! + staged: Boolean = true +} + input MoveProductImageToPosition { variantId: Int sku: String @@ -18920,6 +18929,15 @@ input SetVariantAttributes { staged: Boolean = true } +""" +BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta +""" +input SetVariantImageLabel { + imageUrl: String! + label: String + staged: Boolean = true +} + """ BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta """ @@ -19711,6 +19729,7 @@ input VariantUpdateAction { unpublish: UnpublishVariant removeStagedChanges: RemoveStagedChanges removeAsset: RemoveVariantAsset + moveImageToPosition: MoveImageToPosition addExternalImage: AddVariantExternalImage addAsset: AddVariantAsset changeAssetName: ChangeVariantAssetName @@ -19719,6 +19738,7 @@ input VariantUpdateAction { setAssets: SetVariantAssets setAttribute: SetVariantAttribute setAttributes: SetVariantAttributes + setImageLabel: SetVariantImageLabel setImages: SetVariantImages setKey: SetVariantKey setSku: SetVariantSku diff --git a/references.txt b/references.txt index 0c0e22669d..7f0a59bdbf 100644 --- a/references.txt +++ b/references.txt @@ -601,3 +601,4 @@ f1aa67e522f27cdd01e5817f85d2d8ead7dbf5c6 6ec5a2fd3780a332812cb9642da1546fb44f0a8d 876a1577cad1f3e2c2f3f2c07c9c957208a31594 7f177acb96f6685ef66580019bacddb13fc368e5 +d2196cb5da09d223d3bf652b3ef668a6c30a7c84 From 8b7eb3475e9c3a5adfe98d1dadf5fdf4288b9517 Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Tue, 28 Jul 2026 15:57:18 +0000 Subject: [PATCH 20/27] build(codegen): updating SDK --- changes.md | 5 + .../ByProjectKeyVariantsByIDImagesPost.java | 322 ++++++++++++++++++ ...rojectKeyVariantsByIDImagesPostString.java | 313 +++++++++++++++++ ...ctKeyVariantsByIDImagesRequestBuilder.java | 25 ++ ...yProjectKeyVariantsByIDRequestBuilder.java | 4 + .../api/models/variant/Variant.java | 31 ++ .../api/models/variant/VariantBuilder.java | 83 ++++- .../api/models/variant/VariantImpl.java | 26 +- .../VariantMoveImageToPositionAction.java | 165 +++++++++ ...riantMoveImageToPositionActionBuilder.java | 134 ++++++++ .../VariantMoveImageToPositionActionImpl.java | 136 ++++++++ .../variant/VariantSetImageLabelAction.java | 164 +++++++++ .../VariantSetImageLabelActionBuilder.java | 134 ++++++++ .../VariantSetImageLabelActionImpl.java | 136 ++++++++ .../models/variant/VariantUpdateAction.java | 16 + .../variant/VariantUpdateActionBuilder.java | 8 + .../ImageProcessingOngoingWarning.java | 2 +- .../ImageProcessingOngoingWarningImpl.java | 2 +- ...eImageToPositionActionQueryBuilderDsl.java | 38 +++ .../query/variant/VariantQueryBuilderDsl.java | 14 + ...antSetImageLabelActionQueryBuilderDsl.java | 38 +++ .../VariantUpdateActionQueryBuilderDsl.java | 15 + .../ByProjectKeyVariantsByIDImagesTest.java | 104 ++++++ .../VariantMoveImageToPositionActionTest.java | 45 +++ .../VariantSetImageLabelActionTest.java | 44 +++ .../api/models/variant/VariantTest.java | 15 +- references.txt | 1 + 27 files changed, 2014 insertions(+), 6 deletions(-) create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyVariantsByIDImagesPost.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyVariantsByIDImagesPostString.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyVariantsByIDImagesRequestBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantMoveImageToPositionAction.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantMoveImageToPositionActionBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantMoveImageToPositionActionImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetImageLabelAction.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetImageLabelActionBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetImageLabelActionImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/variant/VariantMoveImageToPositionActionQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/variant/VariantSetImageLabelActionQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyVariantsByIDImagesTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/variant/VariantMoveImageToPositionActionTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/variant/VariantSetImageLabelActionTest.java diff --git a/changes.md b/changes.md index 924fcbf460..30d05b3cce 100644 --- a/changes.md +++ b/changes.md @@ -5,6 +5,7 @@ - added method `apiRoot.withProjectKey().mcpServers().get()` - added method `apiRoot.withProjectKey().mcpServers().post()` +- added method `apiRoot.withProjectKey().variants().withId().images().post()` - added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().discountCodes().get()` - added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().discountCodes().head()` - added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().discountCodes().withKey().get()` @@ -26,6 +27,7 @@ Added Property(s) - added property `stores` to type `DiscountCode` +- added property `warnings` to type `Variant` @@ -67,6 +69,8 @@ - added type `ProductTailoringKeySetMessage` - added type `ProductTailoringKeySetMessagePayload` - added type `ProductTailoringSetKeyAction` +- added type `VariantMoveImageToPositionAction` +- added type `VariantSetImageLabelAction` @@ -82,6 +86,7 @@ Added Resource(s) - added resource `/{projectKey}/mcp-servers` +- added resource `/{projectKey}/variants/{ID}/images` - added resource `/{projectKey}/in-store/key={storeKey}/discount-codes` - added resource `/{projectKey}/in-store/key={storeKey}/discount-codes/key={key}` - added resource `/{projectKey}/in-store/key={storeKey}/discount-codes/{ID}` diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyVariantsByIDImagesPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyVariantsByIDImagesPost.java new file mode 100644 index 0000000000..42080cc120 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyVariantsByIDImagesPost.java @@ -0,0 +1,322 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.net.URLConnection; +import java.nio.file.Files; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +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; + +import tools.jackson.core.type.TypeReference; + +/** + *

    Uploads a JPEG, PNG, or a GIF image file to a Variant identified by its ID. The maximum file size of the image is 10MB.

    + *

    The response status code depends on the size of the original image. If the image is small, the API responds with 200 OK, and if the image is larger, it responds with 202 Accepted. The Variant returned with a 202 Accepted status code contains a warnings field with an ImageProcessingOngoing Warning.

    + *

    Produces the VariantImageAdded Message.

    + * + *
    + *
    + *
    {@code
    + *   CompletableFuture> result = apiRoot
    + *            .withProjectKey("{projectKey}")
    + *            .variants()
    + *            .withId("{ID}")
    + *            .images()
    + *            .post(file)
    + *            .execute()
    + * }
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyVariantsByIDImagesPost extends + TypeBodyApiMethod { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String ID; + + private java.io.File file; + + public ByProjectKeyVariantsByIDImagesPost(final ApiHttpClient apiHttpClient, String projectKey, String ID, + java.io.File file) { + super(apiHttpClient); + this.projectKey = projectKey; + this.ID = ID; + this.file = file; + } + + public ByProjectKeyVariantsByIDImagesPost(ByProjectKeyVariantsByIDImagesPost t) { + super(t); + this.projectKey = t.projectKey; + this.ID = t.ID; + this.file = t.file; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/variants/%s/images", encodePathParam(this.projectKey), + encodePathParam(this.ID)); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + ApiHttpHeaders headers = getHeaders(); + if (headers.getFirst(ApiHttpHeaders.CONTENT_TYPE) == null) { + final String mimeType = Optional.ofNullable(URLConnection.guessContentTypeFromName(file.getName())) + .orElse("application/octet-stream"); + headers = headers.withHeader(ApiHttpHeaders.CONTENT_TYPE, mimeType); + } + return new ApiHttpRequest(ApiHttpMethod.POST, URI.create(httpRequestPath), headers, + io.vrap.rmf.base.client.utils.FileUtils.executing(() -> Files.readAllBytes(file.toPath()))); + + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.commercetools.api.models.variant.Variant.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.commercetools.api.models.variant.Variant.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getID() { + return this.ID; + } + + public List getFilename() { + return this.getQueryParam("filename"); + } + + public List getStaged() { + return this.getQueryParam("staged"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setID(final String ID) { + this.ID = ID; + } + + /** + * set filename with the specified value + * @param filename value to be set + * @param value type + * @return ByProjectKeyVariantsByIDImagesPost + */ + public ByProjectKeyVariantsByIDImagesPost withFilename(final TValue filename) { + return copy().withQueryParam("filename", filename); + } + + /** + * add additional filename query parameter + * @param filename value to be added + * @param value type + * @return ByProjectKeyVariantsByIDImagesPost + */ + public ByProjectKeyVariantsByIDImagesPost addFilename(final TValue filename) { + return copy().addQueryParam("filename", filename); + } + + /** + * set filename with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyVariantsByIDImagesPost + */ + public ByProjectKeyVariantsByIDImagesPost withFilename(final Supplier supplier) { + return copy().withQueryParam("filename", supplier.get()); + } + + /** + * add additional filename query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyVariantsByIDImagesPost + */ + public ByProjectKeyVariantsByIDImagesPost addFilename(final Supplier supplier) { + return copy().addQueryParam("filename", supplier.get()); + } + + /** + * set filename with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyVariantsByIDImagesPost + */ + public ByProjectKeyVariantsByIDImagesPost withFilename(final Function op) { + return copy().withQueryParam("filename", op.apply(new StringBuilder())); + } + + /** + * add additional filename query parameter + * @param op builder for the value to be added + * @return ByProjectKeyVariantsByIDImagesPost + */ + public ByProjectKeyVariantsByIDImagesPost addFilename(final Function op) { + return copy().addQueryParam("filename", op.apply(new StringBuilder())); + } + + /** + * set filename with the specified values + * @param filename values to be set + * @param value type + * @return ByProjectKeyVariantsByIDImagesPost + */ + public ByProjectKeyVariantsByIDImagesPost withFilename(final Collection filename) { + return copy().withoutQueryParam("filename") + .addQueryParams(filename.stream() + .map(s -> new ParamEntry<>("filename", s.toString())) + .collect(Collectors.toList())); + } + + /** + * add additional filename query parameters + * @param filename values to be added + * @param value type + * @return ByProjectKeyVariantsByIDImagesPost + */ + public ByProjectKeyVariantsByIDImagesPost addFilename(final Collection filename) { + return copy().addQueryParams( + filename.stream().map(s -> new ParamEntry<>("filename", s.toString())).collect(Collectors.toList())); + } + + /** + * set staged with the specified value + * @param staged value to be set + * @param value type + * @return ByProjectKeyVariantsByIDImagesPost + */ + public ByProjectKeyVariantsByIDImagesPost withStaged(final TValue staged) { + return copy().withQueryParam("staged", staged); + } + + /** + * add additional staged query parameter + * @param staged value to be added + * @param value type + * @return ByProjectKeyVariantsByIDImagesPost + */ + public ByProjectKeyVariantsByIDImagesPost addStaged(final TValue staged) { + return copy().addQueryParam("staged", staged); + } + + /** + * set staged with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyVariantsByIDImagesPost + */ + public ByProjectKeyVariantsByIDImagesPost withStaged(final Supplier supplier) { + return copy().withQueryParam("staged", supplier.get()); + } + + /** + * add additional staged query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyVariantsByIDImagesPost + */ + public ByProjectKeyVariantsByIDImagesPost addStaged(final Supplier supplier) { + return copy().addQueryParam("staged", supplier.get()); + } + + /** + * set staged with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyVariantsByIDImagesPost + */ + public ByProjectKeyVariantsByIDImagesPost withStaged(final Function op) { + return copy().withQueryParam("staged", op.apply(new StringBuilder())); + } + + /** + * add additional staged query parameter + * @param op builder for the value to be added + * @return ByProjectKeyVariantsByIDImagesPost + */ + public ByProjectKeyVariantsByIDImagesPost addStaged(final Function op) { + return copy().addQueryParam("staged", op.apply(new StringBuilder())); + } + + /** + * set staged with the specified values + * @param staged values to be set + * @param value type + * @return ByProjectKeyVariantsByIDImagesPost + */ + public ByProjectKeyVariantsByIDImagesPost withStaged(final Collection staged) { + return copy().withoutQueryParam("staged") + .addQueryParams( + staged.stream().map(s -> new ParamEntry<>("staged", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional staged query parameters + * @param staged values to be added + * @param value type + * @return ByProjectKeyVariantsByIDImagesPost + */ + public ByProjectKeyVariantsByIDImagesPost addStaged(final Collection staged) { + return copy().addQueryParams( + staged.stream().map(s -> new ParamEntry<>("staged", s.toString())).collect(Collectors.toList())); + } + + public java.io.File getBody() { + return file; + } + + public ByProjectKeyVariantsByIDImagesPost withBody(java.io.File file) { + ByProjectKeyVariantsByIDImagesPost t = copy(); + t.file = file; + return t; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyVariantsByIDImagesPost that = (ByProjectKeyVariantsByIDImagesPost) o; + + return new EqualsBuilder().append(projectKey, that.projectKey) + .append(ID, that.ID) + .append(file, that.file) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(ID).append(file).toHashCode(); + } + + @Override + protected ByProjectKeyVariantsByIDImagesPost copy() { + return new ByProjectKeyVariantsByIDImagesPost(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyVariantsByIDImagesPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyVariantsByIDImagesPostString.java new file mode 100644 index 0000000000..30c4a5b39e --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyVariantsByIDImagesPostString.java @@ -0,0 +1,313 @@ + +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.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +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; + +import tools.jackson.core.type.TypeReference; + +/** + *

    Uploads a JPEG, PNG, or a GIF image file to a Variant identified by its ID. The maximum file size of the image is 10MB.

    + *

    The response status code depends on the size of the original image. If the image is small, the API responds with 200 OK, and if the image is larger, it responds with 202 Accepted. The Variant returned with a 202 Accepted status code contains a warnings field with an ImageProcessingOngoing Warning.

    + *

    Produces the VariantImageAdded Message.

    + * + *
    + *
    + *
    {@code
    + *   CompletableFuture> result = apiRoot
    + *            .withProjectKey("{projectKey}")
    + *            .variants()
    + *            .withId("{ID}")
    + *            .images()
    + *            .post("")
    + *            .execute()
    + * }
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyVariantsByIDImagesPostString extends + StringBodyApiMethod { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String ID; + + private String file; + + public ByProjectKeyVariantsByIDImagesPostString(final ApiHttpClient apiHttpClient, String projectKey, String ID, + String file) { + super(apiHttpClient); + this.projectKey = projectKey; + this.ID = ID; + this.file = file; + } + + public ByProjectKeyVariantsByIDImagesPostString(ByProjectKeyVariantsByIDImagesPostString t) { + super(t); + this.projectKey = t.projectKey; + this.ID = t.ID; + this.file = t.file; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/variants/%s/images", this.projectKey, this.ID); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.POST, URI.create(httpRequestPath), getHeaders(), + file.getBytes(StandardCharsets.UTF_8)); + + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.commercetools.api.models.variant.Variant.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.commercetools.api.models.variant.Variant.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getID() { + return this.ID; + } + + public List getFilename() { + return this.getQueryParam("filename"); + } + + public List getStaged() { + return this.getQueryParam("staged"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setID(final String ID) { + this.ID = ID; + } + + /** + * set filename with the specified value + * @param value type + * @param filename value to be set + * @return ByProjectKeyVariantsByIDImagesPostString + */ + public ByProjectKeyVariantsByIDImagesPostString withFilename(final TValue filename) { + return copy().withQueryParam("filename", filename); + } + + /** + * add additional filename query parameter + * @param value type + * @param filename value to be added + * @return ByProjectKeyVariantsByIDImagesPostString + */ + public ByProjectKeyVariantsByIDImagesPostString addFilename(final TValue filename) { + return copy().addQueryParam("filename", filename); + } + + /** + * set filename with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyVariantsByIDImagesPostString + */ + public ByProjectKeyVariantsByIDImagesPostString withFilename(final Supplier supplier) { + return copy().withQueryParam("filename", supplier.get()); + } + + /** + * add additional filename query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyVariantsByIDImagesPostString + */ + public ByProjectKeyVariantsByIDImagesPostString addFilename(final Supplier supplier) { + return copy().addQueryParam("filename", supplier.get()); + } + + /** + * set filename with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyVariantsByIDImagesPostString + */ + public ByProjectKeyVariantsByIDImagesPostString withFilename(final Function op) { + return copy().withQueryParam("filename", op.apply(new StringBuilder())); + } + + /** + * add additional filename query parameter + * @param op builder for the value to be added + * @return ByProjectKeyVariantsByIDImagesPostString + */ + public ByProjectKeyVariantsByIDImagesPostString addFilename(final Function op) { + return copy().addQueryParam("filename", op.apply(new StringBuilder())); + } + + /** + * set filename with the specified values + * @param value type + * @param filename values to be set + * @return ByProjectKeyVariantsByIDImagesPostString + */ + public ByProjectKeyVariantsByIDImagesPostString withFilename(final Collection filename) { + return copy().withoutQueryParam("filename") + .addQueryParams(filename.stream() + .map(s -> new ParamEntry<>("filename", s.toString())) + .collect(Collectors.toList())); + } + + /** + * add additional filename query parameters + * @param value type + * @param filename values to be added + * @return ByProjectKeyVariantsByIDImagesPostString + */ + public ByProjectKeyVariantsByIDImagesPostString addFilename(final Collection filename) { + return copy().addQueryParams( + filename.stream().map(s -> new ParamEntry<>("filename", s.toString())).collect(Collectors.toList())); + } + + /** + * set staged with the specified value + * @param value type + * @param staged value to be set + * @return ByProjectKeyVariantsByIDImagesPostString + */ + public ByProjectKeyVariantsByIDImagesPostString withStaged(final TValue staged) { + return copy().withQueryParam("staged", staged); + } + + /** + * add additional staged query parameter + * @param value type + * @param staged value to be added + * @return ByProjectKeyVariantsByIDImagesPostString + */ + public ByProjectKeyVariantsByIDImagesPostString addStaged(final TValue staged) { + return copy().addQueryParam("staged", staged); + } + + /** + * set staged with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyVariantsByIDImagesPostString + */ + public ByProjectKeyVariantsByIDImagesPostString withStaged(final Supplier supplier) { + return copy().withQueryParam("staged", supplier.get()); + } + + /** + * add additional staged query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyVariantsByIDImagesPostString + */ + public ByProjectKeyVariantsByIDImagesPostString addStaged(final Supplier supplier) { + return copy().addQueryParam("staged", supplier.get()); + } + + /** + * set staged with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyVariantsByIDImagesPostString + */ + public ByProjectKeyVariantsByIDImagesPostString withStaged(final Function op) { + return copy().withQueryParam("staged", op.apply(new StringBuilder())); + } + + /** + * add additional staged query parameter + * @param op builder for the value to be added + * @return ByProjectKeyVariantsByIDImagesPostString + */ + public ByProjectKeyVariantsByIDImagesPostString addStaged(final Function op) { + return copy().addQueryParam("staged", op.apply(new StringBuilder())); + } + + /** + * set staged with the specified values + * @param value type + * @param staged values to be set + * @return ByProjectKeyVariantsByIDImagesPostString + */ + public ByProjectKeyVariantsByIDImagesPostString withStaged(final Collection staged) { + return copy().withoutQueryParam("staged") + .addQueryParams( + staged.stream().map(s -> new ParamEntry<>("staged", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional staged query parameters + * @param value type + * @param staged values to be added + * @return ByProjectKeyVariantsByIDImagesPostString + */ + public ByProjectKeyVariantsByIDImagesPostString addStaged(final Collection staged) { + return copy().addQueryParams( + staged.stream().map(s -> new ParamEntry<>("staged", s.toString())).collect(Collectors.toList())); + } + + public String getBody() { + return file; + } + + public ByProjectKeyVariantsByIDImagesPostString withBody(String file) { + ByProjectKeyVariantsByIDImagesPostString t = copy(); + t.file = file; + return t; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyVariantsByIDImagesPostString that = (ByProjectKeyVariantsByIDImagesPostString) o; + + return new EqualsBuilder().append(projectKey, that.projectKey) + .append(ID, that.ID) + .append(file, that.file) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(ID).append(file).toHashCode(); + } + + @Override + protected ByProjectKeyVariantsByIDImagesPostString copy() { + return new ByProjectKeyVariantsByIDImagesPostString(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyVariantsByIDImagesRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyVariantsByIDImagesRequestBuilder.java new file mode 100644 index 0000000000..22115fc70b --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyVariantsByIDImagesRequestBuilder.java @@ -0,0 +1,25 @@ + +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 ByProjectKeyVariantsByIDImagesRequestBuilder { + + private final ApiHttpClient apiHttpClient; + private final String projectKey; + private final String ID; + + public ByProjectKeyVariantsByIDImagesRequestBuilder(final ApiHttpClient apiHttpClient, final String projectKey, + final String ID) { + this.apiHttpClient = apiHttpClient; + this.projectKey = projectKey; + this.ID = ID; + } + + public ByProjectKeyVariantsByIDImagesPost post(java.io.File file) { + return new ByProjectKeyVariantsByIDImagesPost(apiHttpClient, projectKey, ID, file); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyVariantsByIDRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyVariantsByIDRequestBuilder.java index d7086fb42a..6a510c8e34 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyVariantsByIDRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyVariantsByIDRequestBuilder.java @@ -49,4 +49,8 @@ public ByProjectKeyVariantsByIDDelete delete(TValue version) { return delete().withVersion(version); } + public ByProjectKeyVariantsByIDImagesRequestBuilder images() { + return new ByProjectKeyVariantsByIDImagesRequestBuilder(apiHttpClient, projectKey, ID); + } + } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/Variant.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/Variant.java index 70449861a5..d289b74421 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/Variant.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/Variant.java @@ -5,6 +5,7 @@ import java.time.ZonedDateTime; import java.util.*; import java.util.function.Function; +import java.util.stream.Collectors; import javax.annotation.Nullable; @@ -12,6 +13,7 @@ import com.commercetools.api.models.common.CreatedBy; import com.commercetools.api.models.common.LastModifiedBy; import com.commercetools.api.models.product.ProductReference; +import com.commercetools.api.models.warning.WarningObject; import com.fasterxml.jackson.annotation.*; import io.vrap.rmf.base.client.utils.Generated; @@ -142,6 +144,14 @@ public interface Variant extends BaseResource { @JsonProperty("staged") public VariantData getStaged(); + /** + *

    Warnings about processing of a request. Appears in response to requests with response status code 202 Accepted.

    + * @return warnings + */ + @Valid + @JsonProperty("warnings") + public List getWarnings(); + /** *

    Unique identifier of the Variant.

    * @param id value to be set @@ -226,6 +236,21 @@ public interface Variant extends BaseResource { public void setStaged(final VariantData staged); + /** + *

    Warnings about processing of a request. Appears in response to requests with response status code 202 Accepted.

    + * @param warnings values to be set + */ + + @JsonIgnore + public void setWarnings(final WarningObject... warnings); + + /** + *

    Warnings about processing of a request. Appears in response to requests with response status code 202 Accepted.

    + * @param warnings values to be set + */ + + public void setWarnings(final List warnings); + /** * factory method * @return instance of Variant @@ -253,6 +278,7 @@ public static Variant of(final Variant template) { instance.setPublished(template.getPublished()); instance.setCurrent(template.getCurrent()); instance.setStaged(template.getStaged()); + instance.setWarnings(template.getWarnings()); return instance; } @@ -282,6 +308,11 @@ public static Variant deepCopy(@Nullable final Variant template) { instance.setPublished(template.getPublished()); instance.setCurrent(com.commercetools.api.models.variant.VariantData.deepCopy(template.getCurrent())); instance.setStaged(com.commercetools.api.models.variant.VariantData.deepCopy(template.getStaged())); + instance.setWarnings(Optional.ofNullable(template.getWarnings()) + .map(t -> t.stream() + .map(com.commercetools.api.models.warning.WarningObject::deepCopy) + .collect(Collectors.toList())) + .orElse(null)); return instance; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantBuilder.java index 9f58fe0779..125ee5ead8 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantBuilder.java @@ -59,6 +59,9 @@ public class VariantBuilder implements Builder { @Nullable private com.commercetools.api.models.variant.VariantData staged; + @Nullable + private java.util.List warnings; + /** *

    Unique identifier of the Variant.

    * @param id value to be set @@ -312,6 +315,71 @@ public VariantBuilder staged(@Nullable final com.commercetools.api.models.varian return this; } + /** + *

    Warnings about processing of a request. Appears in response to requests with response status code 202 Accepted.

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

    Warnings about processing of a request. Appears in response to requests with response status code 202 Accepted.

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

    Warnings about processing of a request. Appears in response to requests with response status code 202 Accepted.

    + * @param warnings value to be set + * @return Builder + */ + + public VariantBuilder plusWarnings(@Nullable final com.commercetools.api.models.warning.WarningObject... warnings) { + if (this.warnings == null) { + this.warnings = new ArrayList<>(); + } + this.warnings.addAll(Arrays.asList(warnings)); + return this; + } + + /** + *

    Warnings about processing of a request. Appears in response to requests with response status code 202 Accepted.

    + * @param builder function to build the warnings value + * @return Builder + */ + + public VariantBuilder plusWarnings( + Function> builder) { + if (this.warnings == null) { + this.warnings = new ArrayList<>(); + } + this.warnings.add(builder.apply(com.commercetools.api.models.warning.WarningObjectBuilder.of()).build()); + return this; + } + + /** + *

    Warnings about processing of a request. Appears in response to requests with response status code 202 Accepted.

    + * @param builder function to build the warnings value + * @return Builder + */ + + public VariantBuilder withWarnings( + Function> builder) { + this.warnings = new ArrayList<>(); + this.warnings.add(builder.apply(com.commercetools.api.models.warning.WarningObjectBuilder.of()).build()); + return this; + } + /** *

    Unique identifier of the Variant.

    * @return id @@ -424,6 +492,16 @@ public com.commercetools.api.models.variant.VariantData getStaged() { return this.staged; } + /** + *

    Warnings about processing of a request. Appears in response to requests with response status code 202 Accepted.

    + * @return warnings + */ + + @Nullable + public java.util.List getWarnings() { + return this.warnings; + } + /** * builds Variant with checking for non-null required values * @return Variant @@ -438,7 +516,7 @@ public Variant build() { Objects.requireNonNull(published, Variant.class + ": published is missing"); Objects.requireNonNull(current, Variant.class + ": current is missing"); return new VariantImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, createdBy, key, variantId, - product, published, current, staged); + product, published, current, staged, warnings); } /** @@ -447,7 +525,7 @@ public Variant build() { */ public Variant buildUnchecked() { return new VariantImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, createdBy, key, variantId, - product, published, current, staged); + product, published, current, staged, warnings); } /** @@ -477,6 +555,7 @@ public static VariantBuilder of(final Variant template) { builder.published = template.getPublished(); builder.current = template.getCurrent(); builder.staged = template.getStaged(); + builder.warnings = template.getWarnings(); return builder; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantImpl.java index 75980930be..a02dd1733d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantImpl.java @@ -47,6 +47,8 @@ public class VariantImpl implements Variant, ModelBase { private com.commercetools.api.models.variant.VariantData staged; + private java.util.List warnings; + /** * create instance with all properties */ @@ -60,7 +62,8 @@ public class VariantImpl implements Variant, ModelBase { @JsonProperty("product") final com.commercetools.api.models.product.ProductReference product, @JsonProperty("published") final Boolean published, @JsonProperty("current") final com.commercetools.api.models.variant.VariantData current, - @JsonProperty("staged") final com.commercetools.api.models.variant.VariantData staged) { + @JsonProperty("staged") final com.commercetools.api.models.variant.VariantData staged, + @JsonProperty("warnings") final java.util.List warnings) { this.id = id; this.version = version; this.createdAt = createdAt; @@ -73,6 +76,7 @@ public class VariantImpl implements Variant, ModelBase { this.published = published; this.current = current; this.staged = staged; + this.warnings = warnings; } /** @@ -177,6 +181,14 @@ public com.commercetools.api.models.variant.VariantData getStaged() { return this.staged; } + /** + *

    Warnings about processing of a request. Appears in response to requests with response status code 202 Accepted.

    + */ + + public java.util.List getWarnings() { + return this.warnings; + } + public void setId(final String id) { this.id = id; } @@ -225,6 +237,14 @@ public void setStaged(final com.commercetools.api.models.variant.VariantData sta this.staged = staged; } + public void setWarnings(final com.commercetools.api.models.warning.WarningObject... warnings) { + this.warnings = new ArrayList<>(Arrays.asList(warnings)); + } + + public void setWarnings(final java.util.List warnings) { + this.warnings = warnings; + } + @Override public boolean equals(Object o) { if (this == o) @@ -247,6 +267,7 @@ public boolean equals(Object o) { .append(published, that.published) .append(current, that.current) .append(staged, that.staged) + .append(warnings, that.warnings) .append(id, that.id) .append(version, that.version) .append(createdAt, that.createdAt) @@ -259,6 +280,7 @@ public boolean equals(Object o) { .append(published, that.published) .append(current, that.current) .append(staged, that.staged) + .append(warnings, that.warnings) .isEquals(); } @@ -276,6 +298,7 @@ public int hashCode() { .append(published) .append(current) .append(staged) + .append(warnings) .toHashCode(); } @@ -293,6 +316,7 @@ public String toString() { .append("published", published) .append("current", current) .append("staged", staged) + .append("warnings", warnings) .build(); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantMoveImageToPositionAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantMoveImageToPositionAction.java new file mode 100644 index 0000000000..6323142fd8 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantMoveImageToPositionAction.java @@ -0,0 +1,165 @@ + +package com.commercetools.api.models.variant; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.fasterxml.jackson.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.constraints.NotNull; +import tools.jackson.databind.annotation.*; + +/** + *

    Moves a Variant's image to a new position.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     VariantMoveImageToPositionAction variantMoveImageToPositionAction = VariantMoveImageToPositionAction.builder()
    + *             .imageUrl("{imageUrl}")
    + *             .position(0.3)
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("moveImageToPosition") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = VariantMoveImageToPositionActionImpl.class) +public interface VariantMoveImageToPositionAction extends VariantUpdateAction { + + /** + * discriminator value for VariantMoveImageToPositionAction + */ + String MOVE_IMAGE_TO_POSITION = "moveImageToPosition"; + + /** + *

    The URL of the image to update.

    + * @return imageUrl + */ + @NotNull + @JsonProperty("imageUrl") + public String getImageUrl(); + + /** + *

    Position in images where the image should be moved. Must be between 0 and the total number of images minus 1.

    + * @return position + */ + @NotNull + @JsonProperty("position") + public Long getPosition(); + + /** + *

    If true, only the staged images is updated. If false, both the current and staged images is updated.

    + * @return staged + */ + + @JsonProperty("staged") + public Boolean getStaged(); + + /** + *

    The URL of the image to update.

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

    Position in images where the image should be moved. Must be between 0 and the total number of images minus 1.

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

    If true, only the staged images is updated. If false, both the current and staged images is updated.

    + * @param staged value to be set + */ + + public void setStaged(final Boolean staged); + + /** + * factory method + * @return instance of VariantMoveImageToPositionAction + */ + public static VariantMoveImageToPositionAction of() { + return new VariantMoveImageToPositionActionImpl(); + } + + /** + * factory method to create a shallow copy VariantMoveImageToPositionAction + * @param template instance to be copied + * @return copy instance + */ + public static VariantMoveImageToPositionAction of(final VariantMoveImageToPositionAction template) { + VariantMoveImageToPositionActionImpl instance = new VariantMoveImageToPositionActionImpl(); + instance.setImageUrl(template.getImageUrl()); + instance.setPosition(template.getPosition()); + instance.setStaged(template.getStaged()); + return instance; + } + + public VariantMoveImageToPositionAction copyDeep(); + + /** + * factory method to create a deep copy of VariantMoveImageToPositionAction + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static VariantMoveImageToPositionAction deepCopy(@Nullable final VariantMoveImageToPositionAction template) { + if (template == null) { + return null; + } + VariantMoveImageToPositionActionImpl instance = new VariantMoveImageToPositionActionImpl(); + instance.setImageUrl(template.getImageUrl()); + instance.setPosition(template.getPosition()); + instance.setStaged(template.getStaged()); + return instance; + } + + /** + * builder factory method for VariantMoveImageToPositionAction + * @return builder + */ + public static VariantMoveImageToPositionActionBuilder builder() { + return VariantMoveImageToPositionActionBuilder.of(); + } + + /** + * create builder for VariantMoveImageToPositionAction instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static VariantMoveImageToPositionActionBuilder builder(final VariantMoveImageToPositionAction template) { + return VariantMoveImageToPositionActionBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withVariantMoveImageToPositionAction(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static tools.jackson.core.type.TypeReference typeReference() { + return new tools.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/variant/VariantMoveImageToPositionActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantMoveImageToPositionActionBuilder.java new file mode 100644 index 0000000000..aac2b96f5b --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantMoveImageToPositionActionBuilder.java @@ -0,0 +1,134 @@ + +package com.commercetools.api.models.variant; + +import java.util.*; + +import javax.annotation.Nullable; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * VariantMoveImageToPositionActionBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     VariantMoveImageToPositionAction variantMoveImageToPositionAction = VariantMoveImageToPositionAction.builder()
    + *             .imageUrl("{imageUrl}")
    + *             .position(0.3)
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class VariantMoveImageToPositionActionBuilder implements Builder { + + private String imageUrl; + + private Long position; + + @Nullable + private Boolean staged; + + /** + *

    The URL of the image to update.

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

    Position in images where the image should be moved. Must be between 0 and the total number of images minus 1.

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

    If true, only the staged images is updated. If false, both the current and staged images is updated.

    + * @param staged value to be set + * @return Builder + */ + + public VariantMoveImageToPositionActionBuilder staged(@Nullable final Boolean staged) { + this.staged = staged; + return this; + } + + /** + *

    The URL of the image to update.

    + * @return imageUrl + */ + + public String getImageUrl() { + return this.imageUrl; + } + + /** + *

    Position in images where the image should be moved. Must be between 0 and the total number of images minus 1.

    + * @return position + */ + + public Long getPosition() { + return this.position; + } + + /** + *

    If true, only the staged images is updated. If false, both the current and staged images is updated.

    + * @return staged + */ + + @Nullable + public Boolean getStaged() { + return this.staged; + } + + /** + * builds VariantMoveImageToPositionAction with checking for non-null required values + * @return VariantMoveImageToPositionAction + */ + public VariantMoveImageToPositionAction build() { + Objects.requireNonNull(imageUrl, VariantMoveImageToPositionAction.class + ": imageUrl is missing"); + Objects.requireNonNull(position, VariantMoveImageToPositionAction.class + ": position is missing"); + return new VariantMoveImageToPositionActionImpl(imageUrl, position, staged); + } + + /** + * builds VariantMoveImageToPositionAction without checking for non-null required values + * @return VariantMoveImageToPositionAction + */ + public VariantMoveImageToPositionAction buildUnchecked() { + return new VariantMoveImageToPositionActionImpl(imageUrl, position, staged); + } + + /** + * factory method for an instance of VariantMoveImageToPositionActionBuilder + * @return builder + */ + public static VariantMoveImageToPositionActionBuilder of() { + return new VariantMoveImageToPositionActionBuilder(); + } + + /** + * create builder for VariantMoveImageToPositionAction instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static VariantMoveImageToPositionActionBuilder of(final VariantMoveImageToPositionAction template) { + VariantMoveImageToPositionActionBuilder builder = new VariantMoveImageToPositionActionBuilder(); + builder.imageUrl = template.getImageUrl(); + builder.position = template.getPosition(); + builder.staged = template.getStaged(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantMoveImageToPositionActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantMoveImageToPositionActionImpl.java new file mode 100644 index 0000000000..f9185c262e --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantMoveImageToPositionActionImpl.java @@ -0,0 +1,136 @@ + +package com.commercetools.api.models.variant; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; + +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; + +import tools.jackson.databind.annotation.*; + +/** + *

    Moves a Variant's image to a new position.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class VariantMoveImageToPositionActionImpl implements VariantMoveImageToPositionAction, ModelBase { + + private String action; + + private String imageUrl; + + private Long position; + + private Boolean staged; + + /** + * create instance with all properties + */ + @JsonCreator + VariantMoveImageToPositionActionImpl(@JsonProperty("imageUrl") final String imageUrl, + @JsonProperty("position") final Long position, @JsonProperty("staged") final Boolean staged) { + this.imageUrl = imageUrl; + this.position = position; + this.staged = staged; + this.action = MOVE_IMAGE_TO_POSITION; + } + + /** + * create empty instance + */ + public VariantMoveImageToPositionActionImpl() { + this.action = MOVE_IMAGE_TO_POSITION; + } + + /** + * + */ + + public String getAction() { + return this.action; + } + + /** + *

    The URL of the image to update.

    + */ + + public String getImageUrl() { + return this.imageUrl; + } + + /** + *

    Position in images where the image should be moved. Must be between 0 and the total number of images minus 1.

    + */ + + public Long getPosition() { + return this.position; + } + + /** + *

    If true, only the staged images is updated. If false, both the current and staged images is updated.

    + */ + + public Boolean getStaged() { + return this.staged; + } + + public void setImageUrl(final String imageUrl) { + this.imageUrl = imageUrl; + } + + public void setPosition(final Long position) { + this.position = position; + } + + public void setStaged(final Boolean staged) { + this.staged = staged; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + VariantMoveImageToPositionActionImpl that = (VariantMoveImageToPositionActionImpl) o; + + return new EqualsBuilder().append(action, that.action) + .append(imageUrl, that.imageUrl) + .append(position, that.position) + .append(staged, that.staged) + .append(action, that.action) + .append(imageUrl, that.imageUrl) + .append(position, that.position) + .append(staged, that.staged) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(action).append(imageUrl).append(position).append(staged).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("action", action) + .append("imageUrl", imageUrl) + .append("position", position) + .append("staged", staged) + .build(); + } + + @Override + public VariantMoveImageToPositionAction copyDeep() { + return VariantMoveImageToPositionAction.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetImageLabelAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetImageLabelAction.java new file mode 100644 index 0000000000..1ff780ecf4 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetImageLabelAction.java @@ -0,0 +1,164 @@ + +package com.commercetools.api.models.variant; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.fasterxml.jackson.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.constraints.NotNull; +import tools.jackson.databind.annotation.*; + +/** + *

    Sets the label of a Variant's image.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     VariantSetImageLabelAction variantSetImageLabelAction = VariantSetImageLabelAction.builder()
    + *             .imageUrl("{imageUrl}")
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("setImageLabel") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = VariantSetImageLabelActionImpl.class) +public interface VariantSetImageLabelAction extends VariantUpdateAction { + + /** + * discriminator value for VariantSetImageLabelAction + */ + String SET_IMAGE_LABEL = "setImageLabel"; + + /** + *

    The URL of the image to set the label.

    + * @return imageUrl + */ + @NotNull + @JsonProperty("imageUrl") + public String getImageUrl(); + + /** + *

    Value to set. If empty, any existing value will be removed.

    + * @return label + */ + + @JsonProperty("label") + public String getLabel(); + + /** + *

    If true, only the staged image is updated. If false, both the current and staged image is updated.

    + * @return staged + */ + + @JsonProperty("staged") + public Boolean getStaged(); + + /** + *

    The URL of the image to set the label.

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

    Value to set. If empty, any existing value will be removed.

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

    If true, only the staged image is updated. If false, both the current and staged image is updated.

    + * @param staged value to be set + */ + + public void setStaged(final Boolean staged); + + /** + * factory method + * @return instance of VariantSetImageLabelAction + */ + public static VariantSetImageLabelAction of() { + return new VariantSetImageLabelActionImpl(); + } + + /** + * factory method to create a shallow copy VariantSetImageLabelAction + * @param template instance to be copied + * @return copy instance + */ + public static VariantSetImageLabelAction of(final VariantSetImageLabelAction template) { + VariantSetImageLabelActionImpl instance = new VariantSetImageLabelActionImpl(); + instance.setImageUrl(template.getImageUrl()); + instance.setLabel(template.getLabel()); + instance.setStaged(template.getStaged()); + return instance; + } + + public VariantSetImageLabelAction copyDeep(); + + /** + * factory method to create a deep copy of VariantSetImageLabelAction + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static VariantSetImageLabelAction deepCopy(@Nullable final VariantSetImageLabelAction template) { + if (template == null) { + return null; + } + VariantSetImageLabelActionImpl instance = new VariantSetImageLabelActionImpl(); + instance.setImageUrl(template.getImageUrl()); + instance.setLabel(template.getLabel()); + instance.setStaged(template.getStaged()); + return instance; + } + + /** + * builder factory method for VariantSetImageLabelAction + * @return builder + */ + public static VariantSetImageLabelActionBuilder builder() { + return VariantSetImageLabelActionBuilder.of(); + } + + /** + * create builder for VariantSetImageLabelAction instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static VariantSetImageLabelActionBuilder builder(final VariantSetImageLabelAction template) { + return VariantSetImageLabelActionBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withVariantSetImageLabelAction(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static tools.jackson.core.type.TypeReference typeReference() { + return new tools.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/variant/VariantSetImageLabelActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetImageLabelActionBuilder.java new file mode 100644 index 0000000000..b545b8cb26 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetImageLabelActionBuilder.java @@ -0,0 +1,134 @@ + +package com.commercetools.api.models.variant; + +import java.util.*; + +import javax.annotation.Nullable; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * VariantSetImageLabelActionBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     VariantSetImageLabelAction variantSetImageLabelAction = VariantSetImageLabelAction.builder()
    + *             .imageUrl("{imageUrl}")
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class VariantSetImageLabelActionBuilder implements Builder { + + private String imageUrl; + + @Nullable + private String label; + + @Nullable + private Boolean staged; + + /** + *

    The URL of the image to set the label.

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

    Value to set. If empty, any existing value will be removed.

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

    If true, only the staged image is updated. If false, both the current and staged image is updated.

    + * @param staged value to be set + * @return Builder + */ + + public VariantSetImageLabelActionBuilder staged(@Nullable final Boolean staged) { + this.staged = staged; + return this; + } + + /** + *

    The URL of the image to set the label.

    + * @return imageUrl + */ + + public String getImageUrl() { + return this.imageUrl; + } + + /** + *

    Value to set. If empty, any existing value will be removed.

    + * @return label + */ + + @Nullable + public String getLabel() { + return this.label; + } + + /** + *

    If true, only the staged image is updated. If false, both the current and staged image is updated.

    + * @return staged + */ + + @Nullable + public Boolean getStaged() { + return this.staged; + } + + /** + * builds VariantSetImageLabelAction with checking for non-null required values + * @return VariantSetImageLabelAction + */ + public VariantSetImageLabelAction build() { + Objects.requireNonNull(imageUrl, VariantSetImageLabelAction.class + ": imageUrl is missing"); + return new VariantSetImageLabelActionImpl(imageUrl, label, staged); + } + + /** + * builds VariantSetImageLabelAction without checking for non-null required values + * @return VariantSetImageLabelAction + */ + public VariantSetImageLabelAction buildUnchecked() { + return new VariantSetImageLabelActionImpl(imageUrl, label, staged); + } + + /** + * factory method for an instance of VariantSetImageLabelActionBuilder + * @return builder + */ + public static VariantSetImageLabelActionBuilder of() { + return new VariantSetImageLabelActionBuilder(); + } + + /** + * create builder for VariantSetImageLabelAction instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static VariantSetImageLabelActionBuilder of(final VariantSetImageLabelAction template) { + VariantSetImageLabelActionBuilder builder = new VariantSetImageLabelActionBuilder(); + builder.imageUrl = template.getImageUrl(); + builder.label = template.getLabel(); + builder.staged = template.getStaged(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetImageLabelActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetImageLabelActionImpl.java new file mode 100644 index 0000000000..038f53236f --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetImageLabelActionImpl.java @@ -0,0 +1,136 @@ + +package com.commercetools.api.models.variant; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; + +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; + +import tools.jackson.databind.annotation.*; + +/** + *

    Sets the label of a Variant's image.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class VariantSetImageLabelActionImpl implements VariantSetImageLabelAction, ModelBase { + + private String action; + + private String imageUrl; + + private String label; + + private Boolean staged; + + /** + * create instance with all properties + */ + @JsonCreator + VariantSetImageLabelActionImpl(@JsonProperty("imageUrl") final String imageUrl, + @JsonProperty("label") final String label, @JsonProperty("staged") final Boolean staged) { + this.imageUrl = imageUrl; + this.label = label; + this.staged = staged; + this.action = SET_IMAGE_LABEL; + } + + /** + * create empty instance + */ + public VariantSetImageLabelActionImpl() { + this.action = SET_IMAGE_LABEL; + } + + /** + * + */ + + public String getAction() { + return this.action; + } + + /** + *

    The URL of the image to set the label.

    + */ + + public String getImageUrl() { + return this.imageUrl; + } + + /** + *

    Value to set. If empty, any existing value will be removed.

    + */ + + public String getLabel() { + return this.label; + } + + /** + *

    If true, only the staged image is updated. If false, both the current and staged image is updated.

    + */ + + public Boolean getStaged() { + return this.staged; + } + + public void setImageUrl(final String imageUrl) { + this.imageUrl = imageUrl; + } + + public void setLabel(final String label) { + this.label = label; + } + + public void setStaged(final Boolean staged) { + this.staged = staged; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + VariantSetImageLabelActionImpl that = (VariantSetImageLabelActionImpl) o; + + return new EqualsBuilder().append(action, that.action) + .append(imageUrl, that.imageUrl) + .append(label, that.label) + .append(staged, that.staged) + .append(action, that.action) + .append(imageUrl, that.imageUrl) + .append(label, that.label) + .append(staged, that.staged) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(action).append(imageUrl).append(label).append(staged).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("action", action) + .append("imageUrl", imageUrl) + .append("label", label) + .append("staged", staged) + .build(); + } + + @Override + public VariantSetImageLabelAction copyDeep() { + return VariantSetImageLabelAction.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantUpdateAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantUpdateAction.java index add056066a..3c6ef0beb1 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantUpdateAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantUpdateAction.java @@ -92,6 +92,14 @@ public static com.commercetools.api.models.variant.VariantChangeAssetOrderAction return com.commercetools.api.models.variant.VariantChangeAssetOrderActionBuilder.of(); } + /** + * builder for moveImageToPosition subtype + * @return builder + */ + public static com.commercetools.api.models.variant.VariantMoveImageToPositionActionBuilder moveImageToPositionBuilder() { + return com.commercetools.api.models.variant.VariantMoveImageToPositionActionBuilder.of(); + } + /** * builder for publish subtype * @return builder @@ -196,6 +204,14 @@ public static com.commercetools.api.models.variant.VariantSetAttributesActionBui return com.commercetools.api.models.variant.VariantSetAttributesActionBuilder.of(); } + /** + * builder for setImageLabel subtype + * @return builder + */ + public static com.commercetools.api.models.variant.VariantSetImageLabelActionBuilder setImageLabelBuilder() { + return com.commercetools.api.models.variant.VariantSetImageLabelActionBuilder.of(); + } + /** * builder for setImages subtype * @return builder diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantUpdateActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantUpdateActionBuilder.java index 1c9abc3624..386bdae7e8 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantUpdateActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantUpdateActionBuilder.java @@ -27,6 +27,10 @@ public com.commercetools.api.models.variant.VariantChangeAssetOrderActionBuilder return com.commercetools.api.models.variant.VariantChangeAssetOrderActionBuilder.of(); } + public com.commercetools.api.models.variant.VariantMoveImageToPositionActionBuilder moveImageToPositionBuilder() { + return com.commercetools.api.models.variant.VariantMoveImageToPositionActionBuilder.of(); + } + public com.commercetools.api.models.variant.VariantPublishActionBuilder publishBuilder() { return com.commercetools.api.models.variant.VariantPublishActionBuilder.of(); } @@ -79,6 +83,10 @@ public com.commercetools.api.models.variant.VariantSetAttributesActionBuilder se return com.commercetools.api.models.variant.VariantSetAttributesActionBuilder.of(); } + public com.commercetools.api.models.variant.VariantSetImageLabelActionBuilder setImageLabelBuilder() { + return com.commercetools.api.models.variant.VariantSetImageLabelActionBuilder.of(); + } + public com.commercetools.api.models.variant.VariantSetImagesActionBuilder setImagesBuilder() { return com.commercetools.api.models.variant.VariantSetImagesActionBuilder.of(); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/warning/ImageProcessingOngoingWarning.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/warning/ImageProcessingOngoingWarning.java index 3456096be9..68cdede20d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/warning/ImageProcessingOngoingWarning.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/warning/ImageProcessingOngoingWarning.java @@ -15,7 +15,7 @@ import tools.jackson.databind.annotation.*; /** - *

    Contained in responses to an Upload Product image or an Upload Product Tailoring image request with response status code 202 Accepted. Indicates that the API is still creating the remaining sizes of the uploaded image. They will be available on the Content Delivery Network (CDN) soon.

    + *

    Contained in responses to an Upload Product image, Upload Variant image (BETA), or an Upload Product Tailoring image request with response status code 202 Accepted. Indicates that the API is still creating the remaining sizes of the uploaded image. They will be available on the Content Delivery Network (CDN) soon.

    * *
    * Example to create an instance using the builder pattern diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/warning/ImageProcessingOngoingWarningImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/warning/ImageProcessingOngoingWarningImpl.java index 2f1a89485a..5dc8ba516a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/warning/ImageProcessingOngoingWarningImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/warning/ImageProcessingOngoingWarningImpl.java @@ -18,7 +18,7 @@ import tools.jackson.databind.annotation.*; /** - *

    Contained in responses to an Upload Product image or an Upload Product Tailoring image request with response status code 202 Accepted. Indicates that the API is still creating the remaining sizes of the uploaded image. They will be available on the Content Delivery Network (CDN) soon.

    + *

    Contained in responses to an Upload Product image, Upload Variant image (BETA), or an Upload Product Tailoring image request with response status code 202 Accepted. Indicates that the API is still creating the remaining sizes of the uploaded image. They will be available on the Content Delivery Network (CDN) soon.

    */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class ImageProcessingOngoingWarningImpl implements ImageProcessingOngoingWarning, ModelBase { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/variant/VariantMoveImageToPositionActionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/variant/VariantMoveImageToPositionActionQueryBuilderDsl.java new file mode 100644 index 0000000000..865cbd469e --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/variant/VariantMoveImageToPositionActionQueryBuilderDsl.java @@ -0,0 +1,38 @@ + +package com.commercetools.api.predicates.query.variant; + +import com.commercetools.api.predicates.query.*; + +public class VariantMoveImageToPositionActionQueryBuilderDsl { + public VariantMoveImageToPositionActionQueryBuilderDsl() { + } + + public static VariantMoveImageToPositionActionQueryBuilderDsl of() { + return new VariantMoveImageToPositionActionQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder action() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("action")), + p -> new CombinationQueryPredicate<>(p, VariantMoveImageToPositionActionQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder imageUrl() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("imageUrl")), + p -> new CombinationQueryPredicate<>(p, VariantMoveImageToPositionActionQueryBuilderDsl::of)); + } + + public LongComparisonPredicateBuilder position() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("position")), + p -> new CombinationQueryPredicate<>(p, VariantMoveImageToPositionActionQueryBuilderDsl::of)); + } + + public BooleanComparisonPredicateBuilder staged() { + return new BooleanComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("staged")), + p -> new CombinationQueryPredicate<>(p, VariantMoveImageToPositionActionQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/variant/VariantQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/variant/VariantQueryBuilderDsl.java index 5209c0227f..4f6c5a9f02 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/variant/VariantQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/variant/VariantQueryBuilderDsl.java @@ -97,4 +97,18 @@ public CombinationQueryPredicate staged( VariantQueryBuilderDsl::of); } + public CombinationQueryPredicate warnings( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("warnings")) + .inner(fn.apply(com.commercetools.api.predicates.query.warning.WarningObjectQueryBuilderDsl.of())), + VariantQueryBuilderDsl::of); + } + + public CollectionPredicateBuilder warnings() { + return new CollectionPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("warnings")), + p -> new CombinationQueryPredicate<>(p, VariantQueryBuilderDsl::of)); + } + } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/variant/VariantSetImageLabelActionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/variant/VariantSetImageLabelActionQueryBuilderDsl.java new file mode 100644 index 0000000000..8a5b40eba7 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/variant/VariantSetImageLabelActionQueryBuilderDsl.java @@ -0,0 +1,38 @@ + +package com.commercetools.api.predicates.query.variant; + +import com.commercetools.api.predicates.query.*; + +public class VariantSetImageLabelActionQueryBuilderDsl { + public VariantSetImageLabelActionQueryBuilderDsl() { + } + + public static VariantSetImageLabelActionQueryBuilderDsl of() { + return new VariantSetImageLabelActionQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder action() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("action")), + p -> new CombinationQueryPredicate<>(p, VariantSetImageLabelActionQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder imageUrl() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("imageUrl")), + p -> new CombinationQueryPredicate<>(p, VariantSetImageLabelActionQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder label() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("label")), + p -> new CombinationQueryPredicate<>(p, VariantSetImageLabelActionQueryBuilderDsl::of)); + } + + public BooleanComparisonPredicateBuilder staged() { + return new BooleanComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("staged")), + p -> new CombinationQueryPredicate<>(p, VariantSetImageLabelActionQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/variant/VariantUpdateActionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/variant/VariantUpdateActionQueryBuilderDsl.java index d5e1879be6..80af8d9142 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/variant/VariantUpdateActionQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/variant/VariantUpdateActionQueryBuilderDsl.java @@ -47,6 +47,14 @@ public CombinationQueryPredicate asChangeAss VariantUpdateActionQueryBuilderDsl::of); } + public CombinationQueryPredicate asMoveImageToPosition( + Function> fn) { + return new CombinationQueryPredicate<>( + fn.apply( + com.commercetools.api.predicates.query.variant.VariantMoveImageToPositionActionQueryBuilderDsl.of()), + VariantUpdateActionQueryBuilderDsl::of); + } + public CombinationQueryPredicate asPublish( Function> fn) { return new CombinationQueryPredicate<>( @@ -142,6 +150,13 @@ public CombinationQueryPredicate asSetAttrib VariantUpdateActionQueryBuilderDsl::of); } + public CombinationQueryPredicate asSetImageLabel( + Function> fn) { + return new CombinationQueryPredicate<>( + fn.apply(com.commercetools.api.predicates.query.variant.VariantSetImageLabelActionQueryBuilderDsl.of()), + VariantUpdateActionQueryBuilderDsl::of); + } + public CombinationQueryPredicate asSetImages( Function> fn) { return new CombinationQueryPredicate<>( diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyVariantsByIDImagesTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyVariantsByIDImagesTest.java new file mode 100644 index 0000000000..afc351816b --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyVariantsByIDImagesTest.java @@ -0,0 +1,104 @@ + +package com.commercetools.api.client.resource; + +import java.nio.charset.StandardCharsets; +import java.util.concurrent.CompletableFuture; + +import com.commercetools.api.client.ApiRoot; + +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.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; +import org.mockito.Mockito; + +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyVariantsByIDImagesTest { + 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(); + + @ParameterizedTest + @MethodSource("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()); + } + + @ParameterizedTest + @MethodSource("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); + } + + @ParameterizedTest + @MethodSource("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); + } + + public static Object[][] requestWithMethodParameters() { + return new Object[][] { + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .variants() + .withId("test_ID") + .images() + .post(FileTestUtils.testFileFor(ByProjectKeyVariantsByIDImagesTest.class)) + .withFilename("filename") + .createHttpRequest(), + "post", "test_projectKey/variants/test_ID/images?filename=filename", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .variants() + .withId("test_ID") + .images() + .post(FileTestUtils.testFileFor(ByProjectKeyVariantsByIDImagesTest.class)) + .withStaged(true) + .createHttpRequest(), "post", "test_projectKey/variants/test_ID/images?staged=true", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .variants() + .withId("test_ID") + .images() + .post(FileTestUtils.testFileFor(ByProjectKeyVariantsByIDImagesTest.class)) + .createHttpRequest(), "post", "test_projectKey/variants/test_ID/images", } }; + } + + public static Object[][] executeMethodParameters() { + return new Object[][] { + new Object[] { apiRoot.withProjectKey("test_projectKey") + .variants() + .withId("test_ID") + .images() + .post(FileTestUtils.testFileFor(ByProjectKeyVariantsByIDImagesTest.class)) + .withFilename("filename"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .variants() + .withId("test_ID") + .images() + .post(FileTestUtils.testFileFor(ByProjectKeyVariantsByIDImagesTest.class)) + .withStaged(true), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .variants() + .withId("test_ID") + .images() + .post(FileTestUtils.testFileFor(ByProjectKeyVariantsByIDImagesTest.class)), } }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/variant/VariantMoveImageToPositionActionTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/variant/VariantMoveImageToPositionActionTest.java new file mode 100644 index 0000000000..6196ac71f9 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/variant/VariantMoveImageToPositionActionTest.java @@ -0,0 +1,45 @@ + +package com.commercetools.api.models.variant; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class VariantMoveImageToPositionActionTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, VariantMoveImageToPositionActionBuilder builder) { + VariantMoveImageToPositionAction variantMoveImageToPositionAction = builder.buildUnchecked(); + Assertions.assertThat(variantMoveImageToPositionAction).isInstanceOf(VariantMoveImageToPositionAction.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { + new Object[] { "imageUrl", VariantMoveImageToPositionAction.builder().imageUrl("imageUrl") }, + new Object[] { "position", VariantMoveImageToPositionAction.builder().position(4L) }, + new Object[] { "staged", VariantMoveImageToPositionAction.builder().staged(true) } }; + } + + @Test + public void imageUrl() { + VariantMoveImageToPositionAction value = VariantMoveImageToPositionAction.of(); + value.setImageUrl("imageUrl"); + Assertions.assertThat(value.getImageUrl()).isEqualTo("imageUrl"); + } + + @Test + public void position() { + VariantMoveImageToPositionAction value = VariantMoveImageToPositionAction.of(); + value.setPosition(4L); + Assertions.assertThat(value.getPosition()).isEqualTo(4L); + } + + @Test + public void staged() { + VariantMoveImageToPositionAction value = VariantMoveImageToPositionAction.of(); + value.setStaged(true); + Assertions.assertThat(value.getStaged()).isEqualTo(true); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/variant/VariantSetImageLabelActionTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/variant/VariantSetImageLabelActionTest.java new file mode 100644 index 0000000000..a483641260 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/variant/VariantSetImageLabelActionTest.java @@ -0,0 +1,44 @@ + +package com.commercetools.api.models.variant; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class VariantSetImageLabelActionTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, VariantSetImageLabelActionBuilder builder) { + VariantSetImageLabelAction variantSetImageLabelAction = builder.buildUnchecked(); + Assertions.assertThat(variantSetImageLabelAction).isInstanceOf(VariantSetImageLabelAction.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { "imageUrl", VariantSetImageLabelAction.builder().imageUrl("imageUrl") }, + new Object[] { "label", VariantSetImageLabelAction.builder().label("label") }, + new Object[] { "staged", VariantSetImageLabelAction.builder().staged(true) } }; + } + + @Test + public void imageUrl() { + VariantSetImageLabelAction value = VariantSetImageLabelAction.of(); + value.setImageUrl("imageUrl"); + Assertions.assertThat(value.getImageUrl()).isEqualTo("imageUrl"); + } + + @Test + public void label() { + VariantSetImageLabelAction value = VariantSetImageLabelAction.of(); + value.setLabel("label"); + Assertions.assertThat(value.getLabel()).isEqualTo("label"); + } + + @Test + public void staged() { + VariantSetImageLabelAction value = VariantSetImageLabelAction.of(); + value.setStaged(true); + Assertions.assertThat(value.getStaged()).isEqualTo(true); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/variant/VariantTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/variant/VariantTest.java index 9e9daf40f2..a71d9d30d2 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/variant/VariantTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/variant/VariantTest.java @@ -2,6 +2,7 @@ package com.commercetools.api.models.variant; import java.time.ZonedDateTime; +import java.util.Collections; import org.assertj.core.api.Assertions; import org.junit.jupiter.api.Test; @@ -36,7 +37,11 @@ public static Object[][] objectBuilder() { new Object[] { "current", Variant.builder().current(new com.commercetools.api.models.variant.VariantDataImpl()) }, new Object[] { "staged", - Variant.builder().staged(new com.commercetools.api.models.variant.VariantDataImpl()) } }; + Variant.builder().staged(new com.commercetools.api.models.variant.VariantDataImpl()) }, + new Object[] { "warnings", + Variant.builder() + .warnings(Collections.singletonList( + new com.commercetools.api.models.warning.WarningObjectImpl())) } }; } @Test @@ -124,4 +129,12 @@ public void staged() { value.setStaged(new com.commercetools.api.models.variant.VariantDataImpl()); Assertions.assertThat(value.getStaged()).isEqualTo(new com.commercetools.api.models.variant.VariantDataImpl()); } + + @Test + public void warnings() { + Variant value = Variant.of(); + value.setWarnings(Collections.singletonList(new com.commercetools.api.models.warning.WarningObjectImpl())); + Assertions.assertThat(value.getWarnings()) + .isEqualTo(Collections.singletonList(new com.commercetools.api.models.warning.WarningObjectImpl())); + } } diff --git a/references.txt b/references.txt index 7f0a59bdbf..03a92159f4 100644 --- a/references.txt +++ b/references.txt @@ -602,3 +602,4 @@ f1aa67e522f27cdd01e5817f85d2d8ead7dbf5c6 876a1577cad1f3e2c2f3f2c07c9c957208a31594 7f177acb96f6685ef66580019bacddb13fc368e5 d2196cb5da09d223d3bf652b3ef668a6c30a7c84 +664f2eb2105805407077678a0a1e92d3768f1c1b From c8a761529996476be170cf418494de26a4fe0750 Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Wed, 29 Jul 2026 09:09:21 +0000 Subject: [PATCH 21/27] build(codegen): updating SDK --- .../main/resources/graphql/schema.graphqls | 50 ++++++++++++++++++- references.txt | 1 + 2 files changed, 50 insertions(+), 1 deletion(-) 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 504cd3d727..73903b0530 100644 --- a/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls +++ b/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls @@ -2537,6 +2537,7 @@ type AttributeDefinition { acceptLanguage: [Locale!] ): String inputHint: TextInputHint! + displayGroup: DisplayGroup! isSearchable: Boolean! labelAllLocales: [LocalizedString!]! inputTipAllLocales: [LocalizedString!] @@ -5164,7 +5165,10 @@ type LineItem { ): String productSlugAllLocales: [LocalizedString!] productType: ProductTypeDefinition - productTypeRef: Reference + """ + Reference to the product type of the line item, carrying the snapshot `version` captured when the line item was added. + """ + productTypeRef: VersionedReference variant: ProductVariant price: ProductPrice! taxedPrice: TaxedItemPrice @@ -5666,6 +5670,8 @@ type Order implements Versioned & ReferenceExpandable { discountTypeCombination: DiscountTypeCombination completedAt: DateTime orderNumber: String + """Indicates if the order is included in the transaction fee calculation.""" + transactionFee: Boolean! orderState: OrderState! stateRef: Reference state: State @@ -7644,6 +7650,7 @@ type ProductTypeDefinition implements Versioned & ReferenceExpandable { key: String name: String! description: String! + classifier: ProductTypeClassifier! attributeDefinitions( """ The names of the attribute definitions to include. @@ -10457,6 +10464,12 @@ type VariantUnpublished implements MessagePayload { type: String! } +type VersionedReference { + typeId: String! + id: String! + version: Long +} + type WhitespaceSuggestTokenizer implements SuggestTokenizer { type: String! } @@ -11189,6 +11202,15 @@ enum TextInputHint { SingleLine MultiLine } +enum DisplayGroup { + General + Prices + Images + Categories + Variants + Inventory + Other +} enum AuthenticationMode { ExternalAuth Password @@ -11578,6 +11600,32 @@ enum PublishScope { """Publishes only prices on the staged projection""" Prices } +enum ProductTypeClassifier { + Animal + Apparel + Art + Audio + Baby + Bike + Book + Bottle + Camera + Car + Complex + Computer + Cosmetic + Digital + Electronic + Food + Furniture + Home + Jewelery + Living + Luggage + Office + Sport + Toy +} enum RecurringOrderState { Active Canceled diff --git a/references.txt b/references.txt index 03a92159f4..8ed9d5ef43 100644 --- a/references.txt +++ b/references.txt @@ -603,3 +603,4 @@ f1aa67e522f27cdd01e5817f85d2d8ead7dbf5c6 7f177acb96f6685ef66580019bacddb13fc368e5 d2196cb5da09d223d3bf652b3ef668a6c30a7c84 664f2eb2105805407077678a0a1e92d3768f1c1b +4d52ab8f857279576e9321b327deac21b2926f0c From 35e8e26aba2f8d0e7852f00facb5037ebe4d3bb5 Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Wed, 29 Jul 2026 12:17:05 +0000 Subject: [PATCH 22/27] build(codegen): updating SDK --- .../main/resources/graphql/schema.graphqls | 39 ------------------- references.txt | 1 + 2 files changed, 1 insertion(+), 39 deletions(-) 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 73903b0530..c59eb2748b 100644 --- a/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls +++ b/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls @@ -2537,7 +2537,6 @@ type AttributeDefinition { acceptLanguage: [Locale!] ): String inputHint: TextInputHint! - displayGroup: DisplayGroup! isSearchable: Boolean! labelAllLocales: [LocalizedString!]! inputTipAllLocales: [LocalizedString!] @@ -5670,8 +5669,6 @@ type Order implements Versioned & ReferenceExpandable { discountTypeCombination: DiscountTypeCombination completedAt: DateTime orderNumber: String - """Indicates if the order is included in the transaction fee calculation.""" - transactionFee: Boolean! orderState: OrderState! stateRef: Reference state: State @@ -7650,7 +7647,6 @@ type ProductTypeDefinition implements Versioned & ReferenceExpandable { key: String name: String! description: String! - classifier: ProductTypeClassifier! attributeDefinitions( """ The names of the attribute definitions to include. @@ -11202,15 +11198,6 @@ enum TextInputHint { SingleLine MultiLine } -enum DisplayGroup { - General - Prices - Images - Categories - Variants - Inventory - Other -} enum AuthenticationMode { ExternalAuth Password @@ -11600,32 +11587,6 @@ enum PublishScope { """Publishes only prices on the staged projection""" Prices } -enum ProductTypeClassifier { - Animal - Apparel - Art - Audio - Baby - Bike - Book - Bottle - Camera - Car - Complex - Computer - Cosmetic - Digital - Electronic - Food - Furniture - Home - Jewelery - Living - Luggage - Office - Sport - Toy -} enum RecurringOrderState { Active Canceled diff --git a/references.txt b/references.txt index 8ed9d5ef43..305289abe6 100644 --- a/references.txt +++ b/references.txt @@ -604,3 +604,4 @@ f1aa67e522f27cdd01e5817f85d2d8ead7dbf5c6 d2196cb5da09d223d3bf652b3ef668a6c30a7c84 664f2eb2105805407077678a0a1e92d3768f1c1b 4d52ab8f857279576e9321b327deac21b2926f0c +f9a44493eef8a3103b16157bb030cc6be357c711 From fde02a3493ff6f2829103620cfd0f8bb476d342d Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Thu, 30 Jul 2026 08:19:13 +0000 Subject: [PATCH 23/27] build(codegen): updating SDK --- .../src/main/resources/graphql/schema.graphqls | 3 +++ references.txt | 1 + 2 files changed, 4 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 c59eb2748b..22a8d3be29 100644 --- a/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls +++ b/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls @@ -14520,6 +14520,8 @@ input ImportOrderDraft { inventoryMode: InventoryMode = None shippingDetails: ItemShippingDetailsDraft taxCalculationMode: TaxCalculationMode = LineItemLevel + priceRoundingMode: RoundingMode = HalfEven + taxRoundingMode: RoundingMode = HalfEven origin: CartOrigin = Customer itemShippingAddresses: [AddressInput!] = [] state: ReferenceInput @@ -14646,6 +14648,7 @@ input LineItemImportDraft { distributionChannel: ResourceIdentifierInput taxRate: TaxRateInput variant: ProductVariantImportDraft! + inventoryMode: InventoryMode state: [ItemStateDraftType!] custom: CustomFieldsDraft shippingDetails: ItemShippingDetailsDraft diff --git a/references.txt b/references.txt index 305289abe6..98bd8efa6f 100644 --- a/references.txt +++ b/references.txt @@ -605,3 +605,4 @@ d2196cb5da09d223d3bf652b3ef668a6c30a7c84 664f2eb2105805407077678a0a1e92d3768f1c1b 4d52ab8f857279576e9321b327deac21b2926f0c f9a44493eef8a3103b16157bb030cc6be357c711 +1d55942b238054575643c63d7b05394dc5f405bb From 4b188a5f405b8011e616833afb27f1616c74bfc4 Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Mon, 3 Aug 2026 09:46:40 +0000 Subject: [PATCH 24/27] build(codegen): updating SDK --- changes.md | 2 + .../api/models/variant/VariantProjection.java | 51 ++++++ .../variant/VariantProjectionBuilder.java | 158 +++++++++++++++++- .../models/variant/VariantProjectionImpl.java | 46 +++++ .../VariantProjectionQueryBuilderDsl.java | 26 +++ .../models/variant/VariantProjectionTest.java | 24 +++ references.txt | 1 + 7 files changed, 306 insertions(+), 2 deletions(-) diff --git a/changes.md b/changes.md index 30d05b3cce..a1b67a12c3 100644 --- a/changes.md +++ b/changes.md @@ -28,6 +28,8 @@ - added property `stores` to type `DiscountCode` - added property `warnings` to type `Variant` +- added property `categories` to type `VariantProjection` +- added property `categoryOrderHints` to type `VariantProjection` diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantProjection.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantProjection.java index 4df4524035..ffa2c22b46 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantProjection.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantProjection.java @@ -9,11 +9,13 @@ import javax.annotation.Nullable; +import com.commercetools.api.models.category.CategoryReference; import com.commercetools.api.models.common.Asset; import com.commercetools.api.models.common.Image; import com.commercetools.api.models.common.LocalizedString; import com.commercetools.api.models.common.Price; import com.commercetools.api.models.product.Attribute; +import com.commercetools.api.models.product.CategoryOrderHints; import com.commercetools.api.models.product.ProductReference; import com.fasterxml.jackson.annotation.*; @@ -39,6 +41,7 @@ * .product(productBuilder -> productBuilder) * .name(nameBuilder -> nameBuilder) * .slug(slugBuilder -> slugBuilder) + * .plusCategories(categoriesBuilder -> categoriesBuilder) * .plusImages(imagesBuilder -> imagesBuilder) * .plusAssets(assetsBuilder -> assetsBuilder) * .plusAttributes(attributesBuilder -> attributesBuilder) @@ -126,6 +129,23 @@ public interface VariantProjection { @JsonProperty("description") public LocalizedString getDescription(); + /** + *

    Categories assigned to the parent Product.

    + * @return categories + */ + @NotNull + @Valid + @JsonProperty("categories") + public List getCategories(); + + /** + *

    Order of the parent Product in Categories.

    + * @return categoryOrderHints + */ + @Valid + @JsonProperty("categoryOrderHints") + public CategoryOrderHints getCategoryOrderHints(); + /** *

    User-defined unique identifier of the Variant.

    * @return key @@ -248,6 +268,28 @@ public interface VariantProjection { public void setDescription(final LocalizedString description); + /** + *

    Categories assigned to the parent Product.

    + * @param categories values to be set + */ + + @JsonIgnore + public void setCategories(final CategoryReference... categories); + + /** + *

    Categories assigned to the parent Product.

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

    Order of the parent Product in Categories.

    + * @param categoryOrderHints value to be set + */ + + public void setCategoryOrderHints(final CategoryOrderHints categoryOrderHints); + /** *

    User-defined unique identifier of the Variant.

    * @param key value to be set @@ -345,6 +387,8 @@ public static VariantProjection of(final VariantProjection template) { instance.setName(template.getName()); instance.setSlug(template.getSlug()); instance.setDescription(template.getDescription()); + instance.setCategories(template.getCategories()); + instance.setCategoryOrderHints(template.getCategoryOrderHints()); instance.setKey(template.getKey()); instance.setSku(template.getSku()); instance.setImages(template.getImages()); @@ -378,6 +422,13 @@ public static VariantProjection deepCopy(@Nullable final VariantProjection templ instance.setSlug(com.commercetools.api.models.common.LocalizedString.deepCopy(template.getSlug())); instance.setDescription( com.commercetools.api.models.common.LocalizedString.deepCopy(template.getDescription())); + instance.setCategories(Optional.ofNullable(template.getCategories()) + .map(t -> t.stream() + .map(com.commercetools.api.models.category.CategoryReference::deepCopy) + .collect(Collectors.toList())) + .orElse(null)); + instance.setCategoryOrderHints( + com.commercetools.api.models.product.CategoryOrderHints.deepCopy(template.getCategoryOrderHints())); instance.setKey(template.getKey()); instance.setSku(template.getSku()); instance.setImages(Optional.ofNullable(template.getImages()) diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantProjectionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantProjectionBuilder.java index 71782db010..006989fe20 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantProjectionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantProjectionBuilder.java @@ -24,6 +24,7 @@ * .product(productBuilder -> productBuilder) * .name(nameBuilder -> nameBuilder) * .slug(slugBuilder -> slugBuilder) + * .plusCategories(categoriesBuilder -> categoriesBuilder) * .plusImages(imagesBuilder -> imagesBuilder) * .plusAssets(assetsBuilder -> assetsBuilder) * .plusAttributes(attributesBuilder -> attributesBuilder) @@ -54,6 +55,11 @@ public class VariantProjectionBuilder implements Builder { @Nullable private com.commercetools.api.models.common.LocalizedString description; + private java.util.List categories; + + @Nullable + private com.commercetools.api.models.product.CategoryOrderHints categoryOrderHints; + @Nullable private String key; @@ -267,6 +273,132 @@ public VariantProjectionBuilder description( return this; } + /** + *

    Categories assigned to the parent Product.

    + * @param categories value to be set + * @return Builder + */ + + public VariantProjectionBuilder categories( + final com.commercetools.api.models.category.CategoryReference... categories) { + this.categories = new ArrayList<>(Arrays.asList(categories)); + return this; + } + + /** + *

    Categories assigned to the parent Product.

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

    Categories assigned to the parent Product.

    + * @param categories value to be set + * @return Builder + */ + + public VariantProjectionBuilder plusCategories( + final com.commercetools.api.models.category.CategoryReference... categories) { + if (this.categories == null) { + this.categories = new ArrayList<>(); + } + this.categories.addAll(Arrays.asList(categories)); + return this; + } + + /** + *

    Categories assigned to the parent Product.

    + * @param builder function to build the categories value + * @return Builder + */ + + public VariantProjectionBuilder plusCategories( + Function builder) { + if (this.categories == null) { + this.categories = new ArrayList<>(); + } + this.categories.add(builder.apply(com.commercetools.api.models.category.CategoryReferenceBuilder.of()).build()); + return this; + } + + /** + *

    Categories assigned to the parent Product.

    + * @param builder function to build the categories value + * @return Builder + */ + + public VariantProjectionBuilder withCategories( + Function builder) { + this.categories = new ArrayList<>(); + this.categories.add(builder.apply(com.commercetools.api.models.category.CategoryReferenceBuilder.of()).build()); + return this; + } + + /** + *

    Categories assigned to the parent Product.

    + * @param builder function to build the categories value + * @return Builder + */ + + public VariantProjectionBuilder addCategories( + Function builder) { + return plusCategories(builder.apply(com.commercetools.api.models.category.CategoryReferenceBuilder.of())); + } + + /** + *

    Categories assigned to the parent Product.

    + * @param builder function to build the categories value + * @return Builder + */ + + public VariantProjectionBuilder setCategories( + Function builder) { + return categories(builder.apply(com.commercetools.api.models.category.CategoryReferenceBuilder.of())); + } + + /** + *

    Order of the parent Product in Categories.

    + * @param builder function to build the categoryOrderHints value + * @return Builder + */ + + public VariantProjectionBuilder categoryOrderHints( + Function builder) { + this.categoryOrderHints = builder.apply(com.commercetools.api.models.product.CategoryOrderHintsBuilder.of()) + .build(); + return this; + } + + /** + *

    Order of the parent Product in Categories.

    + * @param builder function to build the categoryOrderHints value + * @return Builder + */ + + public VariantProjectionBuilder withCategoryOrderHints( + Function builder) { + this.categoryOrderHints = builder.apply(com.commercetools.api.models.product.CategoryOrderHintsBuilder.of()); + return this; + } + + /** + *

    Order of the parent Product in Categories.

    + * @param categoryOrderHints value to be set + * @return Builder + */ + + public VariantProjectionBuilder categoryOrderHints( + @Nullable final com.commercetools.api.models.product.CategoryOrderHints categoryOrderHints) { + this.categoryOrderHints = categoryOrderHints; + return this; + } + /** *

    User-defined unique identifier of the Variant.

    * @param key value to be set @@ -676,6 +808,25 @@ public com.commercetools.api.models.common.LocalizedString getDescription() { return this.description; } + /** + *

    Categories assigned to the parent Product.

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

    Order of the parent Product in Categories.

    + * @return categoryOrderHints + */ + + @Nullable + public com.commercetools.api.models.product.CategoryOrderHints getCategoryOrderHints() { + return this.categoryOrderHints; + } + /** *

    User-defined unique identifier of the Variant.

    * @return key @@ -755,12 +906,13 @@ public VariantProjection build() { Objects.requireNonNull(product, VariantProjection.class + ": product is missing"); Objects.requireNonNull(name, VariantProjection.class + ": name is missing"); Objects.requireNonNull(slug, VariantProjection.class + ": slug is missing"); + Objects.requireNonNull(categories, VariantProjection.class + ": categories is missing"); Objects.requireNonNull(images, VariantProjection.class + ": images is missing"); Objects.requireNonNull(assets, VariantProjection.class + ": assets is missing"); Objects.requireNonNull(attributes, VariantProjection.class + ": attributes is missing"); Objects.requireNonNull(_default, VariantProjection.class + ": default is missing"); return new VariantProjectionImpl(id, version, createdAt, staged, variantId, product, name, slug, description, - key, sku, images, assets, attributes, price, _default); + categories, categoryOrderHints, key, sku, images, assets, attributes, price, _default); } /** @@ -769,7 +921,7 @@ public VariantProjection build() { */ public VariantProjection buildUnchecked() { return new VariantProjectionImpl(id, version, createdAt, staged, variantId, product, name, slug, description, - key, sku, images, assets, attributes, price, _default); + categories, categoryOrderHints, key, sku, images, assets, attributes, price, _default); } /** @@ -796,6 +948,8 @@ public static VariantProjectionBuilder of(final VariantProjection template) { builder.name = template.getName(); builder.slug = template.getSlug(); builder.description = template.getDescription(); + builder.categories = template.getCategories(); + builder.categoryOrderHints = template.getCategoryOrderHints(); builder.key = template.getKey(); builder.sku = template.getSku(); builder.images = template.getImages(); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantProjectionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantProjectionImpl.java index fc2e54ac07..8910009bb6 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantProjectionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantProjectionImpl.java @@ -41,6 +41,10 @@ public class VariantProjectionImpl implements VariantProjection, ModelBase { private com.commercetools.api.models.common.LocalizedString description; + private java.util.List categories; + + private com.commercetools.api.models.product.CategoryOrderHints categoryOrderHints; + private String key; private String sku; @@ -66,6 +70,8 @@ public class VariantProjectionImpl implements VariantProjection, ModelBase { @JsonProperty("name") final com.commercetools.api.models.common.LocalizedString name, @JsonProperty("slug") final com.commercetools.api.models.common.LocalizedString slug, @JsonProperty("description") final com.commercetools.api.models.common.LocalizedString description, + @JsonProperty("categories") final java.util.List categories, + @JsonProperty("categoryOrderHints") final com.commercetools.api.models.product.CategoryOrderHints categoryOrderHints, @JsonProperty("key") final String key, @JsonProperty("sku") final String sku, @JsonProperty("images") final java.util.List images, @JsonProperty("assets") final java.util.List assets, @@ -81,6 +87,8 @@ public class VariantProjectionImpl implements VariantProjection, ModelBase { this.name = name; this.slug = slug; this.description = description; + this.categories = categories; + this.categoryOrderHints = categoryOrderHints; this.key = key; this.sku = sku; this.images = images; @@ -168,6 +176,22 @@ public com.commercetools.api.models.common.LocalizedString getDescription() { return this.description; } + /** + *

    Categories assigned to the parent Product.

    + */ + + public java.util.List getCategories() { + return this.categories; + } + + /** + *

    Order of the parent Product in Categories.

    + */ + + public com.commercetools.api.models.product.CategoryOrderHints getCategoryOrderHints() { + return this.categoryOrderHints; + } + /** *

    User-defined unique identifier of the Variant.

    */ @@ -260,6 +284,20 @@ public void setDescription(final com.commercetools.api.models.common.LocalizedSt this.description = description; } + public void setCategories(final com.commercetools.api.models.category.CategoryReference... categories) { + this.categories = new ArrayList<>(Arrays.asList(categories)); + } + + public void setCategories( + final java.util.List categories) { + this.categories = categories; + } + + public void setCategoryOrderHints( + final com.commercetools.api.models.product.CategoryOrderHints categoryOrderHints) { + this.categoryOrderHints = categoryOrderHints; + } + public void setKey(final String key) { this.key = key; } @@ -319,6 +357,8 @@ public boolean equals(Object o) { .append(name, that.name) .append(slug, that.slug) .append(description, that.description) + .append(categories, that.categories) + .append(categoryOrderHints, that.categoryOrderHints) .append(key, that.key) .append(sku, that.sku) .append(images, that.images) @@ -335,6 +375,8 @@ public boolean equals(Object o) { .append(name, that.name) .append(slug, that.slug) .append(description, that.description) + .append(categories, that.categories) + .append(categoryOrderHints, that.categoryOrderHints) .append(key, that.key) .append(sku, that.sku) .append(images, that.images) @@ -356,6 +398,8 @@ public int hashCode() { .append(name) .append(slug) .append(description) + .append(categories) + .append(categoryOrderHints) .append(key) .append(sku) .append(images) @@ -377,6 +421,8 @@ public String toString() { .append("name", name) .append("slug", slug) .append("description", description) + .append("categories", categories) + .append("categoryOrderHints", categoryOrderHints) .append("key", key) .append("sku", sku) .append("images", images) diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/variant/VariantProjectionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/variant/VariantProjectionQueryBuilderDsl.java index 593a1ae9b4..886d3f6588 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/variant/VariantProjectionQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/variant/VariantProjectionQueryBuilderDsl.java @@ -77,6 +77,32 @@ public CombinationQueryPredicate description( VariantProjectionQueryBuilderDsl::of); } + public CombinationQueryPredicate categories( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("categories")) + .inner(fn.apply( + com.commercetools.api.predicates.query.category.CategoryReferenceQueryBuilderDsl.of())), + VariantProjectionQueryBuilderDsl::of); + } + + public CollectionPredicateBuilder categories() { + return new CollectionPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("categories")), + p -> new CombinationQueryPredicate<>(p, VariantProjectionQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate categoryOrderHints( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("categoryOrderHints")) + .inner(fn.apply( + com.commercetools.api.predicates.query.product.CategoryOrderHintsQueryBuilderDsl.of())), + VariantProjectionQueryBuilderDsl::of); + } + public StringComparisonPredicateBuilder key() { return new StringComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("key")), p -> new CombinationQueryPredicate<>(p, VariantProjectionQueryBuilderDsl::of)); diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/variant/VariantProjectionTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/variant/VariantProjectionTest.java index 26a9d0e705..a7ce7e8412 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/variant/VariantProjectionTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/variant/VariantProjectionTest.java @@ -37,6 +37,12 @@ public static Object[][] objectBuilder() { new Object[] { "description", VariantProjection.builder() .description(new com.commercetools.api.models.common.LocalizedStringImpl()) }, + new Object[] { "categories", + VariantProjection.builder() + .categories(Collections.singletonList( + new com.commercetools.api.models.category.CategoryReferenceImpl())) }, + new Object[] { "categoryOrderHints", VariantProjection.builder() + .categoryOrderHints(new com.commercetools.api.models.product.CategoryOrderHintsImpl()) }, new Object[] { "key", VariantProjection.builder().key("key") }, new Object[] { "sku", VariantProjection.builder().sku("sku") }, new Object[] { "images", VariantProjection.builder() @@ -117,6 +123,24 @@ public void description() { .isEqualTo(new com.commercetools.api.models.common.LocalizedStringImpl()); } + @Test + public void categories() { + VariantProjection value = VariantProjection.of(); + value.setCategories( + Collections.singletonList(new com.commercetools.api.models.category.CategoryReferenceImpl())); + Assertions.assertThat(value.getCategories()) + .isEqualTo( + Collections.singletonList(new com.commercetools.api.models.category.CategoryReferenceImpl())); + } + + @Test + public void categoryOrderHints() { + VariantProjection value = VariantProjection.of(); + value.setCategoryOrderHints(new com.commercetools.api.models.product.CategoryOrderHintsImpl()); + Assertions.assertThat(value.getCategoryOrderHints()) + .isEqualTo(new com.commercetools.api.models.product.CategoryOrderHintsImpl()); + } + @Test public void key() { VariantProjection value = VariantProjection.of(); diff --git a/references.txt b/references.txt index 98bd8efa6f..452f6afba4 100644 --- a/references.txt +++ b/references.txt @@ -606,3 +606,4 @@ d2196cb5da09d223d3bf652b3ef668a6c30a7c84 4d52ab8f857279576e9321b327deac21b2926f0c f9a44493eef8a3103b16157bb030cc6be357c711 1d55942b238054575643c63d7b05394dc5f405bb +b6060a56dd91f570badc882bab7e86d3f4a2d1ee From d5bdc36ecf12c2c2225f903dbf44d34a216127c3 Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Mon, 3 Aug 2026 12:21:52 +0000 Subject: [PATCH 25/27] build(codegen): updating SDK --- .../api/models/shopping_list/ShoppingListLineItem.java | 4 ++-- .../api/models/shopping_list/ShoppingListLineItemBuilder.java | 4 ++-- .../api/models/shopping_list/ShoppingListLineItemImpl.java | 2 +- references.txt | 1 + 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shopping_list/ShoppingListLineItem.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shopping_list/ShoppingListLineItem.java index 3e98b3d11b..e174c3ade6 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shopping_list/ShoppingListLineItem.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shopping_list/ShoppingListLineItem.java @@ -61,7 +61,7 @@ public interface ShoppingListLineItem extends com.commercetools.api.models.Custo public CustomFields getCustom(); /** - *

    If the Product or Product Variant is deleted, deactivatedAt is the date and time (UTC) of deletion.

    + *

    If the Product or Product Variant is deleted or unpublished, deactivatedAt is the date and time (UTC) this occurred.

    *

    This data is updated in an eventual consistent manner when the Product Variant cannot be ordered anymore.

    * @return deactivatedAt */ @@ -171,7 +171,7 @@ public interface ShoppingListLineItem extends com.commercetools.api.models.Custo public void setCustom(final CustomFields custom); /** - *

    If the Product or Product Variant is deleted, deactivatedAt is the date and time (UTC) of deletion.

    + *

    If the Product or Product Variant is deleted or unpublished, deactivatedAt is the date and time (UTC) this occurred.

    *

    This data is updated in an eventual consistent manner when the Product Variant cannot be ordered anymore.

    * @param deactivatedAt value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shopping_list/ShoppingListLineItemBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shopping_list/ShoppingListLineItemBuilder.java index ea2942f466..51b60b1ce9 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shopping_list/ShoppingListLineItemBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shopping_list/ShoppingListLineItemBuilder.java @@ -109,7 +109,7 @@ public ShoppingListLineItemBuilder custom(@Nullable final com.commercetools.api. } /** - *

    If the Product or Product Variant is deleted, deactivatedAt is the date and time (UTC) of deletion.

    + *

    If the Product or Product Variant is deleted or unpublished, deactivatedAt is the date and time (UTC) this occurred.

    *

    This data is updated in an eventual consistent manner when the Product Variant cannot be ordered anymore.

    * @param deactivatedAt value to be set * @return Builder @@ -361,7 +361,7 @@ public com.commercetools.api.models.type.CustomFields getCustom() { } /** - *

    If the Product or Product Variant is deleted, deactivatedAt is the date and time (UTC) of deletion.

    + *

    If the Product or Product Variant is deleted or unpublished, deactivatedAt is the date and time (UTC) this occurred.

    *

    This data is updated in an eventual consistent manner when the Product Variant cannot be ordered anymore.

    * @return deactivatedAt */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shopping_list/ShoppingListLineItemImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shopping_list/ShoppingListLineItemImpl.java index 6d1d7ec9d3..a738757162 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shopping_list/ShoppingListLineItemImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shopping_list/ShoppingListLineItemImpl.java @@ -103,7 +103,7 @@ public com.commercetools.api.models.type.CustomFields getCustom() { } /** - *

    If the Product or Product Variant is deleted, deactivatedAt is the date and time (UTC) of deletion.

    + *

    If the Product or Product Variant is deleted or unpublished, deactivatedAt is the date and time (UTC) this occurred.

    *

    This data is updated in an eventual consistent manner when the Product Variant cannot be ordered anymore.

    */ diff --git a/references.txt b/references.txt index 452f6afba4..bb4adfc81c 100644 --- a/references.txt +++ b/references.txt @@ -607,3 +607,4 @@ d2196cb5da09d223d3bf652b3ef668a6c30a7c84 f9a44493eef8a3103b16157bb030cc6be357c711 1d55942b238054575643c63d7b05394dc5f405bb b6060a56dd91f570badc882bab7e86d3f4a2d1ee +b38d097b036e37f5e33e2d9754ecf5b484a4f0d4 From 25206ec11c2bf974495b781f8259166bc9a5a52a Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Mon, 3 Aug 2026 12:58:37 +0000 Subject: [PATCH 26/27] build(codegen): updating SDK --- .../BusinessUnitChangeAssociateModeAction.java | 4 ++-- .../BusinessUnitChangeAssociateModeActionBuilder.java | 4 ++-- .../BusinessUnitChangeAssociateModeActionImpl.java | 2 +- .../api/models/cart/ItemShippingDetails.java | 10 ++-------- .../api/models/cart/ItemShippingDetailsBuilder.java | 10 ++-------- .../api/models/cart/ItemShippingDetailsImpl.java | 5 +---- .../commercetools/api/models/cart/MergeCartDraft.java | 10 ++-------- .../api/models/cart/MergeCartDraftBuilder.java | 10 ++-------- .../api/models/cart/MergeCartDraftImpl.java | 5 +---- .../api/models/customer/CustomerCreateEmailToken.java | 4 ++-- .../customer/CustomerCreateEmailTokenBuilder.java | 4 ++-- .../models/customer/CustomerCreateEmailTokenImpl.java | 2 +- .../customer/CustomerCreatePasswordResetToken.java | 4 ++-- .../CustomerCreatePasswordResetTokenBuilder.java | 4 ++-- .../customer/CustomerCreatePasswordResetTokenImpl.java | 2 +- .../api/models/customer/CustomerDraft.java | 4 ++-- .../api/models/customer/CustomerDraftBuilder.java | 4 ++-- .../api/models/customer/CustomerDraftImpl.java | 2 +- .../api/models/customer/CustomerSignin.java | 10 ++-------- .../api/models/customer/CustomerSigninBuilder.java | 10 ++-------- .../api/models/customer/CustomerSigninImpl.java | 5 +---- .../api/models/customer/CustomerToken.java | 4 ++-- .../api/models/customer/CustomerTokenBuilder.java | 4 ++-- .../api/models/customer/CustomerTokenImpl.java | 2 +- .../api/models/customer/MyCustomerSignin.java | 10 ++-------- .../api/models/customer/MyCustomerSigninBuilder.java | 10 ++-------- .../api/models/customer/MyCustomerSigninImpl.java | 5 +---- .../api/models/error/GraphQLPriceChangedError.java | 4 ++-- .../models/error/GraphQLPriceChangedErrorBuilder.java | 4 ++-- .../api/models/error/GraphQLPriceChangedErrorImpl.java | 2 +- .../api/models/error/PriceChangedError.java | 4 ++-- .../api/models/error/PriceChangedErrorBuilder.java | 4 ++-- .../api/models/error/PriceChangedErrorImpl.java | 2 +- .../models/extension/ExtensionAdditionalContext.java | 4 ++-- .../extension/ExtensionAdditionalContextBuilder.java | 4 ++-- .../extension/ExtensionAdditionalContextDraft.java | 4 ++-- .../ExtensionAdditionalContextDraftBuilder.java | 4 ++-- .../extension/ExtensionAdditionalContextDraftImpl.java | 2 +- .../extension/ExtensionAdditionalContextImpl.java | 2 +- .../api/models/me/MyOrderFromQuoteDraft.java | 4 ++-- .../api/models/me/MyOrderFromQuoteDraftBuilder.java | 4 ++-- .../api/models/me/MyOrderFromQuoteDraftImpl.java | 2 +- .../message/CustomerEmailTokenCreatedMessage.java | 4 ++-- .../CustomerEmailTokenCreatedMessageBuilder.java | 4 ++-- .../message/CustomerEmailTokenCreatedMessageImpl.java | 2 +- .../CustomerEmailTokenCreatedMessagePayload.java | 4 ++-- ...CustomerEmailTokenCreatedMessagePayloadBuilder.java | 4 ++-- .../CustomerEmailTokenCreatedMessagePayloadImpl.java | 2 +- .../message/CustomerPasswordTokenCreatedMessage.java | 4 ++-- .../CustomerPasswordTokenCreatedMessageBuilder.java | 4 ++-- .../CustomerPasswordTokenCreatedMessageImpl.java | 2 +- .../CustomerPasswordTokenCreatedMessagePayload.java | 4 ++-- ...tomerPasswordTokenCreatedMessagePayloadBuilder.java | 4 ++-- ...CustomerPasswordTokenCreatedMessagePayloadImpl.java | 2 +- .../models/message/ProductTailoringCreatedMessage.java | 4 ++-- .../message/ProductTailoringCreatedMessageBuilder.java | 4 ++-- .../message/ProductTailoringCreatedMessageImpl.java | 2 +- .../message/ProductTailoringCreatedMessagePayload.java | 4 ++-- .../ProductTailoringCreatedMessagePayloadBuilder.java | 4 ++-- .../ProductTailoringCreatedMessagePayloadImpl.java | 2 +- .../models/message/ProductVariantDeletedMessage.java | 4 ++-- .../message/ProductVariantDeletedMessageBuilder.java | 4 ++-- .../message/ProductVariantDeletedMessageImpl.java | 2 +- .../message/ProductVariantDeletedMessagePayload.java | 4 ++-- .../ProductVariantDeletedMessagePayloadBuilder.java | 4 ++-- .../ProductVariantDeletedMessagePayloadImpl.java | 2 +- .../api/models/order/OrderFromQuoteDraft.java | 4 ++-- .../api/models/order/OrderFromQuoteDraftBuilder.java | 4 ++-- .../api/models/order/OrderFromQuoteDraftImpl.java | 2 +- .../api/models/order/OrderTransitionStateAction.java | 4 ++-- .../order/OrderTransitionStateActionBuilder.java | 4 ++-- .../models/order/OrderTransitionStateActionImpl.java | 2 +- .../commercetools/api/models/order/TrackingData.java | 10 ++-------- .../api/models/order/TrackingDataBuilder.java | 10 ++-------- .../api/models/order/TrackingDataImpl.java | 5 +---- .../api/models/order_edit/OrderEditDraft.java | 4 ++-- .../api/models/order_edit/OrderEditDraftBuilder.java | 4 ++-- .../api/models/order_edit/OrderEditDraftImpl.java | 2 +- .../api/models/order_edit/OrderEditUpdate.java | 4 ++-- .../api/models/order_edit/OrderEditUpdateBuilder.java | 4 ++-- .../api/models/order_edit/OrderEditUpdateImpl.java | 2 +- .../order_edit/StagedOrderTransitionStateAction.java | 4 ++-- .../StagedOrderTransitionStateActionBuilder.java | 4 ++-- .../StagedOrderTransitionStateActionImpl.java | 2 +- .../models/payment/PaymentTransitionStateAction.java | 4 ++-- .../payment/PaymentTransitionStateActionBuilder.java | 4 ++-- .../payment/PaymentTransitionStateActionImpl.java | 2 +- .../api/models/payment_method/PaymentMethodDraft.java | 4 ++-- .../payment_method/PaymentMethodDraftBuilder.java | 4 ++-- .../models/payment_method/PaymentMethodDraftImpl.java | 2 +- .../api/models/product/ProductAddAssetAction.java | 4 ++-- .../models/product/ProductAddAssetActionBuilder.java | 4 ++-- .../api/models/product/ProductAddAssetActionImpl.java | 2 +- .../models/product/ProductAddExternalImageAction.java | 4 ++-- .../product/ProductAddExternalImageActionBuilder.java | 4 ++-- .../product/ProductAddExternalImageActionImpl.java | 2 +- .../api/models/product/ProductAddPriceAction.java | 4 ++-- .../models/product/ProductAddPriceActionBuilder.java | 4 ++-- .../api/models/product/ProductAddPriceActionImpl.java | 2 +- .../api/models/product/ProductAddToCategoryAction.java | 4 ++-- .../product/ProductAddToCategoryActionBuilder.java | 4 ++-- .../models/product/ProductAddToCategoryActionImpl.java | 2 +- .../api/models/product/ProductAddVariantAction.java | 4 ++-- .../models/product/ProductAddVariantActionBuilder.java | 4 ++-- .../models/product/ProductAddVariantActionImpl.java | 2 +- .../api/models/product/ProductCatalogData.java | 8 ++++---- .../api/models/product/ProductCatalogDataBuilder.java | 8 ++++---- .../api/models/product/ProductCatalogDataImpl.java | 4 ++-- .../models/product/ProductChangeAssetNameAction.java | 4 ++-- .../product/ProductChangeAssetNameActionBuilder.java | 4 ++-- .../product/ProductChangeAssetNameActionImpl.java | 2 +- .../models/product/ProductChangeAssetOrderAction.java | 4 ++-- .../product/ProductChangeAssetOrderActionBuilder.java | 4 ++-- .../product/ProductChangeAssetOrderActionImpl.java | 2 +- .../product/ProductChangeMasterVariantAction.java | 4 ++-- .../ProductChangeMasterVariantActionBuilder.java | 4 ++-- .../product/ProductChangeMasterVariantActionImpl.java | 2 +- .../api/models/product/ProductChangeNameAction.java | 4 ++-- .../models/product/ProductChangeNameActionBuilder.java | 4 ++-- .../models/product/ProductChangeNameActionImpl.java | 2 +- .../api/models/product/ProductChangePriceAction.java | 4 ++-- .../product/ProductChangePriceActionBuilder.java | 4 ++-- .../models/product/ProductChangePriceActionImpl.java | 2 +- .../api/models/product/ProductChangeSlugAction.java | 4 ++-- .../models/product/ProductChangeSlugActionBuilder.java | 4 ++-- .../models/product/ProductChangeSlugActionImpl.java | 2 +- .../commercetools/api/models/product/ProductDraft.java | 4 ++-- .../api/models/product/ProductDraftBuilder.java | 4 ++-- .../api/models/product/ProductDraftImpl.java | 2 +- .../product/ProductMoveImageToPositionAction.java | 4 ++-- .../ProductMoveImageToPositionActionBuilder.java | 4 ++-- .../product/ProductMoveImageToPositionActionImpl.java | 2 +- .../api/models/product/ProductProjection.java | 8 ++++---- .../api/models/product/ProductProjectionBuilder.java | 8 ++++---- .../api/models/product/ProductProjectionImpl.java | 4 ++-- .../api/models/product/ProductRemoveAssetAction.java | 4 ++-- .../product/ProductRemoveAssetActionBuilder.java | 4 ++-- .../models/product/ProductRemoveAssetActionImpl.java | 2 +- .../product/ProductRemoveFromCategoryAction.java | 4 ++-- .../ProductRemoveFromCategoryActionBuilder.java | 4 ++-- .../product/ProductRemoveFromCategoryActionImpl.java | 2 +- .../api/models/product/ProductRemoveImageAction.java | 4 ++-- .../product/ProductRemoveImageActionBuilder.java | 4 ++-- .../models/product/ProductRemoveImageActionImpl.java | 2 +- .../api/models/product/ProductRemovePriceAction.java | 4 ++-- .../product/ProductRemovePriceActionBuilder.java | 4 ++-- .../models/product/ProductRemovePriceActionImpl.java | 2 +- .../api/models/product/ProductRemoveVariantAction.java | 4 ++-- .../product/ProductRemoveVariantActionBuilder.java | 4 ++-- .../models/product/ProductRemoveVariantActionImpl.java | 2 +- .../product/ProductSetAssetCustomFieldAction.java | 4 ++-- .../ProductSetAssetCustomFieldActionBuilder.java | 4 ++-- .../product/ProductSetAssetCustomFieldActionImpl.java | 2 +- .../product/ProductSetAssetCustomTypeAction.java | 4 ++-- .../ProductSetAssetCustomTypeActionBuilder.java | 4 ++-- .../product/ProductSetAssetCustomTypeActionImpl.java | 2 +- .../product/ProductSetAssetDescriptionAction.java | 4 ++-- .../ProductSetAssetDescriptionActionBuilder.java | 4 ++-- .../product/ProductSetAssetDescriptionActionImpl.java | 2 +- .../api/models/product/ProductSetAssetKeyAction.java | 4 ++-- .../product/ProductSetAssetKeyActionBuilder.java | 4 ++-- .../models/product/ProductSetAssetKeyActionImpl.java | 2 +- .../models/product/ProductSetAssetSourcesAction.java | 4 ++-- .../product/ProductSetAssetSourcesActionBuilder.java | 4 ++-- .../product/ProductSetAssetSourcesActionImpl.java | 2 +- .../api/models/product/ProductSetAssetTagsAction.java | 4 ++-- .../product/ProductSetAssetTagsActionBuilder.java | 4 ++-- .../models/product/ProductSetAssetTagsActionImpl.java | 2 +- .../api/models/product/ProductSetAttributeAction.java | 4 ++-- .../product/ProductSetAttributeActionBuilder.java | 4 ++-- .../models/product/ProductSetAttributeActionImpl.java | 2 +- .../ProductSetAttributeInAllVariantsAction.java | 4 ++-- .../ProductSetAttributeInAllVariantsActionBuilder.java | 4 ++-- .../ProductSetAttributeInAllVariantsActionImpl.java | 2 +- .../product/ProductSetCategoryOrderHintAction.java | 4 ++-- .../ProductSetCategoryOrderHintActionBuilder.java | 4 ++-- .../product/ProductSetCategoryOrderHintActionImpl.java | 2 +- .../models/product/ProductSetDefaultVariantAction.java | 4 ++-- .../product/ProductSetDefaultVariantActionBuilder.java | 4 ++-- .../product/ProductSetDefaultVariantActionImpl.java | 2 +- .../models/product/ProductSetDescriptionAction.java | 4 ++-- .../product/ProductSetDescriptionActionBuilder.java | 4 ++-- .../product/ProductSetDescriptionActionImpl.java | 2 +- .../product/ProductSetDiscountedPriceAction.java | 4 ++-- .../ProductSetDiscountedPriceActionBuilder.java | 4 ++-- .../product/ProductSetDiscountedPriceActionImpl.java | 2 +- .../api/models/product/ProductSetImageLabelAction.java | 4 ++-- .../product/ProductSetImageLabelActionBuilder.java | 4 ++-- .../models/product/ProductSetImageLabelActionImpl.java | 2 +- .../product/ProductSetMetaDescriptionAction.java | 4 ++-- .../ProductSetMetaDescriptionActionBuilder.java | 4 ++-- .../product/ProductSetMetaDescriptionActionImpl.java | 2 +- .../models/product/ProductSetMetaKeywordsAction.java | 4 ++-- .../product/ProductSetMetaKeywordsActionBuilder.java | 4 ++-- .../product/ProductSetMetaKeywordsActionImpl.java | 2 +- .../api/models/product/ProductSetMetaTitleAction.java | 4 ++-- .../product/ProductSetMetaTitleActionBuilder.java | 4 ++-- .../models/product/ProductSetMetaTitleActionImpl.java | 2 +- .../api/models/product/ProductSetPriceKeyAction.java | 4 ++-- .../product/ProductSetPriceKeyActionBuilder.java | 4 ++-- .../models/product/ProductSetPriceKeyActionImpl.java | 2 +- .../api/models/product/ProductSetPricesAction.java | 4 ++-- .../models/product/ProductSetPricesActionBuilder.java | 4 ++-- .../api/models/product/ProductSetPricesActionImpl.java | 2 +- .../product/ProductSetProductAttributeAction.java | 4 ++-- .../ProductSetProductAttributeActionBuilder.java | 4 ++-- .../product/ProductSetProductAttributeActionImpl.java | 2 +- .../ProductSetProductPriceCustomFieldAction.java | 4 ++-- ...ProductSetProductPriceCustomFieldActionBuilder.java | 4 ++-- .../ProductSetProductPriceCustomFieldActionImpl.java | 2 +- .../ProductSetProductPriceCustomTypeAction.java | 4 ++-- .../ProductSetProductPriceCustomTypeActionBuilder.java | 4 ++-- .../ProductSetProductPriceCustomTypeActionImpl.java | 2 +- .../product/ProductSetProductVariantKeyAction.java | 4 ++-- .../ProductSetProductVariantKeyActionBuilder.java | 4 ++-- .../product/ProductSetProductVariantKeyActionImpl.java | 2 +- .../models/product/ProductSetSearchKeywordsAction.java | 4 ++-- .../product/ProductSetSearchKeywordsActionBuilder.java | 4 ++-- .../product/ProductSetSearchKeywordsActionImpl.java | 2 +- .../api/models/product/ProductSetSkuAction.java | 4 ++-- .../api/models/product/ProductSetSkuActionBuilder.java | 4 ++-- .../api/models/product/ProductSetSkuActionImpl.java | 2 +- .../models/product/ProductTransitionStateAction.java | 4 ++-- .../product/ProductTransitionStateActionBuilder.java | 4 ++-- .../product/ProductTransitionStateActionImpl.java | 2 +- .../api/models/product/ProductVariant.java | 4 ++-- .../api/models/product/ProductVariantAvailability.java | 4 ++-- .../product/ProductVariantAvailabilityBuilder.java | 4 ++-- .../models/product/ProductVariantAvailabilityImpl.java | 2 +- .../api/models/product/ProductVariantBuilder.java | 4 ++-- .../api/models/product/ProductVariantImpl.java | 2 +- .../api/models/product_discount/ProductDiscount.java | 4 ++-- .../product_discount/ProductDiscountBuilder.java | 4 ++-- .../models/product_discount/ProductDiscountDraft.java | 4 ++-- .../product_discount/ProductDiscountDraftBuilder.java | 4 ++-- .../product_discount/ProductDiscountDraftImpl.java | 2 +- .../models/product_discount/ProductDiscountImpl.java | 2 +- .../product_search/ProductSearchMatchingVariants.java | 4 ++-- .../ProductSearchMatchingVariantsBuilder.java | 4 ++-- .../ProductSearchMatchingVariantsImpl.java | 2 +- .../product_search/ProductSearchProjectionParams.java | 4 ++-- .../ProductSearchProjectionParamsBuilder.java | 4 ++-- .../ProductSearchProjectionParamsImpl.java | 2 +- .../api/models/product_tailoring/ProductTailoring.java | 8 ++++---- .../ProductTailoringAddAssetAction.java | 4 ++-- .../ProductTailoringAddAssetActionBuilder.java | 4 ++-- .../ProductTailoringAddAssetActionImpl.java | 2 +- .../ProductTailoringAddExternalImageAction.java | 4 ++-- .../ProductTailoringAddExternalImageActionBuilder.java | 4 ++-- .../ProductTailoringAddExternalImageActionImpl.java | 2 +- .../ProductTailoringAddVariantAction.java | 4 ++-- .../ProductTailoringAddVariantActionBuilder.java | 4 ++-- .../ProductTailoringAddVariantActionImpl.java | 2 +- .../product_tailoring/ProductTailoringBuilder.java | 8 ++++---- .../ProductTailoringChangeAssetNameAction.java | 4 ++-- .../ProductTailoringChangeAssetNameActionBuilder.java | 4 ++-- .../ProductTailoringChangeAssetNameActionImpl.java | 2 +- .../ProductTailoringChangeAssetOrderAction.java | 4 ++-- .../ProductTailoringChangeAssetOrderActionBuilder.java | 4 ++-- .../ProductTailoringChangeAssetOrderActionImpl.java | 2 +- .../product_tailoring/ProductTailoringDraft.java | 4 ++-- .../ProductTailoringDraftBuilder.java | 4 ++-- .../product_tailoring/ProductTailoringDraftImpl.java | 2 +- .../models/product_tailoring/ProductTailoringImpl.java | 4 ++-- .../ProductTailoringInStoreDraft.java | 4 ++-- .../ProductTailoringInStoreDraftBuilder.java | 4 ++-- .../ProductTailoringInStoreDraftImpl.java | 2 +- .../ProductTailoringMoveImageToPositionAction.java | 4 ++-- ...oductTailoringMoveImageToPositionActionBuilder.java | 4 ++-- .../ProductTailoringMoveImageToPositionActionImpl.java | 2 +- .../ProductTailoringRemoveAssetAction.java | 4 ++-- .../ProductTailoringRemoveAssetActionBuilder.java | 4 ++-- .../ProductTailoringRemoveAssetActionImpl.java | 2 +- .../ProductTailoringRemoveImageAction.java | 4 ++-- .../ProductTailoringRemoveImageActionBuilder.java | 4 ++-- .../ProductTailoringRemoveImageActionImpl.java | 2 +- .../ProductTailoringRemoveVariantAction.java | 4 ++-- .../ProductTailoringRemoveVariantActionBuilder.java | 4 ++-- .../ProductTailoringRemoveVariantActionImpl.java | 2 +- .../ProductTailoringSetAssetCustomFieldAction.java | 4 ++-- ...oductTailoringSetAssetCustomFieldActionBuilder.java | 4 ++-- .../ProductTailoringSetAssetCustomFieldActionImpl.java | 2 +- .../ProductTailoringSetAssetCustomTypeAction.java | 4 ++-- ...roductTailoringSetAssetCustomTypeActionBuilder.java | 4 ++-- .../ProductTailoringSetAssetCustomTypeActionImpl.java | 2 +- .../ProductTailoringSetAssetDescriptionAction.java | 4 ++-- ...oductTailoringSetAssetDescriptionActionBuilder.java | 4 ++-- .../ProductTailoringSetAssetDescriptionActionImpl.java | 2 +- .../ProductTailoringSetAssetKeyAction.java | 4 ++-- .../ProductTailoringSetAssetKeyActionBuilder.java | 4 ++-- .../ProductTailoringSetAssetKeyActionImpl.java | 2 +- .../ProductTailoringSetAssetSourcesAction.java | 4 ++-- .../ProductTailoringSetAssetSourcesActionBuilder.java | 4 ++-- .../ProductTailoringSetAssetSourcesActionImpl.java | 2 +- .../ProductTailoringSetAssetTagsAction.java | 4 ++-- .../ProductTailoringSetAssetTagsActionBuilder.java | 4 ++-- .../ProductTailoringSetAssetTagsActionImpl.java | 2 +- .../ProductTailoringSetAttributeAction.java | 4 ++-- .../ProductTailoringSetAttributeActionBuilder.java | 4 ++-- .../ProductTailoringSetAttributeActionImpl.java | 2 +- ...roductTailoringSetAttributeInAllVariantsAction.java | 4 ++-- ...ailoringSetAttributeInAllVariantsActionBuilder.java | 4 ++-- ...ctTailoringSetAttributeInAllVariantsActionImpl.java | 2 +- .../ProductTailoringSetDescriptionAction.java | 4 ++-- .../ProductTailoringSetDescriptionActionBuilder.java | 4 ++-- .../ProductTailoringSetDescriptionActionImpl.java | 2 +- .../ProductTailoringSetExternalImagesAction.java | 4 ++-- ...ProductTailoringSetExternalImagesActionBuilder.java | 4 ++-- .../ProductTailoringSetExternalImagesActionImpl.java | 2 +- .../ProductTailoringSetImageLabelAction.java | 4 ++-- .../ProductTailoringSetImageLabelActionBuilder.java | 4 ++-- .../ProductTailoringSetImageLabelActionImpl.java | 2 +- .../ProductTailoringSetMetaAttributesAction.java | 4 ++-- ...ProductTailoringSetMetaAttributesActionBuilder.java | 4 ++-- .../ProductTailoringSetMetaAttributesActionImpl.java | 2 +- .../ProductTailoringSetMetaDescriptionAction.java | 4 ++-- ...roductTailoringSetMetaDescriptionActionBuilder.java | 4 ++-- .../ProductTailoringSetMetaDescriptionActionImpl.java | 2 +- .../ProductTailoringSetMetaKeywordsAction.java | 4 ++-- .../ProductTailoringSetMetaKeywordsActionBuilder.java | 4 ++-- .../ProductTailoringSetMetaKeywordsActionImpl.java | 2 +- .../ProductTailoringSetMetaTitleAction.java | 4 ++-- .../ProductTailoringSetMetaTitleActionBuilder.java | 4 ++-- .../ProductTailoringSetMetaTitleActionImpl.java | 2 +- .../ProductTailoringSetNameAction.java | 4 ++-- .../ProductTailoringSetNameActionBuilder.java | 4 ++-- .../ProductTailoringSetNameActionImpl.java | 2 +- .../ProductTailoringSetProductAttributeAction.java | 4 ++-- ...oductTailoringSetProductAttributeActionBuilder.java | 4 ++-- .../ProductTailoringSetProductAttributeActionImpl.java | 2 +- .../ProductTailoringSetSlugAction.java | 4 ++-- .../ProductTailoringSetSlugActionBuilder.java | 4 ++-- .../ProductTailoringSetSlugActionImpl.java | 2 +- .../api/models/product_type/AttributeDefinition.java | 8 ++++---- .../product_type/AttributeDefinitionBuilder.java | 8 ++++---- .../models/product_type/AttributeDefinitionDraft.java | 4 ++-- .../product_type/AttributeDefinitionDraftBuilder.java | 4 ++-- .../product_type/AttributeDefinitionDraftImpl.java | 2 +- .../models/product_type/AttributeDefinitionImpl.java | 4 ++-- .../api/models/project/InventoryConfiguration.java | 4 ++-- .../models/project/InventoryConfigurationBuilder.java | 4 ++-- .../api/models/project/InventoryConfigurationImpl.java | 2 +- .../com/commercetools/api/models/quote/QuoteDraft.java | 4 ++-- .../api/models/quote/QuoteDraftBuilder.java | 4 ++-- .../commercetools/api/models/quote/QuoteDraftImpl.java | 2 +- .../RecurringOrderTransitionStateAction.java | 4 ++-- .../RecurringOrderTransitionStateActionBuilder.java | 4 ++-- .../RecurringOrderTransitionStateActionImpl.java | 2 +- .../api/models/shipping_method/ShippingMethod.java | 4 ++-- .../models/shipping_method/ShippingMethodBuilder.java | 4 ++-- .../models/shipping_method/ShippingMethodDraft.java | 8 ++++---- .../shipping_method/ShippingMethodDraftBuilder.java | 8 ++++---- .../shipping_method/ShippingMethodDraftImpl.java | 4 ++-- .../api/models/shipping_method/ShippingMethodImpl.java | 2 +- .../api/models/shipping_method/ShippingRate.java | 4 ++-- .../models/shipping_method/ShippingRateBuilder.java | 4 ++-- .../api/models/shipping_method/ShippingRateImpl.java | 2 +- .../api/models/staged_quote/StagedQuoteDraft.java | 4 ++-- .../models/staged_quote/StagedQuoteDraftBuilder.java | 4 ++-- .../api/models/staged_quote/StagedQuoteDraftImpl.java | 2 +- .../api/models/standalone_price/StandalonePrice.java | 4 ++-- .../standalone_price/StandalonePriceBuilder.java | 4 ++-- .../StandalonePriceChangeValueAction.java | 4 ++-- .../StandalonePriceChangeValueActionBuilder.java | 4 ++-- .../StandalonePriceChangeValueActionImpl.java | 2 +- .../models/standalone_price/StandalonePriceImpl.java | 2 +- .../api/models/state/StateChangeInitialAction.java | 4 ++-- .../models/state/StateChangeInitialActionBuilder.java | 4 ++-- .../api/models/state/StateChangeInitialActionImpl.java | 2 +- .../api/models/store/ProductSelectionSetting.java | 4 ++-- .../models/store/ProductSelectionSettingBuilder.java | 4 ++-- .../api/models/store/ProductSelectionSettingDraft.java | 4 ++-- .../store/ProductSelectionSettingDraftBuilder.java | 4 ++-- .../models/store/ProductSelectionSettingDraftImpl.java | 2 +- .../api/models/store/ProductSelectionSettingImpl.java | 2 +- .../models/store/StoreAddProductSelectionAction.java | 4 ++-- .../store/StoreAddProductSelectionActionBuilder.java | 4 ++-- .../store/StoreAddProductSelectionActionImpl.java | 2 +- .../store/StoreChangeProductSelectionAction.java | 4 ++-- .../StoreChangeProductSelectionActionBuilder.java | 4 ++-- .../store/StoreChangeProductSelectionActionImpl.java | 2 +- .../subscription/ResourceDeletedDeliveryPayload.java | 4 ++-- .../ResourceDeletedDeliveryPayloadBuilder.java | 4 ++-- .../ResourceDeletedDeliveryPayloadImpl.java | 2 +- .../commercetools/api/models/tax_category/TaxRate.java | 4 ++-- .../api/models/tax_category/TaxRateBuilder.java | 4 ++-- .../api/models/tax_category/TaxRateDraft.java | 4 ++-- .../api/models/tax_category/TaxRateDraftBuilder.java | 4 ++-- .../api/models/tax_category/TaxRateDraftImpl.java | 2 +- .../api/models/tax_category/TaxRateImpl.java | 2 +- .../com/commercetools/api/models/variant/Variant.java | 4 ++-- .../api/models/variant/VariantAddAssetAction.java | 4 ++-- .../models/variant/VariantAddAssetActionBuilder.java | 4 ++-- .../api/models/variant/VariantAddAssetActionImpl.java | 2 +- .../models/variant/VariantAddExternalImageAction.java | 4 ++-- .../variant/VariantAddExternalImageActionBuilder.java | 4 ++-- .../variant/VariantAddExternalImageActionImpl.java | 2 +- .../api/models/variant/VariantBuilder.java | 4 ++-- .../models/variant/VariantChangeAssetNameAction.java | 4 ++-- .../variant/VariantChangeAssetNameActionBuilder.java | 4 ++-- .../variant/VariantChangeAssetNameActionImpl.java | 2 +- .../models/variant/VariantChangeAssetOrderAction.java | 4 ++-- .../variant/VariantChangeAssetOrderActionBuilder.java | 4 ++-- .../variant/VariantChangeAssetOrderActionImpl.java | 2 +- .../commercetools/api/models/variant/VariantImpl.java | 2 +- .../api/models/variant/VariantProjection.java | 4 ++-- .../api/models/variant/VariantProjectionBuilder.java | 4 ++-- .../api/models/variant/VariantProjectionImpl.java | 2 +- .../api/models/variant/VariantRemoveAssetAction.java | 4 ++-- .../variant/VariantRemoveAssetActionBuilder.java | 4 ++-- .../models/variant/VariantRemoveAssetActionImpl.java | 2 +- .../api/models/variant/VariantRemoveImageAction.java | 4 ++-- .../variant/VariantRemoveImageActionBuilder.java | 4 ++-- .../models/variant/VariantRemoveImageActionImpl.java | 2 +- .../variant/VariantSetAssetCustomFieldAction.java | 4 ++-- .../VariantSetAssetCustomFieldActionBuilder.java | 4 ++-- .../variant/VariantSetAssetCustomFieldActionImpl.java | 2 +- .../variant/VariantSetAssetCustomTypeAction.java | 4 ++-- .../VariantSetAssetCustomTypeActionBuilder.java | 4 ++-- .../variant/VariantSetAssetCustomTypeActionImpl.java | 2 +- .../variant/VariantSetAssetDescriptionAction.java | 4 ++-- .../VariantSetAssetDescriptionActionBuilder.java | 4 ++-- .../variant/VariantSetAssetDescriptionActionImpl.java | 2 +- .../api/models/variant/VariantSetAssetKeyAction.java | 4 ++-- .../variant/VariantSetAssetKeyActionBuilder.java | 4 ++-- .../models/variant/VariantSetAssetKeyActionImpl.java | 2 +- .../models/variant/VariantSetAssetSourcesAction.java | 4 ++-- .../variant/VariantSetAssetSourcesActionBuilder.java | 4 ++-- .../variant/VariantSetAssetSourcesActionImpl.java | 2 +- .../api/models/variant/VariantSetAssetTagsAction.java | 4 ++-- .../variant/VariantSetAssetTagsActionBuilder.java | 4 ++-- .../models/variant/VariantSetAssetTagsActionImpl.java | 2 +- .../api/models/variant/VariantSetAssetsAction.java | 4 ++-- .../models/variant/VariantSetAssetsActionBuilder.java | 4 ++-- .../api/models/variant/VariantSetAssetsActionImpl.java | 2 +- .../api/models/variant/VariantSetAttributeAction.java | 4 ++-- .../variant/VariantSetAttributeActionBuilder.java | 4 ++-- .../models/variant/VariantSetAttributeActionImpl.java | 2 +- .../api/models/variant/VariantSetAttributesAction.java | 4 ++-- .../variant/VariantSetAttributesActionBuilder.java | 4 ++-- .../models/variant/VariantSetAttributesActionImpl.java | 2 +- .../api/models/variant/VariantSetImagesAction.java | 4 ++-- .../models/variant/VariantSetImagesActionBuilder.java | 4 ++-- .../api/models/variant/VariantSetImagesActionImpl.java | 2 +- .../api/models/variant/VariantSetSkuAction.java | 4 ++-- .../api/models/variant/VariantSetSkuActionBuilder.java | 4 ++-- .../api/models/variant/VariantSetSkuActionImpl.java | 2 +- .../history/models/change_history/ModifiedBy.java | 4 ++-- .../models/change_history/ModifiedByBuilder.java | 4 ++-- .../history/models/change_history/ModifiedByImpl.java | 2 +- .../history/models/change_history/Record.java | 4 ++-- .../history/models/change_history/RecordBuilder.java | 4 ++-- .../history/models/change_history/RecordImpl.java | 2 +- .../history/models/common/AttributeDefinition.java | 8 ++++---- .../models/common/AttributeDefinitionBuilder.java | 8 ++++---- .../history/models/common/AttributeDefinitionImpl.java | 4 ++-- .../history/models/common/ItemShippingDetails.java | 10 ++-------- .../models/common/ItemShippingDetailsBuilder.java | 10 ++-------- .../history/models/common/ItemShippingDetailsImpl.java | 5 +---- .../history/models/common/ProductSelectionSetting.java | 4 ++-- .../models/common/ProductSelectionSettingBuilder.java | 4 ++-- .../models/common/ProductSelectionSettingImpl.java | 2 +- .../history/models/common/ProductVariant.java | 4 ++-- .../history/models/common/ProductVariantBuilder.java | 4 ++-- .../history/models/common/ProductVariantImpl.java | 2 +- .../history/models/common/ShippingRate.java | 4 ++-- .../history/models/common/ShippingRateBuilder.java | 4 ++-- .../history/models/common/ShippingRateImpl.java | 2 +- .../commercetools/history/models/common/TaxRate.java | 4 ++-- .../history/models/common/TaxRateBuilder.java | 4 ++-- .../history/models/common/TaxRateImpl.java | 2 +- .../history/models/common/TrackingData.java | 10 ++-------- .../history/models/common/TrackingDataBuilder.java | 10 ++-------- .../history/models/common/TrackingDataImpl.java | 5 +---- .../importapi/models/orders/TrackingData.java | 10 ++-------- .../importapi/models/orders/TrackingDataBuilder.java | 10 ++-------- .../importapi/models/orders/TrackingDataImpl.java | 5 +---- .../product_tailoring/ProductTailoringImport.java | 4 ++-- .../ProductTailoringImportBuilder.java | 4 ++-- .../product_tailoring/ProductTailoringImportImpl.java | 2 +- .../models/producttypes/AttributeDefinition.java | 8 ++++---- .../producttypes/AttributeDefinitionBuilder.java | 8 ++++---- .../models/producttypes/AttributeDefinitionImpl.java | 4 ++-- references.txt | 1 + 484 files changed, 841 insertions(+), 960 deletions(-) diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitChangeAssociateModeAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitChangeAssociateModeAction.java index 886b95c7ed..1a9a21d543 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitChangeAssociateModeAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitChangeAssociateModeAction.java @@ -47,7 +47,7 @@ public interface BusinessUnitChangeAssociateModeAction extends BusinessUnitUpdat public BusinessUnitAssociateMode getAssociateMode(); /** - *

    If set to true during a change to associateMode="Explicit", all inherited Associates will be converted to explicit Associates.

    + *

    Whether all inherited Associates are converted to explicit Associates during a change to associateMode="Explicit".

    * @return makeInheritedAssociatesExplicit */ @NotNull @@ -62,7 +62,7 @@ public interface BusinessUnitChangeAssociateModeAction extends BusinessUnitUpdat public void setAssociateMode(final BusinessUnitAssociateMode associateMode); /** - *

    If set to true during a change to associateMode="Explicit", all inherited Associates will be converted to explicit Associates.

    + *

    Whether all inherited Associates are converted to explicit Associates during a change to associateMode="Explicit".

    * @param makeInheritedAssociatesExplicit value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitChangeAssociateModeActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitChangeAssociateModeActionBuilder.java index 119dfa485f..74b913f567 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitChangeAssociateModeActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitChangeAssociateModeActionBuilder.java @@ -39,7 +39,7 @@ public BusinessUnitChangeAssociateModeActionBuilder associateMode( } /** - *

    If set to true during a change to associateMode="Explicit", all inherited Associates will be converted to explicit Associates.

    + *

    Whether all inherited Associates are converted to explicit Associates during a change to associateMode="Explicit".

    * @param makeInheritedAssociatesExplicit value to be set * @return Builder */ @@ -60,7 +60,7 @@ public com.commercetools.api.models.business_unit.BusinessUnitAssociateMode getA } /** - *

    If set to true during a change to associateMode="Explicit", all inherited Associates will be converted to explicit Associates.

    + *

    Whether all inherited Associates are converted to explicit Associates during a change to associateMode="Explicit".

    * @return makeInheritedAssociatesExplicit */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitChangeAssociateModeActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitChangeAssociateModeActionImpl.java index 8873b753a1..4b393c0dc0 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitChangeAssociateModeActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitChangeAssociateModeActionImpl.java @@ -65,7 +65,7 @@ public com.commercetools.api.models.business_unit.BusinessUnitAssociateMode getA } /** - *

    If set to true during a change to associateMode="Explicit", all inherited Associates will be converted to explicit Associates.

    + *

    Whether all inherited Associates are converted to explicit Associates during a change to associateMode="Explicit".

    */ public Boolean getMakeInheritedAssociatesExplicit() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/ItemShippingDetails.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/ItemShippingDetails.java index f79abddbbb..e3646db103 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/ItemShippingDetails.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/ItemShippingDetails.java @@ -44,10 +44,7 @@ public interface ItemShippingDetails { public List getTargets(); /** - *
      - *
    • true if the quantity of Line Items or Custom Line Items is equal to the sum of sub-quantities defined in targets.
    • - *
    • false if the quantity of Line Items or Custom Line Items is not equal to the sum of sub-quantities defined in targets. Ordering a Cart when the value is false returns an InvalidItemShippingDetails error.
    • - *
    + *

    Whether the quantity of Line Items or Custom Line Items is equal to the sum of sub-quantities defined in targets. Ordering a Cart when the value is false returns an InvalidItemShippingDetails error.

    * @return valid */ @NotNull @@ -70,10 +67,7 @@ public interface ItemShippingDetails { public void setTargets(final List targets); /** - *
      - *
    • true if the quantity of Line Items or Custom Line Items is equal to the sum of sub-quantities defined in targets.
    • - *
    • false if the quantity of Line Items or Custom Line Items is not equal to the sum of sub-quantities defined in targets. Ordering a Cart when the value is false returns an InvalidItemShippingDetails error.
    • - *
    + *

    Whether the quantity of Line Items or Custom Line Items is equal to the sum of sub-quantities defined in targets. Ordering a Cart when the value is false returns an InvalidItemShippingDetails error.

    * @param valid value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/ItemShippingDetailsBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/ItemShippingDetailsBuilder.java index 102ae4f922..ef7cd06247 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/ItemShippingDetailsBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/ItemShippingDetailsBuilder.java @@ -116,10 +116,7 @@ public ItemShippingDetailsBuilder setTargets( } /** - *
      - *
    • true if the quantity of Line Items or Custom Line Items is equal to the sum of sub-quantities defined in targets.
    • - *
    • false if the quantity of Line Items or Custom Line Items is not equal to the sum of sub-quantities defined in targets. Ordering a Cart when the value is false returns an InvalidItemShippingDetails error.
    • - *
    + *

    Whether the quantity of Line Items or Custom Line Items is equal to the sum of sub-quantities defined in targets. Ordering a Cart when the value is false returns an InvalidItemShippingDetails error.

    * @param valid value to be set * @return Builder */ @@ -139,10 +136,7 @@ public java.util.List getT } /** - *
      - *
    • true if the quantity of Line Items or Custom Line Items is equal to the sum of sub-quantities defined in targets.
    • - *
    • false if the quantity of Line Items or Custom Line Items is not equal to the sum of sub-quantities defined in targets. Ordering a Cart when the value is false returns an InvalidItemShippingDetails error.
    • - *
    + *

    Whether the quantity of Line Items or Custom Line Items is equal to the sum of sub-quantities defined in targets. Ordering a Cart when the value is false returns an InvalidItemShippingDetails error.

    * @return valid */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/ItemShippingDetailsImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/ItemShippingDetailsImpl.java index 6ed177dc63..543c4b36fd 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/ItemShippingDetailsImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/ItemShippingDetailsImpl.java @@ -53,10 +53,7 @@ public java.util.List getT } /** - *
      - *
    • true if the quantity of Line Items or Custom Line Items is equal to the sum of sub-quantities defined in targets.
    • - *
    • false if the quantity of Line Items or Custom Line Items is not equal to the sum of sub-quantities defined in targets. Ordering a Cart when the value is false returns an InvalidItemShippingDetails error.
    • - *
    + *

    Whether the quantity of Line Items or Custom Line Items is equal to the sum of sub-quantities defined in targets. Ordering a Cart when the value is false returns an InvalidItemShippingDetails error.

    */ public Boolean getValid() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/MergeCartDraft.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/MergeCartDraft.java index 6aa1cfd36c..a574a32183 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/MergeCartDraft.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/MergeCartDraft.java @@ -47,10 +47,7 @@ public interface MergeCartDraft extends io.vrap.rmf.base.client.Draft - *
  • If true, the LineItem Product data (name, variant, and productType) of the returned Cart will be updated.
  • - *
  • If false, only the prices, discounts, and tax rates will be updated.
  • - * + *

    Whether the LineItem Product data (name, variant, and productType) of the returned Cart will be updated. If false, only the prices, discounts, and tax rates will be updated.

    * @return updateProductData */ @@ -80,10 +77,7 @@ public interface MergeCartDraft extends io.vrap.rmf.base.client.Draft - *
  • If true, the LineItem Product data (name, variant, and productType) of the returned Cart will be updated.
  • - *
  • If false, only the prices, discounts, and tax rates will be updated.
  • - * + *

    Whether the LineItem Product data (name, variant, and productType) of the returned Cart will be updated. If false, only the prices, discounts, and tax rates will be updated.

    * @param updateProductData value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/MergeCartDraftBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/MergeCartDraftBuilder.java index 5dac2d6ecf..c2fedc0518 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/MergeCartDraftBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/MergeCartDraftBuilder.java @@ -84,10 +84,7 @@ public MergeCartDraftBuilder mergeMode(@Nullable final com.commercetools.api.mod } /** - *
      - *
    • If true, the LineItem Product data (name, variant, and productType) of the returned Cart will be updated.
    • - *
    • If false, only the prices, discounts, and tax rates will be updated.
    • - *
    + *

    Whether the LineItem Product data (name, variant, and productType) of the returned Cart will be updated. If false, only the prices, discounts, and tax rates will be updated.

    * @param updateProductData value to be set * @return Builder */ @@ -129,10 +126,7 @@ public com.commercetools.api.models.cart.CartMergeMode getMergeMode() { } /** - *
      - *
    • If true, the LineItem Product data (name, variant, and productType) of the returned Cart will be updated.
    • - *
    • If false, only the prices, discounts, and tax rates will be updated.
    • - *
    + *

    Whether the LineItem Product data (name, variant, and productType) of the returned Cart will be updated. If false, only the prices, discounts, and tax rates will be updated.

    * @return updateProductData */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/MergeCartDraftImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/MergeCartDraftImpl.java index ed905eb00b..0c9bbbbb9a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/MergeCartDraftImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/MergeCartDraftImpl.java @@ -69,10 +69,7 @@ public com.commercetools.api.models.cart.CartMergeMode getMergeMode() { } /** - *
      - *
    • If true, the LineItem Product data (name, variant, and productType) of the returned Cart will be updated.
    • - *
    • If false, only the prices, discounts, and tax rates will be updated.
    • - *
    + *

    Whether the LineItem Product data (name, variant, and productType) of the returned Cart will be updated. If false, only the prices, discounts, and tax rates will be updated.

    */ public Boolean getUpdateProductData() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerCreateEmailToken.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerCreateEmailToken.java index a4195b098f..8a9a3c7f08 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerCreateEmailToken.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerCreateEmailToken.java @@ -57,7 +57,7 @@ public interface CustomerCreateEmailToken { public Long getTtlMinutes(); /** - *

    If set to true, all email tokens issued previously for the Customer will be invalidated.

    + *

    Whether all email tokens issued previously for the Customer will be invalidated.

    * @return invalidateOlderTokens */ @@ -86,7 +86,7 @@ public interface CustomerCreateEmailToken { public void setTtlMinutes(final Long ttlMinutes); /** - *

    If set to true, all email tokens issued previously for the Customer will be invalidated.

    + *

    Whether all email tokens issued previously for the Customer will be invalidated.

    * @param invalidateOlderTokens value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerCreateEmailTokenBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerCreateEmailTokenBuilder.java index d4af7642a5..c35680b8ce 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerCreateEmailTokenBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerCreateEmailTokenBuilder.java @@ -68,7 +68,7 @@ public CustomerCreateEmailTokenBuilder ttlMinutes(final Long ttlMinutes) { } /** - *

    If set to true, all email tokens issued previously for the Customer will be invalidated.

    + *

    Whether all email tokens issued previously for the Customer will be invalidated.

    * @param invalidateOlderTokens value to be set * @return Builder */ @@ -107,7 +107,7 @@ public Long getTtlMinutes() { } /** - *

    If set to true, all email tokens issued previously for the Customer will be invalidated.

    + *

    Whether all email tokens issued previously for the Customer will be invalidated.

    * @return invalidateOlderTokens */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerCreateEmailTokenImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerCreateEmailTokenImpl.java index 3d01a0d165..e0e5ab8324 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerCreateEmailTokenImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerCreateEmailTokenImpl.java @@ -75,7 +75,7 @@ public Long getTtlMinutes() { } /** - *

    If set to true, all email tokens issued previously for the Customer will be invalidated.

    + *

    Whether all email tokens issued previously for the Customer will be invalidated.

    */ public Boolean getInvalidateOlderTokens() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerCreatePasswordResetToken.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerCreatePasswordResetToken.java index ba82918384..09156649ef 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerCreatePasswordResetToken.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerCreatePasswordResetToken.java @@ -48,7 +48,7 @@ public interface CustomerCreatePasswordResetToken { public Long getTtlMinutes(); /** - *

    If set to true, all password tokens issued previously for the Customer will be invalidated.

    + *

    Whether all password tokens issued previously for the Customer will be invalidated.

    * @return invalidateOlderTokens */ @@ -70,7 +70,7 @@ public interface CustomerCreatePasswordResetToken { public void setTtlMinutes(final Long ttlMinutes); /** - *

    If set to true, all password tokens issued previously for the Customer will be invalidated.

    + *

    Whether all password tokens issued previously for the Customer will be invalidated.

    * @param invalidateOlderTokens value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerCreatePasswordResetTokenBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerCreatePasswordResetTokenBuilder.java index 6246de2f24..337bc94d86 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerCreatePasswordResetTokenBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerCreatePasswordResetTokenBuilder.java @@ -54,7 +54,7 @@ public CustomerCreatePasswordResetTokenBuilder ttlMinutes(@Nullable final Long t } /** - *

    If set to true, all password tokens issued previously for the Customer will be invalidated.

    + *

    Whether all password tokens issued previously for the Customer will be invalidated.

    * @param invalidateOlderTokens value to be set * @return Builder */ @@ -85,7 +85,7 @@ public Long getTtlMinutes() { } /** - *

    If set to true, all password tokens issued previously for the Customer will be invalidated.

    + *

    Whether all password tokens issued previously for the Customer will be invalidated.

    * @return invalidateOlderTokens */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerCreatePasswordResetTokenImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerCreatePasswordResetTokenImpl.java index a666629331..771262da25 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerCreatePasswordResetTokenImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerCreatePasswordResetTokenImpl.java @@ -64,7 +64,7 @@ public Long getTtlMinutes() { } /** - *

    If set to true, all password tokens issued previously for the Customer will be invalidated.

    + *

    Whether all password tokens issued previously for the Customer will be invalidated.

    */ public Boolean getInvalidateOlderTokens() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerDraft.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerDraft.java index da96d9d656..c8665adaf8 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerDraft.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerDraft.java @@ -204,7 +204,7 @@ public interface CustomerDraft extends com.commercetools.api.models.Customizable public List getBillingAddresses(); /** - *

    Set to true if the email address of the Customer has been verified already. The intended use is to leave this field unset upon sign-up of the Customer and initiate the email verification afterwards.

    + *

    Whether the email address of the Customer has been verified already. The intended use is to leave this field unset upon sign-up of the Customer and initiate the email verification afterwards.

    * @return isEmailVerified */ @@ -444,7 +444,7 @@ public interface CustomerDraft extends com.commercetools.api.models.Customizable public void setBillingAddresses(final List billingAddresses); /** - *

    Set to true if the email address of the Customer has been verified already. The intended use is to leave this field unset upon sign-up of the Customer and initiate the email verification afterwards.

    + *

    Whether the email address of the Customer has been verified already. The intended use is to leave this field unset upon sign-up of the Customer and initiate the email verification afterwards.

    * @param isEmailVerified value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerDraftBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerDraftBuilder.java index 24177d6916..7ecaa1460f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerDraftBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerDraftBuilder.java @@ -486,7 +486,7 @@ public CustomerDraftBuilder plusBillingAddresses(@Nullable final Integer... bill } /** - *

    Set to true if the email address of the Customer has been verified already. The intended use is to leave this field unset upon sign-up of the Customer and initiate the email verification afterwards.

    + *

    Whether the email address of the Customer has been verified already. The intended use is to leave this field unset upon sign-up of the Customer and initiate the email verification afterwards.

    * @param isEmailVerified value to be set * @return Builder */ @@ -1030,7 +1030,7 @@ public java.util.List getBillingAddresses() { } /** - *

    Set to true if the email address of the Customer has been verified already. The intended use is to leave this field unset upon sign-up of the Customer and initiate the email verification afterwards.

    + *

    Whether the email address of the Customer has been verified already. The intended use is to leave this field unset upon sign-up of the Customer and initiate the email verification afterwards.

    * @return isEmailVerified */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerDraftImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerDraftImpl.java index fcf43fa0e0..1b24524340 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerDraftImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerDraftImpl.java @@ -306,7 +306,7 @@ public java.util.List getBillingAddresses() { } /** - *

    Set to true if the email address of the Customer has been verified already. The intended use is to leave this field unset upon sign-up of the Customer and initiate the email verification afterwards.

    + *

    Whether the email address of the Customer has been verified already. The intended use is to leave this field unset upon sign-up of the Customer and initiate the email verification afterwards.

    */ public Boolean getIsEmailVerified() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSignin.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSignin.java index 79c33ce206..6c4e34d127 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSignin.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSignin.java @@ -87,10 +87,7 @@ public interface CustomerSignin { public String getAnonymousId(); /** - *
      - *
    • If true, the LineItem Product data (name, variant, and productType) of the returned Cart will be updated.
    • - *
    • If false, only the prices, discounts, and tax rates will be updated.
    • - *
    + *

    Whether the LineItem Product data (name, variant, and productType) of the returned Cart will be updated. If false, only the prices, discounts, and tax rates will be updated.

    * @return updateProductData */ @@ -144,10 +141,7 @@ public interface CustomerSignin { public void setAnonymousId(final String anonymousId); /** - *
      - *
    • If true, the LineItem Product data (name, variant, and productType) of the returned Cart will be updated.
    • - *
    • If false, only the prices, discounts, and tax rates will be updated.
    • - *
    + *

    Whether the LineItem Product data (name, variant, and productType) of the returned Cart will be updated. If false, only the prices, discounts, and tax rates will be updated.

    * @param updateProductData value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSigninBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSigninBuilder.java index 0bbd828a95..52dedd5c61 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSigninBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSigninBuilder.java @@ -143,10 +143,7 @@ public CustomerSigninBuilder anonymousId(@Nullable final String anonymousId) { } /** - *
      - *
    • If true, the LineItem Product data (name, variant, and productType) of the returned Cart will be updated.
    • - *
    • If false, only the prices, discounts, and tax rates will be updated.
    • - *
    + *

    Whether the LineItem Product data (name, variant, and productType) of the returned Cart will be updated. If false, only the prices, discounts, and tax rates will be updated.

    * @param updateProductData value to be set * @return Builder */ @@ -219,10 +216,7 @@ public String getAnonymousId() { } /** - *
      - *
    • If true, the LineItem Product data (name, variant, and productType) of the returned Cart will be updated.
    • - *
    • If false, only the prices, discounts, and tax rates will be updated.
    • - *
    + *

    Whether the LineItem Product data (name, variant, and productType) of the returned Cart will be updated. If false, only the prices, discounts, and tax rates will be updated.

    * @return updateProductData */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSigninImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSigninImpl.java index 80e300cc24..c48ba5d2e7 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSigninImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSigninImpl.java @@ -116,10 +116,7 @@ public String getAnonymousId() { } /** - *
      - *
    • If true, the LineItem Product data (name, variant, and productType) of the returned Cart will be updated.
    • - *
    • If false, only the prices, discounts, and tax rates will be updated.
    • - *
    + *

    Whether the LineItem Product data (name, variant, and productType) of the returned Cart will be updated. If false, only the prices, discounts, and tax rates will be updated.

    */ public Boolean getUpdateProductData() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerToken.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerToken.java index 7a5d16a0b0..11894b7b43 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerToken.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerToken.java @@ -70,7 +70,7 @@ public interface CustomerToken { public ZonedDateTime getExpiresAt(); /** - *

    If true, all tokens issued previously for the Customer will be invalidated.

    + *

    Whether all tokens issued previously for the Customer will be invalidated.

    * @return invalidateOlderTokens */ @NotNull @@ -122,7 +122,7 @@ public interface CustomerToken { public void setExpiresAt(final ZonedDateTime expiresAt); /** - *

    If true, all tokens issued previously for the Customer will be invalidated.

    + *

    Whether all tokens issued previously for the Customer will be invalidated.

    * @param invalidateOlderTokens value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerTokenBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerTokenBuilder.java index 1a195ae259..b3e851bb36 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerTokenBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerTokenBuilder.java @@ -88,7 +88,7 @@ public CustomerTokenBuilder expiresAt(final java.time.ZonedDateTime expiresAt) { } /** - *

    If true, all tokens issued previously for the Customer will be invalidated.

    + *

    Whether all tokens issued previously for the Customer will be invalidated.

    * @param invalidateOlderTokens value to be set * @return Builder */ @@ -157,7 +157,7 @@ public java.time.ZonedDateTime getExpiresAt() { } /** - *

    If true, all tokens issued previously for the Customer will be invalidated.

    + *

    Whether all tokens issued previously for the Customer will be invalidated.

    * @return invalidateOlderTokens */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerTokenImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerTokenImpl.java index 8e6d517622..91e6eed7cc 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerTokenImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerTokenImpl.java @@ -95,7 +95,7 @@ public java.time.ZonedDateTime getExpiresAt() { } /** - *

    If true, all tokens issued previously for the Customer will be invalidated.

    + *

    Whether all tokens issued previously for the Customer will be invalidated.

    */ public Boolean getInvalidateOlderTokens() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/MyCustomerSignin.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/MyCustomerSignin.java index 7813fa6c4d..47ca5127de 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/MyCustomerSignin.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/MyCustomerSignin.java @@ -60,10 +60,7 @@ public interface MyCustomerSignin { public AnonymousCartSignInMode getActiveCartSignInMode(); /** - *
      - *
    • If true, the LineItem Product data (name, variant, and productType) of the returned Cart is updated.
    • - *
    • If false, only the prices, discounts, and tax rates are updated.
    • - *
    + *

    Whether the LineItem Product data (name, variant, and productType) of the returned Cart is updated. If false, only the prices, discounts, and tax rates are updated.

    * @return updateProductData */ @@ -95,10 +92,7 @@ public interface MyCustomerSignin { public void setActiveCartSignInMode(final AnonymousCartSignInMode activeCartSignInMode); /** - *
      - *
    • If true, the LineItem Product data (name, variant, and productType) of the returned Cart is updated.
    • - *
    • If false, only the prices, discounts, and tax rates are updated.
    • - *
    + *

    Whether the LineItem Product data (name, variant, and productType) of the returned Cart is updated. If false, only the prices, discounts, and tax rates are updated.

    * @param updateProductData value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/MyCustomerSigninBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/MyCustomerSigninBuilder.java index 9726f0dc0f..9e7c5fc795 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/MyCustomerSigninBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/MyCustomerSigninBuilder.java @@ -72,10 +72,7 @@ public MyCustomerSigninBuilder activeCartSignInMode( } /** - *
      - *
    • If true, the LineItem Product data (name, variant, and productType) of the returned Cart is updated.
    • - *
    • If false, only the prices, discounts, and tax rates are updated.
    • - *
    + *

    Whether the LineItem Product data (name, variant, and productType) of the returned Cart is updated. If false, only the prices, discounts, and tax rates are updated.

    * @param updateProductData value to be set * @return Builder */ @@ -117,10 +114,7 @@ public com.commercetools.api.models.customer.AnonymousCartSignInMode getActiveCa } /** - *
      - *
    • If true, the LineItem Product data (name, variant, and productType) of the returned Cart is updated.
    • - *
    • If false, only the prices, discounts, and tax rates are updated.
    • - *
    + *

    Whether the LineItem Product data (name, variant, and productType) of the returned Cart is updated. If false, only the prices, discounts, and tax rates are updated.

    * @return updateProductData */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/MyCustomerSigninImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/MyCustomerSigninImpl.java index 8a38d6f143..34c58f38c3 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/MyCustomerSigninImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/MyCustomerSigninImpl.java @@ -78,10 +78,7 @@ public com.commercetools.api.models.customer.AnonymousCartSignInMode getActiveCa } /** - *
      - *
    • If true, the LineItem Product data (name, variant, and productType) of the returned Cart is updated.
    • - *
    • If false, only the prices, discounts, and tax rates are updated.
    • - *
    + *

    Whether the LineItem Product data (name, variant, and productType) of the returned Cart is updated. If false, only the prices, discounts, and tax rates are updated.

    */ public Boolean getUpdateProductData() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLPriceChangedError.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLPriceChangedError.java index a94aea0d6a..58fc4cc195 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLPriceChangedError.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLPriceChangedError.java @@ -62,7 +62,7 @@ public interface GraphQLPriceChangedError extends GraphQLErrorObject { public List getLineItems(); /** - *

    true if the ShippingRate has changed.

    + *

    Whether the ShippingRate has changed.

    * @return shipping */ @NotNull @@ -85,7 +85,7 @@ public interface GraphQLPriceChangedError extends GraphQLErrorObject { public void setLineItems(final List lineItems); /** - *

    true if the ShippingRate has changed.

    + *

    Whether the ShippingRate has changed.

    * @param shipping value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLPriceChangedErrorBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLPriceChangedErrorBuilder.java index 9d0fb2c6f0..5ae4ed6daf 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLPriceChangedErrorBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLPriceChangedErrorBuilder.java @@ -91,7 +91,7 @@ public GraphQLPriceChangedErrorBuilder plusLineItems(final String... lineItems) } /** - *

    true if the ShippingRate has changed.

    + *

    Whether the ShippingRate has changed.

    * @param shipping value to be set * @return Builder */ @@ -120,7 +120,7 @@ public java.util.List getLineItems() { } /** - *

    true if the ShippingRate has changed.

    + *

    Whether the ShippingRate has changed.

    * @return shipping */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLPriceChangedErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLPriceChangedErrorImpl.java index 8f62d4562c..ffe7713ef7 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLPriceChangedErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLPriceChangedErrorImpl.java @@ -84,7 +84,7 @@ public java.util.List getLineItems() { } /** - *

    true if the ShippingRate has changed.

    + *

    Whether the ShippingRate has changed.

    */ public Boolean getShipping() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/PriceChangedError.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/PriceChangedError.java index b76e930000..a4457e00e8 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/PriceChangedError.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/PriceChangedError.java @@ -71,7 +71,7 @@ public interface PriceChangedError extends ErrorObject { public List getLineItems(); /** - *

    true if the ShippingRate has changed.

    + *

    Whether the ShippingRate has changed.

    * @return shipping */ @NotNull @@ -101,7 +101,7 @@ public interface PriceChangedError extends ErrorObject { public void setLineItems(final List lineItems); /** - *

    true if the ShippingRate has changed.

    + *

    Whether the ShippingRate has changed.

    * @param shipping value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/PriceChangedErrorBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/PriceChangedErrorBuilder.java index a5e1a746ab..b77cf2edc9 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/PriceChangedErrorBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/PriceChangedErrorBuilder.java @@ -105,7 +105,7 @@ public PriceChangedErrorBuilder plusLineItems(final String... lineItems) { } /** - *

    true if the ShippingRate has changed.

    + *

    Whether the ShippingRate has changed.

    * @param shipping value to be set * @return Builder */ @@ -143,7 +143,7 @@ public java.util.List getLineItems() { } /** - *

    true if the ShippingRate has changed.

    + *

    Whether the ShippingRate has changed.

    * @return shipping */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/PriceChangedErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/PriceChangedErrorImpl.java index dea5f9970f..381ccf0a22 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/PriceChangedErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/PriceChangedErrorImpl.java @@ -96,7 +96,7 @@ public java.util.List getLineItems() { } /** - *

    true if the ShippingRate has changed.

    + *

    Whether the ShippingRate has changed.

    */ public Boolean getShipping() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/extension/ExtensionAdditionalContext.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/extension/ExtensionAdditionalContext.java index ead3e5c6a5..4b2424ed32 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/extension/ExtensionAdditionalContext.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/extension/ExtensionAdditionalContext.java @@ -32,7 +32,7 @@ public interface ExtensionAdditionalContext { /** - *

    Set to true, if the payload sent to the API Extension should include an oldResource field with the state of the resource before the update. This only applies to Update actions. For Create actions, oldResource is not included.

    + *

    Whether the payload sent to the API Extension should include an oldResource field with the state of the resource before the update. This only applies to Update actions. For Create actions, oldResource is not included.

    * @return includeOldResource */ @NotNull @@ -40,7 +40,7 @@ public interface ExtensionAdditionalContext { public Boolean getIncludeOldResource(); /** - *

    Set to true, if the payload sent to the API Extension should include an oldResource field with the state of the resource before the update. This only applies to Update actions. For Create actions, oldResource is not included.

    + *

    Whether the payload sent to the API Extension should include an oldResource field with the state of the resource before the update. This only applies to Update actions. For Create actions, oldResource is not included.

    * @param includeOldResource value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/extension/ExtensionAdditionalContextBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/extension/ExtensionAdditionalContextBuilder.java index ef944b9008..873417c883 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/extension/ExtensionAdditionalContextBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/extension/ExtensionAdditionalContextBuilder.java @@ -24,7 +24,7 @@ public class ExtensionAdditionalContextBuilder implements BuilderSet to true, if the payload sent to the API Extension should include an oldResource field with the state of the resource before the update. This only applies to Update actions. For Create actions, oldResource is not included.

    + *

    Whether the payload sent to the API Extension should include an oldResource field with the state of the resource before the update. This only applies to Update actions. For Create actions, oldResource is not included.

    * @param includeOldResource value to be set * @return Builder */ @@ -35,7 +35,7 @@ public ExtensionAdditionalContextBuilder includeOldResource(final Boolean includ } /** - *

    Set to true, if the payload sent to the API Extension should include an oldResource field with the state of the resource before the update. This only applies to Update actions. For Create actions, oldResource is not included.

    + *

    Whether the payload sent to the API Extension should include an oldResource field with the state of the resource before the update. This only applies to Update actions. For Create actions, oldResource is not included.

    * @return includeOldResource */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/extension/ExtensionAdditionalContextDraft.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/extension/ExtensionAdditionalContextDraft.java index 5fee4a0b2e..3870b38129 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/extension/ExtensionAdditionalContextDraft.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/extension/ExtensionAdditionalContextDraft.java @@ -31,7 +31,7 @@ public interface ExtensionAdditionalContextDraft extends io.vrap.rmf.base.client.Draft { /** - *

    Set to true, if the payload sent to the API Extension should include an oldResource field with the state of the resource before the update. This only applies to Update actions. For Create actions, oldResource is not included.

    + *

    Whether the payload sent to the API Extension should include an oldResource field with the state of the resource before the update. This only applies to Update actions. For Create actions, oldResource is not included.

    * @return includeOldResource */ @@ -39,7 +39,7 @@ public interface ExtensionAdditionalContextDraft public Boolean getIncludeOldResource(); /** - *

    Set to true, if the payload sent to the API Extension should include an oldResource field with the state of the resource before the update. This only applies to Update actions. For Create actions, oldResource is not included.

    + *

    Whether the payload sent to the API Extension should include an oldResource field with the state of the resource before the update. This only applies to Update actions. For Create actions, oldResource is not included.

    * @param includeOldResource value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/extension/ExtensionAdditionalContextDraftBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/extension/ExtensionAdditionalContextDraftBuilder.java index ca8086d3ce..1cccda9f85 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/extension/ExtensionAdditionalContextDraftBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/extension/ExtensionAdditionalContextDraftBuilder.java @@ -26,7 +26,7 @@ public class ExtensionAdditionalContextDraftBuilder implements BuilderSet to true, if the payload sent to the API Extension should include an oldResource field with the state of the resource before the update. This only applies to Update actions. For Create actions, oldResource is not included.

    + *

    Whether the payload sent to the API Extension should include an oldResource field with the state of the resource before the update. This only applies to Update actions. For Create actions, oldResource is not included.

    * @param includeOldResource value to be set * @return Builder */ @@ -37,7 +37,7 @@ public ExtensionAdditionalContextDraftBuilder includeOldResource(@Nullable final } /** - *

    Set to true, if the payload sent to the API Extension should include an oldResource field with the state of the resource before the update. This only applies to Update actions. For Create actions, oldResource is not included.

    + *

    Whether the payload sent to the API Extension should include an oldResource field with the state of the resource before the update. This only applies to Update actions. For Create actions, oldResource is not included.

    * @return includeOldResource */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/extension/ExtensionAdditionalContextDraftImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/extension/ExtensionAdditionalContextDraftImpl.java index a2979aca2a..a149486598 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/extension/ExtensionAdditionalContextDraftImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/extension/ExtensionAdditionalContextDraftImpl.java @@ -40,7 +40,7 @@ public ExtensionAdditionalContextDraftImpl() { } /** - *

    Set to true, if the payload sent to the API Extension should include an oldResource field with the state of the resource before the update. This only applies to Update actions. For Create actions, oldResource is not included.

    + *

    Whether the payload sent to the API Extension should include an oldResource field with the state of the resource before the update. This only applies to Update actions. For Create actions, oldResource is not included.

    */ public Boolean getIncludeOldResource() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/extension/ExtensionAdditionalContextImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/extension/ExtensionAdditionalContextImpl.java index cc529b69d8..7ac653c4e9 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/extension/ExtensionAdditionalContextImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/extension/ExtensionAdditionalContextImpl.java @@ -40,7 +40,7 @@ public ExtensionAdditionalContextImpl() { } /** - *

    Set to true, if the payload sent to the API Extension should include an oldResource field with the state of the resource before the update. This only applies to Update actions. For Create actions, oldResource is not included.

    + *

    Whether the payload sent to the API Extension should include an oldResource field with the state of the resource before the update. This only applies to Update actions. For Create actions, oldResource is not included.

    */ public Boolean getIncludeOldResource() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyOrderFromQuoteDraft.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyOrderFromQuoteDraft.java index 81fde3ce46..2a22b96ef6 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyOrderFromQuoteDraft.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyOrderFromQuoteDraft.java @@ -49,7 +49,7 @@ public interface MyOrderFromQuoteDraft extends io.vrap.rmf.base.client.DraftSet to true, if the quoteState of the referenced Quote should be set to Accepted.

    + *

    Whether the quoteState of the referenced Quote should be set to Accepted.

    * @return quoteStateToAccepted */ @@ -71,7 +71,7 @@ public interface MyOrderFromQuoteDraft extends io.vrap.rmf.base.client.DraftSet to true, if the quoteState of the referenced Quote should be set to Accepted.

    + *

    Whether the quoteState of the referenced Quote should be set to Accepted.

    * @param quoteStateToAccepted value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyOrderFromQuoteDraftBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyOrderFromQuoteDraftBuilder.java index f9a4227080..922234bdde 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyOrderFromQuoteDraftBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyOrderFromQuoteDraftBuilder.java @@ -54,7 +54,7 @@ public MyOrderFromQuoteDraftBuilder version(final Long version) { } /** - *

    Set to true, if the quoteState of the referenced Quote should be set to Accepted.

    + *

    Whether the quoteState of the referenced Quote should be set to Accepted.

    * @param quoteStateToAccepted value to be set * @return Builder */ @@ -83,7 +83,7 @@ public Long getVersion() { } /** - *

    Set to true, if the quoteState of the referenced Quote should be set to Accepted.

    + *

    Whether the quoteState of the referenced Quote should be set to Accepted.

    * @return quoteStateToAccepted */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyOrderFromQuoteDraftImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyOrderFromQuoteDraftImpl.java index db3ae9b8c7..5cf86937c9 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyOrderFromQuoteDraftImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyOrderFromQuoteDraftImpl.java @@ -63,7 +63,7 @@ public Long getVersion() { } /** - *

    Set to true, if the quoteState of the referenced Quote should be set to Accepted.

    + *

    Whether the quoteState of the referenced Quote should be set to Accepted.

    */ public Boolean getQuoteStateToAccepted() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerEmailTokenCreatedMessage.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerEmailTokenCreatedMessage.java index d419996148..99b77217a8 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerEmailTokenCreatedMessage.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerEmailTokenCreatedMessage.java @@ -72,7 +72,7 @@ public interface CustomerEmailTokenCreatedMessage extends Message { public String getValue(); /** - *

    If true, all email tokens issued previously for the Customer are invalidated.

    + *

    Whether all email tokens issued previously for the Customer are invalidated.

    * @return invalidateOlderTokens */ @NotNull @@ -101,7 +101,7 @@ public interface CustomerEmailTokenCreatedMessage extends Message { public void setValue(final String value); /** - *

    If true, all email tokens issued previously for the Customer are invalidated.

    + *

    Whether all email tokens issued previously for the Customer are invalidated.

    * @param invalidateOlderTokens value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerEmailTokenCreatedMessageBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerEmailTokenCreatedMessageBuilder.java index 5d4d4538fc..b154b58330 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerEmailTokenCreatedMessageBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerEmailTokenCreatedMessageBuilder.java @@ -300,7 +300,7 @@ public CustomerEmailTokenCreatedMessageBuilder value(@Nullable final String valu } /** - *

    If true, all email tokens issued previously for the Customer are invalidated.

    + *

    Whether all email tokens issued previously for the Customer are invalidated.

    * @param invalidateOlderTokens value to be set * @return Builder */ @@ -432,7 +432,7 @@ public String getValue() { } /** - *

    If true, all email tokens issued previously for the Customer are invalidated.

    + *

    Whether all email tokens issued previously for the Customer are invalidated.

    * @return invalidateOlderTokens */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerEmailTokenCreatedMessageImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerEmailTokenCreatedMessageImpl.java index a75d95fbc2..f9737a2305 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerEmailTokenCreatedMessageImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerEmailTokenCreatedMessageImpl.java @@ -208,7 +208,7 @@ public String getValue() { } /** - *

    If true, all email tokens issued previously for the Customer are invalidated.

    + *

    Whether all email tokens issued previously for the Customer are invalidated.

    */ public Boolean getInvalidateOlderTokens() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerEmailTokenCreatedMessagePayload.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerEmailTokenCreatedMessagePayload.java index 59e9dca5c9..f360f01b85 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerEmailTokenCreatedMessagePayload.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerEmailTokenCreatedMessagePayload.java @@ -65,7 +65,7 @@ public interface CustomerEmailTokenCreatedMessagePayload extends MessagePayload public String getValue(); /** - *

    If true, all email tokens issued previously for the Customer are invalidated.

    + *

    Whether all email tokens issued previously for the Customer are invalidated.

    * @return invalidateOlderTokens */ @NotNull @@ -94,7 +94,7 @@ public interface CustomerEmailTokenCreatedMessagePayload extends MessagePayload public void setValue(final String value); /** - *

    If true, all email tokens issued previously for the Customer are invalidated.

    + *

    Whether all email tokens issued previously for the Customer are invalidated.

    * @param invalidateOlderTokens value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerEmailTokenCreatedMessagePayloadBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerEmailTokenCreatedMessagePayloadBuilder.java index 4ff96c385c..15d6be10d0 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerEmailTokenCreatedMessagePayloadBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerEmailTokenCreatedMessagePayloadBuilder.java @@ -69,7 +69,7 @@ public CustomerEmailTokenCreatedMessagePayloadBuilder value(@Nullable final Stri } /** - *

    If true, all email tokens issued previously for the Customer are invalidated.

    + *

    Whether all email tokens issued previously for the Customer are invalidated.

    * @param invalidateOlderTokens value to be set * @return Builder */ @@ -108,7 +108,7 @@ public String getValue() { } /** - *

    If true, all email tokens issued previously for the Customer are invalidated.

    + *

    Whether all email tokens issued previously for the Customer are invalidated.

    * @return invalidateOlderTokens */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerEmailTokenCreatedMessagePayloadImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerEmailTokenCreatedMessagePayloadImpl.java index 9b0eda3d2c..2687ebcbb7 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerEmailTokenCreatedMessagePayloadImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerEmailTokenCreatedMessagePayloadImpl.java @@ -88,7 +88,7 @@ public String getValue() { } /** - *

    If true, all email tokens issued previously for the Customer are invalidated.

    + *

    Whether all email tokens issued previously for the Customer are invalidated.

    */ public Boolean getInvalidateOlderTokens() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerPasswordTokenCreatedMessage.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerPasswordTokenCreatedMessage.java index 06aed14001..ad3d12825d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerPasswordTokenCreatedMessage.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerPasswordTokenCreatedMessage.java @@ -72,7 +72,7 @@ public interface CustomerPasswordTokenCreatedMessage extends Message { public String getValue(); /** - *

    If true, all password tokens issued previously for the Customer are invalidated.

    + *

    Whether all password tokens issued previously for the Customer are invalidated.

    * @return invalidateOlderTokens */ @NotNull @@ -101,7 +101,7 @@ public interface CustomerPasswordTokenCreatedMessage extends Message { public void setValue(final String value); /** - *

    If true, all password tokens issued previously for the Customer are invalidated.

    + *

    Whether all password tokens issued previously for the Customer are invalidated.

    * @param invalidateOlderTokens value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerPasswordTokenCreatedMessageBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerPasswordTokenCreatedMessageBuilder.java index 66bacfc96b..d274f807e0 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerPasswordTokenCreatedMessageBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerPasswordTokenCreatedMessageBuilder.java @@ -300,7 +300,7 @@ public CustomerPasswordTokenCreatedMessageBuilder value(@Nullable final String v } /** - *

    If true, all password tokens issued previously for the Customer are invalidated.

    + *

    Whether all password tokens issued previously for the Customer are invalidated.

    * @param invalidateOlderTokens value to be set * @return Builder */ @@ -432,7 +432,7 @@ public String getValue() { } /** - *

    If true, all password tokens issued previously for the Customer are invalidated.

    + *

    Whether all password tokens issued previously for the Customer are invalidated.

    * @return invalidateOlderTokens */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerPasswordTokenCreatedMessageImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerPasswordTokenCreatedMessageImpl.java index b7c8c7c678..12d9e81c3c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerPasswordTokenCreatedMessageImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerPasswordTokenCreatedMessageImpl.java @@ -208,7 +208,7 @@ public String getValue() { } /** - *

    If true, all password tokens issued previously for the Customer are invalidated.

    + *

    Whether all password tokens issued previously for the Customer are invalidated.

    */ public Boolean getInvalidateOlderTokens() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerPasswordTokenCreatedMessagePayload.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerPasswordTokenCreatedMessagePayload.java index 009b8bc816..c56665d7f0 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerPasswordTokenCreatedMessagePayload.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerPasswordTokenCreatedMessagePayload.java @@ -65,7 +65,7 @@ public interface CustomerPasswordTokenCreatedMessagePayload extends MessagePaylo public String getValue(); /** - *

    If true, all password tokens issued previously for the Customer are invalidated.

    + *

    Whether all password tokens issued previously for the Customer are invalidated.

    * @return invalidateOlderTokens */ @NotNull @@ -94,7 +94,7 @@ public interface CustomerPasswordTokenCreatedMessagePayload extends MessagePaylo public void setValue(final String value); /** - *

    If true, all password tokens issued previously for the Customer are invalidated.

    + *

    Whether all password tokens issued previously for the Customer are invalidated.

    * @param invalidateOlderTokens value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerPasswordTokenCreatedMessagePayloadBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerPasswordTokenCreatedMessagePayloadBuilder.java index 0052955851..f416f1f43f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerPasswordTokenCreatedMessagePayloadBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerPasswordTokenCreatedMessagePayloadBuilder.java @@ -69,7 +69,7 @@ public CustomerPasswordTokenCreatedMessagePayloadBuilder value(@Nullable final S } /** - *

    If true, all password tokens issued previously for the Customer are invalidated.

    + *

    Whether all password tokens issued previously for the Customer are invalidated.

    * @param invalidateOlderTokens value to be set * @return Builder */ @@ -109,7 +109,7 @@ public String getValue() { } /** - *

    If true, all password tokens issued previously for the Customer are invalidated.

    + *

    Whether all password tokens issued previously for the Customer are invalidated.

    * @return invalidateOlderTokens */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerPasswordTokenCreatedMessagePayloadImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerPasswordTokenCreatedMessagePayloadImpl.java index 57477f27e7..e1ac82fb7e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerPasswordTokenCreatedMessagePayloadImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerPasswordTokenCreatedMessagePayloadImpl.java @@ -89,7 +89,7 @@ public String getValue() { } /** - *

    If true, all password tokens issued previously for the Customer are invalidated.

    + *

    Whether all password tokens issued previously for the Customer are invalidated.

    */ public Boolean getInvalidateOlderTokens() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductTailoringCreatedMessage.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductTailoringCreatedMessage.java index 4b7208d032..2f8be14fd7 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductTailoringCreatedMessage.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductTailoringCreatedMessage.java @@ -152,7 +152,7 @@ public interface ProductTailoringCreatedMessage extends Message { public List getAttributes(); /** - *

    true if the ProductTailoring is published.

    + *

    Whether the ProductTailoring is published.

    * @return published */ @NotNull @@ -260,7 +260,7 @@ public interface ProductTailoringCreatedMessage extends Message { public void setAttributes(final List attributes); /** - *

    true if the ProductTailoring is published.

    + *

    Whether the ProductTailoring is published.

    * @param published value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductTailoringCreatedMessageBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductTailoringCreatedMessageBuilder.java index 0680991808..0adece5df6 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductTailoringCreatedMessageBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductTailoringCreatedMessageBuilder.java @@ -792,7 +792,7 @@ public ProductTailoringCreatedMessageBuilder setAttributes( } /** - *

    true if the ProductTailoring is published.

    + *

    Whether the ProductTailoring is published.

    * @param published value to be set * @return Builder */ @@ -1014,7 +1014,7 @@ public java.util.Listtrue if the ProductTailoring is published.

    + *

    Whether the ProductTailoring is published.

    * @return published */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductTailoringCreatedMessageImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductTailoringCreatedMessageImpl.java index 3e6198aea3..6c831cb641 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductTailoringCreatedMessageImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductTailoringCreatedMessageImpl.java @@ -315,7 +315,7 @@ public java.util.Listtrue if the ProductTailoring is published.

    + *

    Whether the ProductTailoring is published.

    */ public Boolean getPublished() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductTailoringCreatedMessagePayload.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductTailoringCreatedMessagePayload.java index 08b1750b1b..a9bfb80429 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductTailoringCreatedMessagePayload.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductTailoringCreatedMessagePayload.java @@ -145,7 +145,7 @@ public interface ProductTailoringCreatedMessagePayload extends MessagePayload { public List getAttributes(); /** - *

    true if the ProductTailoring is published.

    + *

    Whether the ProductTailoring is published.

    * @return published */ @NotNull @@ -253,7 +253,7 @@ public interface ProductTailoringCreatedMessagePayload extends MessagePayload { public void setAttributes(final List attributes); /** - *

    true if the ProductTailoring is published.

    + *

    Whether the ProductTailoring is published.

    * @param published value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductTailoringCreatedMessagePayloadBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductTailoringCreatedMessagePayloadBuilder.java index d9e08210a0..ae05824472 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductTailoringCreatedMessagePayloadBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductTailoringCreatedMessagePayloadBuilder.java @@ -561,7 +561,7 @@ public ProductTailoringCreatedMessagePayloadBuilder setAttributes( } /** - *

    true if the ProductTailoring is published.

    + *

    Whether the ProductTailoring is published.

    * @param published value to be set * @return Builder */ @@ -690,7 +690,7 @@ public java.util.Listtrue if the ProductTailoring is published.

    + *

    Whether the ProductTailoring is published.

    * @return published */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductTailoringCreatedMessagePayloadImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductTailoringCreatedMessagePayloadImpl.java index 718edee226..927484fc73 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductTailoringCreatedMessagePayloadImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductTailoringCreatedMessagePayloadImpl.java @@ -196,7 +196,7 @@ public java.util.Listtrue if the ProductTailoring is published.

    + *

    Whether the ProductTailoring is published.

    */ public Boolean getPublished() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductVariantDeletedMessage.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductVariantDeletedMessage.java index 706f418b51..1776035ff0 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductVariantDeletedMessage.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductVariantDeletedMessage.java @@ -64,7 +64,7 @@ public interface ProductVariantDeletedMessage extends Message { public List getRemovedImageUrls(); /** - *

    If true, this message informs that only the staged ProductVariant has been removed by the update action. If false, both the current and staged ProductVariant have been removed.

    + *

    Whether this message informs that only the staged ProductVariant has been removed by the update action. If false, both the current and staged ProductVariant have been removed.

    * @return staged */ @NotNull @@ -94,7 +94,7 @@ public interface ProductVariantDeletedMessage extends Message { public void setRemovedImageUrls(final List removedImageUrls); /** - *

    If true, this message informs that only the staged ProductVariant has been removed by the update action. If false, both the current and staged ProductVariant have been removed.

    + *

    Whether this message informs that only the staged ProductVariant has been removed by the update action. If false, both the current and staged ProductVariant have been removed.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductVariantDeletedMessageBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductVariantDeletedMessageBuilder.java index b67e962e87..0467e3f27c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductVariantDeletedMessageBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductVariantDeletedMessageBuilder.java @@ -335,7 +335,7 @@ public ProductVariantDeletedMessageBuilder plusRemovedImageUrls(final String... } /** - *

    If true, this message informs that only the staged ProductVariant has been removed by the update action. If false, both the current and staged ProductVariant have been removed.

    + *

    Whether this message informs that only the staged ProductVariant has been removed by the update action. If false, both the current and staged ProductVariant have been removed.

    * @param staged value to be set * @return Builder */ @@ -458,7 +458,7 @@ public java.util.List getRemovedImageUrls() { } /** - *

    If true, this message informs that only the staged ProductVariant has been removed by the update action. If false, both the current and staged ProductVariant have been removed.

    + *

    Whether this message informs that only the staged ProductVariant has been removed by the update action. If false, both the current and staged ProductVariant have been removed.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductVariantDeletedMessageImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductVariantDeletedMessageImpl.java index 76ae0b92f3..1c310f6e8d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductVariantDeletedMessageImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductVariantDeletedMessageImpl.java @@ -195,7 +195,7 @@ public java.util.List getRemovedImageUrls() { } /** - *

    If true, this message informs that only the staged ProductVariant has been removed by the update action. If false, both the current and staged ProductVariant have been removed.

    + *

    Whether this message informs that only the staged ProductVariant has been removed by the update action. If false, both the current and staged ProductVariant have been removed.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductVariantDeletedMessagePayload.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductVariantDeletedMessagePayload.java index 58ca1bfff3..c2a09f0ddc 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductVariantDeletedMessagePayload.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductVariantDeletedMessagePayload.java @@ -57,7 +57,7 @@ public interface ProductVariantDeletedMessagePayload extends MessagePayload { public List getRemovedImageUrls(); /** - *

    If true, this message informs that only the staged ProductVariant has been removed by the update action. If false, both the current and staged ProductVariant have been removed.

    + *

    Whether this message informs that only the staged ProductVariant has been removed by the update action. If false, both the current and staged ProductVariant have been removed.

    * @return staged */ @NotNull @@ -87,7 +87,7 @@ public interface ProductVariantDeletedMessagePayload extends MessagePayload { public void setRemovedImageUrls(final List removedImageUrls); /** - *

    If true, this message informs that only the staged ProductVariant has been removed by the update action. If false, both the current and staged ProductVariant have been removed.

    + *

    Whether this message informs that only the staged ProductVariant has been removed by the update action. If false, both the current and staged ProductVariant have been removed.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductVariantDeletedMessagePayloadBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductVariantDeletedMessagePayloadBuilder.java index f7fee0741f..9131ff7597 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductVariantDeletedMessagePayloadBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductVariantDeletedMessagePayloadBuilder.java @@ -105,7 +105,7 @@ public ProductVariantDeletedMessagePayloadBuilder plusRemovedImageUrls(final Str } /** - *

    If true, this message informs that only the staged ProductVariant has been removed by the update action. If false, both the current and staged ProductVariant have been removed.

    + *

    Whether this message informs that only the staged ProductVariant has been removed by the update action. If false, both the current and staged ProductVariant have been removed.

    * @param staged value to be set * @return Builder */ @@ -135,7 +135,7 @@ public java.util.List getRemovedImageUrls() { } /** - *

    If true, this message informs that only the staged ProductVariant has been removed by the update action. If false, both the current and staged ProductVariant have been removed.

    + *

    Whether this message informs that only the staged ProductVariant has been removed by the update action. If false, both the current and staged ProductVariant have been removed.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductVariantDeletedMessagePayloadImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductVariantDeletedMessagePayloadImpl.java index 3c1b51f2c1..3b27396320 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductVariantDeletedMessagePayloadImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductVariantDeletedMessagePayloadImpl.java @@ -77,7 +77,7 @@ public java.util.List getRemovedImageUrls() { } /** - *

    If true, this message informs that only the staged ProductVariant has been removed by the update action. If false, both the current and staged ProductVariant have been removed.

    + *

    Whether this message informs that only the staged ProductVariant has been removed by the update action. If false, both the current and staged ProductVariant have been removed.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderFromQuoteDraft.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderFromQuoteDraft.java index 53980a0d5e..c0d6a1b74f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderFromQuoteDraft.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderFromQuoteDraft.java @@ -54,7 +54,7 @@ public interface OrderFromQuoteDraft extends io.vrap.rmf.base.client.DraftIf true, the quoteState of the referenced Quote will be set to Accepted.

    + *

    Whether the quoteState of the referenced Quote will be set to Accepted.

    * @return quoteStateToAccepted */ @@ -117,7 +117,7 @@ public interface OrderFromQuoteDraft extends io.vrap.rmf.base.client.DraftIf true, the quoteState of the referenced Quote will be set to Accepted.

    + *

    Whether the quoteState of the referenced Quote will be set to Accepted.

    * @param quoteStateToAccepted value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderFromQuoteDraftBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderFromQuoteDraftBuilder.java index 5436609f5c..fb201c87b2 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderFromQuoteDraftBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderFromQuoteDraftBuilder.java @@ -97,7 +97,7 @@ public OrderFromQuoteDraftBuilder version(final Long version) { } /** - *

    If true, the quoteState of the referenced Quote will be set to Accepted.

    + *

    Whether the quoteState of the referenced Quote will be set to Accepted.

    * @param quoteStateToAccepted value to be set * @return Builder */ @@ -210,7 +210,7 @@ public Long getVersion() { } /** - *

    If true, the quoteState of the referenced Quote will be set to Accepted.

    + *

    Whether the quoteState of the referenced Quote will be set to Accepted.

    * @return quoteStateToAccepted */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderFromQuoteDraftImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderFromQuoteDraftImpl.java index 883309c198..17904fcacd 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderFromQuoteDraftImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderFromQuoteDraftImpl.java @@ -86,7 +86,7 @@ public Long getVersion() { } /** - *

    If true, the quoteState of the referenced Quote will be set to Accepted.

    + *

    Whether the quoteState of the referenced Quote will be set to Accepted.

    */ public Boolean getQuoteStateToAccepted() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderTransitionStateAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderTransitionStateAction.java index ab84160bac..e97cc4f8b0 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderTransitionStateAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderTransitionStateAction.java @@ -50,7 +50,7 @@ public interface OrderTransitionStateAction extends OrderUpdateAction { public StateResourceIdentifier getState(); /** - *

    Set to true to turn off validation.

    + *

    Whether to turn off validation.

    * @return force */ @@ -65,7 +65,7 @@ public interface OrderTransitionStateAction extends OrderUpdateAction { public void setState(final StateResourceIdentifier state); /** - *

    Set to true to turn off validation.

    + *

    Whether to turn off validation.

    * @param force value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderTransitionStateActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderTransitionStateActionBuilder.java index 6d2eec2f85..f8971a5c24 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderTransitionStateActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderTransitionStateActionBuilder.java @@ -66,7 +66,7 @@ public OrderTransitionStateActionBuilder state( } /** - *

    Set to true to turn off validation.

    + *

    Whether to turn off validation.

    * @param force value to be set * @return Builder */ @@ -86,7 +86,7 @@ public com.commercetools.api.models.state.StateResourceIdentifier getState() { } /** - *

    Set to true to turn off validation.

    + *

    Whether to turn off validation.

    * @return force */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderTransitionStateActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderTransitionStateActionImpl.java index 53b3deacfa..f3225906e3 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderTransitionStateActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderTransitionStateActionImpl.java @@ -66,7 +66,7 @@ public com.commercetools.api.models.state.StateResourceIdentifier getState() { } /** - *

    Set to true to turn off validation.

    + *

    Whether to turn off validation.

    */ public Boolean getForce() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/TrackingData.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/TrackingData.java index ec893a2730..e012c61fcf 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/TrackingData.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/TrackingData.java @@ -62,10 +62,7 @@ public interface TrackingData { public String getProviderTransaction(); /** - *
      - *
    • If true, the Parcel is being returned.
    • - *
    • If false, the Parcel is being delivered to the customer.
    • - *
    + *

    Whether the Parcel is being returned. If false, the Parcel is being delivered to the customer.

    * @return isReturn */ @@ -101,10 +98,7 @@ public interface TrackingData { public void setProviderTransaction(final String providerTransaction); /** - *
      - *
    • If true, the Parcel is being returned.
    • - *
    • If false, the Parcel is being delivered to the customer.
    • - *
    + *

    Whether the Parcel is being returned. If false, the Parcel is being delivered to the customer.

    * @param isReturn value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/TrackingDataBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/TrackingDataBuilder.java index f40ab99e57..9406584130 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/TrackingDataBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/TrackingDataBuilder.java @@ -82,10 +82,7 @@ public TrackingDataBuilder providerTransaction(@Nullable final String providerTr } /** - *
      - *
    • If true, the Parcel is being returned.
    • - *
    • If false, the Parcel is being delivered to the customer.
    • - *
    + *

    Whether the Parcel is being returned. If false, the Parcel is being delivered to the customer.

    * @param isReturn value to be set * @return Builder */ @@ -136,10 +133,7 @@ public String getProviderTransaction() { } /** - *
      - *
    • If true, the Parcel is being returned.
    • - *
    • If false, the Parcel is being delivered to the customer.
    • - *
    + *

    Whether the Parcel is being returned. If false, the Parcel is being delivered to the customer.

    * @return isReturn */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/TrackingDataImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/TrackingDataImpl.java index 9d461561aa..9630a7be5c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/TrackingDataImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/TrackingDataImpl.java @@ -87,10 +87,7 @@ public String getProviderTransaction() { } /** - *
      - *
    • If true, the Parcel is being returned.
    • - *
    • If false, the Parcel is being delivered to the customer.
    • - *
    + *

    Whether the Parcel is being returned. If false, the Parcel is being delivered to the customer.

    */ public Boolean getIsReturn() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/OrderEditDraft.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/OrderEditDraft.java index f21434c476..ea80d66a2f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/OrderEditDraft.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/OrderEditDraft.java @@ -79,7 +79,7 @@ public interface OrderEditDraft extends com.commercetools.api.models.Customizabl public String getComment(); /** - *

    Set to true if you want to preview the edited Order first without persisting it (dry run). A dry run allows checking for potential errors when trying to apply the stagedActions.

    + *

    Whether to preview the edited Order first without persisting it (dry run). A dry run allows checking for potential errors when trying to apply the stagedActions.

    *

    Order API Extensions, if any, are also called in dry runs.

    * @return dryRun */ @@ -131,7 +131,7 @@ public interface OrderEditDraft extends com.commercetools.api.models.Customizabl public void setComment(final String comment); /** - *

    Set to true if you want to preview the edited Order first without persisting it (dry run). A dry run allows checking for potential errors when trying to apply the stagedActions.

    + *

    Whether to preview the edited Order first without persisting it (dry run). A dry run allows checking for potential errors when trying to apply the stagedActions.

    *

    Order API Extensions, if any, are also called in dry runs.

    * @param dryRun value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/OrderEditDraftBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/OrderEditDraftBuilder.java index c12b1aecca..91886e5a5a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/OrderEditDraftBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/OrderEditDraftBuilder.java @@ -203,7 +203,7 @@ public OrderEditDraftBuilder comment(@Nullable final String comment) { } /** - *

    Set to true if you want to preview the edited Order first without persisting it (dry run). A dry run allows checking for potential errors when trying to apply the stagedActions.

    + *

    Whether to preview the edited Order first without persisting it (dry run). A dry run allows checking for potential errors when trying to apply the stagedActions.

    *

    Order API Extensions, if any, are also called in dry runs.

    * @param dryRun value to be set * @return Builder @@ -264,7 +264,7 @@ public String getComment() { } /** - *

    Set to true if you want to preview the edited Order first without persisting it (dry run). A dry run allows checking for potential errors when trying to apply the stagedActions.

    + *

    Whether to preview the edited Order first without persisting it (dry run). A dry run allows checking for potential errors when trying to apply the stagedActions.

    *

    Order API Extensions, if any, are also called in dry runs.

    * @return dryRun */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/OrderEditDraftImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/OrderEditDraftImpl.java index 1bbd4a669c..240e471c00 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/OrderEditDraftImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/OrderEditDraftImpl.java @@ -99,7 +99,7 @@ public String getComment() { } /** - *

    Set to true if you want to preview the edited Order first without persisting it (dry run). A dry run allows checking for potential errors when trying to apply the stagedActions.

    + *

    Whether to preview the edited Order first without persisting it (dry run). A dry run allows checking for potential errors when trying to apply the stagedActions.

    *

    Order API Extensions, if any, are also called in dry runs.

    */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/OrderEditUpdate.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/OrderEditUpdate.java index e4c0c16ba6..820b6c38c6 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/OrderEditUpdate.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/OrderEditUpdate.java @@ -53,7 +53,7 @@ public interface OrderEditUpdate extends public List getActions(); /** - *

    If set to true, the Order Edit is applied on the Order without persisting it.

    + *

    Whether the Order Edit is applied on the Order without persisting it.

    * @return dryRun */ @@ -83,7 +83,7 @@ public interface OrderEditUpdate extends public void setActions(final List actions); /** - *

    If set to true, the Order Edit is applied on the Order without persisting it.

    + *

    Whether the Order Edit is applied on the Order without persisting it.

    * @param dryRun value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/OrderEditUpdateBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/OrderEditUpdateBuilder.java index 4a528bb603..7af8df5769 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/OrderEditUpdateBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/OrderEditUpdateBuilder.java @@ -113,7 +113,7 @@ public OrderEditUpdateBuilder withActions( } /** - *

    If set to true, the Order Edit is applied on the Order without persisting it.

    + *

    Whether the Order Edit is applied on the Order without persisting it.

    * @param dryRun value to be set * @return Builder */ @@ -142,7 +142,7 @@ public java.util.ListIf set to true, the Order Edit is applied on the Order without persisting it.

    + *

    Whether the Order Edit is applied on the Order without persisting it.

    * @return dryRun */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/OrderEditUpdateImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/OrderEditUpdateImpl.java index 5564ff3ec1..62bfd9c265 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/OrderEditUpdateImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/OrderEditUpdateImpl.java @@ -64,7 +64,7 @@ public java.util.ListIf set to true, the Order Edit is applied on the Order without persisting it.

    + *

    Whether the Order Edit is applied on the Order without persisting it.

    */ public Boolean getDryRun() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/StagedOrderTransitionStateAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/StagedOrderTransitionStateAction.java index d735cf7b90..fe151198f6 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/StagedOrderTransitionStateAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/StagedOrderTransitionStateAction.java @@ -51,7 +51,7 @@ public interface StagedOrderTransitionStateAction extends StagedOrderUpdateActio public StateResourceIdentifier getState(); /** - *

    Set to true to turn off validation.

    + *

    Whether to turn off validation.

    * @return force */ @@ -66,7 +66,7 @@ public interface StagedOrderTransitionStateAction extends StagedOrderUpdateActio public void setState(final StateResourceIdentifier state); /** - *

    Set to true to turn off validation.

    + *

    Whether to turn off validation.

    * @param force value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/StagedOrderTransitionStateActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/StagedOrderTransitionStateActionBuilder.java index 21a8d3b5af..1fa99a1d06 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/StagedOrderTransitionStateActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/StagedOrderTransitionStateActionBuilder.java @@ -66,7 +66,7 @@ public StagedOrderTransitionStateActionBuilder state( } /** - *

    Set to true to turn off validation.

    + *

    Whether to turn off validation.

    * @param force value to be set * @return Builder */ @@ -86,7 +86,7 @@ public com.commercetools.api.models.state.StateResourceIdentifier getState() { } /** - *

    Set to true to turn off validation.

    + *

    Whether to turn off validation.

    * @return force */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/StagedOrderTransitionStateActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/StagedOrderTransitionStateActionImpl.java index 652efc9b8e..33f0456fb0 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/StagedOrderTransitionStateActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/StagedOrderTransitionStateActionImpl.java @@ -66,7 +66,7 @@ public com.commercetools.api.models.state.StateResourceIdentifier getState() { } /** - *

    Set to true to turn off validation.

    + *

    Whether to turn off validation.

    */ public Boolean getForce() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/payment/PaymentTransitionStateAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/payment/PaymentTransitionStateAction.java index 907b2d137c..d69a7e2a68 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/payment/PaymentTransitionStateAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/payment/PaymentTransitionStateAction.java @@ -50,7 +50,7 @@ public interface PaymentTransitionStateAction extends PaymentUpdateAction { public StateResourceIdentifier getState(); /** - *

    Set to true to skip validations when transitioning to the new State.

    + *

    Whether to skip validations when transitioning to the new State.

    * @return force */ @@ -65,7 +65,7 @@ public interface PaymentTransitionStateAction extends PaymentUpdateAction { public void setState(final StateResourceIdentifier state); /** - *

    Set to true to skip validations when transitioning to the new State.

    + *

    Whether to skip validations when transitioning to the new State.

    * @param force value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/payment/PaymentTransitionStateActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/payment/PaymentTransitionStateActionBuilder.java index 0054e8f80d..d7124d9f5f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/payment/PaymentTransitionStateActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/payment/PaymentTransitionStateActionBuilder.java @@ -66,7 +66,7 @@ public PaymentTransitionStateActionBuilder state( } /** - *

    Set to true to skip validations when transitioning to the new State.

    + *

    Whether to skip validations when transitioning to the new State.

    * @param force value to be set * @return Builder */ @@ -86,7 +86,7 @@ public com.commercetools.api.models.state.StateResourceIdentifier getState() { } /** - *

    Set to true to skip validations when transitioning to the new State.

    + *

    Whether to skip validations when transitioning to the new State.

    * @return force */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/payment/PaymentTransitionStateActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/payment/PaymentTransitionStateActionImpl.java index 21e23481b2..2feb77117d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/payment/PaymentTransitionStateActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/payment/PaymentTransitionStateActionImpl.java @@ -66,7 +66,7 @@ public com.commercetools.api.models.state.StateResourceIdentifier getState() { } /** - *

    Set to true to skip validations when transitioning to the new State.

    + *

    Whether to skip validations when transitioning to the new State.

    */ public Boolean getForce() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/payment_method/PaymentMethodDraft.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/payment_method/PaymentMethodDraft.java index b605b0b25d..53f13226af 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/payment_method/PaymentMethodDraft.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/payment_method/PaymentMethodDraft.java @@ -109,7 +109,7 @@ public interface PaymentMethodDraft extends io.vrap.rmf.base.client.DraftSet to true if the PaymentMethod should be the default.

    + *

    Whether the PaymentMethod should be the default.

    *

    The default applies per Customer, Business Unit, or the combination of both (Associate).

    * @return default */ @@ -191,7 +191,7 @@ public interface PaymentMethodDraft extends io.vrap.rmf.base.client.DraftSet to true if the PaymentMethod should be the default.

    + *

    Whether the PaymentMethod should be the default.

    *

    The default applies per Customer, Business Unit, or the combination of both (Associate).

    * @param _default value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/payment_method/PaymentMethodDraftBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/payment_method/PaymentMethodDraftBuilder.java index 9ce56e78c7..30f216bbde 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/payment_method/PaymentMethodDraftBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/payment_method/PaymentMethodDraftBuilder.java @@ -266,7 +266,7 @@ public PaymentMethodDraftBuilder paymentMethodStatus( } /** - *

    Set to true if the PaymentMethod should be the default.

    + *

    Whether the PaymentMethod should be the default.

    *

    The default applies per Customer, Business Unit, or the combination of both (Associate).

    * @param _default value to be set * @return Builder @@ -406,7 +406,7 @@ public com.commercetools.api.models.payment_method.PaymentMethodStatus getPaymen } /** - *

    Set to true if the PaymentMethod should be the default.

    + *

    Whether the PaymentMethod should be the default.

    *

    The default applies per Customer, Business Unit, or the combination of both (Associate).

    * @return default */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/payment_method/PaymentMethodDraftImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/payment_method/PaymentMethodDraftImpl.java index 45b3048d86..a120e60034 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/payment_method/PaymentMethodDraftImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/payment_method/PaymentMethodDraftImpl.java @@ -154,7 +154,7 @@ public com.commercetools.api.models.payment_method.PaymentMethodStatus getPaymen } /** - *

    Set to true if the PaymentMethod should be the default.

    + *

    Whether the PaymentMethod should be the default.

    *

    The default applies per Customer, Business Unit, or the combination of both (Associate).

    */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductAddAssetAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductAddAssetAction.java index 1fc396b5f7..6305038c47 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductAddAssetAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductAddAssetAction.java @@ -56,7 +56,7 @@ public interface ProductAddAssetAction extends ProductUpdateAction { public String getSku(); /** - *

    If true, only the staged assets are updated. If false, both the current and staged assets are updated.

    + *

    Whether only staged assets are updated. If false, both current and staged assets are updated.

    * @return staged */ @@ -95,7 +95,7 @@ public interface ProductAddAssetAction extends ProductUpdateAction { public void setSku(final String sku); /** - *

    If true, only the staged assets are updated. If false, both the current and staged assets are updated.

    + *

    Whether only staged assets are updated. If false, both current and staged assets are updated.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductAddAssetActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductAddAssetActionBuilder.java index b9d26ac3d0..98d6202457 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductAddAssetActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductAddAssetActionBuilder.java @@ -61,7 +61,7 @@ public ProductAddAssetActionBuilder sku(@Nullable final String sku) { } /** - *

    If true, only the staged assets are updated. If false, both the current and staged assets are updated.

    + *

    Whether only staged assets are updated. If false, both current and staged assets are updated.

    * @param staged value to be set * @return Builder */ @@ -138,7 +138,7 @@ public String getSku() { } /** - *

    If true, only the staged assets are updated. If false, both the current and staged assets are updated.

    + *

    Whether only staged assets are updated. If false, both current and staged assets are updated.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductAddAssetActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductAddAssetActionImpl.java index 12180da4b9..f4baa80dd2 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductAddAssetActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductAddAssetActionImpl.java @@ -83,7 +83,7 @@ public String getSku() { } /** - *

    If true, only the staged assets are updated. If false, both the current and staged assets are updated.

    + *

    Whether only staged assets are updated. If false, both current and staged assets are updated.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductAddExternalImageAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductAddExternalImageAction.java index 83cef60e2d..31cab692b3 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductAddExternalImageAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductAddExternalImageAction.java @@ -65,7 +65,7 @@ public interface ProductAddExternalImageAction extends ProductUpdateAction { public Image getImage(); /** - *

    If true, only the staged images is updated. If false, both the current and staged images is updated.

    + *

    Whether only staged images are updated. If false, both current and staged images are updated.

    * @return staged */ @@ -94,7 +94,7 @@ public interface ProductAddExternalImageAction extends ProductUpdateAction { public void setImage(final Image image); /** - *

    If true, only the staged images is updated. If false, both the current and staged images is updated.

    + *

    Whether only staged images are updated. If false, both current and staged images are updated.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductAddExternalImageActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductAddExternalImageActionBuilder.java index c3d657c393..7415f35d13 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductAddExternalImageActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductAddExternalImageActionBuilder.java @@ -93,7 +93,7 @@ public ProductAddExternalImageActionBuilder image(final com.commercetools.api.mo } /** - *

    If true, only the staged images is updated. If false, both the current and staged images is updated.

    + *

    Whether only staged images are updated. If false, both current and staged images are updated.

    * @param staged value to be set * @return Builder */ @@ -133,7 +133,7 @@ public com.commercetools.api.models.common.Image getImage() { } /** - *

    If true, only the staged images is updated. If false, both the current and staged images is updated.

    + *

    Whether only staged images are updated. If false, both current and staged images are updated.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductAddExternalImageActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductAddExternalImageActionImpl.java index e81a78e09a..a87a0527b0 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductAddExternalImageActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductAddExternalImageActionImpl.java @@ -88,7 +88,7 @@ public com.commercetools.api.models.common.Image getImage() { } /** - *

    If true, only the staged images is updated. If false, both the current and staged images is updated.

    + *

    Whether only staged images are updated. If false, both current and staged images are updated.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductAddPriceAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductAddPriceAction.java index 539f9246b4..3ad974e6a7 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductAddPriceAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductAddPriceAction.java @@ -65,7 +65,7 @@ public interface ProductAddPriceAction extends ProductUpdateAction { public PriceDraft getPrice(); /** - *

    If true, only the staged prices is updated. If false, both the current and staged prices are updated.

    + *

    Whether only staged prices are updated. If false, both current and staged prices are updated.

    * @return staged */ @@ -94,7 +94,7 @@ public interface ProductAddPriceAction extends ProductUpdateAction { public void setPrice(final PriceDraft price); /** - *

    If true, only the staged prices is updated. If false, both the current and staged prices are updated.

    + *

    Whether only staged prices are updated. If false, both current and staged prices are updated.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductAddPriceActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductAddPriceActionBuilder.java index c5fd814a97..e82cfadfce 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductAddPriceActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductAddPriceActionBuilder.java @@ -93,7 +93,7 @@ public ProductAddPriceActionBuilder price(final com.commercetools.api.models.com } /** - *

    If true, only the staged prices is updated. If false, both the current and staged prices are updated.

    + *

    Whether only staged prices are updated. If false, both current and staged prices are updated.

    * @param staged value to be set * @return Builder */ @@ -133,7 +133,7 @@ public com.commercetools.api.models.common.PriceDraft getPrice() { } /** - *

    If true, only the staged prices is updated. If false, both the current and staged prices are updated.

    + *

    Whether only staged prices are updated. If false, both current and staged prices are updated.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductAddPriceActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductAddPriceActionImpl.java index cf85f1cef0..0bcc7eb4f9 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductAddPriceActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductAddPriceActionImpl.java @@ -87,7 +87,7 @@ public com.commercetools.api.models.common.PriceDraft getPrice() { } /** - *

    If true, only the staged prices is updated. If false, both the current and staged prices are updated.

    + *

    Whether only staged prices are updated. If false, both current and staged prices are updated.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductAddToCategoryAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductAddToCategoryAction.java index 7bc45cc3b3..e410fcfadb 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductAddToCategoryAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductAddToCategoryAction.java @@ -57,7 +57,7 @@ public interface ProductAddToCategoryAction extends ProductUpdateAction { public String getOrderHint(); /** - *

    If true, only the staged categories and categoryOrderHints are updated. If false, both the current and staged categories and categoryOrderHints are updated.

    + *

    Whether only staged categories and categoryOrderHints are updated. If false, both current and staged categories and categoryOrderHints are updated.

    * @return staged */ @@ -79,7 +79,7 @@ public interface ProductAddToCategoryAction extends ProductUpdateAction { public void setOrderHint(final String orderHint); /** - *

    If true, only the staged categories and categoryOrderHints are updated. If false, both the current and staged categories and categoryOrderHints are updated.

    + *

    Whether only staged categories and categoryOrderHints are updated. If false, both current and staged categories and categoryOrderHints are updated.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductAddToCategoryActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductAddToCategoryActionBuilder.java index 0606935b81..7881629595 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductAddToCategoryActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductAddToCategoryActionBuilder.java @@ -81,7 +81,7 @@ public ProductAddToCategoryActionBuilder orderHint(@Nullable final String orderH } /** - *

    If true, only the staged categories and categoryOrderHints are updated. If false, both the current and staged categories and categoryOrderHints are updated.

    + *

    Whether only staged categories and categoryOrderHints are updated. If false, both current and staged categories and categoryOrderHints are updated.

    * @param staged value to be set * @return Builder */ @@ -111,7 +111,7 @@ public String getOrderHint() { } /** - *

    If true, only the staged categories and categoryOrderHints are updated. If false, both the current and staged categories and categoryOrderHints are updated.

    + *

    Whether only staged categories and categoryOrderHints are updated. If false, both current and staged categories and categoryOrderHints are updated.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductAddToCategoryActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductAddToCategoryActionImpl.java index 511da37ef5..37a3ca544a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductAddToCategoryActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductAddToCategoryActionImpl.java @@ -76,7 +76,7 @@ public String getOrderHint() { } /** - *

    If true, only the staged categories and categoryOrderHints are updated. If false, both the current and staged categories and categoryOrderHints are updated.

    + *

    Whether only staged categories and categoryOrderHints are updated. If false, both current and staged categories and categoryOrderHints are updated.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductAddVariantAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductAddVariantAction.java index 12e4749606..3c5fac6bf3 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductAddVariantAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductAddVariantAction.java @@ -81,7 +81,7 @@ public interface ProductAddVariantAction extends ProductUpdateAction { public List getAttributes(); /** - *

    If true the new Product Variant is only staged. If false the new Product Variant is both current and staged.

    + *

    Whether the new Product Variant is only staged. If false the new Product Variant is both current and staged.

    * @return staged */ @@ -156,7 +156,7 @@ public interface ProductAddVariantAction extends ProductUpdateAction { public void setAttributes(final List attributes); /** - *

    If true the new Product Variant is only staged. If false the new Product Variant is both current and staged.

    + *

    Whether the new Product Variant is only staged. If false the new Product Variant is both current and staged.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductAddVariantActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductAddVariantActionBuilder.java index 96e046b564..667eab43d4 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductAddVariantActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductAddVariantActionBuilder.java @@ -333,7 +333,7 @@ public ProductAddVariantActionBuilder setAttributes( } /** - *

    If true the new Product Variant is only staged. If false the new Product Variant is both current and staged.

    + *

    Whether the new Product Variant is only staged. If false the new Product Variant is both current and staged.

    * @param staged value to be set * @return Builder */ @@ -483,7 +483,7 @@ public java.util.List getAttribu } /** - *

    If true the new Product Variant is only staged. If false the new Product Variant is both current and staged.

    + *

    Whether the new Product Variant is only staged. If false the new Product Variant is both current and staged.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductAddVariantActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductAddVariantActionImpl.java index 32a3d7b499..45345e8c22 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductAddVariantActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductAddVariantActionImpl.java @@ -115,7 +115,7 @@ public java.util.List getAttribu } /** - *

    If true the new Product Variant is only staged. If false the new Product Variant is both current and staged.

    + *

    Whether the new Product Variant is only staged. If false the new Product Variant is both current and staged.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductCatalogData.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductCatalogData.java index 307bb5adaa..972205c220 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductCatalogData.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductCatalogData.java @@ -36,7 +36,7 @@ public interface ProductCatalogData extends ProductCatalogDataMixin { /** - *

    If true, the current representation of the Product is retrievable in the Product Projection endpoints and indexed for Product Search.

    + *

    Whether the current representation of the Product is retrievable in the Product Projection endpoints and indexed for Product Search.

    * @return published */ @NotNull @@ -62,7 +62,7 @@ public interface ProductCatalogData extends ProductCatalogDataMixin { public ProductData getStaged(); /** - *

    true if the staged data is different from the current data.

    + *

    Whether the staged data is different from the current data.

    * @return hasStagedChanges */ @NotNull @@ -70,7 +70,7 @@ public interface ProductCatalogData extends ProductCatalogDataMixin { public Boolean getHasStagedChanges(); /** - *

    If true, the current representation of the Product is retrievable in the Product Projection endpoints and indexed for Product Search.

    + *

    Whether the current representation of the Product is retrievable in the Product Projection endpoints and indexed for Product Search.

    * @param published value to be set */ @@ -91,7 +91,7 @@ public interface ProductCatalogData extends ProductCatalogDataMixin { public void setStaged(final ProductData staged); /** - *

    true if the staged data is different from the current data.

    + *

    Whether the staged data is different from the current data.

    * @param hasStagedChanges value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductCatalogDataBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductCatalogDataBuilder.java index 50f190d1d6..ca25448c4e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductCatalogDataBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductCatalogDataBuilder.java @@ -34,7 +34,7 @@ public class ProductCatalogDataBuilder implements Builder { private Boolean hasStagedChanges; /** - *

    If true, the current representation of the Product is retrievable in the Product Projection endpoints and indexed for Product Search.

    + *

    Whether the current representation of the Product is retrievable in the Product Projection endpoints and indexed for Product Search.

    * @param published value to be set * @return Builder */ @@ -115,7 +115,7 @@ public ProductCatalogDataBuilder staged(final com.commercetools.api.models.produ } /** - *

    true if the staged data is different from the current data.

    + *

    Whether the staged data is different from the current data.

    * @param hasStagedChanges value to be set * @return Builder */ @@ -126,7 +126,7 @@ public ProductCatalogDataBuilder hasStagedChanges(final Boolean hasStagedChanges } /** - *

    If true, the current representation of the Product is retrievable in the Product Projection endpoints and indexed for Product Search.

    + *

    Whether the current representation of the Product is retrievable in the Product Projection endpoints and indexed for Product Search.

    * @return published */ @@ -153,7 +153,7 @@ public com.commercetools.api.models.product.ProductData getStaged() { } /** - *

    true if the staged data is different from the current data.

    + *

    Whether the staged data is different from the current data.

    * @return hasStagedChanges */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductCatalogDataImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductCatalogDataImpl.java index 5531c2382a..d8012caafc 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductCatalogDataImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductCatalogDataImpl.java @@ -52,7 +52,7 @@ public ProductCatalogDataImpl() { } /** - *

    If true, the current representation of the Product is retrievable in the Product Projection endpoints and indexed for Product Search.

    + *

    Whether the current representation of the Product is retrievable in the Product Projection endpoints and indexed for Product Search.

    */ public Boolean getPublished() { @@ -76,7 +76,7 @@ public com.commercetools.api.models.product.ProductData getStaged() { } /** - *

    true if the staged data is different from the current data.

    + *

    Whether the staged data is different from the current data.

    */ public Boolean getHasStagedChanges() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangeAssetNameAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangeAssetNameAction.java index d01b7372a4..212c0c3c34 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangeAssetNameAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangeAssetNameAction.java @@ -56,7 +56,7 @@ public interface ProductChangeAssetNameAction extends ProductUpdateAction { public String getSku(); /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset are updated.

    * @return staged */ @@ -103,7 +103,7 @@ public interface ProductChangeAssetNameAction extends ProductUpdateAction { public void setSku(final String sku); /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset are updated.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangeAssetNameActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangeAssetNameActionBuilder.java index 457c2c7af0..a53d5a91db 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangeAssetNameActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangeAssetNameActionBuilder.java @@ -64,7 +64,7 @@ public ProductChangeAssetNameActionBuilder sku(@Nullable final String sku) { } /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset are updated.

    * @param staged value to be set * @return Builder */ @@ -152,7 +152,7 @@ public String getSku() { } /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset are updated.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangeAssetNameActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangeAssetNameActionImpl.java index 252b6c2834..5c236fb0a0 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangeAssetNameActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangeAssetNameActionImpl.java @@ -86,7 +86,7 @@ public String getSku() { } /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset are updated.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangeAssetOrderAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangeAssetOrderAction.java index 7a0902cb97..7f780fb4bf 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangeAssetOrderAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangeAssetOrderAction.java @@ -54,7 +54,7 @@ public interface ProductChangeAssetOrderAction extends ProductUpdateAction { public String getSku(); /** - *

    If true, only the staged assets is updated. If false, both the current and staged assets are updated.

    + *

    Whether only staged assets are updated. If false, both current and staged assets are updated.

    * @return staged */ @@ -84,7 +84,7 @@ public interface ProductChangeAssetOrderAction extends ProductUpdateAction { public void setSku(final String sku); /** - *

    If true, only the staged assets is updated. If false, both the current and staged assets are updated.

    + *

    Whether only staged assets are updated. If false, both current and staged assets are updated.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangeAssetOrderActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangeAssetOrderActionBuilder.java index 2a8c23bd99..7649cb3fe3 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangeAssetOrderActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangeAssetOrderActionBuilder.java @@ -57,7 +57,7 @@ public ProductChangeAssetOrderActionBuilder sku(@Nullable final String sku) { } /** - *

    If true, only the staged assets is updated. If false, both the current and staged assets are updated.

    + *

    Whether only staged assets are updated. If false, both current and staged assets are updated.

    * @param staged value to be set * @return Builder */ @@ -124,7 +124,7 @@ public String getSku() { } /** - *

    If true, only the staged assets is updated. If false, both the current and staged assets are updated.

    + *

    Whether only staged assets are updated. If false, both current and staged assets are updated.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangeAssetOrderActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangeAssetOrderActionImpl.java index f259dc0589..a6dc52cbf5 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangeAssetOrderActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangeAssetOrderActionImpl.java @@ -79,7 +79,7 @@ public String getSku() { } /** - *

    If true, only the staged assets is updated. If false, both the current and staged assets are updated.

    + *

    Whether only staged assets are updated. If false, both current and staged assets are updated.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangeMasterVariantAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangeMasterVariantAction.java index 1db82870a0..74afb2c118 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangeMasterVariantAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangeMasterVariantAction.java @@ -52,7 +52,7 @@ public interface ProductChangeMasterVariantAction extends ProductUpdateAction { public String getSku(); /** - *

    If true, only the staged Master Variant is changed. If false, both the current and staged Master Variant are changed.

    + *

    Whether only the staged Master Variant is changed. If false, both the current and staged Master Variant are changed.

    * @return staged */ @@ -74,7 +74,7 @@ public interface ProductChangeMasterVariantAction extends ProductUpdateAction { public void setSku(final String sku); /** - *

    If true, only the staged Master Variant is changed. If false, both the current and staged Master Variant are changed.

    + *

    Whether only the staged Master Variant is changed. If false, both the current and staged Master Variant are changed.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangeMasterVariantActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangeMasterVariantActionBuilder.java index d9fdc9b5c9..dfe497f027 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangeMasterVariantActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangeMasterVariantActionBuilder.java @@ -54,7 +54,7 @@ public ProductChangeMasterVariantActionBuilder sku(@Nullable final String sku) { } /** - *

    If true, only the staged Master Variant is changed. If false, both the current and staged Master Variant are changed.

    + *

    Whether only the staged Master Variant is changed. If false, both the current and staged Master Variant are changed.

    * @param staged value to be set * @return Builder */ @@ -85,7 +85,7 @@ public String getSku() { } /** - *

    If true, only the staged Master Variant is changed. If false, both the current and staged Master Variant are changed.

    + *

    Whether only the staged Master Variant is changed. If false, both the current and staged Master Variant are changed.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangeMasterVariantActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangeMasterVariantActionImpl.java index f91ca27ea7..500d5c6cbc 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangeMasterVariantActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangeMasterVariantActionImpl.java @@ -75,7 +75,7 @@ public String getSku() { } /** - *

    If true, only the staged Master Variant is changed. If false, both the current and staged Master Variant are changed.

    + *

    Whether only the staged Master Variant is changed. If false, both the current and staged Master Variant are changed.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangeNameAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangeNameAction.java index 0923b48963..133aed864d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangeNameAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangeNameAction.java @@ -49,7 +49,7 @@ public interface ProductChangeNameAction extends ProductUpdateAction { public LocalizedString getName(); /** - *

    If true, only the staged name is updated. If false, both the current and staged name are updated.

    + *

    Whether only the staged name is updated. If false, both the current and staged name are updated.

    * @return staged */ @@ -64,7 +64,7 @@ public interface ProductChangeNameAction extends ProductUpdateAction { public void setName(final LocalizedString name); /** - *

    If true, only the staged name is updated. If false, both the current and staged name are updated.

    + *

    Whether only the staged name is updated. If false, both the current and staged name are updated.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangeNameActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangeNameActionBuilder.java index e69d08a3d6..77d4f22efb 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangeNameActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangeNameActionBuilder.java @@ -65,7 +65,7 @@ public ProductChangeNameActionBuilder name(final com.commercetools.api.models.co } /** - *

    If true, only the staged name is updated. If false, both the current and staged name are updated.

    + *

    Whether only the staged name is updated. If false, both the current and staged name are updated.

    * @param staged value to be set * @return Builder */ @@ -85,7 +85,7 @@ public com.commercetools.api.models.common.LocalizedString getName() { } /** - *

    If true, only the staged name is updated. If false, both the current and staged name are updated.

    + *

    Whether only the staged name is updated. If false, both the current and staged name are updated.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangeNameActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangeNameActionImpl.java index dcb3ddf8df..ec70b413c8 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangeNameActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangeNameActionImpl.java @@ -64,7 +64,7 @@ public com.commercetools.api.models.common.LocalizedString getName() { } /** - *

    If true, only the staged name is updated. If false, both the current and staged name are updated.

    + *

    Whether only the staged name is updated. If false, both the current and staged name are updated.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangePriceAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangePriceAction.java index 8218a78120..dc3240f6a4 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangePriceAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangePriceAction.java @@ -58,7 +58,7 @@ public interface ProductChangePriceAction extends ProductUpdateAction { public PriceDraft getPrice(); /** - *

    If true, only the staged Embedded Price is updated. If false, both the current and staged Embedded Price are updated.

    + *

    Whether only the staged Embedded Price is updated. If false, both the current and staged Embedded Price are updated.

    * @return staged */ @@ -80,7 +80,7 @@ public interface ProductChangePriceAction extends ProductUpdateAction { public void setPrice(final PriceDraft price); /** - *

    If true, only the staged Embedded Price is updated. If false, both the current and staged Embedded Price are updated.

    + *

    Whether only the staged Embedded Price is updated. If false, both the current and staged Embedded Price are updated.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangePriceActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangePriceActionBuilder.java index 2d87c3f43c..3b210d09a9 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangePriceActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangePriceActionBuilder.java @@ -79,7 +79,7 @@ public ProductChangePriceActionBuilder price(final com.commercetools.api.models. } /** - *

    If true, only the staged Embedded Price is updated. If false, both the current and staged Embedded Price are updated.

    + *

    Whether only the staged Embedded Price is updated. If false, both the current and staged Embedded Price are updated.

    * @param staged value to be set * @return Builder */ @@ -108,7 +108,7 @@ public com.commercetools.api.models.common.PriceDraft getPrice() { } /** - *

    If true, only the staged Embedded Price is updated. If false, both the current and staged Embedded Price are updated.

    + *

    Whether only the staged Embedded Price is updated. If false, both the current and staged Embedded Price are updated.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangePriceActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangePriceActionImpl.java index b1d366b401..f48f0adbfc 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangePriceActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangePriceActionImpl.java @@ -76,7 +76,7 @@ public com.commercetools.api.models.common.PriceDraft getPrice() { } /** - *

    If true, only the staged Embedded Price is updated. If false, both the current and staged Embedded Price are updated.

    + *

    Whether only the staged Embedded Price is updated. If false, both the current and staged Embedded Price are updated.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangeSlugAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangeSlugAction.java index 0b98223b78..17381cfd00 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangeSlugAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangeSlugAction.java @@ -49,7 +49,7 @@ public interface ProductChangeSlugAction extends ProductUpdateAction { public LocalizedString getSlug(); /** - *

    If true, only the staged slug is updated. If false, both the current and staged slug are updated.

    + *

    Whether only the staged slug is updated. If false, both the current and staged slug are updated.

    * @return staged */ @@ -64,7 +64,7 @@ public interface ProductChangeSlugAction extends ProductUpdateAction { public void setSlug(final LocalizedString slug); /** - *

    If true, only the staged slug is updated. If false, both the current and staged slug are updated.

    + *

    Whether only the staged slug is updated. If false, both the current and staged slug are updated.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangeSlugActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangeSlugActionBuilder.java index fdb572d5a8..5fb4944f57 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangeSlugActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangeSlugActionBuilder.java @@ -65,7 +65,7 @@ public ProductChangeSlugActionBuilder slug(final com.commercetools.api.models.co } /** - *

    If true, only the staged slug is updated. If false, both the current and staged slug are updated.

    + *

    Whether only the staged slug is updated. If false, both the current and staged slug are updated.

    * @param staged value to be set * @return Builder */ @@ -85,7 +85,7 @@ public com.commercetools.api.models.common.LocalizedString getSlug() { } /** - *

    If true, only the staged slug is updated. If false, both the current and staged slug are updated.

    + *

    Whether only the staged slug is updated. If false, both the current and staged slug are updated.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangeSlugActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangeSlugActionImpl.java index 8c7c9c28a9..3d557b67c3 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangeSlugActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductChangeSlugActionImpl.java @@ -64,7 +64,7 @@ public com.commercetools.api.models.common.LocalizedString getSlug() { } /** - *

    If true, only the staged slug is updated. If false, both the current and staged slug are updated.

    + *

    Whether only the staged slug is updated. If false, both the current and staged slug are updated.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductDraft.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductDraft.java index 8a1d752119..0c03d6fff1 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductDraft.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductDraft.java @@ -168,7 +168,7 @@ public interface ProductDraft public StateResourceIdentifier getState(); /** - *

    If true, the platform sets the published flag on the resulting ProductCatalogData to true. This makes the current representation retrievable in Product Projection endpoints and indexes it for Product Search. You can also set this flag later using the Publish update action.

    + *

    Whether the platform sets the published flag on the resulting ProductCatalogData to true. This makes the current representation retrievable in Product Projection endpoints and indexes it for Product Search. You can also set this flag later using the Publish update action.

    * @return publish */ @@ -317,7 +317,7 @@ public interface ProductDraft public void setState(final StateResourceIdentifier state); /** - *

    If true, the platform sets the published flag on the resulting ProductCatalogData to true. This makes the current representation retrievable in Product Projection endpoints and indexes it for Product Search. You can also set this flag later using the Publish update action.

    + *

    Whether the platform sets the published flag on the resulting ProductCatalogData to true. This makes the current representation retrievable in Product Projection endpoints and indexes it for Product Search. You can also set this flag later using the Publish update action.

    * @param publish value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductDraftBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductDraftBuilder.java index b389086da1..444567d04f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductDraftBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductDraftBuilder.java @@ -718,7 +718,7 @@ public ProductDraftBuilder state(@Nullable final com.commercetools.api.models.st } /** - *

    If true, the platform sets the published flag on the resulting ProductCatalogData to true. This makes the current representation retrievable in Product Projection endpoints and indexes it for Product Search. You can also set this flag later using the Publish update action.

    + *

    Whether the platform sets the published flag on the resulting ProductCatalogData to true. This makes the current representation retrievable in Product Projection endpoints and indexes it for Product Search. You can also set this flag later using the Publish update action.

    * @param publish value to be set * @return Builder */ @@ -980,7 +980,7 @@ public com.commercetools.api.models.state.StateResourceIdentifier getState() { } /** - *

    If true, the platform sets the published flag on the resulting ProductCatalogData to true. This makes the current representation retrievable in Product Projection endpoints and indexes it for Product Search. You can also set this flag later using the Publish update action.

    + *

    Whether the platform sets the published flag on the resulting ProductCatalogData to true. This makes the current representation retrievable in Product Projection endpoints and indexes it for Product Search. You can also set this flag later using the Publish update action.

    * @return publish */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductDraftImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductDraftImpl.java index d8df4f85a0..af1480012d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductDraftImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductDraftImpl.java @@ -232,7 +232,7 @@ public com.commercetools.api.models.state.StateResourceIdentifier getState() { } /** - *

    If true, the platform sets the published flag on the resulting ProductCatalogData to true. This makes the current representation retrievable in Product Projection endpoints and indexes it for Product Search. You can also set this flag later using the Publish update action.

    + *

    Whether the platform sets the published flag on the resulting ProductCatalogData to true. This makes the current representation retrievable in Product Projection endpoints and indexes it for Product Search. You can also set this flag later using the Publish update action.

    */ public Boolean getPublish() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductMoveImageToPositionAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductMoveImageToPositionAction.java index 31329bf7b3..ef723a8f1b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductMoveImageToPositionAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductMoveImageToPositionAction.java @@ -71,7 +71,7 @@ public interface ProductMoveImageToPositionAction extends ProductUpdateAction { public Long getPosition(); /** - *

    If true, only the staged images is updated. If false, both the current and staged images is updated.

    + *

    Whether only staged images are updated. If false, both current and staged images are updated.

    * @return staged */ @@ -107,7 +107,7 @@ public interface ProductMoveImageToPositionAction extends ProductUpdateAction { public void setPosition(final Long position); /** - *

    If true, only the staged images is updated. If false, both the current and staged images is updated.

    + *

    Whether only staged images are updated. If false, both current and staged images are updated.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductMoveImageToPositionActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductMoveImageToPositionActionBuilder.java index 762ddfebcd..4955c9896a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductMoveImageToPositionActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductMoveImageToPositionActionBuilder.java @@ -82,7 +82,7 @@ public ProductMoveImageToPositionActionBuilder position(final Long position) { } /** - *

    If true, only the staged images is updated. If false, both the current and staged images is updated.

    + *

    Whether only staged images are updated. If false, both current and staged images are updated.

    * @param staged value to be set * @return Builder */ @@ -131,7 +131,7 @@ public Long getPosition() { } /** - *

    If true, only the staged images is updated. If false, both the current and staged images is updated.

    + *

    Whether only staged images are updated. If false, both current and staged images are updated.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductMoveImageToPositionActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductMoveImageToPositionActionImpl.java index 9f73a2afb6..eeb88e30c1 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductMoveImageToPositionActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductMoveImageToPositionActionImpl.java @@ -98,7 +98,7 @@ public Long getPosition() { } /** - *

    If true, only the staged images is updated. If false, both the current and staged images is updated.

    + *

    Whether only staged images are updated. If false, both current and staged images are updated.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductProjection.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductProjection.java index 9167512eff..f6fa730e11 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductProjection.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductProjection.java @@ -177,7 +177,7 @@ public interface ProductProjection extends BaseResource, ProductDataLike, Produc public SearchKeywords getSearchKeywords(); /** - *

    true if the staged data is different from the current data.

    + *

    Whether the staged data is different from the current data.

    * @return hasStagedChanges */ @@ -185,7 +185,7 @@ public interface ProductProjection extends BaseResource, ProductDataLike, Produc public Boolean getHasStagedChanges(); /** - *

    true if the Product is published.

    + *

    Whether the Product is published.

    * @return published */ @@ -368,14 +368,14 @@ public interface ProductProjection extends BaseResource, ProductDataLike, Produc public void setSearchKeywords(final SearchKeywords searchKeywords); /** - *

    true if the staged data is different from the current data.

    + *

    Whether the staged data is different from the current data.

    * @param hasStagedChanges value to be set */ public void setHasStagedChanges(final Boolean hasStagedChanges); /** - *

    true if the Product is published.

    + *

    Whether the Product is published.

    * @param published value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductProjectionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductProjectionBuilder.java index 4d42a2314c..cacac9dd15 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductProjectionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductProjectionBuilder.java @@ -564,7 +564,7 @@ public ProductProjectionBuilder searchKeywords( } /** - *

    true if the staged data is different from the current data.

    + *

    Whether the staged data is different from the current data.

    * @param hasStagedChanges value to be set * @return Builder */ @@ -575,7 +575,7 @@ public ProductProjectionBuilder hasStagedChanges(@Nullable final Boolean hasStag } /** - *

    true if the Product is published.

    + *

    Whether the Product is published.

    * @param published value to be set * @return Builder */ @@ -1073,7 +1073,7 @@ public com.commercetools.api.models.product.SearchKeywords getSearchKeywords() { } /** - *

    true if the staged data is different from the current data.

    + *

    Whether the staged data is different from the current data.

    * @return hasStagedChanges */ @@ -1083,7 +1083,7 @@ public Boolean getHasStagedChanges() { } /** - *

    true if the Product is published.

    + *

    Whether the Product is published.

    * @return published */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductProjectionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductProjectionImpl.java index 13e9b910b7..566667bfc4 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductProjectionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductProjectionImpl.java @@ -251,7 +251,7 @@ public com.commercetools.api.models.product.SearchKeywords getSearchKeywords() { } /** - *

    true if the staged data is different from the current data.

    + *

    Whether the staged data is different from the current data.

    */ public Boolean getHasStagedChanges() { @@ -259,7 +259,7 @@ public Boolean getHasStagedChanges() { } /** - *

    true if the Product is published.

    + *

    Whether the Product is published.

    */ public Boolean getPublished() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductRemoveAssetAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductRemoveAssetAction.java index 14dabb5afe..78e3b95df9 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductRemoveAssetAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductRemoveAssetAction.java @@ -52,7 +52,7 @@ public interface ProductRemoveAssetAction extends ProductUpdateAction { public String getSku(); /** - *

    If true, only the staged Asset is removed. If false, both the current and staged Asset is removed.

    + *

    Whether only the staged Asset is removed. If false, both the current and staged Asset is removed.

    * @return staged */ @@ -90,7 +90,7 @@ public interface ProductRemoveAssetAction extends ProductUpdateAction { public void setSku(final String sku); /** - *

    If true, only the staged Asset is removed. If false, both the current and staged Asset is removed.

    + *

    Whether only the staged Asset is removed. If false, both the current and staged Asset is removed.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductRemoveAssetActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductRemoveAssetActionBuilder.java index e39f9de15c..82dc4dda18 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductRemoveAssetActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductRemoveAssetActionBuilder.java @@ -60,7 +60,7 @@ public ProductRemoveAssetActionBuilder sku(@Nullable final String sku) { } /** - *

    If true, only the staged Asset is removed. If false, both the current and staged Asset is removed.

    + *

    Whether only the staged Asset is removed. If false, both the current and staged Asset is removed.

    * @param staged value to be set * @return Builder */ @@ -113,7 +113,7 @@ public String getSku() { } /** - *

    If true, only the staged Asset is removed. If false, both the current and staged Asset is removed.

    + *

    Whether only the staged Asset is removed. If false, both the current and staged Asset is removed.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductRemoveAssetActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductRemoveAssetActionImpl.java index dd63cb555e..21a6232cc9 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductRemoveAssetActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductRemoveAssetActionImpl.java @@ -82,7 +82,7 @@ public String getSku() { } /** - *

    If true, only the staged Asset is removed. If false, both the current and staged Asset is removed.

    + *

    Whether only the staged Asset is removed. If false, both the current and staged Asset is removed.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductRemoveFromCategoryAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductRemoveFromCategoryAction.java index 38ab6e565c..b9afdf0709 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductRemoveFromCategoryAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductRemoveFromCategoryAction.java @@ -49,7 +49,7 @@ public interface ProductRemoveFromCategoryAction extends ProductUpdateAction { public CategoryResourceIdentifier getCategory(); /** - *

    If true, only the staged categories and categoryOrderHints are removed. If false, both the current and staged categories and categoryOrderHints are removed.

    + *

    Whether only the staged categories and categoryOrderHints are removed. If false, both the current and staged categories and categoryOrderHints are removed.

    * @return staged */ @@ -64,7 +64,7 @@ public interface ProductRemoveFromCategoryAction extends ProductUpdateAction { public void setCategory(final CategoryResourceIdentifier category); /** - *

    If true, only the staged categories and categoryOrderHints are removed. If false, both the current and staged categories and categoryOrderHints are removed.

    + *

    Whether only the staged categories and categoryOrderHints are removed. If false, both the current and staged categories and categoryOrderHints are removed.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductRemoveFromCategoryActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductRemoveFromCategoryActionBuilder.java index 3fe2a9f143..bb24f79645 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductRemoveFromCategoryActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductRemoveFromCategoryActionBuilder.java @@ -67,7 +67,7 @@ public ProductRemoveFromCategoryActionBuilder category( } /** - *

    If true, only the staged categories and categoryOrderHints are removed. If false, both the current and staged categories and categoryOrderHints are removed.

    + *

    Whether only the staged categories and categoryOrderHints are removed. If false, both the current and staged categories and categoryOrderHints are removed.

    * @param staged value to be set * @return Builder */ @@ -87,7 +87,7 @@ public com.commercetools.api.models.category.CategoryResourceIdentifier getCateg } /** - *

    If true, only the staged categories and categoryOrderHints are removed. If false, both the current and staged categories and categoryOrderHints are removed.

    + *

    Whether only the staged categories and categoryOrderHints are removed. If false, both the current and staged categories and categoryOrderHints are removed.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductRemoveFromCategoryActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductRemoveFromCategoryActionImpl.java index 93b7939dd2..e3de6b85fd 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductRemoveFromCategoryActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductRemoveFromCategoryActionImpl.java @@ -65,7 +65,7 @@ public com.commercetools.api.models.category.CategoryResourceIdentifier getCateg } /** - *

    If true, only the staged categories and categoryOrderHints are removed. If false, both the current and staged categories and categoryOrderHints are removed.

    + *

    Whether only the staged categories and categoryOrderHints are removed. If false, both the current and staged categories and categoryOrderHints are removed.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductRemoveImageAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductRemoveImageAction.java index ec8864ab00..e271076ef3 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductRemoveImageAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductRemoveImageAction.java @@ -62,7 +62,7 @@ public interface ProductRemoveImageAction extends ProductUpdateAction { public String getImageUrl(); /** - *

    If true, only the staged image is removed. If false, both the current and staged image is removed.

    + *

    Whether only the staged image is removed. If false, both the current image and staged image are removed.

    * @return staged */ @@ -91,7 +91,7 @@ public interface ProductRemoveImageAction extends ProductUpdateAction { public void setImageUrl(final String imageUrl); /** - *

    If true, only the staged image is removed. If false, both the current and staged image is removed.

    + *

    Whether only the staged image is removed. If false, both the current image and staged image are removed.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductRemoveImageActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductRemoveImageActionBuilder.java index 3e23b7528a..8e2c4b2b6e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductRemoveImageActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductRemoveImageActionBuilder.java @@ -68,7 +68,7 @@ public ProductRemoveImageActionBuilder imageUrl(final String imageUrl) { } /** - *

    If true, only the staged image is removed. If false, both the current and staged image is removed.

    + *

    Whether only the staged image is removed. If false, both the current image and staged image are removed.

    * @param staged value to be set * @return Builder */ @@ -108,7 +108,7 @@ public String getImageUrl() { } /** - *

    If true, only the staged image is removed. If false, both the current and staged image is removed.

    + *

    Whether only the staged image is removed. If false, both the current image and staged image are removed.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductRemoveImageActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductRemoveImageActionImpl.java index 9daabfbd21..97504e6d37 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductRemoveImageActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductRemoveImageActionImpl.java @@ -86,7 +86,7 @@ public String getImageUrl() { } /** - *

    If true, only the staged image is removed. If false, both the current and staged image is removed.

    + *

    Whether only the staged image is removed. If false, both the current image and staged image are removed.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductRemovePriceAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductRemovePriceAction.java index 672b4cb7e0..edc2d53cbb 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductRemovePriceAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductRemovePriceAction.java @@ -46,7 +46,7 @@ public interface ProductRemovePriceAction extends ProductUpdateAction { public String getPriceId(); /** - *

    If true, only the staged Embedded Price is removed. If false, both the current and staged Embedded Price are removed.

    + *

    Whether only the staged Embedded Price is removed. If false, both the current and staged Embedded Price are removed.

    * @return staged */ @@ -61,7 +61,7 @@ public interface ProductRemovePriceAction extends ProductUpdateAction { public void setPriceId(final String priceId); /** - *

    If true, only the staged Embedded Price is removed. If false, both the current and staged Embedded Price are removed.

    + *

    Whether only the staged Embedded Price is removed. If false, both the current and staged Embedded Price are removed.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductRemovePriceActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductRemovePriceActionBuilder.java index 895faa04ce..9b5bce9bc3 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductRemovePriceActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductRemovePriceActionBuilder.java @@ -40,7 +40,7 @@ public ProductRemovePriceActionBuilder priceId(final String priceId) { } /** - *

    If true, only the staged Embedded Price is removed. If false, both the current and staged Embedded Price are removed.

    + *

    Whether only the staged Embedded Price is removed. If false, both the current and staged Embedded Price are removed.

    * @param staged value to be set * @return Builder */ @@ -60,7 +60,7 @@ public String getPriceId() { } /** - *

    If true, only the staged Embedded Price is removed. If false, both the current and staged Embedded Price are removed.

    + *

    Whether only the staged Embedded Price is removed. If false, both the current and staged Embedded Price are removed.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductRemovePriceActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductRemovePriceActionImpl.java index b398eb924b..1267264b56 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductRemovePriceActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductRemovePriceActionImpl.java @@ -64,7 +64,7 @@ public String getPriceId() { } /** - *

    If true, only the staged Embedded Price is removed. If false, both the current and staged Embedded Price are removed.

    + *

    Whether only the staged Embedded Price is removed. If false, both the current and staged Embedded Price are removed.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductRemoveVariantAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductRemoveVariantAction.java index 5ace9b4b93..86c73fa631 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductRemoveVariantAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductRemoveVariantAction.java @@ -52,7 +52,7 @@ public interface ProductRemoveVariantAction extends ProductUpdateAction { public String getSku(); /** - *

    If true, only the staged ProductVariant is removed. If false, both the current and staged ProductVariant is removed.

    + *

    Whether only the staged ProductVariant is removed. If false, both the current and staged ProductVariant is removed.

    * @return staged */ @@ -74,7 +74,7 @@ public interface ProductRemoveVariantAction extends ProductUpdateAction { public void setSku(final String sku); /** - *

    If true, only the staged ProductVariant is removed. If false, both the current and staged ProductVariant is removed.

    + *

    Whether only the staged ProductVariant is removed. If false, both the current and staged ProductVariant is removed.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductRemoveVariantActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductRemoveVariantActionBuilder.java index dc377cd9c5..39eb6875c1 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductRemoveVariantActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductRemoveVariantActionBuilder.java @@ -54,7 +54,7 @@ public ProductRemoveVariantActionBuilder sku(@Nullable final String sku) { } /** - *

    If true, only the staged ProductVariant is removed. If false, both the current and staged ProductVariant is removed.

    + *

    Whether only the staged ProductVariant is removed. If false, both the current and staged ProductVariant is removed.

    * @param staged value to be set * @return Builder */ @@ -85,7 +85,7 @@ public String getSku() { } /** - *

    If true, only the staged ProductVariant is removed. If false, both the current and staged ProductVariant is removed.

    + *

    Whether only the staged ProductVariant is removed. If false, both the current and staged ProductVariant is removed.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductRemoveVariantActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductRemoveVariantActionImpl.java index d73e46af4e..a1b4a404db 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductRemoveVariantActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductRemoveVariantActionImpl.java @@ -75,7 +75,7 @@ public String getSku() { } /** - *

    If true, only the staged ProductVariant is removed. If false, both the current and staged ProductVariant is removed.

    + *

    Whether only the staged ProductVariant is removed. If false, both the current and staged ProductVariant is removed.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetCustomFieldAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetCustomFieldAction.java index 8b6e5a142d..98939d31fc 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetCustomFieldAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetCustomFieldAction.java @@ -54,7 +54,7 @@ public interface ProductSetAssetCustomFieldAction extends ProductUpdateAction { public String getSku(); /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @return staged */ @@ -108,7 +108,7 @@ public interface ProductSetAssetCustomFieldAction extends ProductUpdateAction { public void setSku(final String sku); /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetCustomFieldActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetCustomFieldActionBuilder.java index fad7b86f7e..9cc31ac7b2 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetCustomFieldActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetCustomFieldActionBuilder.java @@ -66,7 +66,7 @@ public ProductSetAssetCustomFieldActionBuilder sku(@Nullable final String sku) { } /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @param staged value to be set * @return Builder */ @@ -141,7 +141,7 @@ public String getSku() { } /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetCustomFieldActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetCustomFieldActionImpl.java index 0a8c1b01f5..5d8d98dc9f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetCustomFieldActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetCustomFieldActionImpl.java @@ -89,7 +89,7 @@ public String getSku() { } /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetCustomTypeAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetCustomTypeAction.java index a6ee13f47a..3fc3cc152d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetCustomTypeAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetCustomTypeAction.java @@ -55,7 +55,7 @@ public interface ProductSetAssetCustomTypeAction extends ProductUpdateAction { public String getSku(); /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @return staged */ @@ -110,7 +110,7 @@ public interface ProductSetAssetCustomTypeAction extends ProductUpdateAction { public void setSku(final String sku); /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetCustomTypeActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetCustomTypeActionBuilder.java index 011ff48944..be762e4d1c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetCustomTypeActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetCustomTypeActionBuilder.java @@ -67,7 +67,7 @@ public ProductSetAssetCustomTypeActionBuilder sku(@Nullable final String sku) { } /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @param staged value to be set * @return Builder */ @@ -195,7 +195,7 @@ public String getSku() { } /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetCustomTypeActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetCustomTypeActionImpl.java index 674f7b2ac4..2c4496d5ee 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetCustomTypeActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetCustomTypeActionImpl.java @@ -90,7 +90,7 @@ public String getSku() { } /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetDescriptionAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetDescriptionAction.java index b81f93eb15..753fae7efe 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetDescriptionAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetDescriptionAction.java @@ -54,7 +54,7 @@ public interface ProductSetAssetDescriptionAction extends ProductUpdateAction { public String getSku(); /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @return staged */ @@ -100,7 +100,7 @@ public interface ProductSetAssetDescriptionAction extends ProductUpdateAction { public void setSku(final String sku); /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetDescriptionActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetDescriptionActionBuilder.java index 7b6348d794..753f7cb56d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetDescriptionActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetDescriptionActionBuilder.java @@ -64,7 +64,7 @@ public ProductSetAssetDescriptionActionBuilder sku(@Nullable final String sku) { } /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @param staged value to be set * @return Builder */ @@ -153,7 +153,7 @@ public String getSku() { } /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetDescriptionActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetDescriptionActionImpl.java index 35641238ea..4e8df99087 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetDescriptionActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetDescriptionActionImpl.java @@ -86,7 +86,7 @@ public String getSku() { } /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetKeyAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetKeyAction.java index df9a62640d..5e6fae6622 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetKeyAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetKeyAction.java @@ -54,7 +54,7 @@ public interface ProductSetAssetKeyAction extends ProductUpdateAction { public String getSku(); /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @return staged */ @@ -92,7 +92,7 @@ public interface ProductSetAssetKeyAction extends ProductUpdateAction { public void setSku(final String sku); /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetKeyActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetKeyActionBuilder.java index 3aa2c7a29d..a87b4039aa 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetKeyActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetKeyActionBuilder.java @@ -60,7 +60,7 @@ public ProductSetAssetKeyActionBuilder sku(@Nullable final String sku) { } /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @param staged value to be set * @return Builder */ @@ -113,7 +113,7 @@ public String getSku() { } /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetKeyActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetKeyActionImpl.java index a2ae5ad477..d28e3ed3e9 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetKeyActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetKeyActionImpl.java @@ -82,7 +82,7 @@ public String getSku() { } /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetSourcesAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetSourcesAction.java index 923df2efa6..c493dc2bca 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetSourcesAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetSourcesAction.java @@ -57,7 +57,7 @@ public interface ProductSetAssetSourcesAction extends ProductUpdateAction { public String getSku(); /** - *

    If true, only the staged Asset is updated. If false both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @return staged */ @@ -104,7 +104,7 @@ public interface ProductSetAssetSourcesAction extends ProductUpdateAction { public void setSku(final String sku); /** - *

    If true, only the staged Asset is updated. If false both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetSourcesActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetSourcesActionBuilder.java index 9bc3134476..7e9f18e588 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetSourcesActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetSourcesActionBuilder.java @@ -64,7 +64,7 @@ public ProductSetAssetSourcesActionBuilder sku(@Nullable final String sku) { } /** - *

    If true, only the staged Asset is updated. If false both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @param staged value to be set * @return Builder */ @@ -206,7 +206,7 @@ public String getSku() { } /** - *

    If true, only the staged Asset is updated. If false both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetSourcesActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetSourcesActionImpl.java index a45b05ed6f..24f877a176 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetSourcesActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetSourcesActionImpl.java @@ -86,7 +86,7 @@ public String getSku() { } /** - *

    If true, only the staged Asset is updated. If false both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetTagsAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetTagsAction.java index bbb1e774ae..40384df13d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetTagsAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetTagsAction.java @@ -52,7 +52,7 @@ public interface ProductSetAssetTagsAction extends ProductUpdateAction { public String getSku(); /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @return staged */ @@ -98,7 +98,7 @@ public interface ProductSetAssetTagsAction extends ProductUpdateAction { public void setSku(final String sku); /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetTagsActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetTagsActionBuilder.java index 0e729380f3..13b8f89348 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetTagsActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetTagsActionBuilder.java @@ -63,7 +63,7 @@ public ProductSetAssetTagsActionBuilder sku(@Nullable final String sku) { } /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @param staged value to be set * @return Builder */ @@ -152,7 +152,7 @@ public String getSku() { } /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetTagsActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetTagsActionImpl.java index 0fc1e65b08..03edebae7f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetTagsActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAssetTagsActionImpl.java @@ -86,7 +86,7 @@ public String getSku() { } /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAttributeAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAttributeAction.java index bdfadca1c3..b828280016 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAttributeAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAttributeAction.java @@ -79,7 +79,7 @@ public interface ProductSetAttributeAction extends ProductUpdateAction { public Object getValue(); /** - *

    If true, only the staged Attribute is set. If false, both the current and staged Attributes are set.

    + *

    Whether only the staged Attribute is set. If false, both the current and staged Attributes are set.

    * @return staged */ @@ -124,7 +124,7 @@ public interface ProductSetAttributeAction extends ProductUpdateAction { public void setValue(final Object value); /** - *

    If true, only the staged Attribute is set. If false, both the current and staged Attributes are set.

    + *

    Whether only the staged Attribute is set. If false, both the current and staged Attributes are set.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAttributeActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAttributeActionBuilder.java index 85528facf8..31a956ff9d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAttributeActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAttributeActionBuilder.java @@ -91,7 +91,7 @@ public ProductSetAttributeActionBuilder value(@Nullable final java.lang.Object v } /** - *

    If true, only the staged Attribute is set. If false, both the current and staged Attributes are set.

    + *

    Whether only the staged Attribute is set. If false, both the current and staged Attributes are set.

    * @param staged value to be set * @return Builder */ @@ -150,7 +150,7 @@ public java.lang.Object getValue() { } /** - *

    If true, only the staged Attribute is set. If false, both the current and staged Attributes are set.

    + *

    Whether only the staged Attribute is set. If false, both the current and staged Attributes are set.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAttributeActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAttributeActionImpl.java index fc16be6620..62b2f1eade 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAttributeActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAttributeActionImpl.java @@ -107,7 +107,7 @@ public java.lang.Object getValue() { } /** - *

    If true, only the staged Attribute is set. If false, both the current and staged Attributes are set.

    + *

    Whether only the staged Attribute is set. If false, both the current and staged Attributes are set.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAttributeInAllVariantsAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAttributeInAllVariantsAction.java index 03b6540713..0762130052 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAttributeInAllVariantsAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAttributeInAllVariantsAction.java @@ -63,7 +63,7 @@ public interface ProductSetAttributeInAllVariantsAction extends ProductUpdateAct public Object getValue(); /** - *

    If true, only the staged Attributes are set. If false, both the current and staged Attributes are set.

    + *

    Whether only the staged Attributes are set. If false, both the current and staged Attributes are set.

    * @return staged */ @@ -94,7 +94,7 @@ public interface ProductSetAttributeInAllVariantsAction extends ProductUpdateAct public void setValue(final Object value); /** - *

    If true, only the staged Attributes are set. If false, both the current and staged Attributes are set.

    + *

    Whether only the staged Attributes are set. If false, both the current and staged Attributes are set.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAttributeInAllVariantsActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAttributeInAllVariantsActionBuilder.java index 0484c39df6..7ffdf4f6d8 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAttributeInAllVariantsActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAttributeInAllVariantsActionBuilder.java @@ -63,7 +63,7 @@ public ProductSetAttributeInAllVariantsActionBuilder value(@Nullable final java. } /** - *

    If true, only the staged Attributes are set. If false, both the current and staged Attributes are set.

    + *

    Whether only the staged Attributes are set. If false, both the current and staged Attributes are set.

    * @param staged value to be set * @return Builder */ @@ -102,7 +102,7 @@ public java.lang.Object getValue() { } /** - *

    If true, only the staged Attributes are set. If false, both the current and staged Attributes are set.

    + *

    Whether only the staged Attributes are set. If false, both the current and staged Attributes are set.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAttributeInAllVariantsActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAttributeInAllVariantsActionImpl.java index 58abb5c6ec..fb2e1ece3f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAttributeInAllVariantsActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetAttributeInAllVariantsActionImpl.java @@ -84,7 +84,7 @@ public java.lang.Object getValue() { } /** - *

    If true, only the staged Attributes are set. If false, both the current and staged Attributes are set.

    + *

    Whether only the staged Attributes are set. If false, both the current and staged Attributes are set.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetCategoryOrderHintAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetCategoryOrderHintAction.java index 6eacd511d5..25f0f4b326 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetCategoryOrderHintAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetCategoryOrderHintAction.java @@ -54,7 +54,7 @@ public interface ProductSetCategoryOrderHintAction extends ProductUpdateAction { public String getOrderHint(); /** - *

    If true, only the staged categoryOrderHints is updated. If false, both the current and staged categoryOrderHints are updated.

    + *

    Whether only the staged categoryOrderHints is updated. If false, both the current and staged categoryOrderHints are updated.

    * @return staged */ @@ -76,7 +76,7 @@ public interface ProductSetCategoryOrderHintAction extends ProductUpdateAction { public void setOrderHint(final String orderHint); /** - *

    If true, only the staged categoryOrderHints is updated. If false, both the current and staged categoryOrderHints are updated.

    + *

    Whether only the staged categoryOrderHints is updated. If false, both the current and staged categoryOrderHints are updated.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetCategoryOrderHintActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetCategoryOrderHintActionBuilder.java index 5af296aed6..6984339dd6 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetCategoryOrderHintActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetCategoryOrderHintActionBuilder.java @@ -54,7 +54,7 @@ public ProductSetCategoryOrderHintActionBuilder orderHint(@Nullable final String } /** - *

    If true, only the staged categoryOrderHints is updated. If false, both the current and staged categoryOrderHints are updated.

    + *

    Whether only the staged categoryOrderHints is updated. If false, both the current and staged categoryOrderHints are updated.

    * @param staged value to be set * @return Builder */ @@ -84,7 +84,7 @@ public String getOrderHint() { } /** - *

    If true, only the staged categoryOrderHints is updated. If false, both the current and staged categoryOrderHints are updated.

    + *

    Whether only the staged categoryOrderHints is updated. If false, both the current and staged categoryOrderHints are updated.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetCategoryOrderHintActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetCategoryOrderHintActionImpl.java index 0cd90aa7b9..2884b7c43a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetCategoryOrderHintActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetCategoryOrderHintActionImpl.java @@ -75,7 +75,7 @@ public String getOrderHint() { } /** - *

    If true, only the staged categoryOrderHints is updated. If false, both the current and staged categoryOrderHints are updated.

    + *

    Whether only the staged categoryOrderHints is updated. If false, both the current and staged categoryOrderHints are updated.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetDefaultVariantAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetDefaultVariantAction.java index 9743ba76dc..ed97452bee 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetDefaultVariantAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetDefaultVariantAction.java @@ -46,7 +46,7 @@ public interface ProductSetDefaultVariantAction extends ProductUpdateAction { public VariantResourceIdentifier getVariant(); /** - *

    If true, only the staged defaultVariant is updated. If false, both the current and staged defaultVariant are updated.

    + *

    Whether only the staged defaultVariant is updated. If false, both the current and staged defaultVariant are updated.

    * @return staged */ @@ -61,7 +61,7 @@ public interface ProductSetDefaultVariantAction extends ProductUpdateAction { public void setVariant(final VariantResourceIdentifier variant); /** - *

    If true, only the staged defaultVariant is updated. If false, both the current and staged defaultVariant are updated.

    + *

    Whether only the staged defaultVariant is updated. If false, both the current and staged defaultVariant are updated.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetDefaultVariantActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetDefaultVariantActionBuilder.java index a5e51a2953..bc7b3cfdeb 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetDefaultVariantActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetDefaultVariantActionBuilder.java @@ -67,7 +67,7 @@ public ProductSetDefaultVariantActionBuilder variant( } /** - *

    If true, only the staged defaultVariant is updated. If false, both the current and staged defaultVariant are updated.

    + *

    Whether only the staged defaultVariant is updated. If false, both the current and staged defaultVariant are updated.

    * @param staged value to be set * @return Builder */ @@ -88,7 +88,7 @@ public com.commercetools.api.models.variant.VariantResourceIdentifier getVariant } /** - *

    If true, only the staged defaultVariant is updated. If false, both the current and staged defaultVariant are updated.

    + *

    Whether only the staged defaultVariant is updated. If false, both the current and staged defaultVariant are updated.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetDefaultVariantActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetDefaultVariantActionImpl.java index 46487382d6..9f5ba93f9e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetDefaultVariantActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetDefaultVariantActionImpl.java @@ -65,7 +65,7 @@ public com.commercetools.api.models.variant.VariantResourceIdentifier getVariant } /** - *

    If true, only the staged defaultVariant is updated. If false, both the current and staged defaultVariant are updated.

    + *

    Whether only the staged defaultVariant is updated. If false, both the current and staged defaultVariant are updated.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetDescriptionAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetDescriptionAction.java index 6900e2467c..0997133c50 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetDescriptionAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetDescriptionAction.java @@ -46,7 +46,7 @@ public interface ProductSetDescriptionAction extends ProductUpdateAction { public LocalizedString getDescription(); /** - *

    If true, only the staged description is updated. If false, both the current and staged description are updated.

    + *

    Whether only the staged description is updated. If false, both the current and staged description are updated.

    * @return staged */ @@ -61,7 +61,7 @@ public interface ProductSetDescriptionAction extends ProductUpdateAction { public void setDescription(final LocalizedString description); /** - *

    If true, only the staged description is updated. If false, both the current and staged description are updated.

    + *

    Whether only the staged description is updated. If false, both the current and staged description are updated.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetDescriptionActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetDescriptionActionBuilder.java index 52867845cc..26e79a0970 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetDescriptionActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetDescriptionActionBuilder.java @@ -66,7 +66,7 @@ public ProductSetDescriptionActionBuilder description( } /** - *

    If true, only the staged description is updated. If false, both the current and staged description are updated.

    + *

    Whether only the staged description is updated. If false, both the current and staged description are updated.

    * @param staged value to be set * @return Builder */ @@ -87,7 +87,7 @@ public com.commercetools.api.models.common.LocalizedString getDescription() { } /** - *

    If true, only the staged description is updated. If false, both the current and staged description are updated.

    + *

    Whether only the staged description is updated. If false, both the current and staged description are updated.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetDescriptionActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetDescriptionActionImpl.java index 925d921502..32e4953733 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetDescriptionActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetDescriptionActionImpl.java @@ -65,7 +65,7 @@ public com.commercetools.api.models.common.LocalizedString getDescription() { } /** - *

    If true, only the staged description is updated. If false, both the current and staged description are updated.

    + *

    Whether only the staged description is updated. If false, both the current and staged description are updated.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetDiscountedPriceAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetDiscountedPriceAction.java index adeea886e2..7b8182ddc2 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetDiscountedPriceAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetDiscountedPriceAction.java @@ -48,7 +48,7 @@ public interface ProductSetDiscountedPriceAction extends ProductUpdateAction { public String getPriceId(); /** - *

    If true, only the staged Embedded Price is updated. If false, both the current and staged Embedded Price are updated.

    + *

    Whether only the staged Embedded Price is updated. If false, both the current and staged Embedded Price are updated.

    * @return staged */ @@ -71,7 +71,7 @@ public interface ProductSetDiscountedPriceAction extends ProductUpdateAction { public void setPriceId(final String priceId); /** - *

    If true, only the staged Embedded Price is updated. If false, both the current and staged Embedded Price are updated.

    + *

    Whether only the staged Embedded Price is updated. If false, both the current and staged Embedded Price are updated.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetDiscountedPriceActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetDiscountedPriceActionBuilder.java index 7f0b67a5c5..832229e734 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetDiscountedPriceActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetDiscountedPriceActionBuilder.java @@ -44,7 +44,7 @@ public ProductSetDiscountedPriceActionBuilder priceId(final String priceId) { } /** - *

    If true, only the staged Embedded Price is updated. If false, both the current and staged Embedded Price are updated.

    + *

    Whether only the staged Embedded Price is updated. If false, both the current and staged Embedded Price are updated.

    * @param staged value to be set * @return Builder */ @@ -100,7 +100,7 @@ public String getPriceId() { } /** - *

    If true, only the staged Embedded Price is updated. If false, both the current and staged Embedded Price are updated.

    + *

    Whether only the staged Embedded Price is updated. If false, both the current and staged Embedded Price are updated.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetDiscountedPriceActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetDiscountedPriceActionImpl.java index a3d63c2ccd..6cb06da1b5 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetDiscountedPriceActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetDiscountedPriceActionImpl.java @@ -68,7 +68,7 @@ public String getPriceId() { } /** - *

    If true, only the staged Embedded Price is updated. If false, both the current and staged Embedded Price are updated.

    + *

    Whether only the staged Embedded Price is updated. If false, both the current and staged Embedded Price are updated.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetImageLabelAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetImageLabelAction.java index 86e4ccadd0..690b86d684 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetImageLabelAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetImageLabelAction.java @@ -70,7 +70,7 @@ public interface ProductSetImageLabelAction extends ProductUpdateAction { public String getLabel(); /** - *

    If true, only the staged image is updated. If false, both the current and staged image is updated.

    + *

    Whether only the staged image is updated. If false, both the current and staged image is updated.

    * @return staged */ @@ -106,7 +106,7 @@ public interface ProductSetImageLabelAction extends ProductUpdateAction { public void setLabel(final String label); /** - *

    If true, only the staged image is updated. If false, both the current and staged image is updated.

    + *

    Whether only the staged image is updated. If false, both the current and staged image is updated.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetImageLabelActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetImageLabelActionBuilder.java index bf6b085c55..6d166916f8 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetImageLabelActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetImageLabelActionBuilder.java @@ -82,7 +82,7 @@ public ProductSetImageLabelActionBuilder label(@Nullable final String label) { } /** - *

    If true, only the staged image is updated. If false, both the current and staged image is updated.

    + *

    Whether only the staged image is updated. If false, both the current and staged image is updated.

    * @param staged value to be set * @return Builder */ @@ -132,7 +132,7 @@ public String getLabel() { } /** - *

    If true, only the staged image is updated. If false, both the current and staged image is updated.

    + *

    Whether only the staged image is updated. If false, both the current and staged image is updated.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetImageLabelActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetImageLabelActionImpl.java index 9c7d0f3bf7..1683f3209d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetImageLabelActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetImageLabelActionImpl.java @@ -98,7 +98,7 @@ public String getLabel() { } /** - *

    If true, only the staged image is updated. If false, both the current and staged image is updated.

    + *

    Whether only the staged image is updated. If false, both the current and staged image is updated.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetMetaDescriptionAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetMetaDescriptionAction.java index 35b5940f89..1c909f7487 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetMetaDescriptionAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetMetaDescriptionAction.java @@ -46,7 +46,7 @@ public interface ProductSetMetaDescriptionAction extends ProductUpdateAction { public LocalizedString getMetaDescription(); /** - *

    If true, only the staged metaDescription is updated. If false, both the current and staged metaDescription are updated.

    + *

    Whether only the staged metaDescription is updated. If false, both the current and staged metaDescription are updated.

    * @return staged */ @@ -61,7 +61,7 @@ public interface ProductSetMetaDescriptionAction extends ProductUpdateAction { public void setMetaDescription(final LocalizedString metaDescription); /** - *

    If true, only the staged metaDescription is updated. If false, both the current and staged metaDescription are updated.

    + *

    Whether only the staged metaDescription is updated. If false, both the current and staged metaDescription are updated.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetMetaDescriptionActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetMetaDescriptionActionBuilder.java index 66fc7a3535..75866b745a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetMetaDescriptionActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetMetaDescriptionActionBuilder.java @@ -66,7 +66,7 @@ public ProductSetMetaDescriptionActionBuilder metaDescription( } /** - *

    If true, only the staged metaDescription is updated. If false, both the current and staged metaDescription are updated.

    + *

    Whether only the staged metaDescription is updated. If false, both the current and staged metaDescription are updated.

    * @param staged value to be set * @return Builder */ @@ -87,7 +87,7 @@ public com.commercetools.api.models.common.LocalizedString getMetaDescription() } /** - *

    If true, only the staged metaDescription is updated. If false, both the current and staged metaDescription are updated.

    + *

    Whether only the staged metaDescription is updated. If false, both the current and staged metaDescription are updated.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetMetaDescriptionActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetMetaDescriptionActionImpl.java index 9416ab7937..10a45f61fe 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetMetaDescriptionActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetMetaDescriptionActionImpl.java @@ -65,7 +65,7 @@ public com.commercetools.api.models.common.LocalizedString getMetaDescription() } /** - *

    If true, only the staged metaDescription is updated. If false, both the current and staged metaDescription are updated.

    + *

    Whether only the staged metaDescription is updated. If false, both the current and staged metaDescription are updated.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetMetaKeywordsAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetMetaKeywordsAction.java index c6c9490538..f250ec6938 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetMetaKeywordsAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetMetaKeywordsAction.java @@ -46,7 +46,7 @@ public interface ProductSetMetaKeywordsAction extends ProductUpdateAction { public LocalizedString getMetaKeywords(); /** - *

    If true, only the staged metaKeywords is updated. If false, both the current and staged metaKeywords are updated.

    + *

    Whether only the staged metaKeywords is updated. If false, both the current and staged metaKeywords are updated.

    * @return staged */ @@ -61,7 +61,7 @@ public interface ProductSetMetaKeywordsAction extends ProductUpdateAction { public void setMetaKeywords(final LocalizedString metaKeywords); /** - *

    If true, only the staged metaKeywords is updated. If false, both the current and staged metaKeywords are updated.

    + *

    Whether only the staged metaKeywords is updated. If false, both the current and staged metaKeywords are updated.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetMetaKeywordsActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetMetaKeywordsActionBuilder.java index aeca2bbe4e..6a9b7414be 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetMetaKeywordsActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetMetaKeywordsActionBuilder.java @@ -66,7 +66,7 @@ public ProductSetMetaKeywordsActionBuilder metaKeywords( } /** - *

    If true, only the staged metaKeywords is updated. If false, both the current and staged metaKeywords are updated.

    + *

    Whether only the staged metaKeywords is updated. If false, both the current and staged metaKeywords are updated.

    * @param staged value to be set * @return Builder */ @@ -87,7 +87,7 @@ public com.commercetools.api.models.common.LocalizedString getMetaKeywords() { } /** - *

    If true, only the staged metaKeywords is updated. If false, both the current and staged metaKeywords are updated.

    + *

    Whether only the staged metaKeywords is updated. If false, both the current and staged metaKeywords are updated.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetMetaKeywordsActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetMetaKeywordsActionImpl.java index 77c2ca7516..acb1a9aeaa 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetMetaKeywordsActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetMetaKeywordsActionImpl.java @@ -65,7 +65,7 @@ public com.commercetools.api.models.common.LocalizedString getMetaKeywords() { } /** - *

    If true, only the staged metaKeywords is updated. If false, both the current and staged metaKeywords are updated.

    + *

    Whether only the staged metaKeywords is updated. If false, both the current and staged metaKeywords are updated.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetMetaTitleAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetMetaTitleAction.java index 35fd711c84..e5bf5af71d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetMetaTitleAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetMetaTitleAction.java @@ -46,7 +46,7 @@ public interface ProductSetMetaTitleAction extends ProductUpdateAction { public LocalizedString getMetaTitle(); /** - *

    If true, only the staged metaTitle is updated. If false, both the current and staged metaTitle are updated.

    + *

    Whether only the staged metaTitle is updated. If false, both the current and staged metaTitle are updated.

    * @return staged */ @@ -61,7 +61,7 @@ public interface ProductSetMetaTitleAction extends ProductUpdateAction { public void setMetaTitle(final LocalizedString metaTitle); /** - *

    If true, only the staged metaTitle is updated. If false, both the current and staged metaTitle are updated.

    + *

    Whether only the staged metaTitle is updated. If false, both the current and staged metaTitle are updated.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetMetaTitleActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetMetaTitleActionBuilder.java index 217d1eedca..6cf72d63db 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetMetaTitleActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetMetaTitleActionBuilder.java @@ -66,7 +66,7 @@ public ProductSetMetaTitleActionBuilder metaTitle( } /** - *

    If true, only the staged metaTitle is updated. If false, both the current and staged metaTitle are updated.

    + *

    Whether only the staged metaTitle is updated. If false, both the current and staged metaTitle are updated.

    * @param staged value to be set * @return Builder */ @@ -87,7 +87,7 @@ public com.commercetools.api.models.common.LocalizedString getMetaTitle() { } /** - *

    If true, only the staged metaTitle is updated. If false, both the current and staged metaTitle are updated.

    + *

    Whether only the staged metaTitle is updated. If false, both the current and staged metaTitle are updated.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetMetaTitleActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetMetaTitleActionImpl.java index d28cf99693..8345667785 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetMetaTitleActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetMetaTitleActionImpl.java @@ -65,7 +65,7 @@ public com.commercetools.api.models.common.LocalizedString getMetaTitle() { } /** - *

    If true, only the staged metaTitle is updated. If false, both the current and staged metaTitle are updated.

    + *

    Whether only the staged metaTitle is updated. If false, both the current and staged metaTitle are updated.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetPriceKeyAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetPriceKeyAction.java index ae7c9a6071..28ceb055ca 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetPriceKeyAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetPriceKeyAction.java @@ -46,7 +46,7 @@ public interface ProductSetPriceKeyAction extends ProductUpdateAction { public String getPriceId(); /** - *

    If true, only the staged Embedded Price is updated. If false, both the current and staged Embedded Price are updated.

    + *

    Whether only the staged Embedded Price is updated. If false, both the current and staged Embedded Price are updated.

    * @return staged */ @@ -69,7 +69,7 @@ public interface ProductSetPriceKeyAction extends ProductUpdateAction { public void setPriceId(final String priceId); /** - *

    If true, only the staged Embedded Price is updated. If false, both the current and staged Embedded Price are updated.

    + *

    Whether only the staged Embedded Price is updated. If false, both the current and staged Embedded Price are updated.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetPriceKeyActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetPriceKeyActionBuilder.java index 0f0944d5b8..bd7a4c957f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetPriceKeyActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetPriceKeyActionBuilder.java @@ -43,7 +43,7 @@ public ProductSetPriceKeyActionBuilder priceId(final String priceId) { } /** - *

    If true, only the staged Embedded Price is updated. If false, both the current and staged Embedded Price are updated.

    + *

    Whether only the staged Embedded Price is updated. If false, both the current and staged Embedded Price are updated.

    * @param staged value to be set * @return Builder */ @@ -74,7 +74,7 @@ public String getPriceId() { } /** - *

    If true, only the staged Embedded Price is updated. If false, both the current and staged Embedded Price are updated.

    + *

    Whether only the staged Embedded Price is updated. If false, both the current and staged Embedded Price are updated.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetPriceKeyActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetPriceKeyActionImpl.java index 686c3b2706..90dd634feb 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetPriceKeyActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetPriceKeyActionImpl.java @@ -67,7 +67,7 @@ public String getPriceId() { } /** - *

    If true, only the staged Embedded Price is updated. If false, both the current and staged Embedded Price are updated.

    + *

    Whether only the staged Embedded Price is updated. If false, both the current and staged Embedded Price are updated.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetPricesAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetPricesAction.java index 3fb4e90265..0dd672e0fa 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetPricesAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetPricesAction.java @@ -66,7 +66,7 @@ public interface ProductSetPricesAction extends ProductUpdateAction { public List getPrices(); /** - *

    If true, only the staged ProductVariant is updated. If false, both the current and staged ProductVariant are updated.

    + *

    Whether only the staged ProductVariant is updated. If false, both the current and staged ProductVariant are updated.

    * @return staged */ @@ -103,7 +103,7 @@ public interface ProductSetPricesAction extends ProductUpdateAction { public void setPrices(final List prices); /** - *

    If true, only the staged ProductVariant is updated. If false, both the current and staged ProductVariant are updated.

    + *

    Whether only the staged ProductVariant is updated. If false, both the current and staged ProductVariant are updated.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetPricesActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetPricesActionBuilder.java index fd6fc75bc6..cec384d2df 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetPricesActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetPricesActionBuilder.java @@ -145,7 +145,7 @@ public ProductSetPricesActionBuilder setPrices( } /** - *

    If true, only the staged ProductVariant is updated. If false, both the current and staged ProductVariant are updated.

    + *

    Whether only the staged ProductVariant is updated. If false, both the current and staged ProductVariant are updated.

    * @param staged value to be set * @return Builder */ @@ -185,7 +185,7 @@ public java.util.List getPrices( } /** - *

    If true, only the staged ProductVariant is updated. If false, both the current and staged ProductVariant are updated.

    + *

    Whether only the staged ProductVariant is updated. If false, both the current and staged ProductVariant are updated.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetPricesActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetPricesActionImpl.java index 878d6abe75..0bf3e6fc32 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetPricesActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetPricesActionImpl.java @@ -87,7 +87,7 @@ public java.util.List getPrices( } /** - *

    If true, only the staged ProductVariant is updated. If false, both the current and staged ProductVariant are updated.

    + *

    Whether only the staged ProductVariant is updated. If false, both the current and staged ProductVariant are updated.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetProductAttributeAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetProductAttributeAction.java index 0d9a6ac705..45af395f80 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetProductAttributeAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetProductAttributeAction.java @@ -63,7 +63,7 @@ public interface ProductSetProductAttributeAction extends ProductUpdateAction { public Object getValue(); /** - *

    If true, only the staged Attribute is set. If false, both the current and staged Attributes are set.

    + *

    Whether only the staged Attribute is set. If false, both the current and staged Attributes are set.

    * @return staged */ @@ -94,7 +94,7 @@ public interface ProductSetProductAttributeAction extends ProductUpdateAction { public void setValue(final Object value); /** - *

    If true, only the staged Attribute is set. If false, both the current and staged Attributes are set.

    + *

    Whether only the staged Attribute is set. If false, both the current and staged Attributes are set.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetProductAttributeActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetProductAttributeActionBuilder.java index 094d4ffb36..c7d51e648e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetProductAttributeActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetProductAttributeActionBuilder.java @@ -63,7 +63,7 @@ public ProductSetProductAttributeActionBuilder value(@Nullable final java.lang.O } /** - *

    If true, only the staged Attribute is set. If false, both the current and staged Attributes are set.

    + *

    Whether only the staged Attribute is set. If false, both the current and staged Attributes are set.

    * @param staged value to be set * @return Builder */ @@ -102,7 +102,7 @@ public java.lang.Object getValue() { } /** - *

    If true, only the staged Attribute is set. If false, both the current and staged Attributes are set.

    + *

    Whether only the staged Attribute is set. If false, both the current and staged Attributes are set.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetProductAttributeActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetProductAttributeActionImpl.java index 9768a61054..5caa2f6b83 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetProductAttributeActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetProductAttributeActionImpl.java @@ -84,7 +84,7 @@ public java.lang.Object getValue() { } /** - *

    If true, only the staged Attribute is set. If false, both the current and staged Attributes are set.

    + *

    Whether only the staged Attribute is set. If false, both the current and staged Attributes are set.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetProductPriceCustomFieldAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetProductPriceCustomFieldAction.java index 68b65e27f1..da097a04c2 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetProductPriceCustomFieldAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetProductPriceCustomFieldAction.java @@ -47,7 +47,7 @@ public interface ProductSetProductPriceCustomFieldAction extends ProductUpdateAc public String getPriceId(); /** - *

    If true, only the staged Embedded Price Custom Field is updated. If false, both the current and staged Embedded Price Custom Field are updated.

    + *

    Whether only the staged Embedded Price Custom Field is updated. If false, both the current and staged Embedded Price Custom Field are updated.

    * @return staged */ @@ -78,7 +78,7 @@ public interface ProductSetProductPriceCustomFieldAction extends ProductUpdateAc public void setPriceId(final String priceId); /** - *

    If true, only the staged Embedded Price Custom Field is updated. If false, both the current and staged Embedded Price Custom Field are updated.

    + *

    Whether only the staged Embedded Price Custom Field is updated. If false, both the current and staged Embedded Price Custom Field are updated.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetProductPriceCustomFieldActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetProductPriceCustomFieldActionBuilder.java index 645766b5b1..ac73f643c8 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetProductPriceCustomFieldActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetProductPriceCustomFieldActionBuilder.java @@ -47,7 +47,7 @@ public ProductSetProductPriceCustomFieldActionBuilder priceId(final String price } /** - *

    If true, only the staged Embedded Price Custom Field is updated. If false, both the current and staged Embedded Price Custom Field are updated.

    + *

    Whether only the staged Embedded Price Custom Field is updated. If false, both the current and staged Embedded Price Custom Field are updated.

    * @param staged value to be set * @return Builder */ @@ -89,7 +89,7 @@ public String getPriceId() { } /** - *

    If true, only the staged Embedded Price Custom Field is updated. If false, both the current and staged Embedded Price Custom Field are updated.

    + *

    Whether only the staged Embedded Price Custom Field is updated. If false, both the current and staged Embedded Price Custom Field are updated.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetProductPriceCustomFieldActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetProductPriceCustomFieldActionImpl.java index aeb23f6135..e837ddf0b2 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetProductPriceCustomFieldActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetProductPriceCustomFieldActionImpl.java @@ -71,7 +71,7 @@ public String getPriceId() { } /** - *

    If true, only the staged Embedded Price Custom Field is updated. If false, both the current and staged Embedded Price Custom Field are updated.

    + *

    Whether only the staged Embedded Price Custom Field is updated. If false, both the current and staged Embedded Price Custom Field are updated.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetProductPriceCustomTypeAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetProductPriceCustomTypeAction.java index 3a24857f36..8af958a776 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetProductPriceCustomTypeAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetProductPriceCustomTypeAction.java @@ -49,7 +49,7 @@ public interface ProductSetProductPriceCustomTypeAction extends ProductUpdateAct public String getPriceId(); /** - *

    If true, only the staged Embedded Price is updated. If false, both the current and staged Embedded Price is updated.

    + *

    Whether only the staged Embedded Price is updated. If false, both the current and staged Embedded Price is updated.

    * @return staged */ @@ -81,7 +81,7 @@ public interface ProductSetProductPriceCustomTypeAction extends ProductUpdateAct public void setPriceId(final String priceId); /** - *

    If true, only the staged Embedded Price is updated. If false, both the current and staged Embedded Price is updated.

    + *

    Whether only the staged Embedded Price is updated. If false, both the current and staged Embedded Price is updated.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetProductPriceCustomTypeActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetProductPriceCustomTypeActionBuilder.java index 5a95efb05c..74e86df9e3 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetProductPriceCustomTypeActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetProductPriceCustomTypeActionBuilder.java @@ -47,7 +47,7 @@ public ProductSetProductPriceCustomTypeActionBuilder priceId(final String priceI } /** - *

    If true, only the staged Embedded Price is updated. If false, both the current and staged Embedded Price is updated.

    + *

    Whether only the staged Embedded Price is updated. If false, both the current and staged Embedded Price is updated.

    * @param staged value to be set * @return Builder */ @@ -142,7 +142,7 @@ public String getPriceId() { } /** - *

    If true, only the staged Embedded Price is updated. If false, both the current and staged Embedded Price is updated.

    + *

    Whether only the staged Embedded Price is updated. If false, both the current and staged Embedded Price is updated.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetProductPriceCustomTypeActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetProductPriceCustomTypeActionImpl.java index b2c0b0138e..6232e77c17 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetProductPriceCustomTypeActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetProductPriceCustomTypeActionImpl.java @@ -72,7 +72,7 @@ public String getPriceId() { } /** - *

    If true, only the staged Embedded Price is updated. If false, both the current and staged Embedded Price is updated.

    + *

    Whether only the staged Embedded Price is updated. If false, both the current and staged Embedded Price is updated.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetProductVariantKeyAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetProductVariantKeyAction.java index 839541a89d..cba5864137 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetProductVariantKeyAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetProductVariantKeyAction.java @@ -60,7 +60,7 @@ public interface ProductSetProductVariantKeyAction extends ProductUpdateAction { public String getKey(); /** - *

    If true, only the staged key is set. If false, both the current and staged key are set.

    + *

    Whether only the staged key is set. If false, both the current and staged key are set.

    * @return staged */ @@ -89,7 +89,7 @@ public interface ProductSetProductVariantKeyAction extends ProductUpdateAction { public void setKey(final String key); /** - *

    If true, only the staged key is set. If false, both the current and staged key are set.

    + *

    Whether only the staged key is set. If false, both the current and staged key are set.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetProductVariantKeyActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetProductVariantKeyActionBuilder.java index 1163b98264..e5cfe46988 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetProductVariantKeyActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetProductVariantKeyActionBuilder.java @@ -68,7 +68,7 @@ public ProductSetProductVariantKeyActionBuilder key(@Nullable final String key) } /** - *

    If true, only the staged key is set. If false, both the current and staged key are set.

    + *

    Whether only the staged key is set. If false, both the current and staged key are set.

    * @param staged value to be set * @return Builder */ @@ -109,7 +109,7 @@ public String getKey() { } /** - *

    If true, only the staged key is set. If false, both the current and staged key are set.

    + *

    Whether only the staged key is set. If false, both the current and staged key are set.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetProductVariantKeyActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetProductVariantKeyActionImpl.java index dc6c74049c..839fc8d381 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetProductVariantKeyActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetProductVariantKeyActionImpl.java @@ -87,7 +87,7 @@ public String getKey() { } /** - *

    If true, only the staged key is set. If false, both the current and staged key are set.

    + *

    Whether only the staged key is set. If false, both the current and staged key are set.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetSearchKeywordsAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetSearchKeywordsAction.java index dd92cbab41..a63a83c345 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetSearchKeywordsAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetSearchKeywordsAction.java @@ -48,7 +48,7 @@ public interface ProductSetSearchKeywordsAction extends ProductUpdateAction { public SearchKeywords getSearchKeywords(); /** - *

    If true, only the staged searchKeywords is updated. If false, both the current and staged searchKeywords are updated.

    + *

    Whether only the staged searchKeywords is updated. If false, both the current and staged searchKeywords are updated.

    * @return staged */ @@ -63,7 +63,7 @@ public interface ProductSetSearchKeywordsAction extends ProductUpdateAction { public void setSearchKeywords(final SearchKeywords searchKeywords); /** - *

    If true, only the staged searchKeywords is updated. If false, both the current and staged searchKeywords are updated.

    + *

    Whether only the staged searchKeywords is updated. If false, both the current and staged searchKeywords are updated.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetSearchKeywordsActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetSearchKeywordsActionBuilder.java index afd4c936ca..7a256f4e77 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetSearchKeywordsActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetSearchKeywordsActionBuilder.java @@ -66,7 +66,7 @@ public ProductSetSearchKeywordsActionBuilder searchKeywords( } /** - *

    If true, only the staged searchKeywords is updated. If false, both the current and staged searchKeywords are updated.

    + *

    Whether only the staged searchKeywords is updated. If false, both the current and staged searchKeywords are updated.

    * @param staged value to be set * @return Builder */ @@ -86,7 +86,7 @@ public com.commercetools.api.models.product.SearchKeywords getSearchKeywords() { } /** - *

    If true, only the staged searchKeywords is updated. If false, both the current and staged searchKeywords are updated.

    + *

    Whether only the staged searchKeywords is updated. If false, both the current and staged searchKeywords are updated.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetSearchKeywordsActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetSearchKeywordsActionImpl.java index 9852b757b2..5c0347bc7e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetSearchKeywordsActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetSearchKeywordsActionImpl.java @@ -65,7 +65,7 @@ public com.commercetools.api.models.product.SearchKeywords getSearchKeywords() { } /** - *

    If true, only the staged searchKeywords is updated. If false, both the current and staged searchKeywords are updated.

    + *

    Whether only the staged searchKeywords is updated. If false, both the current and staged searchKeywords are updated.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetSkuAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetSkuAction.java index 0b2eb3f3cd..8adf961dfa 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetSkuAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetSkuAction.java @@ -54,7 +54,7 @@ public interface ProductSetSkuAction extends ProductUpdateAction { public String getSku(); /** - *

    If true, only the staged sku is updated. If false, both the current and staged sku are updated.

    + *

    Whether only the staged sku is updated. If false, both the current and staged sku are updated.

    * @return staged */ @@ -76,7 +76,7 @@ public interface ProductSetSkuAction extends ProductUpdateAction { public void setSku(final String sku); /** - *

    If true, only the staged sku is updated. If false, both the current and staged sku are updated.

    + *

    Whether only the staged sku is updated. If false, both the current and staged sku are updated.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetSkuActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetSkuActionBuilder.java index bcc8769694..56beeacf77 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetSkuActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetSkuActionBuilder.java @@ -54,7 +54,7 @@ public ProductSetSkuActionBuilder sku(@Nullable final String sku) { } /** - *

    If true, only the staged sku is updated. If false, both the current and staged sku are updated.

    + *

    Whether only the staged sku is updated. If false, both the current and staged sku are updated.

    * @param staged value to be set * @return Builder */ @@ -84,7 +84,7 @@ public String getSku() { } /** - *

    If true, only the staged sku is updated. If false, both the current and staged sku are updated.

    + *

    Whether only the staged sku is updated. If false, both the current and staged sku are updated.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetSkuActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetSkuActionImpl.java index 56454f0f61..f223225920 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetSkuActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductSetSkuActionImpl.java @@ -75,7 +75,7 @@ public String getSku() { } /** - *

    If true, only the staged sku is updated. If false, both the current and staged sku are updated.

    + *

    Whether only the staged sku is updated. If false, both the current and staged sku are updated.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductTransitionStateAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductTransitionStateAction.java index aaa177ac56..ad3bd62af5 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductTransitionStateAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductTransitionStateAction.java @@ -46,7 +46,7 @@ public interface ProductTransitionStateAction extends ProductUpdateAction { public StateResourceIdentifier getState(); /** - *

    If true, validations are disabled.

    + *

    Whether validations are disabled.

    * @return force */ @@ -61,7 +61,7 @@ public interface ProductTransitionStateAction extends ProductUpdateAction { public void setState(final StateResourceIdentifier state); /** - *

    If true, validations are disabled.

    + *

    Whether validations are disabled.

    * @param force value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductTransitionStateActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductTransitionStateActionBuilder.java index 6618fe8557..1cf168bc29 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductTransitionStateActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductTransitionStateActionBuilder.java @@ -66,7 +66,7 @@ public ProductTransitionStateActionBuilder state( } /** - *

    If true, validations are disabled.

    + *

    Whether validations are disabled.

    * @param force value to be set * @return Builder */ @@ -87,7 +87,7 @@ public com.commercetools.api.models.state.StateResourceIdentifier getState() { } /** - *

    If true, validations are disabled.

    + *

    Whether validations are disabled.

    * @return force */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductTransitionStateActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductTransitionStateActionImpl.java index d064cf3fc5..f438c405d4 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductTransitionStateActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductTransitionStateActionImpl.java @@ -65,7 +65,7 @@ public com.commercetools.api.models.state.StateResourceIdentifier getState() { } /** - *

    If true, validations are disabled.

    + *

    Whether validations are disabled.

    */ public Boolean getForce() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductVariant.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductVariant.java index fcc2d5edde..cf377fec91 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductVariant.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductVariant.java @@ -113,7 +113,7 @@ public interface ProductVariant extends AttributeContainer, com.commercetools.ap public ProductVariantAvailability getAvailability(); /** - *

    true if the Product Variant matches the search query. Only available in response to a Product Projection Search request.

    + *

    Whether the Product Variant matches the search query. Only available in response to a Product Projection Search request.

    * @return isMatchingVariant */ @@ -243,7 +243,7 @@ public interface ProductVariant extends AttributeContainer, com.commercetools.ap public void setAvailability(final ProductVariantAvailability availability); /** - *

    true if the Product Variant matches the search query. Only available in response to a Product Projection Search request.

    + *

    Whether the Product Variant matches the search query. Only available in response to a Product Projection Search request.

    * @param isMatchingVariant value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductVariantAvailability.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductVariantAvailability.java index 6240e40405..3415bf3b0a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductVariantAvailability.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductVariantAvailability.java @@ -40,7 +40,7 @@ public interface ProductVariantAvailability { public ProductVariantChannelAvailabilityMap getChannels(); /** - *

    true if the Product Variant is in stock, based on an InventoryEntry that has no assigned supply Channel. This value reflects global or default availability; it does not aggregate the channel-specific availabilities found in the channels field.

    + *

    Whether the Product Variant is in stock, based on an InventoryEntry that has no assigned supply Channel. This value reflects global or default availability; it does not aggregate the channel-specific availabilities found in the channels field.

    * @return isOnStock */ @@ -87,7 +87,7 @@ public interface ProductVariantAvailability { public void setChannels(final ProductVariantChannelAvailabilityMap channels); /** - *

    true if the Product Variant is in stock, based on an InventoryEntry that has no assigned supply Channel. This value reflects global or default availability; it does not aggregate the channel-specific availabilities found in the channels field.

    + *

    Whether the Product Variant is in stock, based on an InventoryEntry that has no assigned supply Channel. This value reflects global or default availability; it does not aggregate the channel-specific availabilities found in the channels field.

    * @param isOnStock value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductVariantAvailabilityBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductVariantAvailabilityBuilder.java index 83842155fa..4198231685 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductVariantAvailabilityBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductVariantAvailabilityBuilder.java @@ -81,7 +81,7 @@ public ProductVariantAvailabilityBuilder channels( } /** - *

    true if the Product Variant is in stock, based on an InventoryEntry that has no assigned supply Channel. This value reflects global or default availability; it does not aggregate the channel-specific availabilities found in the channels field.

    + *

    Whether the Product Variant is in stock, based on an InventoryEntry that has no assigned supply Channel. This value reflects global or default availability; it does not aggregate the channel-specific availabilities found in the channels field.

    * @param isOnStock value to be set * @return Builder */ @@ -146,7 +146,7 @@ public com.commercetools.api.models.product.ProductVariantChannelAvailabilityMap } /** - *

    true if the Product Variant is in stock, based on an InventoryEntry that has no assigned supply Channel. This value reflects global or default availability; it does not aggregate the channel-specific availabilities found in the channels field.

    + *

    Whether the Product Variant is in stock, based on an InventoryEntry that has no assigned supply Channel. This value reflects global or default availability; it does not aggregate the channel-specific availabilities found in the channels field.

    * @return isOnStock */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductVariantAvailabilityImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductVariantAvailabilityImpl.java index 0452ff2918..49e838b1d5 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductVariantAvailabilityImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductVariantAvailabilityImpl.java @@ -69,7 +69,7 @@ public com.commercetools.api.models.product.ProductVariantChannelAvailabilityMap } /** - *

    true if the Product Variant is in stock, based on an InventoryEntry that has no assigned supply Channel. This value reflects global or default availability; it does not aggregate the channel-specific availabilities found in the channels field.

    + *

    Whether the Product Variant is in stock, based on an InventoryEntry that has no assigned supply Channel. This value reflects global or default availability; it does not aggregate the channel-specific availabilities found in the channels field.

    */ public Boolean getIsOnStock() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductVariantBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductVariantBuilder.java index 6ca1cb1c5a..fe721ee21c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductVariantBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductVariantBuilder.java @@ -526,7 +526,7 @@ public ProductVariantBuilder availability( } /** - *

    true if the Product Variant matches the search query. Only available in response to a Product Projection Search request.

    + *

    Whether the Product Variant matches the search query. Only available in response to a Product Projection Search request.

    * @param isMatchingVariant value to be set * @return Builder */ @@ -764,7 +764,7 @@ public com.commercetools.api.models.product.ProductVariantAvailability getAvaila } /** - *

    true if the Product Variant matches the search query. Only available in response to a Product Projection Search request.

    + *

    Whether the Product Variant matches the search query. Only available in response to a Product Projection Search request.

    * @return isMatchingVariant */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductVariantImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductVariantImpl.java index bc8bb883ab..f8aa1d902a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductVariantImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductVariantImpl.java @@ -162,7 +162,7 @@ public com.commercetools.api.models.product.ProductVariantAvailability getAvaila } /** - *

    true if the Product Variant matches the search query. Only available in response to a Product Projection Search request.

    + *

    Whether the Product Variant matches the search query. Only available in response to a Product Projection Search request.

    */ public Boolean getIsMatchingVariant() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_discount/ProductDiscount.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_discount/ProductDiscount.java index 71aaefdfd8..ac0ba4a370 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_discount/ProductDiscount.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_discount/ProductDiscount.java @@ -150,7 +150,7 @@ public interface ProductDiscount public String getSortOrder(); /** - *

    If true the Product Discount is applied to Products matching the predicate.

    + *

    Whether the Product Discount is applied to Products matching the predicate.

    * @return isActive */ @NotNull @@ -267,7 +267,7 @@ public interface ProductDiscount public void setSortOrder(final String sortOrder); /** - *

    If true the Product Discount is applied to Products matching the predicate.

    + *

    Whether the Product Discount is applied to Products matching the predicate.

    * @param isActive value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_discount/ProductDiscountBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_discount/ProductDiscountBuilder.java index ed86a36928..3c5509be39 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_discount/ProductDiscountBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_discount/ProductDiscountBuilder.java @@ -316,7 +316,7 @@ public ProductDiscountBuilder sortOrder(final String sortOrder) { } /** - *

    If true the Product Discount is applied to Products matching the predicate.

    + *

    Whether the Product Discount is applied to Products matching the predicate.

    * @param isActive value to be set * @return Builder */ @@ -526,7 +526,7 @@ public String getSortOrder() { } /** - *

    If true the Product Discount is applied to Products matching the predicate.

    + *

    Whether the Product Discount is applied to Products matching the predicate.

    * @return isActive */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_discount/ProductDiscountDraft.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_discount/ProductDiscountDraft.java index a01cedf98f..51cd2ae4ea 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_discount/ProductDiscountDraft.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_discount/ProductDiscountDraft.java @@ -90,7 +90,7 @@ public interface ProductDiscountDraft public String getSortOrder(); /** - *

    Set to true to activate the ProductDiscount, set to false to deactivate it (even though the predicate matches).

    + *

    Whether to activate the ProductDiscount. To deactivate it even though the predicate matches, set to false.

    * @return isActive */ @NotNull @@ -156,7 +156,7 @@ public interface ProductDiscountDraft public void setSortOrder(final String sortOrder); /** - *

    Set to true to activate the ProductDiscount, set to false to deactivate it (even though the predicate matches).

    + *

    Whether to activate the ProductDiscount. To deactivate it even though the predicate matches, set to false.

    * @param isActive value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_discount/ProductDiscountDraftBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_discount/ProductDiscountDraftBuilder.java index c576b70d2e..f6f8f6e714 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_discount/ProductDiscountDraftBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_discount/ProductDiscountDraftBuilder.java @@ -180,7 +180,7 @@ public ProductDiscountDraftBuilder sortOrder(final String sortOrder) { } /** - *

    Set to true to activate the ProductDiscount, set to false to deactivate it (even though the predicate matches).

    + *

    Whether to activate the ProductDiscount. To deactivate it even though the predicate matches, set to false.

    * @param isActive value to be set * @return Builder */ @@ -269,7 +269,7 @@ public String getSortOrder() { } /** - *

    Set to true to activate the ProductDiscount, set to false to deactivate it (even though the predicate matches).

    + *

    Whether to activate the ProductDiscount. To deactivate it even though the predicate matches, set to false.

    * @return isActive */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_discount/ProductDiscountDraftImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_discount/ProductDiscountDraftImpl.java index 18cf786818..db4394115a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_discount/ProductDiscountDraftImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_discount/ProductDiscountDraftImpl.java @@ -119,7 +119,7 @@ public String getSortOrder() { } /** - *

    Set to true to activate the ProductDiscount, set to false to deactivate it (even though the predicate matches).

    + *

    Whether to activate the ProductDiscount. To deactivate it even though the predicate matches, set to false.

    */ public Boolean getIsActive() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_discount/ProductDiscountImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_discount/ProductDiscountImpl.java index 90631b9ff1..8f1236750a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_discount/ProductDiscountImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_discount/ProductDiscountImpl.java @@ -194,7 +194,7 @@ public String getSortOrder() { } /** - *

    If true the Product Discount is applied to Products matching the predicate.

    + *

    Whether the Product Discount is applied to Products matching the predicate.

    */ public Boolean getIsActive() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchMatchingVariants.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchMatchingVariants.java index 5422e7eccc..6dbd9552c3 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchMatchingVariants.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchMatchingVariants.java @@ -35,7 +35,7 @@ public interface ProductSearchMatchingVariants { /** - *

    true if all Variants of the returned Product match the search query, or if search query does not specify any expression for a Product Variant field.

    + *

    Whether all Variants of the returned Product match the search query, or if search query does not specify any expression for a Product Variant field.

    *

    false if only a subset of the Product Variants match the search query.

    *

    Is always false for query expressions on Product Variant fields.

    * @return allMatched @@ -55,7 +55,7 @@ public interface ProductSearchMatchingVariants { public List getMatchedVariants(); /** - *

    true if all Variants of the returned Product match the search query, or if search query does not specify any expression for a Product Variant field.

    + *

    Whether all Variants of the returned Product match the search query, or if search query does not specify any expression for a Product Variant field.

    *

    false if only a subset of the Product Variants match the search query.

    *

    Is always false for query expressions on Product Variant fields.

    * @param allMatched value to be set diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchMatchingVariantsBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchMatchingVariantsBuilder.java index f3ca434a01..267ddd5a19 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchMatchingVariantsBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchMatchingVariantsBuilder.java @@ -28,7 +28,7 @@ public class ProductSearchMatchingVariantsBuilder implements Builder matchedVariants; /** - *

    true if all Variants of the returned Product match the search query, or if search query does not specify any expression for a Product Variant field.

    + *

    Whether all Variants of the returned Product match the search query, or if search query does not specify any expression for a Product Variant field.

    *

    false if only a subset of the Product Variants match the search query.

    *

    Is always false for query expressions on Product Variant fields.

    * @param allMatched value to be set @@ -143,7 +143,7 @@ public ProductSearchMatchingVariantsBuilder setMatchedVariants( } /** - *

    true if all Variants of the returned Product match the search query, or if search query does not specify any expression for a Product Variant field.

    + *

    Whether all Variants of the returned Product match the search query, or if search query does not specify any expression for a Product Variant field.

    *

    false if only a subset of the Product Variants match the search query.

    *

    Is always false for query expressions on Product Variant fields.

    * @return allMatched diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchMatchingVariantsImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchMatchingVariantsImpl.java index 06a1c12f78..96fe62b01a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchMatchingVariantsImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchMatchingVariantsImpl.java @@ -44,7 +44,7 @@ public ProductSearchMatchingVariantsImpl() { } /** - *

    true if all Variants of the returned Product match the search query, or if search query does not specify any expression for a Product Variant field.

    + *

    Whether all Variants of the returned Product match the search query, or if search query does not specify any expression for a Product Variant field.

    *

    false if only a subset of the Product Variants match the search query.

    *

    Is always false for query expressions on Product Variant fields.

    */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchProjectionParams.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchProjectionParams.java index fceda16564..a3260fa533 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchProjectionParams.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchProjectionParams.java @@ -39,7 +39,7 @@ public interface ProductSearchProjectionParams { public List getExpand(); /** - *

    Set to true to retrieve the staged Product Projection

    + *

    Whether to retrieve the staged Product Projection

    * @return staged */ @@ -120,7 +120,7 @@ public interface ProductSearchProjectionParams { public void setExpand(final List expand); /** - *

    Set to true to retrieve the staged Product Projection

    + *

    Whether to retrieve the staged Product Projection

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchProjectionParamsBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchProjectionParamsBuilder.java index d4c2de1922..09fb3efbdd 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchProjectionParamsBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchProjectionParamsBuilder.java @@ -87,7 +87,7 @@ public ProductSearchProjectionParamsBuilder plusExpand(@Nullable final String... } /** - *

    Set to true to retrieve the staged Product Projection

    + *

    Whether to retrieve the staged Product Projection

    * @param staged value to be set * @return Builder */ @@ -241,7 +241,7 @@ public java.util.List getExpand() { } /** - *

    Set to true to retrieve the staged Product Projection

    + *

    Whether to retrieve the staged Product Projection

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchProjectionParamsImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchProjectionParamsImpl.java index 9d49068942..6460e50666 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchProjectionParamsImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchProjectionParamsImpl.java @@ -80,7 +80,7 @@ public java.util.List getExpand() { } /** - *

    Set to true to retrieve the staged Product Projection

    + *

    Whether to retrieve the staged Product Projection

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoring.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoring.java index f08f31c0d5..caa4f053f0 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoring.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoring.java @@ -124,7 +124,7 @@ public interface ProductTailoring extends BaseResource { public ProductReference getProduct(); /** - *

    If true, the tailored information contained in the current ProductTailoringData is provided when retrieving the ProductProjection in Store. For information not part of the ProductTailoringData, the original information contained in the ProductData is provided. If false, only the original information contained in the ProductData is provided.

    + *

    Whether the tailored information contained in the current ProductTailoringData is provided when retrieving the ProductProjection in Store. For information not part of the ProductTailoringData, the original information contained in the ProductData is provided. If false, only the original information contained in the ProductData is provided.

    * @return published */ @NotNull @@ -150,7 +150,7 @@ public interface ProductTailoring extends BaseResource { public ProductTailoringData getStaged(); /** - *

    true if the staged data is different from the current data.

    + *

    Whether the staged data is different from the current data.

    * @return hasStagedChanges */ @NotNull @@ -229,7 +229,7 @@ public interface ProductTailoring extends BaseResource { public void setProduct(final ProductReference product); /** - *

    If true, the tailored information contained in the current ProductTailoringData is provided when retrieving the ProductProjection in Store. For information not part of the ProductTailoringData, the original information contained in the ProductData is provided. If false, only the original information contained in the ProductData is provided.

    + *

    Whether the tailored information contained in the current ProductTailoringData is provided when retrieving the ProductProjection in Store. For information not part of the ProductTailoringData, the original information contained in the ProductData is provided. If false, only the original information contained in the ProductData is provided.

    * @param published value to be set */ @@ -250,7 +250,7 @@ public interface ProductTailoring extends BaseResource { public void setStaged(final ProductTailoringData staged); /** - *

    true if the staged data is different from the current data.

    + *

    Whether the staged data is different from the current data.

    * @param hasStagedChanges value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddAssetAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddAssetAction.java index fd19594a88..b6fc2d3130 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddAssetAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddAssetAction.java @@ -56,7 +56,7 @@ public interface ProductTailoringAddAssetAction extends ProductTailoringUpdateAc public String getSku(); /** - *

    If true, only the staged assets are updated. If false, both the current and staged assets are updated.

    + *

    Whether only the staged assets are updated. If false, both the current and staged assets are updated.

    * @return staged */ @@ -95,7 +95,7 @@ public interface ProductTailoringAddAssetAction extends ProductTailoringUpdateAc public void setSku(final String sku); /** - *

    If true, only the staged assets are updated. If false, both the current and staged assets are updated.

    + *

    Whether only the staged assets are updated. If false, both the current and staged assets are updated.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddAssetActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddAssetActionBuilder.java index 207521fa28..21f80a1f75 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddAssetActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddAssetActionBuilder.java @@ -61,7 +61,7 @@ public ProductTailoringAddAssetActionBuilder sku(@Nullable final String sku) { } /** - *

    If true, only the staged assets are updated. If false, both the current and staged assets are updated.

    + *

    Whether only the staged assets are updated. If false, both the current and staged assets are updated.

    * @param staged value to be set * @return Builder */ @@ -138,7 +138,7 @@ public String getSku() { } /** - *

    If true, only the staged assets are updated. If false, both the current and staged assets are updated.

    + *

    Whether only the staged assets are updated. If false, both the current and staged assets are updated.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddAssetActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddAssetActionImpl.java index d92e391030..8771d28c2a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddAssetActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddAssetActionImpl.java @@ -83,7 +83,7 @@ public String getSku() { } /** - *

    If true, only the staged assets are updated. If false, both the current and staged assets are updated.

    + *

    Whether only the staged assets are updated. If false, both the current and staged assets are updated.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddExternalImageAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddExternalImageAction.java index a8a897a760..a3b766a617 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddExternalImageAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddExternalImageAction.java @@ -65,7 +65,7 @@ public interface ProductTailoringAddExternalImageAction extends ProductTailoring public Image getImage(); /** - *

    If true, only the staged images is updated. If false, both the current and staged images is updated.

    + *

    Whether only the staged images is updated. If false, both the current and staged images are updated.

    * @return staged */ @@ -94,7 +94,7 @@ public interface ProductTailoringAddExternalImageAction extends ProductTailoring public void setImage(final Image image); /** - *

    If true, only the staged images is updated. If false, both the current and staged images is updated.

    + *

    Whether only the staged images is updated. If false, both the current and staged images are updated.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddExternalImageActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddExternalImageActionBuilder.java index c317ccabbc..9025664dea 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddExternalImageActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddExternalImageActionBuilder.java @@ -93,7 +93,7 @@ public ProductTailoringAddExternalImageActionBuilder image(final com.commercetoo } /** - *

    If true, only the staged images is updated. If false, both the current and staged images is updated.

    + *

    Whether only the staged images is updated. If false, both the current and staged images are updated.

    * @param staged value to be set * @return Builder */ @@ -133,7 +133,7 @@ public com.commercetools.api.models.common.Image getImage() { } /** - *

    If true, only the staged images is updated. If false, both the current and staged images is updated.

    + *

    Whether only the staged images is updated. If false, both the current and staged images are updated.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddExternalImageActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddExternalImageActionImpl.java index 81efa7d22b..201e8fe00d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddExternalImageActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddExternalImageActionImpl.java @@ -88,7 +88,7 @@ public com.commercetools.api.models.common.Image getImage() { } /** - *

    If true, only the staged images is updated. If false, both the current and staged images is updated.

    + *

    Whether only the staged images is updated. If false, both the current and staged images are updated.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddVariantAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddVariantAction.java index 7d4f7dc840..08d3a2f865 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddVariantAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddVariantAction.java @@ -80,7 +80,7 @@ public interface ProductTailoringAddVariantAction extends ProductTailoringUpdate public List getAttributes(); /** - *

    If true the new Product Variant Tailoring is only staged. If false the new Product Variant Tailoring is both current and staged.

    + *

    Whether the new Product Variant Tailoring is only staged. If false the new Product Variant Tailoring is both current and staged.

    * @return staged */ @@ -147,7 +147,7 @@ public interface ProductTailoringAddVariantAction extends ProductTailoringUpdate public void setAttributes(final List attributes); /** - *

    If true the new Product Variant Tailoring is only staged. If false the new Product Variant Tailoring is both current and staged.

    + *

    Whether the new Product Variant Tailoring is only staged. If false the new Product Variant Tailoring is both current and staged.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddVariantActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddVariantActionBuilder.java index a0653ca145..cfd53508fc 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddVariantActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddVariantActionBuilder.java @@ -337,7 +337,7 @@ public ProductTailoringAddVariantActionBuilder setAttributes( } /** - *

    If true the new Product Variant Tailoring is only staged. If false the new Product Variant Tailoring is both current and staged.

    + *

    Whether the new Product Variant Tailoring is only staged. If false the new Product Variant Tailoring is both current and staged.

    * @param staged value to be set * @return Builder */ @@ -398,7 +398,7 @@ public java.util.ListIf true the new Product Variant Tailoring is only staged. If false the new Product Variant Tailoring is both current and staged.

    + *

    Whether the new Product Variant Tailoring is only staged. If false the new Product Variant Tailoring is both current and staged.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddVariantActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddVariantActionImpl.java index 339edbb684..375128cf76 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddVariantActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringAddVariantActionImpl.java @@ -111,7 +111,7 @@ public java.util.ListIf true the new Product Variant Tailoring is only staged. If false the new Product Variant Tailoring is both current and staged.

    + *

    Whether the new Product Variant Tailoring is only staged. If false the new Product Variant Tailoring is both current and staged.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringBuilder.java index b50de095e7..64fda38ea2 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringBuilder.java @@ -262,7 +262,7 @@ public ProductTailoringBuilder product(final com.commercetools.api.models.produc } /** - *

    If true, the tailored information contained in the current ProductTailoringData is provided when retrieving the ProductProjection in Store. For information not part of the ProductTailoringData, the original information contained in the ProductData is provided. If false, only the original information contained in the ProductData is provided.

    + *

    Whether the tailored information contained in the current ProductTailoringData is provided when retrieving the ProductProjection in Store. For information not part of the ProductTailoringData, the original information contained in the ProductData is provided. If false, only the original information contained in the ProductData is provided.

    * @param published value to be set * @return Builder */ @@ -347,7 +347,7 @@ public ProductTailoringBuilder staged( } /** - *

    true if the staged data is different from the current data.

    + *

    Whether the staged data is different from the current data.

    * @param hasStagedChanges value to be set * @return Builder */ @@ -509,7 +509,7 @@ public com.commercetools.api.models.product.ProductReference getProduct() { } /** - *

    If true, the tailored information contained in the current ProductTailoringData is provided when retrieving the ProductProjection in Store. For information not part of the ProductTailoringData, the original information contained in the ProductData is provided. If false, only the original information contained in the ProductData is provided.

    + *

    Whether the tailored information contained in the current ProductTailoringData is provided when retrieving the ProductProjection in Store. For information not part of the ProductTailoringData, the original information contained in the ProductData is provided. If false, only the original information contained in the ProductData is provided.

    * @return published */ @@ -536,7 +536,7 @@ public com.commercetools.api.models.product_tailoring.ProductTailoringData getSt } /** - *

    true if the staged data is different from the current data.

    + *

    Whether the staged data is different from the current data.

    * @return hasStagedChanges */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringChangeAssetNameAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringChangeAssetNameAction.java index 7d9ced0c4a..6984000b4e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringChangeAssetNameAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringChangeAssetNameAction.java @@ -56,7 +56,7 @@ public interface ProductTailoringChangeAssetNameAction extends ProductTailoringU public String getSku(); /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @return staged */ @@ -103,7 +103,7 @@ public interface ProductTailoringChangeAssetNameAction extends ProductTailoringU public void setSku(final String sku); /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringChangeAssetNameActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringChangeAssetNameActionBuilder.java index a6ef72c951..d19f706fa7 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringChangeAssetNameActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringChangeAssetNameActionBuilder.java @@ -64,7 +64,7 @@ public ProductTailoringChangeAssetNameActionBuilder sku(@Nullable final String s } /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @param staged value to be set * @return Builder */ @@ -153,7 +153,7 @@ public String getSku() { } /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringChangeAssetNameActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringChangeAssetNameActionImpl.java index 1cef3cab5a..05dc012013 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringChangeAssetNameActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringChangeAssetNameActionImpl.java @@ -86,7 +86,7 @@ public String getSku() { } /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringChangeAssetOrderAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringChangeAssetOrderAction.java index fc63ec1656..dc64eb4f49 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringChangeAssetOrderAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringChangeAssetOrderAction.java @@ -54,7 +54,7 @@ public interface ProductTailoringChangeAssetOrderAction extends ProductTailoring public String getSku(); /** - *

    If true, only the staged assets is updated. If false, both the current and staged assets are updated.

    + *

    Whether only the staged assets is updated. If false, both the current and staged assets are updated.

    * @return staged */ @@ -84,7 +84,7 @@ public interface ProductTailoringChangeAssetOrderAction extends ProductTailoring public void setSku(final String sku); /** - *

    If true, only the staged assets is updated. If false, both the current and staged assets are updated.

    + *

    Whether only the staged assets is updated. If false, both the current and staged assets are updated.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringChangeAssetOrderActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringChangeAssetOrderActionBuilder.java index 35eaf7876b..037675bd2d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringChangeAssetOrderActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringChangeAssetOrderActionBuilder.java @@ -57,7 +57,7 @@ public ProductTailoringChangeAssetOrderActionBuilder sku(@Nullable final String } /** - *

    If true, only the staged assets is updated. If false, both the current and staged assets are updated.

    + *

    Whether only the staged assets is updated. If false, both the current and staged assets are updated.

    * @param staged value to be set * @return Builder */ @@ -124,7 +124,7 @@ public String getSku() { } /** - *

    If true, only the staged assets is updated. If false, both the current and staged assets are updated.

    + *

    Whether only the staged assets is updated. If false, both the current and staged assets are updated.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringChangeAssetOrderActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringChangeAssetOrderActionImpl.java index e1c95f0a9e..a62e02c48b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringChangeAssetOrderActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringChangeAssetOrderActionImpl.java @@ -79,7 +79,7 @@ public String getSku() { } /** - *

    If true, only the staged assets is updated. If false, both the current and staged assets are updated.

    + *

    Whether only the staged assets is updated. If false, both the current and staged assets are updated.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringDraft.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringDraft.java index c404e5f27d..7485a40852 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringDraft.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringDraft.java @@ -112,7 +112,7 @@ public interface ProductTailoringDraft extends io.vrap.rmf.base.client.DraftSet to true to publish the ProductTailoring immediately. Otherwise, the tailored product information is just staged.

    + *

    Whether to publish the ProductTailoring immediately. Otherwise, the tailored product information is just staged.

    * @return publish */ @@ -199,7 +199,7 @@ public interface ProductTailoringDraft extends io.vrap.rmf.base.client.DraftSet to true to publish the ProductTailoring immediately. Otherwise, the tailored product information is just staged.

    + *

    Whether to publish the ProductTailoring immediately. Otherwise, the tailored product information is just staged.

    * @param publish value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringDraftBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringDraftBuilder.java index 039e7fca24..3458db9214 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringDraftBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringDraftBuilder.java @@ -357,7 +357,7 @@ public ProductTailoringDraftBuilder slug(@Nullable final com.commercetools.api.m } /** - *

    Set to true to publish the ProductTailoring immediately. Otherwise, the tailored product information is just staged.

    + *

    Whether to publish the ProductTailoring immediately. Otherwise, the tailored product information is just staged.

    * @param publish value to be set * @return Builder */ @@ -646,7 +646,7 @@ public com.commercetools.api.models.common.LocalizedString getSlug() { } /** - *

    Set to true to publish the ProductTailoring immediately. Otherwise, the tailored product information is just staged.

    + *

    Whether to publish the ProductTailoring immediately. Otherwise, the tailored product information is just staged.

    * @return publish */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringDraftImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringDraftImpl.java index dda06ca7a7..20f9d309be 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringDraftImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringDraftImpl.java @@ -156,7 +156,7 @@ public com.commercetools.api.models.common.LocalizedString getSlug() { } /** - *

    Set to true to publish the ProductTailoring immediately. Otherwise, the tailored product information is just staged.

    + *

    Whether to publish the ProductTailoring immediately. Otherwise, the tailored product information is just staged.

    */ public Boolean getPublish() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringImpl.java index 41aaa011c3..dac975861f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringImpl.java @@ -163,7 +163,7 @@ public com.commercetools.api.models.product.ProductReference getProduct() { } /** - *

    If true, the tailored information contained in the current ProductTailoringData is provided when retrieving the ProductProjection in Store. For information not part of the ProductTailoringData, the original information contained in the ProductData is provided. If false, only the original information contained in the ProductData is provided.

    + *

    Whether the tailored information contained in the current ProductTailoringData is provided when retrieving the ProductProjection in Store. For information not part of the ProductTailoringData, the original information contained in the ProductData is provided. If false, only the original information contained in the ProductData is provided.

    */ public Boolean getPublished() { @@ -187,7 +187,7 @@ public com.commercetools.api.models.product_tailoring.ProductTailoringData getSt } /** - *

    true if the staged data is different from the current data.

    + *

    Whether the staged data is different from the current data.

    */ public Boolean getHasStagedChanges() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringInStoreDraft.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringInStoreDraft.java index 96d2aa9109..4bf7431a80 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringInStoreDraft.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringInStoreDraft.java @@ -101,7 +101,7 @@ public interface ProductTailoringInStoreDraft extends io.vrap.rmf.base.client.Dr public LocalizedString getSlug(); /** - *

    If true, the ProductTailoring is published immediately.

    + *

    Whether the ProductTailoring is published immediately.

    * @return publish */ @@ -181,7 +181,7 @@ public interface ProductTailoringInStoreDraft extends io.vrap.rmf.base.client.Dr public void setSlug(final LocalizedString slug); /** - *

    If true, the ProductTailoring is published immediately.

    + *

    Whether the ProductTailoring is published immediately.

    * @param publish value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringInStoreDraftBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringInStoreDraftBuilder.java index cd24e19b13..35dfd46025 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringInStoreDraftBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringInStoreDraftBuilder.java @@ -321,7 +321,7 @@ public ProductTailoringInStoreDraftBuilder slug( } /** - *

    If true, the ProductTailoring is published immediately.

    + *

    Whether the ProductTailoring is published immediately.

    * @param publish value to be set * @return Builder */ @@ -601,7 +601,7 @@ public com.commercetools.api.models.common.LocalizedString getSlug() { } /** - *

    If true, the ProductTailoring is published immediately.

    + *

    Whether the ProductTailoring is published immediately.

    * @return publish */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringInStoreDraftImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringInStoreDraftImpl.java index 3467ca5882..c6399d20d9 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringInStoreDraftImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringInStoreDraftImpl.java @@ -144,7 +144,7 @@ public com.commercetools.api.models.common.LocalizedString getSlug() { } /** - *

    If true, the ProductTailoring is published immediately.

    + *

    Whether the ProductTailoring is published immediately.

    */ public Boolean getPublish() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringMoveImageToPositionAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringMoveImageToPositionAction.java index a2b9b50247..d1b4fe553e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringMoveImageToPositionAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringMoveImageToPositionAction.java @@ -71,7 +71,7 @@ public interface ProductTailoringMoveImageToPositionAction extends ProductTailor public Long getPosition(); /** - *

    If true, only the staged images is updated. If false, both the current and staged images is updated.

    + *

    Whether only the staged images is updated. If false, both the current and staged images are updated.

    * @return staged */ @@ -107,7 +107,7 @@ public interface ProductTailoringMoveImageToPositionAction extends ProductTailor public void setPosition(final Long position); /** - *

    If true, only the staged images is updated. If false, both the current and staged images is updated.

    + *

    Whether only the staged images is updated. If false, both the current and staged images are updated.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringMoveImageToPositionActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringMoveImageToPositionActionBuilder.java index 49d6eb972f..b37b4af6a3 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringMoveImageToPositionActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringMoveImageToPositionActionBuilder.java @@ -83,7 +83,7 @@ public ProductTailoringMoveImageToPositionActionBuilder position(final Long posi } /** - *

    If true, only the staged images is updated. If false, both the current and staged images is updated.

    + *

    Whether only the staged images is updated. If false, both the current and staged images are updated.

    * @param staged value to be set * @return Builder */ @@ -132,7 +132,7 @@ public Long getPosition() { } /** - *

    If true, only the staged images is updated. If false, both the current and staged images is updated.

    + *

    Whether only the staged images is updated. If false, both the current and staged images are updated.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringMoveImageToPositionActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringMoveImageToPositionActionImpl.java index 060cb542f0..b458de6dc2 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringMoveImageToPositionActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringMoveImageToPositionActionImpl.java @@ -99,7 +99,7 @@ public Long getPosition() { } /** - *

    If true, only the staged images is updated. If false, both the current and staged images is updated.

    + *

    Whether only the staged images is updated. If false, both the current and staged images are updated.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveAssetAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveAssetAction.java index d484770127..85d5615fe1 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveAssetAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveAssetAction.java @@ -52,7 +52,7 @@ public interface ProductTailoringRemoveAssetAction extends ProductTailoringUpdat public String getSku(); /** - *

    If true, only the staged Asset is removed. If false, both the current and staged Asset is removed.

    + *

    Whether only the staged Asset is removed. If false, both the current and staged Asset is removed.

    * @return staged */ @@ -90,7 +90,7 @@ public interface ProductTailoringRemoveAssetAction extends ProductTailoringUpdat public void setSku(final String sku); /** - *

    If true, only the staged Asset is removed. If false, both the current and staged Asset is removed.

    + *

    Whether only the staged Asset is removed. If false, both the current and staged Asset is removed.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveAssetActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveAssetActionBuilder.java index 294d4846b5..526c95e38f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveAssetActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveAssetActionBuilder.java @@ -60,7 +60,7 @@ public ProductTailoringRemoveAssetActionBuilder sku(@Nullable final String sku) } /** - *

    If true, only the staged Asset is removed. If false, both the current and staged Asset is removed.

    + *

    Whether only the staged Asset is removed. If false, both the current and staged Asset is removed.

    * @param staged value to be set * @return Builder */ @@ -113,7 +113,7 @@ public String getSku() { } /** - *

    If true, only the staged Asset is removed. If false, both the current and staged Asset is removed.

    + *

    Whether only the staged Asset is removed. If false, both the current and staged Asset is removed.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveAssetActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveAssetActionImpl.java index ec52c9bf24..44face3460 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveAssetActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveAssetActionImpl.java @@ -82,7 +82,7 @@ public String getSku() { } /** - *

    If true, only the staged Asset is removed. If false, both the current and staged Asset is removed.

    + *

    Whether only the staged Asset is removed. If false, both the current and staged Asset is removed.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveImageAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveImageAction.java index ac3e9b40e7..90220a3743 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveImageAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveImageAction.java @@ -62,7 +62,7 @@ public interface ProductTailoringRemoveImageAction extends ProductTailoringUpdat public String getImageUrl(); /** - *

    If true, only the staged image is removed. If false, both the current and staged image is removed.

    + *

    Whether only the staged image is removed. If false, both the current and staged image is removed.

    * @return staged */ @@ -91,7 +91,7 @@ public interface ProductTailoringRemoveImageAction extends ProductTailoringUpdat public void setImageUrl(final String imageUrl); /** - *

    If true, only the staged image is removed. If false, both the current and staged image is removed.

    + *

    Whether only the staged image is removed. If false, both the current and staged image is removed.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveImageActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveImageActionBuilder.java index 202ee57179..53e815f6a2 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveImageActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveImageActionBuilder.java @@ -68,7 +68,7 @@ public ProductTailoringRemoveImageActionBuilder imageUrl(final String imageUrl) } /** - *

    If true, only the staged image is removed. If false, both the current and staged image is removed.

    + *

    Whether only the staged image is removed. If false, both the current and staged image is removed.

    * @param staged value to be set * @return Builder */ @@ -108,7 +108,7 @@ public String getImageUrl() { } /** - *

    If true, only the staged image is removed. If false, both the current and staged image is removed.

    + *

    Whether only the staged image is removed. If false, both the current and staged image is removed.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveImageActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveImageActionImpl.java index ad75de5d45..4c777c5523 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveImageActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveImageActionImpl.java @@ -87,7 +87,7 @@ public String getImageUrl() { } /** - *

    If true, only the staged image is removed. If false, both the current and staged image is removed.

    + *

    Whether only the staged image is removed. If false, both the current and staged image is removed.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveVariantAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveVariantAction.java index 77ff120a1f..d099c7b773 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveVariantAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveVariantAction.java @@ -52,7 +52,7 @@ public interface ProductTailoringRemoveVariantAction extends ProductTailoringUpd public String getSku(); /** - *

    If true, only the staged Product Variant Tailoring is removed. If false, both the current and staged Product Variant Tailoring is removed.

    + *

    Whether only the staged Product Variant Tailoring is removed. If false, both the current and staged Product Variant Tailoring is removed.

    * @return staged */ @@ -74,7 +74,7 @@ public interface ProductTailoringRemoveVariantAction extends ProductTailoringUpd public void setSku(final String sku); /** - *

    If true, only the staged Product Variant Tailoring is removed. If false, both the current and staged Product Variant Tailoring is removed.

    + *

    Whether only the staged Product Variant Tailoring is removed. If false, both the current and staged Product Variant Tailoring is removed.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveVariantActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveVariantActionBuilder.java index 34c90df535..8d911a4c18 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveVariantActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveVariantActionBuilder.java @@ -54,7 +54,7 @@ public ProductTailoringRemoveVariantActionBuilder sku(@Nullable final String sku } /** - *

    If true, only the staged Product Variant Tailoring is removed. If false, both the current and staged Product Variant Tailoring is removed.

    + *

    Whether only the staged Product Variant Tailoring is removed. If false, both the current and staged Product Variant Tailoring is removed.

    * @param staged value to be set * @return Builder */ @@ -85,7 +85,7 @@ public String getSku() { } /** - *

    If true, only the staged Product Variant Tailoring is removed. If false, both the current and staged Product Variant Tailoring is removed.

    + *

    Whether only the staged Product Variant Tailoring is removed. If false, both the current and staged Product Variant Tailoring is removed.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveVariantActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveVariantActionImpl.java index 8676bebea2..cc95e6bf1f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveVariantActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringRemoveVariantActionImpl.java @@ -75,7 +75,7 @@ public String getSku() { } /** - *

    If true, only the staged Product Variant Tailoring is removed. If false, both the current and staged Product Variant Tailoring is removed.

    + *

    Whether only the staged Product Variant Tailoring is removed. If false, both the current and staged Product Variant Tailoring is removed.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetCustomFieldAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetCustomFieldAction.java index afa8f92d4d..ac3303a975 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetCustomFieldAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetCustomFieldAction.java @@ -54,7 +54,7 @@ public interface ProductTailoringSetAssetCustomFieldAction extends ProductTailor public String getSku(); /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @return staged */ @@ -108,7 +108,7 @@ public interface ProductTailoringSetAssetCustomFieldAction extends ProductTailor public void setSku(final String sku); /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetCustomFieldActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetCustomFieldActionBuilder.java index 50f3bedc69..5a9b2def6d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetCustomFieldActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetCustomFieldActionBuilder.java @@ -67,7 +67,7 @@ public ProductTailoringSetAssetCustomFieldActionBuilder sku(@Nullable final Stri } /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @param staged value to be set * @return Builder */ @@ -142,7 +142,7 @@ public String getSku() { } /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetCustomFieldActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetCustomFieldActionImpl.java index afaf42223f..7ff760560f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetCustomFieldActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetCustomFieldActionImpl.java @@ -90,7 +90,7 @@ public String getSku() { } /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetCustomTypeAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetCustomTypeAction.java index d6fb6f15ef..484569d272 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetCustomTypeAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetCustomTypeAction.java @@ -55,7 +55,7 @@ public interface ProductTailoringSetAssetCustomTypeAction extends ProductTailori public String getSku(); /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @return staged */ @@ -110,7 +110,7 @@ public interface ProductTailoringSetAssetCustomTypeAction extends ProductTailori public void setSku(final String sku); /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetCustomTypeActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetCustomTypeActionBuilder.java index 78ea9b2dd6..cf8e1abe6b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetCustomTypeActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetCustomTypeActionBuilder.java @@ -68,7 +68,7 @@ public ProductTailoringSetAssetCustomTypeActionBuilder sku(@Nullable final Strin } /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @param staged value to be set * @return Builder */ @@ -196,7 +196,7 @@ public String getSku() { } /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetCustomTypeActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetCustomTypeActionImpl.java index e775d9ae87..58b925218b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetCustomTypeActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetCustomTypeActionImpl.java @@ -91,7 +91,7 @@ public String getSku() { } /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetDescriptionAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetDescriptionAction.java index d7b8f81bcf..274d715e93 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetDescriptionAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetDescriptionAction.java @@ -54,7 +54,7 @@ public interface ProductTailoringSetAssetDescriptionAction extends ProductTailor public String getSku(); /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @return staged */ @@ -100,7 +100,7 @@ public interface ProductTailoringSetAssetDescriptionAction extends ProductTailor public void setSku(final String sku); /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetDescriptionActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetDescriptionActionBuilder.java index 331ddd733e..5e0b9ea6a3 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetDescriptionActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetDescriptionActionBuilder.java @@ -65,7 +65,7 @@ public ProductTailoringSetAssetDescriptionActionBuilder sku(@Nullable final Stri } /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @param staged value to be set * @return Builder */ @@ -154,7 +154,7 @@ public String getSku() { } /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetDescriptionActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetDescriptionActionImpl.java index 8aca72f6ff..56e3fb051e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetDescriptionActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetDescriptionActionImpl.java @@ -87,7 +87,7 @@ public String getSku() { } /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetKeyAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetKeyAction.java index f3a2b07e3b..b337eec362 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetKeyAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetKeyAction.java @@ -54,7 +54,7 @@ public interface ProductTailoringSetAssetKeyAction extends ProductTailoringUpdat public String getSku(); /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @return staged */ @@ -92,7 +92,7 @@ public interface ProductTailoringSetAssetKeyAction extends ProductTailoringUpdat public void setSku(final String sku); /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetKeyActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetKeyActionBuilder.java index 3fea2daaf3..19d1eb772f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetKeyActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetKeyActionBuilder.java @@ -60,7 +60,7 @@ public ProductTailoringSetAssetKeyActionBuilder sku(@Nullable final String sku) } /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @param staged value to be set * @return Builder */ @@ -113,7 +113,7 @@ public String getSku() { } /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetKeyActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetKeyActionImpl.java index 3f130cf2ec..72d103a163 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetKeyActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetKeyActionImpl.java @@ -82,7 +82,7 @@ public String getSku() { } /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetSourcesAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetSourcesAction.java index 4896ede556..e4f0740e83 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetSourcesAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetSourcesAction.java @@ -57,7 +57,7 @@ public interface ProductTailoringSetAssetSourcesAction extends ProductTailoringU public String getSku(); /** - *

    If true, only the staged Asset is updated. If false both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @return staged */ @@ -104,7 +104,7 @@ public interface ProductTailoringSetAssetSourcesAction extends ProductTailoringU public void setSku(final String sku); /** - *

    If true, only the staged Asset is updated. If false both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetSourcesActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetSourcesActionBuilder.java index 38947c281d..6e76b55978 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetSourcesActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetSourcesActionBuilder.java @@ -64,7 +64,7 @@ public ProductTailoringSetAssetSourcesActionBuilder sku(@Nullable final String s } /** - *

    If true, only the staged Asset is updated. If false both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @param staged value to be set * @return Builder */ @@ -206,7 +206,7 @@ public String getSku() { } /** - *

    If true, only the staged Asset is updated. If false both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetSourcesActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetSourcesActionImpl.java index 4e54f5db38..33a7153196 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetSourcesActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetSourcesActionImpl.java @@ -86,7 +86,7 @@ public String getSku() { } /** - *

    If true, only the staged Asset is updated. If false both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetTagsAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetTagsAction.java index d84ba70fef..dfde63516f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetTagsAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetTagsAction.java @@ -52,7 +52,7 @@ public interface ProductTailoringSetAssetTagsAction extends ProductTailoringUpda public String getSku(); /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @return staged */ @@ -98,7 +98,7 @@ public interface ProductTailoringSetAssetTagsAction extends ProductTailoringUpda public void setSku(final String sku); /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetTagsActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetTagsActionBuilder.java index e781953b15..23309aa8dc 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetTagsActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetTagsActionBuilder.java @@ -63,7 +63,7 @@ public ProductTailoringSetAssetTagsActionBuilder sku(@Nullable final String sku) } /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @param staged value to be set * @return Builder */ @@ -152,7 +152,7 @@ public String getSku() { } /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetTagsActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetTagsActionImpl.java index 6795708669..f28153d12c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetTagsActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAssetTagsActionImpl.java @@ -86,7 +86,7 @@ public String getSku() { } /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAttributeAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAttributeAction.java index a05749daae..550f86e143 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAttributeAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAttributeAction.java @@ -79,7 +79,7 @@ public interface ProductTailoringSetAttributeAction extends ProductTailoringUpda public Object getValue(); /** - *

    If true, only the staged Attribute is set. If false, both current and staged Attribute is set.

    + *

    Whether only the staged Attribute is set. If false, both current and staged Attribute is set.

    * @return staged */ @@ -124,7 +124,7 @@ public interface ProductTailoringSetAttributeAction extends ProductTailoringUpda public void setValue(final Object value); /** - *

    If true, only the staged Attribute is set. If false, both current and staged Attribute is set.

    + *

    Whether only the staged Attribute is set. If false, both current and staged Attribute is set.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAttributeActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAttributeActionBuilder.java index 2bd6852070..a0bb51eb9e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAttributeActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAttributeActionBuilder.java @@ -91,7 +91,7 @@ public ProductTailoringSetAttributeActionBuilder value(@Nullable final java.lang } /** - *

    If true, only the staged Attribute is set. If false, both current and staged Attribute is set.

    + *

    Whether only the staged Attribute is set. If false, both current and staged Attribute is set.

    * @param staged value to be set * @return Builder */ @@ -150,7 +150,7 @@ public java.lang.Object getValue() { } /** - *

    If true, only the staged Attribute is set. If false, both current and staged Attribute is set.

    + *

    Whether only the staged Attribute is set. If false, both current and staged Attribute is set.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAttributeActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAttributeActionImpl.java index ef8f3823d1..7f4fb3fb88 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAttributeActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAttributeActionImpl.java @@ -107,7 +107,7 @@ public java.lang.Object getValue() { } /** - *

    If true, only the staged Attribute is set. If false, both current and staged Attribute is set.

    + *

    Whether only the staged Attribute is set. If false, both current and staged Attribute is set.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAttributeInAllVariantsAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAttributeInAllVariantsAction.java index 083e487e00..59fbb1afb9 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAttributeInAllVariantsAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAttributeInAllVariantsAction.java @@ -63,7 +63,7 @@ public interface ProductTailoringSetAttributeInAllVariantsAction extends Product public Object getValue(); /** - *

    If true, only the staged Attributes are set. If false, both the current and staged Attributes are set.

    + *

    Whether only the staged Attributes are set. If false, both the current and staged Attributes are set.

    * @return staged */ @@ -94,7 +94,7 @@ public interface ProductTailoringSetAttributeInAllVariantsAction extends Product public void setValue(final Object value); /** - *

    If true, only the staged Attributes are set. If false, both the current and staged Attributes are set.

    + *

    Whether only the staged Attributes are set. If false, both the current and staged Attributes are set.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAttributeInAllVariantsActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAttributeInAllVariantsActionBuilder.java index 0edb5564e1..57e64e460d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAttributeInAllVariantsActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAttributeInAllVariantsActionBuilder.java @@ -64,7 +64,7 @@ public ProductTailoringSetAttributeInAllVariantsActionBuilder value(@Nullable fi } /** - *

    If true, only the staged Attributes are set. If false, both the current and staged Attributes are set.

    + *

    Whether only the staged Attributes are set. If false, both the current and staged Attributes are set.

    * @param staged value to be set * @return Builder */ @@ -103,7 +103,7 @@ public java.lang.Object getValue() { } /** - *

    If true, only the staged Attributes are set. If false, both the current and staged Attributes are set.

    + *

    Whether only the staged Attributes are set. If false, both the current and staged Attributes are set.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAttributeInAllVariantsActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAttributeInAllVariantsActionImpl.java index c67114912e..5d15787d23 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAttributeInAllVariantsActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetAttributeInAllVariantsActionImpl.java @@ -85,7 +85,7 @@ public java.lang.Object getValue() { } /** - *

    If true, only the staged Attributes are set. If false, both the current and staged Attributes are set.

    + *

    Whether only the staged Attributes are set. If false, both the current and staged Attributes are set.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetDescriptionAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetDescriptionAction.java index 745e86c2be..86e89beb9a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetDescriptionAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetDescriptionAction.java @@ -46,7 +46,7 @@ public interface ProductTailoringSetDescriptionAction extends ProductTailoringUp public LocalizedString getDescription(); /** - *

    If true, only the staged description is updated. If false, both the current and staged description are updated.

    + *

    Whether only the staged description is updated. If false, both the current and staged description are updated.

    * @return staged */ @@ -61,7 +61,7 @@ public interface ProductTailoringSetDescriptionAction extends ProductTailoringUp public void setDescription(final LocalizedString description); /** - *

    If true, only the staged description is updated. If false, both the current and staged description are updated.

    + *

    Whether only the staged description is updated. If false, both the current and staged description are updated.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetDescriptionActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetDescriptionActionBuilder.java index 9e7f84c88f..37a061f065 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetDescriptionActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetDescriptionActionBuilder.java @@ -66,7 +66,7 @@ public ProductTailoringSetDescriptionActionBuilder description( } /** - *

    If true, only the staged description is updated. If false, both the current and staged description are updated.

    + *

    Whether only the staged description is updated. If false, both the current and staged description are updated.

    * @param staged value to be set * @return Builder */ @@ -87,7 +87,7 @@ public com.commercetools.api.models.common.LocalizedString getDescription() { } /** - *

    If true, only the staged description is updated. If false, both the current and staged description are updated.

    + *

    Whether only the staged description is updated. If false, both the current and staged description are updated.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetDescriptionActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetDescriptionActionImpl.java index 88e155634b..f255ee0fa5 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetDescriptionActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetDescriptionActionImpl.java @@ -65,7 +65,7 @@ public com.commercetools.api.models.common.LocalizedString getDescription() { } /** - *

    If true, only the staged description is updated. If false, both the current and staged description are updated.

    + *

    Whether only the staged description is updated. If false, both the current and staged description are updated.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetExternalImagesAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetExternalImagesAction.java index 9239bfe62b..65450ae1eb 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetExternalImagesAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetExternalImagesAction.java @@ -64,7 +64,7 @@ public interface ProductTailoringSetExternalImagesAction extends ProductTailorin public List getImages(); /** - *

    If true, only the staged images is updated. If false, both the current and staged images is updated.

    + *

    Whether only the staged images is updated. If false, both the current and staged images are updated.

    * @return staged */ @@ -103,7 +103,7 @@ public interface ProductTailoringSetExternalImagesAction extends ProductTailorin public void setImages(final List images); /** - *

    If true, only the staged images is updated. If false, both the current and staged images is updated.

    + *

    Whether only the staged images is updated. If false, both the current and staged images are updated.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetExternalImagesActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetExternalImagesActionBuilder.java index 853dce50d6..370bc945f8 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetExternalImagesActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetExternalImagesActionBuilder.java @@ -155,7 +155,7 @@ public ProductTailoringSetExternalImagesActionBuilder setImages( } /** - *

    If true, only the staged images is updated. If false, both the current and staged images is updated.

    + *

    Whether only the staged images is updated. If false, both the current and staged images are updated.

    * @param staged value to be set * @return Builder */ @@ -197,7 +197,7 @@ public java.util.List getImages() { } /** - *

    If true, only the staged images is updated. If false, both the current and staged images is updated.

    + *

    Whether only the staged images is updated. If false, both the current and staged images are updated.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetExternalImagesActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetExternalImagesActionImpl.java index 0d2a36bcd4..ad8d4fecfa 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetExternalImagesActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetExternalImagesActionImpl.java @@ -89,7 +89,7 @@ public java.util.List getImages() { } /** - *

    If true, only the staged images is updated. If false, both the current and staged images is updated.

    + *

    Whether only the staged images is updated. If false, both the current and staged images are updated.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetImageLabelAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetImageLabelAction.java index f336531e46..7f72f5df89 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetImageLabelAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetImageLabelAction.java @@ -70,7 +70,7 @@ public interface ProductTailoringSetImageLabelAction extends ProductTailoringUpd public String getLabel(); /** - *

    If true, only the staged image is updated. If false, both the current and staged image is updated.

    + *

    Whether only the staged image is updated. If false, both the current and staged image is updated.

    * @return staged */ @@ -106,7 +106,7 @@ public interface ProductTailoringSetImageLabelAction extends ProductTailoringUpd public void setLabel(final String label); /** - *

    If true, only the staged image is updated. If false, both the current and staged image is updated.

    + *

    Whether only the staged image is updated. If false, both the current and staged image is updated.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetImageLabelActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetImageLabelActionBuilder.java index a9fd7d1d86..5f3151f3e5 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetImageLabelActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetImageLabelActionBuilder.java @@ -82,7 +82,7 @@ public ProductTailoringSetImageLabelActionBuilder label(@Nullable final String l } /** - *

    If true, only the staged image is updated. If false, both the current and staged image is updated.

    + *

    Whether only the staged image is updated. If false, both the current and staged image is updated.

    * @param staged value to be set * @return Builder */ @@ -132,7 +132,7 @@ public String getLabel() { } /** - *

    If true, only the staged image is updated. If false, both the current and staged image is updated.

    + *

    Whether only the staged image is updated. If false, both the current and staged image is updated.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetImageLabelActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetImageLabelActionImpl.java index a810cda2ee..e9733d7b35 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetImageLabelActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetImageLabelActionImpl.java @@ -98,7 +98,7 @@ public String getLabel() { } /** - *

    If true, only the staged image is updated. If false, both the current and staged image is updated.

    + *

    Whether only the staged image is updated. If false, both the current and staged image is updated.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetMetaAttributesAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetMetaAttributesAction.java index ad1548b4c1..8d9407fae8 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetMetaAttributesAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetMetaAttributesAction.java @@ -62,7 +62,7 @@ public interface ProductTailoringSetMetaAttributesAction extends ProductTailorin public LocalizedString getMetaKeywords(); /** - *

    If true, only the staged attributes are updated. If false, both the current and staged attributes are updated.

    + *

    Whether only the staged attributes are updated. If false, both the current and staged attributes are updated.

    * @return staged */ @@ -91,7 +91,7 @@ public interface ProductTailoringSetMetaAttributesAction extends ProductTailorin public void setMetaKeywords(final LocalizedString metaKeywords); /** - *

    If true, only the staged attributes are updated. If false, both the current and staged attributes are updated.

    + *

    Whether only the staged attributes are updated. If false, both the current and staged attributes are updated.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetMetaAttributesActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetMetaAttributesActionBuilder.java index 75ca2aac5f..a09d4eb428 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetMetaAttributesActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetMetaAttributesActionBuilder.java @@ -145,7 +145,7 @@ public ProductTailoringSetMetaAttributesActionBuilder metaKeywords( } /** - *

    If true, only the staged attributes are updated. If false, both the current and staged attributes are updated.

    + *

    Whether only the staged attributes are updated. If false, both the current and staged attributes are updated.

    * @param staged value to be set * @return Builder */ @@ -186,7 +186,7 @@ public com.commercetools.api.models.common.LocalizedString getMetaKeywords() { } /** - *

    If true, only the staged attributes are updated. If false, both the current and staged attributes are updated.

    + *

    Whether only the staged attributes are updated. If false, both the current and staged attributes are updated.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetMetaAttributesActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetMetaAttributesActionImpl.java index 3114df10ec..cdc2d133f1 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetMetaAttributesActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetMetaAttributesActionImpl.java @@ -89,7 +89,7 @@ public com.commercetools.api.models.common.LocalizedString getMetaKeywords() { } /** - *

    If true, only the staged attributes are updated. If false, both the current and staged attributes are updated.

    + *

    Whether only the staged attributes are updated. If false, both the current and staged attributes are updated.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetMetaDescriptionAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetMetaDescriptionAction.java index c9276c6044..63c7a92561 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetMetaDescriptionAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetMetaDescriptionAction.java @@ -46,7 +46,7 @@ public interface ProductTailoringSetMetaDescriptionAction extends ProductTailori public LocalizedString getMetaDescription(); /** - *

    If true, only the staged metaDescription is updated. If false, both the current and staged metaDescription are updated.

    + *

    Whether only the staged metaDescription is updated. If false, both the current and staged metaDescription are updated.

    * @return staged */ @@ -61,7 +61,7 @@ public interface ProductTailoringSetMetaDescriptionAction extends ProductTailori public void setMetaDescription(final LocalizedString metaDescription); /** - *

    If true, only the staged metaDescription is updated. If false, both the current and staged metaDescription are updated.

    + *

    Whether only the staged metaDescription is updated. If false, both the current and staged metaDescription are updated.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetMetaDescriptionActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetMetaDescriptionActionBuilder.java index 95de53fbc5..ef41f8ab85 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetMetaDescriptionActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetMetaDescriptionActionBuilder.java @@ -67,7 +67,7 @@ public ProductTailoringSetMetaDescriptionActionBuilder metaDescription( } /** - *

    If true, only the staged metaDescription is updated. If false, both the current and staged metaDescription are updated.

    + *

    Whether only the staged metaDescription is updated. If false, both the current and staged metaDescription are updated.

    * @param staged value to be set * @return Builder */ @@ -88,7 +88,7 @@ public com.commercetools.api.models.common.LocalizedString getMetaDescription() } /** - *

    If true, only the staged metaDescription is updated. If false, both the current and staged metaDescription are updated.

    + *

    Whether only the staged metaDescription is updated. If false, both the current and staged metaDescription are updated.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetMetaDescriptionActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetMetaDescriptionActionImpl.java index 48ac593cbf..c09eb6c54e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetMetaDescriptionActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetMetaDescriptionActionImpl.java @@ -66,7 +66,7 @@ public com.commercetools.api.models.common.LocalizedString getMetaDescription() } /** - *

    If true, only the staged metaDescription is updated. If false, both the current and staged metaDescription are updated.

    + *

    Whether only the staged metaDescription is updated. If false, both the current and staged metaDescription are updated.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetMetaKeywordsAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetMetaKeywordsAction.java index f209d3d3fa..d7058902f0 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetMetaKeywordsAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetMetaKeywordsAction.java @@ -46,7 +46,7 @@ public interface ProductTailoringSetMetaKeywordsAction extends ProductTailoringU public LocalizedString getMetaKeywords(); /** - *

    If true, only the staged metaKeywords is updated. If false, both the current and staged metaKeywords are updated.

    + *

    Whether only the staged metaKeywords is updated. If false, both the current and staged metaKeywords are updated.

    * @return staged */ @@ -61,7 +61,7 @@ public interface ProductTailoringSetMetaKeywordsAction extends ProductTailoringU public void setMetaKeywords(final LocalizedString metaKeywords); /** - *

    If true, only the staged metaKeywords is updated. If false, both the current and staged metaKeywords are updated.

    + *

    Whether only the staged metaKeywords is updated. If false, both the current and staged metaKeywords are updated.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetMetaKeywordsActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetMetaKeywordsActionBuilder.java index e7e1fd6d84..7f788761b6 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetMetaKeywordsActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetMetaKeywordsActionBuilder.java @@ -66,7 +66,7 @@ public ProductTailoringSetMetaKeywordsActionBuilder metaKeywords( } /** - *

    If true, only the staged metaKeywords is updated. If false, both the current and staged metaKeywords are updated.

    + *

    Whether only the staged metaKeywords is updated. If false, both the current and staged metaKeywords are updated.

    * @param staged value to be set * @return Builder */ @@ -87,7 +87,7 @@ public com.commercetools.api.models.common.LocalizedString getMetaKeywords() { } /** - *

    If true, only the staged metaKeywords is updated. If false, both the current and staged metaKeywords are updated.

    + *

    Whether only the staged metaKeywords is updated. If false, both the current and staged metaKeywords are updated.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetMetaKeywordsActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetMetaKeywordsActionImpl.java index 3d2de013dc..ec230bacd2 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetMetaKeywordsActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetMetaKeywordsActionImpl.java @@ -65,7 +65,7 @@ public com.commercetools.api.models.common.LocalizedString getMetaKeywords() { } /** - *

    If true, only the staged metaKeywords is updated. If false, both the current and staged metaKeywords are updated.

    + *

    Whether only the staged metaKeywords is updated. If false, both the current and staged metaKeywords are updated.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetMetaTitleAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetMetaTitleAction.java index 265d240209..826604676b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetMetaTitleAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetMetaTitleAction.java @@ -46,7 +46,7 @@ public interface ProductTailoringSetMetaTitleAction extends ProductTailoringUpda public LocalizedString getMetaTitle(); /** - *

    If true, only the staged metaTitle is updated. If false, both the current and staged metaTitle are updated.

    + *

    Whether only the staged metaTitle is updated. If false, both the current and staged metaTitle are updated.

    * @return staged */ @@ -61,7 +61,7 @@ public interface ProductTailoringSetMetaTitleAction extends ProductTailoringUpda public void setMetaTitle(final LocalizedString metaTitle); /** - *

    If true, only the staged metaTitle is updated. If false, both the current and staged metaTitle are updated.

    + *

    Whether only the staged metaTitle is updated. If false, both the current and staged metaTitle are updated.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetMetaTitleActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetMetaTitleActionBuilder.java index 5aabab1148..5af94020a7 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetMetaTitleActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetMetaTitleActionBuilder.java @@ -66,7 +66,7 @@ public ProductTailoringSetMetaTitleActionBuilder metaTitle( } /** - *

    If true, only the staged metaTitle is updated. If false, both the current and staged metaTitle are updated.

    + *

    Whether only the staged metaTitle is updated. If false, both the current and staged metaTitle are updated.

    * @param staged value to be set * @return Builder */ @@ -87,7 +87,7 @@ public com.commercetools.api.models.common.LocalizedString getMetaTitle() { } /** - *

    If true, only the staged metaTitle is updated. If false, both the current and staged metaTitle are updated.

    + *

    Whether only the staged metaTitle is updated. If false, both the current and staged metaTitle are updated.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetMetaTitleActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetMetaTitleActionImpl.java index f0ce4b0b65..6403961c49 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetMetaTitleActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetMetaTitleActionImpl.java @@ -65,7 +65,7 @@ public com.commercetools.api.models.common.LocalizedString getMetaTitle() { } /** - *

    If true, only the staged metaTitle is updated. If false, both the current and staged metaTitle are updated.

    + *

    Whether only the staged metaTitle is updated. If false, both the current and staged metaTitle are updated.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetNameAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetNameAction.java index 9cdf9e7102..f47e9db3b0 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetNameAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetNameAction.java @@ -46,7 +46,7 @@ public interface ProductTailoringSetNameAction extends ProductTailoringUpdateAct public LocalizedString getName(); /** - *

    If true, only the staged name is updated. If false, both the current and staged name are updated.

    + *

    Whether only the staged name is updated. If false, both the current and staged name are updated.

    * @return staged */ @@ -61,7 +61,7 @@ public interface ProductTailoringSetNameAction extends ProductTailoringUpdateAct public void setName(final LocalizedString name); /** - *

    If true, only the staged name is updated. If false, both the current and staged name are updated.

    + *

    Whether only the staged name is updated. If false, both the current and staged name are updated.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetNameActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetNameActionBuilder.java index 38c3dda723..3a965c3e9d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetNameActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetNameActionBuilder.java @@ -66,7 +66,7 @@ public ProductTailoringSetNameActionBuilder name( } /** - *

    If true, only the staged name is updated. If false, both the current and staged name are updated.

    + *

    Whether only the staged name is updated. If false, both the current and staged name are updated.

    * @param staged value to be set * @return Builder */ @@ -87,7 +87,7 @@ public com.commercetools.api.models.common.LocalizedString getName() { } /** - *

    If true, only the staged name is updated. If false, both the current and staged name are updated.

    + *

    Whether only the staged name is updated. If false, both the current and staged name are updated.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetNameActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetNameActionImpl.java index 500f47fc13..5c9ee7a97f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetNameActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetNameActionImpl.java @@ -65,7 +65,7 @@ public com.commercetools.api.models.common.LocalizedString getName() { } /** - *

    If true, only the staged name is updated. If false, both the current and staged name are updated.

    + *

    Whether only the staged name is updated. If false, both the current and staged name are updated.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetProductAttributeAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetProductAttributeAction.java index d401b6d876..5856b48d33 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetProductAttributeAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetProductAttributeAction.java @@ -63,7 +63,7 @@ public interface ProductTailoringSetProductAttributeAction extends ProductTailor public Object getValue(); /** - *

    If true, then only the staged Attribute is set. If false, then both the current and staged Attributes are set.

    + *

    Whether only the staged Attribute is set. If false, both the current and staged Attributes are set.

    * @return staged */ @@ -94,7 +94,7 @@ public interface ProductTailoringSetProductAttributeAction extends ProductTailor public void setValue(final Object value); /** - *

    If true, then only the staged Attribute is set. If false, then both the current and staged Attributes are set.

    + *

    Whether only the staged Attribute is set. If false, both the current and staged Attributes are set.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetProductAttributeActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetProductAttributeActionBuilder.java index aa613db060..b0391fe600 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetProductAttributeActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetProductAttributeActionBuilder.java @@ -64,7 +64,7 @@ public ProductTailoringSetProductAttributeActionBuilder value(@Nullable final ja } /** - *

    If true, then only the staged Attribute is set. If false, then both the current and staged Attributes are set.

    + *

    Whether only the staged Attribute is set. If false, both the current and staged Attributes are set.

    * @param staged value to be set * @return Builder */ @@ -103,7 +103,7 @@ public java.lang.Object getValue() { } /** - *

    If true, then only the staged Attribute is set. If false, then both the current and staged Attributes are set.

    + *

    Whether only the staged Attribute is set. If false, both the current and staged Attributes are set.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetProductAttributeActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetProductAttributeActionImpl.java index 436edc0b96..96243c8bea 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetProductAttributeActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetProductAttributeActionImpl.java @@ -85,7 +85,7 @@ public java.lang.Object getValue() { } /** - *

    If true, then only the staged Attribute is set. If false, then both the current and staged Attributes are set.

    + *

    Whether only the staged Attribute is set. If false, both the current and staged Attributes are set.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetSlugAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetSlugAction.java index 1f318d5c8f..7062598c8e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetSlugAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetSlugAction.java @@ -46,7 +46,7 @@ public interface ProductTailoringSetSlugAction extends ProductTailoringUpdateAct public LocalizedString getSlug(); /** - *

    If true, only the staged slug is updated. If false, both the current and staged slug are updated.

    + *

    Whether only the staged slug is updated. If false, both the current and staged slug are updated.

    * @return staged */ @@ -61,7 +61,7 @@ public interface ProductTailoringSetSlugAction extends ProductTailoringUpdateAct public void setSlug(final LocalizedString slug); /** - *

    If true, only the staged slug is updated. If false, both the current and staged slug are updated.

    + *

    Whether only the staged slug is updated. If false, both the current and staged slug are updated.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetSlugActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetSlugActionBuilder.java index 6d56943d74..c50183817d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetSlugActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetSlugActionBuilder.java @@ -66,7 +66,7 @@ public ProductTailoringSetSlugActionBuilder slug( } /** - *

    If true, only the staged slug is updated. If false, both the current and staged slug are updated.

    + *

    Whether only the staged slug is updated. If false, both the current and staged slug are updated.

    * @param staged value to be set * @return Builder */ @@ -87,7 +87,7 @@ public com.commercetools.api.models.common.LocalizedString getSlug() { } /** - *

    If true, only the staged slug is updated. If false, both the current and staged slug are updated.

    + *

    Whether only the staged slug is updated. If false, both the current and staged slug are updated.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetSlugActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetSlugActionImpl.java index 38efdd69cc..ddae231ff5 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetSlugActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetSlugActionImpl.java @@ -65,7 +65,7 @@ public com.commercetools.api.models.common.LocalizedString getSlug() { } /** - *

    If true, only the staged slug is updated. If false, both the current and staged slug are updated.

    + *

    Whether only the staged slug is updated. If false, both the current and staged slug are updated.

    */ public Boolean getStaged() { 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 6bbca9cba6..228a8f6632 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 @@ -67,7 +67,7 @@ public interface AttributeDefinition { public LocalizedString getLabel(); /** - *

    If true, the Attribute must have a value on a ProductVariant.

    + *

    Whether the Attribute must have a value on a ProductVariant.

    * @return isRequired */ @NotNull @@ -107,7 +107,7 @@ public interface AttributeDefinition { public TextInputHint getInputHint(); /** - *

    If true, the Attribute's values are available in the Product Search or the Product Projection Search API for use in full-text search queries, filters, and facets. However, if an Attribute's level is set as Product, then Product Projection Search does not support the Attribute. To use the Attribute in search, filters, or facets, set isSearchable to true for all AttributeDefinitions with the same name across different ProductTypes. If the isSearchable values are different, the Attribute isn't available for search, filters, or facets.

    + *

    Whether the Attribute's values are available in the Product Search or the Product Projection Search API for use in full-text search queries, filters, and facets. However, if an Attribute's level is set as Product, then Product Projection Search does not support the Attribute. To use the Attribute in search, filters, or facets, set isSearchable to true for all AttributeDefinitions with the same name across different ProductTypes. If the isSearchable values are different, the Attribute isn't available for search, filters, or facets.

    *

    The exact features that are available with this flag depend 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 */ @@ -137,7 +137,7 @@ public interface AttributeDefinition { public void setLabel(final LocalizedString label); /** - *

    If true, the Attribute must have a value on a ProductVariant.

    + *

    Whether the Attribute must have a value on a ProductVariant.

    * @param isRequired value to be set */ @@ -172,7 +172,7 @@ public interface AttributeDefinition { public void setInputHint(final TextInputHint inputHint); /** - *

    If true, the Attribute's values are available in the Product Search or the Product Projection Search API for use in full-text search queries, filters, and facets. However, if an Attribute's level is set as Product, then Product Projection Search does not support the Attribute. To use the Attribute in search, filters, or facets, set isSearchable to true for all AttributeDefinitions with the same name across different ProductTypes. If the isSearchable values are different, the Attribute isn't available for search, filters, or facets.

    + *

    Whether the Attribute's values are available in the Product Search or the Product Projection Search API for use in full-text search queries, filters, and facets. However, if an Attribute's level is set as Product, then Product Projection Search does not support the Attribute. To use the Attribute in search, filters, or facets, set isSearchable to true for all AttributeDefinitions with the same name across different ProductTypes. If the isSearchable values are different, the Attribute isn't available for search, filters, or facets.

    *

    The exact features that are available with this flag depend 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 702f2c91a8..123ae9141d 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 @@ -120,7 +120,7 @@ public AttributeDefinitionBuilder label(final com.commercetools.api.models.commo } /** - *

    If true, the Attribute must have a value on a ProductVariant.

    + *

    Whether the Attribute must have a value on a ProductVariant.

    * @param isRequired value to be set * @return Builder */ @@ -202,7 +202,7 @@ public AttributeDefinitionBuilder inputHint( } /** - *

    If true, the Attribute's values are available in the Product Search or the Product Projection Search API for use in full-text search queries, filters, and facets. However, if an Attribute's level is set as Product, then Product Projection Search does not support the Attribute. To use the Attribute in search, filters, or facets, set isSearchable to true for all AttributeDefinitions with the same name across different ProductTypes. If the isSearchable values are different, the Attribute isn't available for search, filters, or facets.

    + *

    Whether the Attribute's values are available in the Product Search or the Product Projection Search API for use in full-text search queries, filters, and facets. However, if an Attribute's level is set as Product, then Product Projection Search does not support the Attribute. To use the Attribute in search, filters, or facets, set isSearchable to true for all AttributeDefinitions with the same name across different ProductTypes. If the isSearchable values are different, the Attribute isn't available for search, filters, or facets.

    *

    The exact features that are available with this flag depend 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 @@ -241,7 +241,7 @@ public com.commercetools.api.models.common.LocalizedString getLabel() { } /** - *

    If true, the Attribute must have a value on a ProductVariant.

    + *

    Whether the Attribute must have a value on a ProductVariant.

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

    If true, the Attribute's values are available in the Product Search or the Product Projection Search API for use in full-text search queries, filters, and facets. However, if an Attribute's level is set as Product, then Product Projection Search does not support the Attribute. To use the Attribute in search, filters, or facets, set isSearchable to true for all AttributeDefinitions with the same name across different ProductTypes. If the isSearchable values are different, the Attribute isn't available for search, filters, or facets.

    + *

    Whether the Attribute's values are available in the Product Search or the Product Projection Search API for use in full-text search queries, filters, and facets. However, if an Attribute's level is set as Product, then Product Projection Search does not support the Attribute. To use the Attribute in search, filters, or facets, set isSearchable to true for all AttributeDefinitions with the same name across different ProductTypes. If the isSearchable values are different, the Attribute isn't available for search, filters, or facets.

    *

    The exact features that are available with this flag depend 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 db074b067c..ebfd38e454 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 @@ -65,7 +65,7 @@ public interface AttributeDefinitionDraft extends io.vrap.rmf.base.client.Draft< public LocalizedString getLabel(); /** - *

    Set to true if the Attribute is required to have a value on a ProductVariant.

    + *

    Whether the Attribute is required to have a value on a ProductVariant.

    * @return isRequired */ @NotNull @@ -137,7 +137,7 @@ public interface AttributeDefinitionDraft extends io.vrap.rmf.base.client.Draft< public void setLabel(final LocalizedString label); /** - *

    Set to true if the Attribute is required to have a value on a ProductVariant.

    + *

    Whether the Attribute is required to have a value on a ProductVariant.

    * @param isRequired 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 da26f1d84e..9ee1aa34ec 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 @@ -123,7 +123,7 @@ public AttributeDefinitionDraftBuilder label(final com.commercetools.api.models. } /** - *

    Set to true if the Attribute is required to have a value on a ProductVariant.

    + *

    Whether the Attribute is required to have a value on a ProductVariant.

    * @param isRequired value to be set * @return Builder */ @@ -247,7 +247,7 @@ public com.commercetools.api.models.common.LocalizedString getLabel() { } /** - *

    Set to true if the Attribute is required to have a value on a ProductVariant.

    + *

    Whether the Attribute is required to have a value on a ProductVariant.

    * @return isRequired */ 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 e74705cd75..87cbdb30a3 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 @@ -99,7 +99,7 @@ public com.commercetools.api.models.common.LocalizedString getLabel() { } /** - *

    Set to true if the Attribute is required to have a value on a ProductVariant.

    + *

    Whether the Attribute is required to have a value on a ProductVariant.

    */ public Boolean getIsRequired() { 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 3d548825a0..1968089a1e 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 @@ -96,7 +96,7 @@ public com.commercetools.api.models.common.LocalizedString getLabel() { } /** - *

    If true, the Attribute must have a value on a ProductVariant.

    + *

    Whether the Attribute must have a value on a ProductVariant.

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

    If true, the Attribute's values are available in the Product Search or the Product Projection Search API for use in full-text search queries, filters, and facets. However, if an Attribute's level is set as Product, then Product Projection Search does not support the Attribute. To use the Attribute in search, filters, or facets, set isSearchable to true for all AttributeDefinitions with the same name across different ProductTypes. If the isSearchable values are different, the Attribute isn't available for search, filters, or facets.

    + *

    Whether the Attribute's values are available in the Product Search or the Product Projection Search API for use in full-text search queries, filters, and facets. However, if an Attribute's level is set as Product, then Product Projection Search does not support the Attribute. To use the Attribute in search, filters, or facets, set isSearchable to true for all AttributeDefinitions with the same name across different ProductTypes. If the isSearchable values are different, the Attribute isn't available for search, filters, or facets.

    *

    The exact features that are available with this flag depend 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/project/InventoryConfiguration.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/InventoryConfiguration.java index 61fb788670..9f2f7d7320 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/InventoryConfiguration.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/InventoryConfiguration.java @@ -40,7 +40,7 @@ public interface InventoryConfiguration { public Integer getReservationExpirationInMinutes(); /** - *

    If set to true, Reservations are marked as Expired once their reservationExpirationInMinutes is reached. The reserved inventory is then made available. If set to false, tracking Line Items with expired reservations becomes your responsibility.

    + *

    Whether Reservations are marked as Expired once their reservationExpirationInMinutes is reached. The reserved inventory is then made available. If set to false, tracking Line Items with expired reservations becomes your responsibility.

    * @return releaseExpiredReservations */ @NotNull @@ -55,7 +55,7 @@ public interface InventoryConfiguration { public void setReservationExpirationInMinutes(final Integer reservationExpirationInMinutes); /** - *

    If set to true, Reservations are marked as Expired once their reservationExpirationInMinutes is reached. The reserved inventory is then made available. If set to false, tracking Line Items with expired reservations becomes your responsibility.

    + *

    Whether Reservations are marked as Expired once their reservationExpirationInMinutes is reached. The reserved inventory is then made available. If set to false, tracking Line Items with expired reservations becomes your responsibility.

    * @param releaseExpiredReservations value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/InventoryConfigurationBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/InventoryConfigurationBuilder.java index 1057ec4bd1..94fd7ac34b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/InventoryConfigurationBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/InventoryConfigurationBuilder.java @@ -41,7 +41,7 @@ public InventoryConfigurationBuilder reservationExpirationInMinutes( } /** - *

    If set to true, Reservations are marked as Expired once their reservationExpirationInMinutes is reached. The reserved inventory is then made available. If set to false, tracking Line Items with expired reservations becomes your responsibility.

    + *

    Whether Reservations are marked as Expired once their reservationExpirationInMinutes is reached. The reserved inventory is then made available. If set to false, tracking Line Items with expired reservations becomes your responsibility.

    * @param releaseExpiredReservations value to be set * @return Builder */ @@ -62,7 +62,7 @@ public Integer getReservationExpirationInMinutes() { } /** - *

    If set to true, Reservations are marked as Expired once their reservationExpirationInMinutes is reached. The reserved inventory is then made available. If set to false, tracking Line Items with expired reservations becomes your responsibility.

    + *

    Whether Reservations are marked as Expired once their reservationExpirationInMinutes is reached. The reserved inventory is then made available. If set to false, tracking Line Items with expired reservations becomes your responsibility.

    * @return releaseExpiredReservations */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/InventoryConfigurationImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/InventoryConfigurationImpl.java index 4c1b700818..d64f5921e6 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/InventoryConfigurationImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/InventoryConfigurationImpl.java @@ -53,7 +53,7 @@ public Integer getReservationExpirationInMinutes() { } /** - *

    If set to true, Reservations are marked as Expired once their reservationExpirationInMinutes is reached. The reserved inventory is then made available. If set to false, tracking Line Items with expired reservations becomes your responsibility.

    + *

    Whether Reservations are marked as Expired once their reservationExpirationInMinutes is reached. The reserved inventory is then made available. If set to false, tracking Line Items with expired reservations becomes your responsibility.

    */ public Boolean getReleaseExpiredReservations() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/quote/QuoteDraft.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/quote/QuoteDraft.java index 77a9dec6a7..1ccdf5c7c5 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/quote/QuoteDraft.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/quote/QuoteDraft.java @@ -63,7 +63,7 @@ public interface QuoteDraft extends com.commercetools.api.models.CustomizableDra public Long getStagedQuoteVersion(); /** - *

    If true, the stagedQuoteState of the referenced StagedQuote will be set to Sent.

    + *

    Whether the stagedQuoteState of the referenced StagedQuote will be set to Sent.

    * @return stagedQuoteStateToSent */ @@ -112,7 +112,7 @@ public interface QuoteDraft extends com.commercetools.api.models.CustomizableDra public void setStagedQuoteVersion(final Long stagedQuoteVersion); /** - *

    If true, the stagedQuoteState of the referenced StagedQuote will be set to Sent.

    + *

    Whether the stagedQuoteState of the referenced StagedQuote will be set to Sent.

    * @param stagedQuoteStateToSent value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/quote/QuoteDraftBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/quote/QuoteDraftBuilder.java index d921932067..4982ad5be7 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/quote/QuoteDraftBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/quote/QuoteDraftBuilder.java @@ -103,7 +103,7 @@ public QuoteDraftBuilder stagedQuoteVersion(final Long stagedQuoteVersion) { } /** - *

    If true, the stagedQuoteState of the referenced StagedQuote will be set to Sent.

    + *

    Whether the stagedQuoteState of the referenced StagedQuote will be set to Sent.

    * @param stagedQuoteStateToSent value to be set * @return Builder */ @@ -224,7 +224,7 @@ public Long getStagedQuoteVersion() { } /** - *

    If true, the stagedQuoteState of the referenced StagedQuote will be set to Sent.

    + *

    Whether the stagedQuoteState of the referenced StagedQuote will be set to Sent.

    * @return stagedQuoteStateToSent */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/quote/QuoteDraftImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/quote/QuoteDraftImpl.java index 6c1c903f06..8eb4720c6d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/quote/QuoteDraftImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/quote/QuoteDraftImpl.java @@ -84,7 +84,7 @@ public Long getStagedQuoteVersion() { } /** - *

    If true, the stagedQuoteState of the referenced StagedQuote will be set to Sent.

    + *

    Whether the stagedQuoteState of the referenced StagedQuote will be set to Sent.

    */ public Boolean getStagedQuoteStateToSent() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/recurring_order/RecurringOrderTransitionStateAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/recurring_order/RecurringOrderTransitionStateAction.java index aaef602c94..55c0fe0f41 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/recurring_order/RecurringOrderTransitionStateAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/recurring_order/RecurringOrderTransitionStateAction.java @@ -50,7 +50,7 @@ public interface RecurringOrderTransitionStateAction extends RecurringOrderUpdat public StateResourceIdentifier getState(); /** - *

    Set to true to turn off validation.

    + *

    Whether to turn off validation.

    * @return force */ @@ -65,7 +65,7 @@ public interface RecurringOrderTransitionStateAction extends RecurringOrderUpdat public void setState(final StateResourceIdentifier state); /** - *

    Set to true to turn off validation.

    + *

    Whether to turn off validation.

    * @param force value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/recurring_order/RecurringOrderTransitionStateActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/recurring_order/RecurringOrderTransitionStateActionBuilder.java index 6cc63ef027..f9ede695c5 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/recurring_order/RecurringOrderTransitionStateActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/recurring_order/RecurringOrderTransitionStateActionBuilder.java @@ -66,7 +66,7 @@ public RecurringOrderTransitionStateActionBuilder state( } /** - *

    Set to true to turn off validation.

    + *

    Whether to turn off validation.

    * @param force value to be set * @return Builder */ @@ -86,7 +86,7 @@ public com.commercetools.api.models.state.StateResourceIdentifier getState() { } /** - *

    Set to true to turn off validation.

    + *

    Whether to turn off validation.

    * @return force */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/recurring_order/RecurringOrderTransitionStateActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/recurring_order/RecurringOrderTransitionStateActionImpl.java index 5ec4172ed0..ef4908e955 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/recurring_order/RecurringOrderTransitionStateActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/recurring_order/RecurringOrderTransitionStateActionImpl.java @@ -66,7 +66,7 @@ public com.commercetools.api.models.state.StateResourceIdentifier getState() { } /** - *

    Set to true to turn off validation.

    + *

    Whether to turn off validation.

    */ public Boolean getForce() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shipping_method/ShippingMethod.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shipping_method/ShippingMethod.java index 379ea2861e..8ed0dc7b2a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shipping_method/ShippingMethod.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shipping_method/ShippingMethod.java @@ -170,7 +170,7 @@ public interface ShippingMethod public Boolean getActive(); /** - *

    If true, this ShippingMethod is the Project's default ShippingMethod. When retrieving matching Shipping Methods, it is returned as the first item in the array. This flag does not automatically apply the Shipping Method to Carts.

    + *

    Whether this ShippingMethod is the Project's default ShippingMethod. When retrieving matching Shipping Methods, it is returned as the first item in the array. This flag does not automatically apply the Shipping Method to Carts.

    * @return isDefault */ @NotNull @@ -313,7 +313,7 @@ public interface ShippingMethod public void setActive(final Boolean active); /** - *

    If true, this ShippingMethod is the Project's default ShippingMethod. When retrieving matching Shipping Methods, it is returned as the first item in the array. This flag does not automatically apply the Shipping Method to Carts.

    + *

    Whether this ShippingMethod is the Project's default ShippingMethod. When retrieving matching Shipping Methods, it is returned as the first item in the array. This flag does not automatically apply the Shipping Method to Carts.

    * @param isDefault value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shipping_method/ShippingMethodBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shipping_method/ShippingMethodBuilder.java index d5c4ca8314..31878b0303 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shipping_method/ShippingMethodBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shipping_method/ShippingMethodBuilder.java @@ -437,7 +437,7 @@ public ShippingMethodBuilder active(final Boolean active) { } /** - *

    If true, this ShippingMethod is the Project's default ShippingMethod. When retrieving matching Shipping Methods, it is returned as the first item in the array. This flag does not automatically apply the Shipping Method to Carts.

    + *

    Whether this ShippingMethod is the Project's default ShippingMethod. When retrieving matching Shipping Methods, it is returned as the first item in the array. This flag does not automatically apply the Shipping Method to Carts.

    * @param isDefault value to be set * @return Builder */ @@ -735,7 +735,7 @@ public Boolean getActive() { } /** - *

    If true, this ShippingMethod is the Project's default ShippingMethod. When retrieving matching Shipping Methods, it is returned as the first item in the array. This flag does not automatically apply the Shipping Method to Carts.

    + *

    Whether this ShippingMethod is the Project's default ShippingMethod. When retrieving matching Shipping Methods, it is returned as the first item in the array. This flag does not automatically apply the Shipping Method to Carts.

    * @return isDefault */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shipping_method/ShippingMethodDraft.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shipping_method/ShippingMethodDraft.java index 91931d29c6..76088cf68a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shipping_method/ShippingMethodDraft.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shipping_method/ShippingMethodDraft.java @@ -100,7 +100,7 @@ public interface ShippingMethodDraft extends com.commercetools.api.models.Custom public List getZoneRates(); /** - *

    If set to true, the ShippingMethod can be used during the creation or update of a Cart or Order.

    + *

    Whether the ShippingMethod can be used during the creation or update of a Cart or Order.

    * @return active */ @@ -108,7 +108,7 @@ public interface ShippingMethodDraft extends com.commercetools.api.models.Custom public Boolean getActive(); /** - *

    If set to true, the ShippingMethod will be the Project's default ShippingMethod. When retrieving matching Shipping Methods, it is returned as the first item in the array. This flag does not automatically apply the Shipping Method to Carts.

    + *

    Whether the ShippingMethod will be the Project's default ShippingMethod. When retrieving matching Shipping Methods, it is returned as the first item in the array. This flag does not automatically apply the Shipping Method to Carts.

    * @return isDefault */ @NotNull @@ -201,14 +201,14 @@ public interface ShippingMethodDraft extends com.commercetools.api.models.Custom public void setZoneRates(final List zoneRates); /** - *

    If set to true, the ShippingMethod can be used during the creation or update of a Cart or Order.

    + *

    Whether the ShippingMethod can be used during the creation or update of a Cart or Order.

    * @param active value to be set */ public void setActive(final Boolean active); /** - *

    If set to true, the ShippingMethod will be the Project's default ShippingMethod. When retrieving matching Shipping Methods, it is returned as the first item in the array. This flag does not automatically apply the Shipping Method to Carts.

    + *

    Whether the ShippingMethod will be the Project's default ShippingMethod. When retrieving matching Shipping Methods, it is returned as the first item in the array. This flag does not automatically apply the Shipping Method to Carts.

    * @param isDefault value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shipping_method/ShippingMethodDraftBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shipping_method/ShippingMethodDraftBuilder.java index 95fab687fa..66135fc9dc 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shipping_method/ShippingMethodDraftBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shipping_method/ShippingMethodDraftBuilder.java @@ -297,7 +297,7 @@ public ShippingMethodDraftBuilder setZoneRates( } /** - *

    If set to true, the ShippingMethod can be used during the creation or update of a Cart or Order.

    + *

    Whether the ShippingMethod can be used during the creation or update of a Cart or Order.

    * @param active value to be set * @return Builder */ @@ -308,7 +308,7 @@ public ShippingMethodDraftBuilder active(@Nullable final Boolean active) { } /** - *

    If set to true, the ShippingMethod will be the Project's default ShippingMethod. When retrieving matching Shipping Methods, it is returned as the first item in the array. This flag does not automatically apply the Shipping Method to Carts.

    + *

    Whether the ShippingMethod will be the Project's default ShippingMethod. When retrieving matching Shipping Methods, it is returned as the first item in the array. This flag does not automatically apply the Shipping Method to Carts.

    * @param isDefault value to be set * @return Builder */ @@ -550,7 +550,7 @@ public java.util.ListIf set to true, the ShippingMethod can be used during the creation or update of a Cart or Order.

    + *

    Whether the ShippingMethod can be used during the creation or update of a Cart or Order.

    * @return active */ @@ -560,7 +560,7 @@ public Boolean getActive() { } /** - *

    If set to true, the ShippingMethod will be the Project's default ShippingMethod. When retrieving matching Shipping Methods, it is returned as the first item in the array. This flag does not automatically apply the Shipping Method to Carts.

    + *

    Whether the ShippingMethod will be the Project's default ShippingMethod. When retrieving matching Shipping Methods, it is returned as the first item in the array. This flag does not automatically apply the Shipping Method to Carts.

    * @return isDefault */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shipping_method/ShippingMethodDraftImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shipping_method/ShippingMethodDraftImpl.java index 934637991d..b5f868bb76 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shipping_method/ShippingMethodDraftImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shipping_method/ShippingMethodDraftImpl.java @@ -139,7 +139,7 @@ public java.util.ListIf set to true, the ShippingMethod can be used during the creation or update of a Cart or Order.

    + *

    Whether the ShippingMethod can be used during the creation or update of a Cart or Order.

    */ public Boolean getActive() { @@ -147,7 +147,7 @@ public Boolean getActive() { } /** - *

    If set to true, the ShippingMethod will be the Project's default ShippingMethod. When retrieving matching Shipping Methods, it is returned as the first item in the array. This flag does not automatically apply the Shipping Method to Carts.

    + *

    Whether the ShippingMethod will be the Project's default ShippingMethod. When retrieving matching Shipping Methods, it is returned as the first item in the array. This flag does not automatically apply the Shipping Method to Carts.

    */ public Boolean getIsDefault() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shipping_method/ShippingMethodImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shipping_method/ShippingMethodImpl.java index ea02272ce2..f0527215d0 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shipping_method/ShippingMethodImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shipping_method/ShippingMethodImpl.java @@ -219,7 +219,7 @@ public Boolean getActive() { } /** - *

    If true, this ShippingMethod is the Project's default ShippingMethod. When retrieving matching Shipping Methods, it is returned as the first item in the array. This flag does not automatically apply the Shipping Method to Carts.

    + *

    Whether this ShippingMethod is the Project's default ShippingMethod. When retrieving matching Shipping Methods, it is returned as the first item in the array. This flag does not automatically apply the Shipping Method to Carts.

    */ public Boolean getIsDefault() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shipping_method/ShippingRate.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shipping_method/ShippingRate.java index f4eaa3868b..d28cf2793a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shipping_method/ShippingRate.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shipping_method/ShippingRate.java @@ -53,7 +53,7 @@ public interface ShippingRate { public CentPrecisionMoney getFreeAbove(); /** - *

    true if the ShippingRate matches given Cart or Location. Only appears in response to requests for Get ShippingMethods for a Cart or Get ShippingMethods for a Location.

    + *

    Whether the ShippingRate matches given Cart or Location. Only appears in response to requests for Get ShippingMethods for a Cart or Get ShippingMethods for a Location.

    * @return isMatching */ @@ -84,7 +84,7 @@ public interface ShippingRate { public void setFreeAbove(final CentPrecisionMoney freeAbove); /** - *

    true if the ShippingRate matches given Cart or Location. Only appears in response to requests for Get ShippingMethods for a Cart or Get ShippingMethods for a Location.

    + *

    Whether the ShippingRate matches given Cart or Location. Only appears in response to requests for Get ShippingMethods for a Cart or Get ShippingMethods for a Location.

    * @param isMatching value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shipping_method/ShippingRateBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shipping_method/ShippingRateBuilder.java index 76b4077655..a08c00c0de 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shipping_method/ShippingRateBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shipping_method/ShippingRateBuilder.java @@ -107,7 +107,7 @@ public ShippingRateBuilder freeAbove( } /** - *

    true if the ShippingRate matches given Cart or Location. Only appears in response to requests for Get ShippingMethods for a Cart or Get ShippingMethods for a Location.

    + *

    Whether the ShippingRate matches given Cart or Location. Only appears in response to requests for Get ShippingMethods for a Cart or Get ShippingMethods for a Location.

    * @param isMatching value to be set * @return Builder */ @@ -206,7 +206,7 @@ public com.commercetools.api.models.common.CentPrecisionMoney getFreeAbove() { } /** - *

    true if the ShippingRate matches given Cart or Location. Only appears in response to requests for Get ShippingMethods for a Cart or Get ShippingMethods for a Location.

    + *

    Whether the ShippingRate matches given Cart or Location. Only appears in response to requests for Get ShippingMethods for a Cart or Get ShippingMethods for a Location.

    * @return isMatching */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shipping_method/ShippingRateImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shipping_method/ShippingRateImpl.java index 5c1b5987ee..762a75d495 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shipping_method/ShippingRateImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shipping_method/ShippingRateImpl.java @@ -68,7 +68,7 @@ public com.commercetools.api.models.common.CentPrecisionMoney getFreeAbove() { } /** - *

    true if the ShippingRate matches given Cart or Location. Only appears in response to requests for Get ShippingMethods for a Cart or Get ShippingMethods for a Location.

    + *

    Whether the ShippingRate matches given Cart or Location. Only appears in response to requests for Get ShippingMethods for a Cart or Get ShippingMethods for a Location.

    */ public Boolean getIsMatching() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/staged_quote/StagedQuoteDraft.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/staged_quote/StagedQuoteDraft.java index a416acb136..ae3b436a43 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/staged_quote/StagedQuoteDraft.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/staged_quote/StagedQuoteDraft.java @@ -55,7 +55,7 @@ public interface StagedQuoteDraft public Long getQuoteRequestVersion(); /** - *

    If true, the quoteRequestState of the referenced QuoteRequest will be set to Accepted.

    + *

    Whether the quoteRequestState of the referenced QuoteRequest will be set to Accepted.

    * @return quoteRequestStateToAccepted */ @@ -105,7 +105,7 @@ public interface StagedQuoteDraft public void setQuoteRequestVersion(final Long quoteRequestVersion); /** - *

    If true, the quoteRequestState of the referenced QuoteRequest will be set to Accepted.

    + *

    Whether the quoteRequestState of the referenced QuoteRequest will be set to Accepted.

    * @param quoteRequestStateToAccepted value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/staged_quote/StagedQuoteDraftBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/staged_quote/StagedQuoteDraftBuilder.java index 6b24661d22..e972d45276 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/staged_quote/StagedQuoteDraftBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/staged_quote/StagedQuoteDraftBuilder.java @@ -92,7 +92,7 @@ public StagedQuoteDraftBuilder quoteRequestVersion(final Long quoteRequestVersio } /** - *

    If true, the quoteRequestState of the referenced QuoteRequest will be set to Accepted.

    + *

    Whether the quoteRequestState of the referenced QuoteRequest will be set to Accepted.

    * @param quoteRequestStateToAccepted value to be set * @return Builder */ @@ -214,7 +214,7 @@ public Long getQuoteRequestVersion() { } /** - *

    If true, the quoteRequestState of the referenced QuoteRequest will be set to Accepted.

    + *

    Whether the quoteRequestState of the referenced QuoteRequest will be set to Accepted.

    * @return quoteRequestStateToAccepted */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/staged_quote/StagedQuoteDraftImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/staged_quote/StagedQuoteDraftImpl.java index 96cb568a1a..8beda46e92 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/staged_quote/StagedQuoteDraftImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/staged_quote/StagedQuoteDraftImpl.java @@ -77,7 +77,7 @@ public Long getQuoteRequestVersion() { } /** - *

    If true, the quoteRequestState of the referenced QuoteRequest will be set to Accepted.

    + *

    Whether the quoteRequestState of the referenced QuoteRequest will be set to Accepted.

    */ public Boolean getQuoteRequestStateToAccepted() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/standalone_price/StandalonePrice.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/standalone_price/StandalonePrice.java index 37738a412c..b615ff70b0 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/standalone_price/StandalonePrice.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/standalone_price/StandalonePrice.java @@ -201,7 +201,7 @@ public interface StandalonePrice public StagedStandalonePrice getStaged(); /** - *

    If set to true, the StandalonePrice is considered during Product price selection. If set to false, the StandalonePrice is not considered during Product price selection and any associated Line Items in a Cart cannot be ordered.

    + *

    Whether the StandalonePrice is considered during Product price selection. If set to false, the StandalonePrice is not considered during Product price selection and any associated Line Items in a Cart cannot be ordered.

    * @return active */ @NotNull @@ -353,7 +353,7 @@ public interface StandalonePrice public void setStaged(final StagedStandalonePrice staged); /** - *

    If set to true, the StandalonePrice is considered during Product price selection. If set to false, the StandalonePrice is not considered during Product price selection and any associated Line Items in a Cart cannot be ordered.

    + *

    Whether the StandalonePrice is considered during Product price selection. If set to false, the StandalonePrice is not considered during Product price selection and any associated Line Items in a Cart cannot be ordered.

    * @param active value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/standalone_price/StandalonePriceBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/standalone_price/StandalonePriceBuilder.java index 201f393650..605d3978fd 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/standalone_price/StandalonePriceBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/standalone_price/StandalonePriceBuilder.java @@ -554,7 +554,7 @@ public StandalonePriceBuilder staged( } /** - *

    If set to true, the StandalonePrice is considered during Product price selection. If set to false, the StandalonePrice is not considered during Product price selection and any associated Line Items in a Cart cannot be ordered.

    + *

    Whether the StandalonePrice is considered during Product price selection. If set to false, the StandalonePrice is not considered during Product price selection and any associated Line Items in a Cart cannot be ordered.

    * @param active value to be set * @return Builder */ @@ -779,7 +779,7 @@ public com.commercetools.api.models.standalone_price.StagedStandalonePrice getSt } /** - *

    If set to true, the StandalonePrice is considered during Product price selection. If set to false, the StandalonePrice is not considered during Product price selection and any associated Line Items in a Cart cannot be ordered.

    + *

    Whether the StandalonePrice is considered during Product price selection. If set to false, the StandalonePrice is not considered during Product price selection and any associated Line Items in a Cart cannot be ordered.

    * @return active */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/standalone_price/StandalonePriceChangeValueAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/standalone_price/StandalonePriceChangeValueAction.java index 93e2ffb835..dabd343e0f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/standalone_price/StandalonePriceChangeValueAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/standalone_price/StandalonePriceChangeValueAction.java @@ -50,7 +50,7 @@ public interface StandalonePriceChangeValueAction extends StandalonePriceUpdateA public Money getValue(); /** - *

    If set to true the update action applies to the StagedStandalonePrice. If set to false, the update action applies to the current StandalonePrice.

    + *

    Whether the update action applies to the StagedStandalonePrice. If set to false, the update action applies to the current StandalonePrice.

    * @return staged */ @@ -66,7 +66,7 @@ public interface StandalonePriceChangeValueAction extends StandalonePriceUpdateA public void setValue(final Money value); /** - *

    If set to true the update action applies to the StagedStandalonePrice. If set to false, the update action applies to the current StandalonePrice.

    + *

    Whether the update action applies to the StagedStandalonePrice. If set to false, the update action applies to the current StandalonePrice.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/standalone_price/StandalonePriceChangeValueActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/standalone_price/StandalonePriceChangeValueActionBuilder.java index 8e06a29651..aae5fb48b3 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/standalone_price/StandalonePriceChangeValueActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/standalone_price/StandalonePriceChangeValueActionBuilder.java @@ -68,7 +68,7 @@ public StandalonePriceChangeValueActionBuilder value(final com.commercetools.api } /** - *

    If set to true the update action applies to the StagedStandalonePrice. If set to false, the update action applies to the current StandalonePrice.

    + *

    Whether the update action applies to the StagedStandalonePrice. If set to false, the update action applies to the current StandalonePrice.

    * @param staged value to be set * @return Builder */ @@ -89,7 +89,7 @@ public com.commercetools.api.models.common.Money getValue() { } /** - *

    If set to true the update action applies to the StagedStandalonePrice. If set to false, the update action applies to the current StandalonePrice.

    + *

    Whether the update action applies to the StagedStandalonePrice. If set to false, the update action applies to the current StandalonePrice.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/standalone_price/StandalonePriceChangeValueActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/standalone_price/StandalonePriceChangeValueActionImpl.java index bb2243f9e8..023ec5c994 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/standalone_price/StandalonePriceChangeValueActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/standalone_price/StandalonePriceChangeValueActionImpl.java @@ -65,7 +65,7 @@ public com.commercetools.api.models.common.Money getValue() { } /** - *

    If set to true the update action applies to the StagedStandalonePrice. If set to false, the update action applies to the current StandalonePrice.

    + *

    Whether the update action applies to the StagedStandalonePrice. If set to false, the update action applies to the current StandalonePrice.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/standalone_price/StandalonePriceImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/standalone_price/StandalonePriceImpl.java index 43f531a2e3..27c9b5b8d9 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/standalone_price/StandalonePriceImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/standalone_price/StandalonePriceImpl.java @@ -259,7 +259,7 @@ public com.commercetools.api.models.standalone_price.StagedStandalonePrice getSt } /** - *

    If set to true, the StandalonePrice is considered during Product price selection. If set to false, the StandalonePrice is not considered during Product price selection and any associated Line Items in a Cart cannot be ordered.

    + *

    Whether the StandalonePrice is considered during Product price selection. If set to false, the StandalonePrice is not considered during Product price selection and any associated Line Items in a Cart cannot be ordered.

    */ public Boolean getActive() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/state/StateChangeInitialAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/state/StateChangeInitialAction.java index 10b6bf598d..028ea082c4 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/state/StateChangeInitialAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/state/StateChangeInitialAction.java @@ -38,7 +38,7 @@ public interface StateChangeInitialAction extends StateUpdateAction { String CHANGE_INITIAL = "changeInitial"; /** - *

    Set to true for defining the State as initial State in a state machine and making it the first step in a workflow.

    + *

    Whether to define the State as the initial State in a state machine and make it the first step in a workflow.

    * @return initial */ @NotNull @@ -46,7 +46,7 @@ public interface StateChangeInitialAction extends StateUpdateAction { public Boolean getInitial(); /** - *

    Set to true for defining the State as initial State in a state machine and making it the first step in a workflow.

    + *

    Whether to define the State as the initial State in a state machine and make it the first step in a workflow.

    * @param initial value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/state/StateChangeInitialActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/state/StateChangeInitialActionBuilder.java index d7718f623e..641e2cd3ed 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/state/StateChangeInitialActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/state/StateChangeInitialActionBuilder.java @@ -24,7 +24,7 @@ public class StateChangeInitialActionBuilder implements BuilderSet to true for defining the State as initial State in a state machine and making it the first step in a workflow.

    + *

    Whether to define the State as the initial State in a state machine and make it the first step in a workflow.

    * @param initial value to be set * @return Builder */ @@ -35,7 +35,7 @@ public StateChangeInitialActionBuilder initial(final Boolean initial) { } /** - *

    Set to true for defining the State as initial State in a state machine and making it the first step in a workflow.

    + *

    Whether to define the State as the initial State in a state machine and make it the first step in a workflow.

    * @return initial */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/state/StateChangeInitialActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/state/StateChangeInitialActionImpl.java index ace80f9d8b..cf4c43dfbc 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/state/StateChangeInitialActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/state/StateChangeInitialActionImpl.java @@ -52,7 +52,7 @@ public String getAction() { } /** - *

    Set to true for defining the State as initial State in a state machine and making it the first step in a workflow.

    + *

    Whether to define the State as the initial State in a state machine and make it the first step in a workflow.

    */ public Boolean getInitial() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/store/ProductSelectionSetting.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/store/ProductSelectionSetting.java index 99e55c6269..e13865ea6a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/store/ProductSelectionSetting.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/store/ProductSelectionSetting.java @@ -44,7 +44,7 @@ public interface ProductSelectionSetting { public ProductSelectionReference getProductSelection(); /** - *

    If true, all Products assigned to this Product Selection are part of the Store's assortment.

    + *

    Whether all Products assigned to this Product Selection are part of the Store's assortment.

    * @return active */ @NotNull @@ -59,7 +59,7 @@ public interface ProductSelectionSetting { public void setProductSelection(final ProductSelectionReference productSelection); /** - *

    If true, all Products assigned to this Product Selection are part of the Store's assortment.

    + *

    Whether all Products assigned to this Product Selection are part of the Store's assortment.

    * @param active value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/store/ProductSelectionSettingBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/store/ProductSelectionSettingBuilder.java index 6285552002..8f53fd26b5 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/store/ProductSelectionSettingBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/store/ProductSelectionSettingBuilder.java @@ -67,7 +67,7 @@ public ProductSelectionSettingBuilder productSelection( } /** - *

    If true, all Products assigned to this Product Selection are part of the Store's assortment.

    + *

    Whether all Products assigned to this Product Selection are part of the Store's assortment.

    * @param active value to be set * @return Builder */ @@ -87,7 +87,7 @@ public com.commercetools.api.models.product_selection.ProductSelectionReference } /** - *

    If true, all Products assigned to this Product Selection are part of the Store's assortment.

    + *

    Whether all Products assigned to this Product Selection are part of the Store's assortment.

    * @return active */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/store/ProductSelectionSettingDraft.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/store/ProductSelectionSettingDraft.java index 8f5b5644a7..8d3a0cb10a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/store/ProductSelectionSettingDraft.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/store/ProductSelectionSettingDraft.java @@ -43,7 +43,7 @@ public interface ProductSelectionSettingDraft extends io.vrap.rmf.base.client.Dr public ProductSelectionResourceIdentifier getProductSelection(); /** - *

    Set to true if all Products assigned to the Product Selection should become part of the Store's assortment.

    + *

    Whether all Products assigned to the Product Selection should become part of the Store's assortment.

    * @return active */ @@ -58,7 +58,7 @@ public interface ProductSelectionSettingDraft extends io.vrap.rmf.base.client.Dr public void setProductSelection(final ProductSelectionResourceIdentifier productSelection); /** - *

    Set to true if all Products assigned to the Product Selection should become part of the Store's assortment.

    + *

    Whether all Products assigned to the Product Selection should become part of the Store's assortment.

    * @param active value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/store/ProductSelectionSettingDraftBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/store/ProductSelectionSettingDraftBuilder.java index aa3d26d8d2..d62d7190e0 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/store/ProductSelectionSettingDraftBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/store/ProductSelectionSettingDraftBuilder.java @@ -69,7 +69,7 @@ public ProductSelectionSettingDraftBuilder productSelection( } /** - *

    Set to true if all Products assigned to the Product Selection should become part of the Store's assortment.

    + *

    Whether all Products assigned to the Product Selection should become part of the Store's assortment.

    * @param active value to be set * @return Builder */ @@ -89,7 +89,7 @@ public com.commercetools.api.models.product_selection.ProductSelectionResourceId } /** - *

    Set to true if all Products assigned to the Product Selection should become part of the Store's assortment.

    + *

    Whether all Products assigned to the Product Selection should become part of the Store's assortment.

    * @return active */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/store/ProductSelectionSettingDraftImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/store/ProductSelectionSettingDraftImpl.java index 29d2dd3cbf..96efc36c4e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/store/ProductSelectionSettingDraftImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/store/ProductSelectionSettingDraftImpl.java @@ -53,7 +53,7 @@ public com.commercetools.api.models.product_selection.ProductSelectionResourceId } /** - *

    Set to true if all Products assigned to the Product Selection should become part of the Store's assortment.

    + *

    Whether all Products assigned to the Product Selection should become part of the Store's assortment.

    */ public Boolean getActive() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/store/ProductSelectionSettingImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/store/ProductSelectionSettingImpl.java index c298dca0ec..fd35f8ada3 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/store/ProductSelectionSettingImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/store/ProductSelectionSettingImpl.java @@ -53,7 +53,7 @@ public com.commercetools.api.models.product_selection.ProductSelectionReference } /** - *

    If true, all Products assigned to this Product Selection are part of the Store's assortment.

    + *

    Whether all Products assigned to this Product Selection are part of the Store's assortment.

    */ public Boolean getActive() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/store/StoreAddProductSelectionAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/store/StoreAddProductSelectionAction.java index 8bb0d0efc5..d0a9402928 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/store/StoreAddProductSelectionAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/store/StoreAddProductSelectionAction.java @@ -49,7 +49,7 @@ public interface StoreAddProductSelectionAction extends StoreUpdateAction { public ProductSelectionResourceIdentifier getProductSelection(); /** - *

    Set to true to make all Products assigned to the referenced Product Selection available in the Store.

    + *

    Whether to make all Products assigned to the referenced Product Selection available in the Store.

    * @return active */ @@ -64,7 +64,7 @@ public interface StoreAddProductSelectionAction extends StoreUpdateAction { public void setProductSelection(final ProductSelectionResourceIdentifier productSelection); /** - *

    Set to true to make all Products assigned to the referenced Product Selection available in the Store.

    + *

    Whether to make all Products assigned to the referenced Product Selection available in the Store.

    * @param active value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/store/StoreAddProductSelectionActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/store/StoreAddProductSelectionActionBuilder.java index 2c75269c84..4058f10d64 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/store/StoreAddProductSelectionActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/store/StoreAddProductSelectionActionBuilder.java @@ -69,7 +69,7 @@ public StoreAddProductSelectionActionBuilder productSelection( } /** - *

    Set to true to make all Products assigned to the referenced Product Selection available in the Store.

    + *

    Whether to make all Products assigned to the referenced Product Selection available in the Store.

    * @param active value to be set * @return Builder */ @@ -89,7 +89,7 @@ public com.commercetools.api.models.product_selection.ProductSelectionResourceId } /** - *

    Set to true to make all Products assigned to the referenced Product Selection available in the Store.

    + *

    Whether to make all Products assigned to the referenced Product Selection available in the Store.

    * @return active */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/store/StoreAddProductSelectionActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/store/StoreAddProductSelectionActionImpl.java index 8c182d005e..c1090c8b49 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/store/StoreAddProductSelectionActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/store/StoreAddProductSelectionActionImpl.java @@ -65,7 +65,7 @@ public com.commercetools.api.models.product_selection.ProductSelectionResourceId } /** - *

    Set to true to make all Products assigned to the referenced Product Selection available in the Store.

    + *

    Whether to make all Products assigned to the referenced Product Selection available in the Store.

    */ public Boolean getActive() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/store/StoreChangeProductSelectionAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/store/StoreChangeProductSelectionAction.java index 708197cf22..9c5b7bfd14 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/store/StoreChangeProductSelectionAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/store/StoreChangeProductSelectionAction.java @@ -49,7 +49,7 @@ public interface StoreChangeProductSelectionAction extends StoreUpdateAction { public ProductSelectionResourceIdentifier getProductSelection(); /** - *

    Set to true if all Products assigned to the Product Selection should become part of the Store's assortment.

    + *

    Whether all Products assigned to the Product Selection should become part of the Store's assortment.

    * @return active */ @@ -64,7 +64,7 @@ public interface StoreChangeProductSelectionAction extends StoreUpdateAction { public void setProductSelection(final ProductSelectionResourceIdentifier productSelection); /** - *

    Set to true if all Products assigned to the Product Selection should become part of the Store's assortment.

    + *

    Whether all Products assigned to the Product Selection should become part of the Store's assortment.

    * @param active value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/store/StoreChangeProductSelectionActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/store/StoreChangeProductSelectionActionBuilder.java index df9da56e5b..904dbf4afd 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/store/StoreChangeProductSelectionActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/store/StoreChangeProductSelectionActionBuilder.java @@ -69,7 +69,7 @@ public StoreChangeProductSelectionActionBuilder productSelection( } /** - *

    Set to true if all Products assigned to the Product Selection should become part of the Store's assortment.

    + *

    Whether all Products assigned to the Product Selection should become part of the Store's assortment.

    * @param active value to be set * @return Builder */ @@ -89,7 +89,7 @@ public com.commercetools.api.models.product_selection.ProductSelectionResourceId } /** - *

    Set to true if all Products assigned to the Product Selection should become part of the Store's assortment.

    + *

    Whether all Products assigned to the Product Selection should become part of the Store's assortment.

    * @return active */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/store/StoreChangeProductSelectionActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/store/StoreChangeProductSelectionActionImpl.java index 63d14bd01b..982d3ab2ee 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/store/StoreChangeProductSelectionActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/store/StoreChangeProductSelectionActionImpl.java @@ -65,7 +65,7 @@ public com.commercetools.api.models.product_selection.ProductSelectionResourceId } /** - *

    Set to true if all Products assigned to the Product Selection should become part of the Store's assortment.

    + *

    Whether all Products assigned to the Product Selection should become part of the Store's assortment.

    */ public Boolean getActive() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ResourceDeletedDeliveryPayload.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ResourceDeletedDeliveryPayload.java index 8442708217..eaa082b92d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ResourceDeletedDeliveryPayload.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ResourceDeletedDeliveryPayload.java @@ -58,7 +58,7 @@ public interface ResourceDeletedDeliveryPayload extends DeliveryPayload { public ZonedDateTime getModifiedAt(); /** - *

    true if the dataErasure parameter on the DELETE request was set to true.

    + *

    Whether the dataErasure parameter on the DELETE request was set to true.

    * @return dataErasure */ @@ -80,7 +80,7 @@ public interface ResourceDeletedDeliveryPayload extends DeliveryPayload { public void setModifiedAt(final ZonedDateTime modifiedAt); /** - *

    true if the dataErasure parameter on the DELETE request was set to true.

    + *

    Whether the dataErasure parameter on the DELETE request was set to true.

    * @param dataErasure value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ResourceDeletedDeliveryPayloadBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ResourceDeletedDeliveryPayloadBuilder.java index e71e5ff329..b04060aa09 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ResourceDeletedDeliveryPayloadBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ResourceDeletedDeliveryPayloadBuilder.java @@ -138,7 +138,7 @@ public ResourceDeletedDeliveryPayloadBuilder modifiedAt(final java.time.ZonedDat } /** - *

    true if the dataErasure parameter on the DELETE request was set to true.

    + *

    Whether the dataErasure parameter on the DELETE request was set to true.

    * @param dataErasure value to be set * @return Builder */ @@ -195,7 +195,7 @@ public java.time.ZonedDateTime getModifiedAt() { } /** - *

    true if the dataErasure parameter on the DELETE request was set to true.

    + *

    Whether the dataErasure parameter on the DELETE request was set to true.

    * @return dataErasure */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ResourceDeletedDeliveryPayloadImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ResourceDeletedDeliveryPayloadImpl.java index a33d8439e9..2304d72184 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ResourceDeletedDeliveryPayloadImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ResourceDeletedDeliveryPayloadImpl.java @@ -112,7 +112,7 @@ public java.time.ZonedDateTime getModifiedAt() { } /** - *

    true if the dataErasure parameter on the DELETE request was set to true.

    + *

    Whether the dataErasure parameter on the DELETE request was set to true.

    */ public Boolean getDataErasure() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/tax_category/TaxRate.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/tax_category/TaxRate.java index 1d2e38d658..04b3a8f5cb 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/tax_category/TaxRate.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/tax_category/TaxRate.java @@ -69,7 +69,7 @@ public interface TaxRate { public Double getAmount(); /** - *

    If true, tax is included in Embedded Prices or Standalone Prices, and the taxedPrice is present on LineItems. In this case, the totalNet price on TaxedPrice includes the TaxRate.

    + *

    Whether tax is included in Embedded Prices or Standalone Prices, and the taxedPrice is present on LineItems. In this case, the totalNet price on TaxedPrice includes the TaxRate.

    * @return includedInPrice */ @NotNull @@ -129,7 +129,7 @@ public interface TaxRate { public void setAmount(final Double amount); /** - *

    If true, tax is included in Embedded Prices or Standalone Prices, and the taxedPrice is present on LineItems. In this case, the totalNet price on TaxedPrice includes the TaxRate.

    + *

    Whether tax is included in Embedded Prices or Standalone Prices, and the taxedPrice is present on LineItems. In this case, the totalNet price on TaxedPrice includes the TaxRate.

    * @param includedInPrice value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/tax_category/TaxRateBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/tax_category/TaxRateBuilder.java index 9392a20dc2..61b7698c6e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/tax_category/TaxRateBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/tax_category/TaxRateBuilder.java @@ -92,7 +92,7 @@ public TaxRateBuilder amount(final Double amount) { } /** - *

    If true, tax is included in Embedded Prices or Standalone Prices, and the taxedPrice is present on LineItems. In this case, the totalNet price on TaxedPrice includes the TaxRate.

    + *

    Whether tax is included in Embedded Prices or Standalone Prices, and the taxedPrice is present on LineItems. In this case, the totalNet price on TaxedPrice includes the TaxRate.

    * @param includedInPrice value to be set * @return Builder */ @@ -250,7 +250,7 @@ public Double getAmount() { } /** - *

    If true, tax is included in Embedded Prices or Standalone Prices, and the taxedPrice is present on LineItems. In this case, the totalNet price on TaxedPrice includes the TaxRate.

    + *

    Whether tax is included in Embedded Prices or Standalone Prices, and the taxedPrice is present on LineItems. In this case, the totalNet price on TaxedPrice includes the TaxRate.

    * @return includedInPrice */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/tax_category/TaxRateDraft.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/tax_category/TaxRateDraft.java index 0334c4d68e..492482a8d0 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/tax_category/TaxRateDraft.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/tax_category/TaxRateDraft.java @@ -52,7 +52,7 @@ public interface TaxRateDraft extends io.vrap.rmf.base.client.DraftIf true, tax is included in Embedded Prices or Standalone Prices, and the taxedPrice is present on LineItems. In this case, the totalNet price on TaxedPrice includes the TaxRate.

    + *

    Whether tax is included in Embedded Prices or Standalone Prices, and the taxedPrice is present on LineItems. In this case, the totalNet price on TaxedPrice includes the TaxRate.

    * @return includedInPrice */ @NotNull @@ -106,7 +106,7 @@ public interface TaxRateDraft extends io.vrap.rmf.base.client.DraftIf true, tax is included in Embedded Prices or Standalone Prices, and the taxedPrice is present on LineItems. In this case, the totalNet price on TaxedPrice includes the TaxRate.

    + *

    Whether tax is included in Embedded Prices or Standalone Prices, and the taxedPrice is present on LineItems. In this case, the totalNet price on TaxedPrice includes the TaxRate.

    * @param includedInPrice value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/tax_category/TaxRateDraftBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/tax_category/TaxRateDraftBuilder.java index 65c1e58685..c07d857f76 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/tax_category/TaxRateDraftBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/tax_category/TaxRateDraftBuilder.java @@ -67,7 +67,7 @@ public TaxRateDraftBuilder amount(@Nullable final Double amount) { } /** - *

    If true, tax is included in Embedded Prices or Standalone Prices, and the taxedPrice is present on LineItems. In this case, the totalNet price on TaxedPrice includes the TaxRate.

    + *

    Whether tax is included in Embedded Prices or Standalone Prices, and the taxedPrice is present on LineItems. In this case, the totalNet price on TaxedPrice includes the TaxRate.

    * @param includedInPrice value to be set * @return Builder */ @@ -218,7 +218,7 @@ public Double getAmount() { } /** - *

    If true, tax is included in Embedded Prices or Standalone Prices, and the taxedPrice is present on LineItems. In this case, the totalNet price on TaxedPrice includes the TaxRate.

    + *

    Whether tax is included in Embedded Prices or Standalone Prices, and the taxedPrice is present on LineItems. In this case, the totalNet price on TaxedPrice includes the TaxRate.

    * @return includedInPrice */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/tax_category/TaxRateDraftImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/tax_category/TaxRateDraftImpl.java index 44b83c7456..d0c61ea1a2 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/tax_category/TaxRateDraftImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/tax_category/TaxRateDraftImpl.java @@ -78,7 +78,7 @@ public Double getAmount() { } /** - *

    If true, tax is included in Embedded Prices or Standalone Prices, and the taxedPrice is present on LineItems. In this case, the totalNet price on TaxedPrice includes the TaxRate.

    + *

    Whether tax is included in Embedded Prices or Standalone Prices, and the taxedPrice is present on LineItems. In this case, the totalNet price on TaxedPrice includes the TaxRate.

    */ public Boolean getIncludedInPrice() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/tax_category/TaxRateImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/tax_category/TaxRateImpl.java index 702fcedee9..ece4cf3882 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/tax_category/TaxRateImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/tax_category/TaxRateImpl.java @@ -97,7 +97,7 @@ public Double getAmount() { } /** - *

    If true, tax is included in Embedded Prices or Standalone Prices, and the taxedPrice is present on LineItems. In this case, the totalNet price on TaxedPrice includes the TaxRate.

    + *

    Whether tax is included in Embedded Prices or Standalone Prices, and the taxedPrice is present on LineItems. In this case, the totalNet price on TaxedPrice includes the TaxRate.

    */ public Boolean getIncludedInPrice() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/Variant.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/Variant.java index d289b74421..a904ed6bf4 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/Variant.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/Variant.java @@ -120,7 +120,7 @@ public interface Variant extends BaseResource { public ProductReference getProduct(); /** - *

    true if the Variant is published, false if it is unpublished.

    + *

    Whether the Variant is published, false if it is unpublished.

    * @return published */ @NotNull @@ -216,7 +216,7 @@ public interface Variant extends BaseResource { public void setProduct(final ProductReference product); /** - *

    true if the Variant is published, false if it is unpublished.

    + *

    Whether the Variant is published, false if it is unpublished.

    * @param published value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantAddAssetAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantAddAssetAction.java index 9274eeaf7a..dfec4060eb 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantAddAssetAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantAddAssetAction.java @@ -40,7 +40,7 @@ public interface VariantAddAssetAction extends VariantUpdateAction { String ADD_ASSET = "addAsset"; /** - *

    If true, only the staged assets are updated. If false, both the current and staged assets are updated.

    + *

    Whether only the staged assets are updated. If false, both the current and staged assets are updated.

    * @return staged */ @@ -65,7 +65,7 @@ public interface VariantAddAssetAction extends VariantUpdateAction { public Integer getPosition(); /** - *

    If true, only the staged assets are updated. If false, both the current and staged assets are updated.

    + *

    Whether only the staged assets are updated. If false, both the current and staged assets are updated.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantAddAssetActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantAddAssetActionBuilder.java index ee25830d0c..025d6d5b01 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantAddAssetActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantAddAssetActionBuilder.java @@ -33,7 +33,7 @@ public class VariantAddAssetActionBuilder implements BuilderIf true, only the staged assets are updated. If false, both the current and staged assets are updated.

    + *

    Whether only the staged assets are updated. If false, both the current and staged assets are updated.

    * @param staged value to be set * @return Builder */ @@ -90,7 +90,7 @@ public VariantAddAssetActionBuilder position(@Nullable final Integer position) { } /** - *

    If true, only the staged assets are updated. If false, both the current and staged assets are updated.

    + *

    Whether only the staged assets are updated. If false, both the current and staged assets are updated.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantAddAssetActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantAddAssetActionImpl.java index b3085e2bb9..9b82d5809e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantAddAssetActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantAddAssetActionImpl.java @@ -60,7 +60,7 @@ public String getAction() { } /** - *

    If true, only the staged assets are updated. If false, both the current and staged assets are updated.

    + *

    Whether only the staged assets are updated. If false, both the current and staged assets are updated.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantAddExternalImageAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantAddExternalImageAction.java index 4e5c30a18d..a0217947fa 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantAddExternalImageAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantAddExternalImageAction.java @@ -49,7 +49,7 @@ public interface VariantAddExternalImageAction extends VariantUpdateAction { public Image getImage(); /** - *

    If true, only the staged images is updated. If false, both the current and staged images is updated.

    + *

    Whether only the staged images is updated. If false, both the current and staged images are updated.

    * @return staged */ @@ -64,7 +64,7 @@ public interface VariantAddExternalImageAction extends VariantUpdateAction { public void setImage(final Image image); /** - *

    If true, only the staged images is updated. If false, both the current and staged images is updated.

    + *

    Whether only the staged images is updated. If false, both the current and staged images are updated.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantAddExternalImageActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantAddExternalImageActionBuilder.java index 3f6abf8fd9..3ffab690de 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantAddExternalImageActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantAddExternalImageActionBuilder.java @@ -65,7 +65,7 @@ public VariantAddExternalImageActionBuilder image(final com.commercetools.api.mo } /** - *

    If true, only the staged images is updated. If false, both the current and staged images is updated.

    + *

    Whether only the staged images is updated. If false, both the current and staged images are updated.

    * @param staged value to be set * @return Builder */ @@ -85,7 +85,7 @@ public com.commercetools.api.models.common.Image getImage() { } /** - *

    If true, only the staged images is updated. If false, both the current and staged images is updated.

    + *

    Whether only the staged images is updated. If false, both the current and staged images are updated.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantAddExternalImageActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantAddExternalImageActionImpl.java index 8354498078..9b4678229b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantAddExternalImageActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantAddExternalImageActionImpl.java @@ -64,7 +64,7 @@ public com.commercetools.api.models.common.Image getImage() { } /** - *

    If true, only the staged images is updated. If false, both the current and staged images is updated.

    + *

    Whether only the staged images is updated. If false, both the current and staged images are updated.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantBuilder.java index 125ee5ead8..2f8619a790 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantBuilder.java @@ -235,7 +235,7 @@ public VariantBuilder product(final com.commercetools.api.models.product.Product } /** - *

    true if the Variant is published, false if it is unpublished.

    + *

    Whether the Variant is published, false if it is unpublished.

    * @param published value to be set * @return Builder */ @@ -465,7 +465,7 @@ public com.commercetools.api.models.product.ProductReference getProduct() { } /** - *

    true if the Variant is published, false if it is unpublished.

    + *

    Whether the Variant is published, false if it is unpublished.

    * @return published */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantChangeAssetNameAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantChangeAssetNameAction.java index 6e99a5e986..2862a16c55 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantChangeAssetNameAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantChangeAssetNameAction.java @@ -40,7 +40,7 @@ public interface VariantChangeAssetNameAction extends VariantUpdateAction { String CHANGE_ASSET_NAME = "changeAssetName"; /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @return staged */ @@ -73,7 +73,7 @@ public interface VariantChangeAssetNameAction extends VariantUpdateAction { public LocalizedString getName(); /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantChangeAssetNameActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantChangeAssetNameActionBuilder.java index c9b60294fe..1fb5f9671c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantChangeAssetNameActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantChangeAssetNameActionBuilder.java @@ -36,7 +36,7 @@ public class VariantChangeAssetNameActionBuilder implements BuilderIf true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @param staged value to be set * @return Builder */ @@ -104,7 +104,7 @@ public VariantChangeAssetNameActionBuilder name(final com.commercetools.api.mode } /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantChangeAssetNameActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantChangeAssetNameActionImpl.java index 113847eb35..b318211167 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantChangeAssetNameActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantChangeAssetNameActionImpl.java @@ -63,7 +63,7 @@ public String getAction() { } /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantChangeAssetOrderAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantChangeAssetOrderAction.java index 6aaecd28b2..4bf8e9f6f4 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantChangeAssetOrderAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantChangeAssetOrderAction.java @@ -38,7 +38,7 @@ public interface VariantChangeAssetOrderAction extends VariantUpdateAction { String CHANGE_ASSET_ORDER = "changeAssetOrder"; /** - *

    If true, only the staged assets is updated. If false, both the current and staged assets are updated.

    + *

    Whether only the staged assets is updated. If false, both the current and staged assets are updated.

    * @return staged */ @@ -54,7 +54,7 @@ public interface VariantChangeAssetOrderAction extends VariantUpdateAction { public List getAssetOrder(); /** - *

    If true, only the staged assets is updated. If false, both the current and staged assets are updated.

    + *

    Whether only the staged assets is updated. If false, both the current and staged assets are updated.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantChangeAssetOrderActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantChangeAssetOrderActionBuilder.java index 04292b6a1f..1e5f622c97 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantChangeAssetOrderActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantChangeAssetOrderActionBuilder.java @@ -29,7 +29,7 @@ public class VariantChangeAssetOrderActionBuilder implements Builder assetOrder; /** - *

    If true, only the staged assets is updated. If false, both the current and staged assets are updated.

    + *

    Whether only the staged assets is updated. If false, both the current and staged assets are updated.

    * @param staged value to be set * @return Builder */ @@ -76,7 +76,7 @@ public VariantChangeAssetOrderActionBuilder plusAssetOrder(final String... asset } /** - *

    If true, only the staged assets is updated. If false, both the current and staged assets are updated.

    + *

    Whether only the staged assets is updated. If false, both the current and staged assets are updated.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantChangeAssetOrderActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantChangeAssetOrderActionImpl.java index 6ce5bce5d5..29c61262ca 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantChangeAssetOrderActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantChangeAssetOrderActionImpl.java @@ -56,7 +56,7 @@ public String getAction() { } /** - *

    If true, only the staged assets is updated. If false, both the current and staged assets are updated.

    + *

    Whether only the staged assets is updated. If false, both the current and staged assets are updated.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantImpl.java index a02dd1733d..33c75b1e4f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantImpl.java @@ -158,7 +158,7 @@ public com.commercetools.api.models.product.ProductReference getProduct() { } /** - *

    true if the Variant is published, false if it is unpublished.

    + *

    Whether the Variant is published, false if it is unpublished.

    */ public Boolean getPublished() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantProjection.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantProjection.java index ffa2c22b46..ae74269bb0 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantProjection.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantProjection.java @@ -198,7 +198,7 @@ public interface VariantProjection { public Price getPrice(); /** - *

    true if this Variant is the default Variant of its Product (see Product.defaultVariant). false otherwise.

    + *

    Whether this Variant is the default Variant of its Product (see Product.defaultVariant).

    * @return default */ @NotNull @@ -357,7 +357,7 @@ public interface VariantProjection { public void setPrice(final Price price); /** - *

    true if this Variant is the default Variant of its Product (see Product.defaultVariant). false otherwise.

    + *

    Whether this Variant is the default Variant of its Product (see Product.defaultVariant).

    * @param _default value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantProjectionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantProjectionBuilder.java index 006989fe20..5af8cc0231 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantProjectionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantProjectionBuilder.java @@ -716,7 +716,7 @@ public VariantProjectionBuilder price(@Nullable final com.commercetools.api.mode } /** - *

    true if this Variant is the default Variant of its Product (see Product.defaultVariant). false otherwise.

    + *

    Whether this Variant is the default Variant of its Product (see Product.defaultVariant).

    * @param _default value to be set * @return Builder */ @@ -885,7 +885,7 @@ public com.commercetools.api.models.common.Price getPrice() { } /** - *

    true if this Variant is the default Variant of its Product (see Product.defaultVariant). false otherwise.

    + *

    Whether this Variant is the default Variant of its Product (see Product.defaultVariant).

    * @return default */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantProjectionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantProjectionImpl.java index 8910009bb6..1da0d81ffe 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantProjectionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantProjectionImpl.java @@ -241,7 +241,7 @@ public com.commercetools.api.models.common.Price getPrice() { } /** - *

    true if this Variant is the default Variant of its Product (see Product.defaultVariant). false otherwise.

    + *

    Whether this Variant is the default Variant of its Product (see Product.defaultVariant).

    */ public Boolean getDefault() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantRemoveAssetAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantRemoveAssetAction.java index ada635db35..6c4e41409f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantRemoveAssetAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantRemoveAssetAction.java @@ -36,7 +36,7 @@ public interface VariantRemoveAssetAction extends VariantUpdateAction { String REMOVE_ASSET = "removeAsset"; /** - *

    If true, only the staged Asset is removed. If false, both the current and staged Asset is removed.

    + *

    Whether only the staged Asset is removed. If false, both the current and staged Asset is removed.

    * @return staged */ @@ -60,7 +60,7 @@ public interface VariantRemoveAssetAction extends VariantUpdateAction { public String getAssetKey(); /** - *

    If true, only the staged Asset is removed. If false, both the current and staged Asset is removed.

    + *

    Whether only the staged Asset is removed. If false, both the current and staged Asset is removed.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantRemoveAssetActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantRemoveAssetActionBuilder.java index 2b5256d640..78ae6b90c4 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantRemoveAssetActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantRemoveAssetActionBuilder.java @@ -32,7 +32,7 @@ public class VariantRemoveAssetActionBuilder implements BuilderIf true, only the staged Asset is removed. If false, both the current and staged Asset is removed.

    + *

    Whether only the staged Asset is removed. If false, both the current and staged Asset is removed.

    * @param staged value to be set * @return Builder */ @@ -65,7 +65,7 @@ public VariantRemoveAssetActionBuilder assetKey(@Nullable final String assetKey) } /** - *

    If true, only the staged Asset is removed. If false, both the current and staged Asset is removed.

    + *

    Whether only the staged Asset is removed. If false, both the current and staged Asset is removed.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantRemoveAssetActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantRemoveAssetActionImpl.java index 629b648857..97bb346212 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantRemoveAssetActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantRemoveAssetActionImpl.java @@ -59,7 +59,7 @@ public String getAction() { } /** - *

    If true, only the staged Asset is removed. If false, both the current and staged Asset is removed.

    + *

    Whether only the staged Asset is removed. If false, both the current and staged Asset is removed.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantRemoveImageAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantRemoveImageAction.java index 5d950c641e..0a3e02e493 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantRemoveImageAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantRemoveImageAction.java @@ -46,7 +46,7 @@ public interface VariantRemoveImageAction extends VariantUpdateAction { public String getImageUrl(); /** - *

    If true, only the staged image is removed. If false, both the current and staged image is removed.

    + *

    Whether only the staged image is removed. If false, both the current and staged image is removed.

    * @return staged */ @@ -61,7 +61,7 @@ public interface VariantRemoveImageAction extends VariantUpdateAction { public void setImageUrl(final String imageUrl); /** - *

    If true, only the staged image is removed. If false, both the current and staged image is removed.

    + *

    Whether only the staged image is removed. If false, both the current and staged image is removed.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantRemoveImageActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantRemoveImageActionBuilder.java index 838341d798..a158f3363e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantRemoveImageActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantRemoveImageActionBuilder.java @@ -40,7 +40,7 @@ public VariantRemoveImageActionBuilder imageUrl(final String imageUrl) { } /** - *

    If true, only the staged image is removed. If false, both the current and staged image is removed.

    + *

    Whether only the staged image is removed. If false, both the current and staged image is removed.

    * @param staged value to be set * @return Builder */ @@ -60,7 +60,7 @@ public String getImageUrl() { } /** - *

    If true, only the staged image is removed. If false, both the current and staged image is removed.

    + *

    Whether only the staged image is removed. If false, both the current and staged image is removed.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantRemoveImageActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantRemoveImageActionImpl.java index d33224c50a..0fb189e213 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantRemoveImageActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantRemoveImageActionImpl.java @@ -64,7 +64,7 @@ public String getImageUrl() { } /** - *

    If true, only the staged image is removed. If false, both the current and staged image is removed.

    + *

    Whether only the staged image is removed. If false, both the current and staged image is removed.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetCustomFieldAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetCustomFieldAction.java index 239d3516b2..0670fd7483 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetCustomFieldAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetCustomFieldAction.java @@ -38,7 +38,7 @@ public interface VariantSetAssetCustomFieldAction extends VariantUpdateAction { String SET_ASSET_CUSTOM_FIELD = "setAssetCustomField"; /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @return staged */ @@ -78,7 +78,7 @@ public interface VariantSetAssetCustomFieldAction extends VariantUpdateAction { public Object getValue(); /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetCustomFieldActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetCustomFieldActionBuilder.java index d854d8d0f9..1d6e532e06 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetCustomFieldActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetCustomFieldActionBuilder.java @@ -38,7 +38,7 @@ public class VariantSetAssetCustomFieldActionBuilder implements BuilderIf true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @param staged value to be set * @return Builder */ @@ -93,7 +93,7 @@ public VariantSetAssetCustomFieldActionBuilder value(@Nullable final java.lang.O } /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetCustomFieldActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetCustomFieldActionImpl.java index f04e457a9f..31f5b6e920 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetCustomFieldActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetCustomFieldActionImpl.java @@ -66,7 +66,7 @@ public String getAction() { } /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetCustomTypeAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetCustomTypeAction.java index c88b3290b3..04082907cf 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetCustomTypeAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetCustomTypeAction.java @@ -39,7 +39,7 @@ public interface VariantSetAssetCustomTypeAction extends VariantUpdateAction { String SET_ASSET_CUSTOM_TYPE = "setAssetCustomType"; /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @return staged */ @@ -79,7 +79,7 @@ public interface VariantSetAssetCustomTypeAction extends VariantUpdateAction { public FieldContainer getFields(); /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetCustomTypeActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetCustomTypeActionBuilder.java index 7d38e0c5e8..047211f48e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetCustomTypeActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetCustomTypeActionBuilder.java @@ -39,7 +39,7 @@ public class VariantSetAssetCustomTypeActionBuilder implements BuilderIf true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @param staged value to be set * @return Builder */ @@ -144,7 +144,7 @@ public VariantSetAssetCustomTypeActionBuilder fields( } /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetCustomTypeActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetCustomTypeActionImpl.java index 2a92320302..4fa192ac07 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetCustomTypeActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetCustomTypeActionImpl.java @@ -67,7 +67,7 @@ public String getAction() { } /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetDescriptionAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetDescriptionAction.java index 03f45dc8cf..1f0b7d2d42 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetDescriptionAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetDescriptionAction.java @@ -38,7 +38,7 @@ public interface VariantSetAssetDescriptionAction extends VariantUpdateAction { String SET_ASSET_DESCRIPTION = "setAssetDescription"; /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @return staged */ @@ -70,7 +70,7 @@ public interface VariantSetAssetDescriptionAction extends VariantUpdateAction { public LocalizedString getDescription(); /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetDescriptionActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetDescriptionActionBuilder.java index 39ea69a2ef..b8fe4a843e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetDescriptionActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetDescriptionActionBuilder.java @@ -36,7 +36,7 @@ public class VariantSetAssetDescriptionActionBuilder implements BuilderIf true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @param staged value to be set * @return Builder */ @@ -105,7 +105,7 @@ public VariantSetAssetDescriptionActionBuilder description( } /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetDescriptionActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetDescriptionActionImpl.java index d53e384a59..0e00391f47 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetDescriptionActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetDescriptionActionImpl.java @@ -63,7 +63,7 @@ public String getAction() { } /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetKeyAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetKeyAction.java index 99fc37c888..0249f90dc3 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetKeyAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetKeyAction.java @@ -38,7 +38,7 @@ public interface VariantSetAssetKeyAction extends VariantUpdateAction { String SET_ASSET_KEY = "setAssetKey"; /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @return staged */ @@ -62,7 +62,7 @@ public interface VariantSetAssetKeyAction extends VariantUpdateAction { public String getAssetKey(); /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetKeyActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetKeyActionBuilder.java index 1c6e0792c1..d1e60b499a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetKeyActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetKeyActionBuilder.java @@ -32,7 +32,7 @@ public class VariantSetAssetKeyActionBuilder implements BuilderIf true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @param staged value to be set * @return Builder */ @@ -65,7 +65,7 @@ public VariantSetAssetKeyActionBuilder assetKey(@Nullable final String assetKey) } /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetKeyActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetKeyActionImpl.java index 8e43e2652a..b08886912a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetKeyActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetKeyActionImpl.java @@ -59,7 +59,7 @@ public String getAction() { } /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetSourcesAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetSourcesAction.java index 6d279073f8..f737654a08 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetSourcesAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetSourcesAction.java @@ -41,7 +41,7 @@ public interface VariantSetAssetSourcesAction extends VariantUpdateAction { String SET_ASSET_SOURCES = "setAssetSources"; /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @return staged */ @@ -74,7 +74,7 @@ public interface VariantSetAssetSourcesAction extends VariantUpdateAction { public List getSources(); /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetSourcesActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetSourcesActionBuilder.java index cc94ad984c..46f6b668c6 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetSourcesActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetSourcesActionBuilder.java @@ -36,7 +36,7 @@ public class VariantSetAssetSourcesActionBuilder implements Builder sources; /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @param staged value to be set * @return Builder */ @@ -158,7 +158,7 @@ public VariantSetAssetSourcesActionBuilder setSources( } /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetSourcesActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetSourcesActionImpl.java index 416c1f8c18..9565ccd553 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetSourcesActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetSourcesActionImpl.java @@ -63,7 +63,7 @@ public String getAction() { } /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetTagsAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetTagsAction.java index 17c5904813..96ace1dd22 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetTagsAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetTagsAction.java @@ -36,7 +36,7 @@ public interface VariantSetAssetTagsAction extends VariantUpdateAction { String SET_ASSET_TAGS = "setAssetTags"; /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @return staged */ @@ -68,7 +68,7 @@ public interface VariantSetAssetTagsAction extends VariantUpdateAction { public List getTags(); /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetTagsActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetTagsActionBuilder.java index 9fc63aefb7..c8aba79a67 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetTagsActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetTagsActionBuilder.java @@ -35,7 +35,7 @@ public class VariantSetAssetTagsActionBuilder implements Builder tags; /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @param staged value to be set * @return Builder */ @@ -104,7 +104,7 @@ public VariantSetAssetTagsActionBuilder plusTags(@Nullable final String... tags) } /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetTagsActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetTagsActionImpl.java index 5a7291ab9d..5611ab557e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetTagsActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetTagsActionImpl.java @@ -63,7 +63,7 @@ public String getAction() { } /** - *

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    + *

    Whether only the staged Asset is updated. If false, both the current and staged Asset is updated.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetsAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetsAction.java index 6181c5494a..f2cebb6ec9 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetsAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetsAction.java @@ -50,7 +50,7 @@ public interface VariantSetAssetsAction extends VariantUpdateAction { public List getAssets(); /** - *

    If true, only the staged assets are set. If false, both the current and staged assets are updated.

    + *

    Whether only the staged assets are set. If false, both the current and staged assets are updated.

    * @return staged */ @@ -73,7 +73,7 @@ public interface VariantSetAssetsAction extends VariantUpdateAction { public void setAssets(final List assets); /** - *

    If true, only the staged assets are set. If false, both the current and staged assets are updated.

    + *

    Whether only the staged assets are set. If false, both the current and staged assets are updated.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetsActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetsActionBuilder.java index bb48aede2c..6f0685c4e0 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetsActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetsActionBuilder.java @@ -117,7 +117,7 @@ public VariantSetAssetsActionBuilder setAssets( } /** - *

    If true, only the staged assets are set. If false, both the current and staged assets are updated.

    + *

    Whether only the staged assets are set. If false, both the current and staged assets are updated.

    * @param staged value to be set * @return Builder */ @@ -137,7 +137,7 @@ public java.util.List getAssets( } /** - *

    If true, only the staged assets are set. If false, both the current and staged assets are updated.

    + *

    Whether only the staged assets are set. If false, both the current and staged assets are updated.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetsActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetsActionImpl.java index 5c02d912cf..f574e23bdc 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetsActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAssetsActionImpl.java @@ -65,7 +65,7 @@ public java.util.List getAssets( } /** - *

    If true, only the staged assets are set. If false, both the current and staged assets are updated.

    + *

    Whether only the staged assets are set. If false, both the current and staged assets are updated.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAttributeAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAttributeAction.java index 0cc01b4a13..72c4e3a551 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAttributeAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAttributeAction.java @@ -63,7 +63,7 @@ public interface VariantSetAttributeAction extends VariantUpdateAction { public Object getValue(); /** - *

    If true, only the staged Attribute is set. If false, both the current and staged Attributes are set.

    + *

    Whether only the staged Attribute is set. If false, both the current and staged Attributes are set.

    * @return staged */ @@ -94,7 +94,7 @@ public interface VariantSetAttributeAction extends VariantUpdateAction { public void setValue(final Object value); /** - *

    If true, only the staged Attribute is set. If false, both the current and staged Attributes are set.

    + *

    Whether only the staged Attribute is set. If false, both the current and staged Attributes are set.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAttributeActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAttributeActionBuilder.java index 42c3547311..9131c8e436 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAttributeActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAttributeActionBuilder.java @@ -63,7 +63,7 @@ public VariantSetAttributeActionBuilder value(@Nullable final java.lang.Object v } /** - *

    If true, only the staged Attribute is set. If false, both the current and staged Attributes are set.

    + *

    Whether only the staged Attribute is set. If false, both the current and staged Attributes are set.

    * @param staged value to be set * @return Builder */ @@ -102,7 +102,7 @@ public java.lang.Object getValue() { } /** - *

    If true, only the staged Attribute is set. If false, both the current and staged Attributes are set.

    + *

    Whether only the staged Attribute is set. If false, both the current and staged Attributes are set.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAttributeActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAttributeActionImpl.java index c048ab4812..9bd4365df2 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAttributeActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAttributeActionImpl.java @@ -84,7 +84,7 @@ public java.lang.Object getValue() { } /** - *

    If true, only the staged Attribute is set. If false, both the current and staged Attributes are set.

    + *

    Whether only the staged Attribute is set. If false, both the current and staged Attributes are set.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAttributesAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAttributesAction.java index 98a620bfd5..4f1e9f7604 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAttributesAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAttributesAction.java @@ -50,7 +50,7 @@ public interface VariantSetAttributesAction extends VariantUpdateAction { public List getAttributes(); /** - *

    If true, only the staged attributes are updated. If false, both the current and staged attributes are updated.

    + *

    Whether only the staged attributes are updated. If false, both the current and staged attributes are updated.

    * @return staged */ @@ -73,7 +73,7 @@ public interface VariantSetAttributesAction extends VariantUpdateAction { public void setAttributes(final List attributes); /** - *

    If true, only the staged attributes are updated. If false, both the current and staged attributes are updated.

    + *

    Whether only the staged attributes are updated. If false, both the current and staged attributes are updated.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAttributesActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAttributesActionBuilder.java index c75ea5c1f6..867a868ac9 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAttributesActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAttributesActionBuilder.java @@ -119,7 +119,7 @@ public VariantSetAttributesActionBuilder setAttributes( } /** - *

    If true, only the staged attributes are updated. If false, both the current and staged attributes are updated.

    + *

    Whether only the staged attributes are updated. If false, both the current and staged attributes are updated.

    * @param staged value to be set * @return Builder */ @@ -139,7 +139,7 @@ public java.util.List getAttribu } /** - *

    If true, only the staged attributes are updated. If false, both the current and staged attributes are updated.

    + *

    Whether only the staged attributes are updated. If false, both the current and staged attributes are updated.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAttributesActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAttributesActionImpl.java index d0ecbb921f..6f0ac92bc1 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAttributesActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetAttributesActionImpl.java @@ -65,7 +65,7 @@ public java.util.List getAttribu } /** - *

    If true, only the staged attributes are updated. If false, both the current and staged attributes are updated.

    + *

    Whether only the staged attributes are updated. If false, both the current and staged attributes are updated.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetImagesAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetImagesAction.java index e82de2ac31..42e9dd38f6 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetImagesAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetImagesAction.java @@ -50,7 +50,7 @@ public interface VariantSetImagesAction extends VariantUpdateAction { public List getImages(); /** - *

    If true, only the staged images are updated. If false, both the current and staged images are updated.

    + *

    Whether only the staged images are updated. If false, both the current and staged images are updated.

    * @return staged */ @@ -73,7 +73,7 @@ public interface VariantSetImagesAction extends VariantUpdateAction { public void setImages(final List images); /** - *

    If true, only the staged images are updated. If false, both the current and staged images are updated.

    + *

    Whether only the staged images are updated. If false, both the current and staged images are updated.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetImagesActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetImagesActionBuilder.java index 2e148e96fb..df90d5d95e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetImagesActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetImagesActionBuilder.java @@ -117,7 +117,7 @@ public VariantSetImagesActionBuilder setImages( } /** - *

    If true, only the staged images are updated. If false, both the current and staged images are updated.

    + *

    Whether only the staged images are updated. If false, both the current and staged images are updated.

    * @param staged value to be set * @return Builder */ @@ -137,7 +137,7 @@ public java.util.List getImages() { } /** - *

    If true, only the staged images are updated. If false, both the current and staged images are updated.

    + *

    Whether only the staged images are updated. If false, both the current and staged images are updated.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetImagesActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetImagesActionImpl.java index 39485f969c..f0d0127f40 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetImagesActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetImagesActionImpl.java @@ -65,7 +65,7 @@ public java.util.List getImages() { } /** - *

    If true, only the staged images are updated. If false, both the current and staged images are updated.

    + *

    Whether only the staged images are updated. If false, both the current and staged images are updated.

    */ public Boolean getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetSkuAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetSkuAction.java index c6c6694671..132fec7848 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetSkuAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetSkuAction.java @@ -44,7 +44,7 @@ public interface VariantSetSkuAction extends VariantUpdateAction { public String getSku(); /** - *

    If true, only the staged sku is updated. If false, both the current and staged sku are updated.

    + *

    Whether only the staged sku is updated. If false, both the current and staged sku are updated.

    * @return staged */ @@ -59,7 +59,7 @@ public interface VariantSetSkuAction extends VariantUpdateAction { public void setSku(final String sku); /** - *

    If true, only the staged sku is updated. If false, both the current and staged sku are updated.

    + *

    Whether only the staged sku is updated. If false, both the current and staged sku are updated.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetSkuActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetSkuActionBuilder.java index 210baba0e1..b562bfcf3a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetSkuActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetSkuActionBuilder.java @@ -40,7 +40,7 @@ public VariantSetSkuActionBuilder sku(@Nullable final String sku) { } /** - *

    If true, only the staged sku is updated. If false, both the current and staged sku are updated.

    + *

    Whether only the staged sku is updated. If false, both the current and staged sku are updated.

    * @param staged value to be set * @return Builder */ @@ -61,7 +61,7 @@ public String getSku() { } /** - *

    If true, only the staged sku is updated. If false, both the current and staged sku are updated.

    + *

    Whether only the staged sku is updated. If false, both the current and staged sku are updated.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetSkuActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetSkuActionImpl.java index ba26cc6d0d..4d203eac82 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetSkuActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/variant/VariantSetSkuActionImpl.java @@ -63,7 +63,7 @@ public String getSku() { } /** - *

    If true, only the staged sku is updated. If false, both the current and staged sku are updated.

    + *

    Whether only the staged sku is updated. If false, both the current and staged sku are updated.

    */ public Boolean getStaged() { 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 74a329ba94..b65714b486 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.

    + *

    Whether 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.

    + *

    Whether 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 0d35cc5d49..aa7debb837 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.

    + *

    Whether the change was made using the Merchant Center.

    * @param isPlatformClient value to be set * @return Builder */ @@ -155,7 +155,7 @@ public ModifiedByBuilder associate( } /** - *

    true if the change was made using the Merchant Center.

    + *

    Whether 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 c3a6f7c7c1..6a85a058c8 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 @@ -62,7 +62,7 @@ public ModifiedByImpl() { } /** - *

    true if the change was made using the Merchant Center.

    + *

    Whether 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/Record.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/Record.java index 6450cba564..8bcbe65767 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/Record.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/Record.java @@ -145,7 +145,7 @@ public interface Record { public KeyReference getBusinessUnit(); /** - *

    true if no change was detected.

    + *

    Whether no change was detected.

    *

    The version number of the resource can be increased even without any change in the resource.

    * @return withoutChanges */ @@ -250,7 +250,7 @@ public interface Record { public void setBusinessUnit(final KeyReference businessUnit); /** - *

    true if no change was detected.

    + *

    Whether no change was detected.

    *

    The version number of the resource can be increased even without any change in the resource.

    * @param withoutChanges value to be set */ diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/RecordBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/RecordBuilder.java index aba1a13c89..0b1a1df8ea 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/RecordBuilder.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/RecordBuilder.java @@ -378,7 +378,7 @@ public RecordBuilder businessUnit( } /** - *

    true if no change was detected.

    + *

    Whether no change was detected.

    *

    The version number of the resource can be increased even without any change in the resource.

    * @param withoutChanges value to be set * @return Builder @@ -492,7 +492,7 @@ public com.commercetools.history.models.common.KeyReference getBusinessUnit() { } /** - *

    true if no change was detected.

    + *

    Whether no change was detected.

    *

    The version number of the resource can be increased even without any change in the resource.

    * @return withoutChanges */ diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/RecordImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/RecordImpl.java index db93ef77fc..275af3f9ae 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/RecordImpl.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/RecordImpl.java @@ -174,7 +174,7 @@ public com.commercetools.history.models.common.KeyReference getBusinessUnit() { } /** - *

    true if no change was detected.

    + *

    Whether no change was detected.

    *

    The version number of the resource can be increased even without any change in the resource.

    */ diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/AttributeDefinition.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/AttributeDefinition.java index 7ece178fc5..12f715e479 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/AttributeDefinition.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/AttributeDefinition.java @@ -66,7 +66,7 @@ public interface AttributeDefinition { public LocalizedString getLabel(); /** - *

    If true, the Attribute must have a value on a ProductVariant.

    + *

    Whether the Attribute must have a value on a ProductVariant.

    * @return isRequired */ @NotNull @@ -106,7 +106,7 @@ public interface AttributeDefinition { public TextInputHint getInputHint(); /** - *

    If true, the Attribute's values are available in the Product Search or the Product Projection Search API for use in full-text search queries, filters, and facets. However, if an Attribute's level is set as Product, then Product Projection Search does not support the Attribute.

    + *

    Whether the Attribute's values are available in the Product Search or the Product Projection Search API for use in full-text search queries, filters, and facets. However, if an Attribute's level is set as Product, then Product Projection Search does not support the Attribute.

    *

    The exact features that are available with this flag depend 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 */ @@ -136,7 +136,7 @@ public interface AttributeDefinition { public void setLabel(final LocalizedString label); /** - *

    If true, the Attribute must have a value on a ProductVariant.

    + *

    Whether the Attribute must have a value on a ProductVariant.

    * @param isRequired value to be set */ @@ -171,7 +171,7 @@ public interface AttributeDefinition { public void setInputHint(final TextInputHint inputHint); /** - *

    If true, the Attribute's values are available in the Product Search or the Product Projection Search API for use in full-text search queries, filters, and facets. However, if an Attribute's level is set as Product, then Product Projection Search does not support the Attribute.

    + *

    Whether the Attribute's values are available in the Product Search or the Product Projection Search API for use in full-text search queries, filters, and facets. However, if an Attribute's level is set as Product, then Product Projection Search does not support the Attribute.

    *

    The exact features that are available with this flag depend 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-history/src/main/java-generated/com/commercetools/history/models/common/AttributeDefinitionBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/AttributeDefinitionBuilder.java index b4c15801e8..1596bb5e08 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/AttributeDefinitionBuilder.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/AttributeDefinitionBuilder.java @@ -132,7 +132,7 @@ public AttributeDefinitionBuilder label(final com.commercetools.history.models.c } /** - *

    If true, the Attribute must have a value on a ProductVariant.

    + *

    Whether the Attribute must have a value on a ProductVariant.

    * @param isRequired value to be set * @return Builder */ @@ -213,7 +213,7 @@ public AttributeDefinitionBuilder inputHint(final com.commercetools.history.mode } /** - *

    If true, the Attribute's values are available in the Product Search or the Product Projection Search API for use in full-text search queries, filters, and facets. However, if an Attribute's level is set as Product, then Product Projection Search does not support the Attribute.

    + *

    Whether the Attribute's values are available in the Product Search or the Product Projection Search API for use in full-text search queries, filters, and facets. However, if an Attribute's level is set as Product, then Product Projection Search does not support the Attribute.

    *

    The exact features that are available with this flag depend 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 @@ -252,7 +252,7 @@ public com.commercetools.history.models.common.LocalizedString getLabel() { } /** - *

    If true, the Attribute must have a value on a ProductVariant.

    + *

    Whether the Attribute must have a value on a ProductVariant.

    * @return isRequired */ @@ -298,7 +298,7 @@ public com.commercetools.history.models.common.TextInputHint getInputHint() { } /** - *

    If true, the Attribute's values are available in the Product Search or the Product Projection Search API for use in full-text search queries, filters, and facets. However, if an Attribute's level is set as Product, then Product Projection Search does not support the Attribute.

    + *

    Whether the Attribute's values are available in the Product Search or the Product Projection Search API for use in full-text search queries, filters, and facets. However, if an Attribute's level is set as Product, then Product Projection Search does not support the Attribute.

    *

    The exact features that are available with this flag depend 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-history/src/main/java-generated/com/commercetools/history/models/common/AttributeDefinitionImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/AttributeDefinitionImpl.java index b206fc5744..d6076fc1f9 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/AttributeDefinitionImpl.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/AttributeDefinitionImpl.java @@ -96,7 +96,7 @@ public com.commercetools.history.models.common.LocalizedString getLabel() { } /** - *

    If true, the Attribute must have a value on a ProductVariant.

    + *

    Whether the Attribute must have a value on a ProductVariant.

    */ public Boolean getIsRequired() { @@ -136,7 +136,7 @@ public com.commercetools.history.models.common.TextInputHint getInputHint() { } /** - *

    If true, the Attribute's values are available in the Product Search or the Product Projection Search API for use in full-text search queries, filters, and facets. However, if an Attribute's level is set as Product, then Product Projection Search does not support the Attribute.

    + *

    Whether the Attribute's values are available in the Product Search or the Product Projection Search API for use in full-text search queries, filters, and facets. However, if an Attribute's level is set as Product, then Product Projection Search does not support the Attribute.

    *

    The exact features that are available with this flag depend 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-history/src/main/java-generated/com/commercetools/history/models/common/ItemShippingDetails.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ItemShippingDetails.java index 4eb69a3be8..94fbbbd054 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ItemShippingDetails.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ItemShippingDetails.java @@ -44,10 +44,7 @@ public interface ItemShippingDetails { public List getTargets(); /** - *
      - *
    • true if the quantity of Line Items or Custom Line Items is equal to the sum of sub-quantities defined in targets.
    • - *
    • false if the quantity of Line Items or Custom Line Items is not equal to the sum of sub-quantities defined in targets. Ordering a Cart when the value is false returns an InvalidItemShippingDetails error.
    • - *
    + *

    Whether the quantity of Line Items or Custom Line Items is equal to the sum of sub-quantities defined in targets. Ordering a Cart when the value is false returns an InvalidItemShippingDetails error.

    * @return valid */ @NotNull @@ -70,10 +67,7 @@ public interface ItemShippingDetails { public void setTargets(final List targets); /** - *
      - *
    • true if the quantity of Line Items or Custom Line Items is equal to the sum of sub-quantities defined in targets.
    • - *
    • false if the quantity of Line Items or Custom Line Items is not equal to the sum of sub-quantities defined in targets. Ordering a Cart when the value is false returns an InvalidItemShippingDetails error.
    • - *
    + *

    Whether the quantity of Line Items or Custom Line Items is equal to the sum of sub-quantities defined in targets. Ordering a Cart when the value is false returns an InvalidItemShippingDetails error.

    * @param valid value to be set */ diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ItemShippingDetailsBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ItemShippingDetailsBuilder.java index 49dac80df6..fbbfd0fa7e 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ItemShippingDetailsBuilder.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ItemShippingDetailsBuilder.java @@ -117,10 +117,7 @@ public ItemShippingDetailsBuilder setTargets( } /** - *
      - *
    • true if the quantity of Line Items or Custom Line Items is equal to the sum of sub-quantities defined in targets.
    • - *
    • false if the quantity of Line Items or Custom Line Items is not equal to the sum of sub-quantities defined in targets. Ordering a Cart when the value is false returns an InvalidItemShippingDetails error.
    • - *
    + *

    Whether the quantity of Line Items or Custom Line Items is equal to the sum of sub-quantities defined in targets. Ordering a Cart when the value is false returns an InvalidItemShippingDetails error.

    * @param valid value to be set * @return Builder */ @@ -140,10 +137,7 @@ public java.util.List - *
  • true if the quantity of Line Items or Custom Line Items is equal to the sum of sub-quantities defined in targets.
  • - *
  • false if the quantity of Line Items or Custom Line Items is not equal to the sum of sub-quantities defined in targets. Ordering a Cart when the value is false returns an InvalidItemShippingDetails error.
  • - * + *

    Whether the quantity of Line Items or Custom Line Items is equal to the sum of sub-quantities defined in targets. Ordering a Cart when the value is false returns an InvalidItemShippingDetails error.

    * @return valid */ diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ItemShippingDetailsImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ItemShippingDetailsImpl.java index c9c6c29fe3..2133d42a1e 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ItemShippingDetailsImpl.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ItemShippingDetailsImpl.java @@ -53,10 +53,7 @@ public java.util.List - *
  • true if the quantity of Line Items or Custom Line Items is equal to the sum of sub-quantities defined in targets.
  • - *
  • false if the quantity of Line Items or Custom Line Items is not equal to the sum of sub-quantities defined in targets. Ordering a Cart when the value is false returns an InvalidItemShippingDetails error.
  • - * + *

    Whether the quantity of Line Items or Custom Line Items is equal to the sum of sub-quantities defined in targets. Ordering a Cart when the value is false returns an InvalidItemShippingDetails error.

    */ public Boolean getValid() { diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ProductSelectionSetting.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ProductSelectionSetting.java index 1b36f6cc27..d40966a289 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ProductSelectionSetting.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ProductSelectionSetting.java @@ -43,7 +43,7 @@ public interface ProductSelectionSetting { public ProductSelectionReference getProductSelection(); /** - *

    If true, all Products assigned to this Product Selection are part of the Store's assortment.

    + *

    Whether all Products assigned to this Product Selection are part of the Store's assortment.

    * @return active */ @NotNull @@ -58,7 +58,7 @@ public interface ProductSelectionSetting { public void setProductSelection(final ProductSelectionReference productSelection); /** - *

    If true, all Products assigned to this Product Selection are part of the Store's assortment.

    + *

    Whether all Products assigned to this Product Selection are part of the Store's assortment.

    * @param active value to be set */ diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ProductSelectionSettingBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ProductSelectionSettingBuilder.java index 5d1cfa4c13..837a3890ac 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ProductSelectionSettingBuilder.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ProductSelectionSettingBuilder.java @@ -67,7 +67,7 @@ public ProductSelectionSettingBuilder productSelection( } /** - *

    If true, all Products assigned to this Product Selection are part of the Store's assortment.

    + *

    Whether all Products assigned to this Product Selection are part of the Store's assortment.

    * @param active value to be set * @return Builder */ @@ -87,7 +87,7 @@ public com.commercetools.history.models.common.ProductSelectionReference getProd } /** - *

    If true, all Products assigned to this Product Selection are part of the Store's assortment.

    + *

    Whether all Products assigned to this Product Selection are part of the Store's assortment.

    * @return active */ diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ProductSelectionSettingImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ProductSelectionSettingImpl.java index 2fc336e63e..4135f0c58e 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ProductSelectionSettingImpl.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ProductSelectionSettingImpl.java @@ -53,7 +53,7 @@ public com.commercetools.history.models.common.ProductSelectionReference getProd } /** - *

    If true, all Products assigned to this Product Selection are part of the Store's assortment.

    + *

    Whether all Products assigned to this Product Selection are part of the Store's assortment.

    */ public Boolean getActive() { diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ProductVariant.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ProductVariant.java index ad0d09d8c6..84bbdeb2f0 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ProductVariant.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ProductVariant.java @@ -107,7 +107,7 @@ public interface ProductVariant { public ProductVariantAvailability getAvailability(); /** - *

    true if the Product Variant matches the search query. Only available in response to a Product Projection Search request.

    + *

    Whether the Product Variant matches the search query. Only available in response to a Product Projection Search request.

    * @return isMatchingVariant */ @@ -235,7 +235,7 @@ public interface ProductVariant { public void setAvailability(final ProductVariantAvailability availability); /** - *

    true if the Product Variant matches the search query. Only available in response to a Product Projection Search request.

    + *

    Whether the Product Variant matches the search query. Only available in response to a Product Projection Search request.

    * @param isMatchingVariant value to be set */ diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ProductVariantBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ProductVariantBuilder.java index d012ba80fe..8e12b3c50a 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ProductVariantBuilder.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ProductVariantBuilder.java @@ -521,7 +521,7 @@ public ProductVariantBuilder availability( } /** - *

    true if the Product Variant matches the search query. Only available in response to a Product Projection Search request.

    + *

    Whether the Product Variant matches the search query. Only available in response to a Product Projection Search request.

    * @param isMatchingVariant value to be set * @return Builder */ @@ -758,7 +758,7 @@ public com.commercetools.history.models.common.ProductVariantAvailability getAva } /** - *

    true if the Product Variant matches the search query. Only available in response to a Product Projection Search request.

    + *

    Whether the Product Variant matches the search query. Only available in response to a Product Projection Search request.

    * @return isMatchingVariant */ diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ProductVariantImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ProductVariantImpl.java index 0473ef3b75..0903f69798 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ProductVariantImpl.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ProductVariantImpl.java @@ -160,7 +160,7 @@ public com.commercetools.history.models.common.ProductVariantAvailability getAva } /** - *

    true if the Product Variant matches the search query. Only available in response to a Product Projection Search request.

    + *

    Whether the Product Variant matches the search query. Only available in response to a Product Projection Search request.

    */ public Boolean getIsMatchingVariant() { diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ShippingRate.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ShippingRate.java index 96ce75f86f..500f8e8c35 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ShippingRate.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ShippingRate.java @@ -52,7 +52,7 @@ public interface ShippingRate { public CentPrecisionMoney getFreeAbove(); /** - *

    true if the ShippingRate matches given Cart or Location. Only appears in response to requests for Get ShippingMethods for a Cart or Get ShippingMethods for a Location.

    + *

    Whether the ShippingRate matches the given Cart or Location. Only appears in response to requests for Get ShippingMethods for a Cart or Get ShippingMethods for a Location.

    * @return isMatching */ @@ -83,7 +83,7 @@ public interface ShippingRate { public void setFreeAbove(final CentPrecisionMoney freeAbove); /** - *

    true if the ShippingRate matches given Cart or Location. Only appears in response to requests for Get ShippingMethods for a Cart or Get ShippingMethods for a Location.

    + *

    Whether the ShippingRate matches the given Cart or Location. Only appears in response to requests for Get ShippingMethods for a Cart or Get ShippingMethods for a Location.

    * @param isMatching value to be set */ diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ShippingRateBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ShippingRateBuilder.java index c46971ab0c..0c243f914c 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ShippingRateBuilder.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ShippingRateBuilder.java @@ -107,7 +107,7 @@ public ShippingRateBuilder freeAbove( } /** - *

    true if the ShippingRate matches given Cart or Location. Only appears in response to requests for Get ShippingMethods for a Cart or Get ShippingMethods for a Location.

    + *

    Whether the ShippingRate matches the given Cart or Location. Only appears in response to requests for Get ShippingMethods for a Cart or Get ShippingMethods for a Location.

    * @param isMatching value to be set * @return Builder */ @@ -226,7 +226,7 @@ public com.commercetools.history.models.common.CentPrecisionMoney getFreeAbove() } /** - *

    true if the ShippingRate matches given Cart or Location. Only appears in response to requests for Get ShippingMethods for a Cart or Get ShippingMethods for a Location.

    + *

    Whether the ShippingRate matches the given Cart or Location. Only appears in response to requests for Get ShippingMethods for a Cart or Get ShippingMethods for a Location.

    * @return isMatching */ diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ShippingRateImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ShippingRateImpl.java index 08cb2fcca1..18aa1e7973 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ShippingRateImpl.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ShippingRateImpl.java @@ -68,7 +68,7 @@ public com.commercetools.history.models.common.CentPrecisionMoney getFreeAbove() } /** - *

    true if the ShippingRate matches given Cart or Location. Only appears in response to requests for Get ShippingMethods for a Cart or Get ShippingMethods for a Location.

    + *

    Whether the ShippingRate matches the given Cart or Location. Only appears in response to requests for Get ShippingMethods for a Cart or Get ShippingMethods for a Location.

    */ public Boolean getIsMatching() { diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/TaxRate.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/TaxRate.java index 794cb134b1..efff9a4aa9 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/TaxRate.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/TaxRate.java @@ -69,7 +69,7 @@ public interface TaxRate { public Double getAmount(); /** - *

    If true, tax is included in Embedded Prices or Standalone Prices, and the taxedPrice is present on LineItems. In this case, the totalNet price on TaxedPrice includes the TaxRate.

    + *

    Whether tax is included in Embedded Prices or Standalone Prices, and the taxedPrice is present on LineItems. In this case, the totalNet price on TaxedPrice includes the TaxRate.

    * @return includedInPrice */ @NotNull @@ -129,7 +129,7 @@ public interface TaxRate { public void setAmount(final Double amount); /** - *

    If true, tax is included in Embedded Prices or Standalone Prices, and the taxedPrice is present on LineItems. In this case, the totalNet price on TaxedPrice includes the TaxRate.

    + *

    Whether tax is included in Embedded Prices or Standalone Prices, and the taxedPrice is present on LineItems. In this case, the totalNet price on TaxedPrice includes the TaxRate.

    * @param includedInPrice value to be set */ diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/TaxRateBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/TaxRateBuilder.java index 42c57d1c58..37cef68782 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/TaxRateBuilder.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/TaxRateBuilder.java @@ -92,7 +92,7 @@ public TaxRateBuilder amount(final Double amount) { } /** - *

    If true, tax is included in Embedded Prices or Standalone Prices, and the taxedPrice is present on LineItems. In this case, the totalNet price on TaxedPrice includes the TaxRate.

    + *

    Whether tax is included in Embedded Prices or Standalone Prices, and the taxedPrice is present on LineItems. In this case, the totalNet price on TaxedPrice includes the TaxRate.

    * @param includedInPrice value to be set * @return Builder */ @@ -250,7 +250,7 @@ public Double getAmount() { } /** - *

    If true, tax is included in Embedded Prices or Standalone Prices, and the taxedPrice is present on LineItems. In this case, the totalNet price on TaxedPrice includes the TaxRate.

    + *

    Whether tax is included in Embedded Prices or Standalone Prices, and the taxedPrice is present on LineItems. In this case, the totalNet price on TaxedPrice includes the TaxRate.

    * @return includedInPrice */ diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/TaxRateImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/TaxRateImpl.java index 228c59ba8d..382450278f 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/TaxRateImpl.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/TaxRateImpl.java @@ -97,7 +97,7 @@ public Double getAmount() { } /** - *

    If true, tax is included in Embedded Prices or Standalone Prices, and the taxedPrice is present on LineItems. In this case, the totalNet price on TaxedPrice includes the TaxRate.

    + *

    Whether tax is included in Embedded Prices or Standalone Prices, and the taxedPrice is present on LineItems. In this case, the totalNet price on TaxedPrice includes the TaxRate.

    */ public Boolean getIncludedInPrice() { diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/TrackingData.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/TrackingData.java index c8f9c831f0..8b30bc1d42 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/TrackingData.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/TrackingData.java @@ -62,10 +62,7 @@ public interface TrackingData { public String getProviderTransaction(); /** - *
      - *
    • If true, the Parcel is being returned.
    • - *
    • If false, the Parcel is being delivered to the customer.
    • - *
    + *

    Whether the Parcel is being returned. If false, the Parcel is being delivered to the customer.

    * @return isReturn */ @@ -101,10 +98,7 @@ public interface TrackingData { public void setProviderTransaction(final String providerTransaction); /** - *
      - *
    • If true, the Parcel is being returned.
    • - *
    • If false, the Parcel is being delivered to the customer.
    • - *
    + *

    Whether the Parcel is being returned. If false, the Parcel is being delivered to the customer.

    * @param isReturn value to be set */ diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/TrackingDataBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/TrackingDataBuilder.java index e682f3a0a0..5f9c324c43 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/TrackingDataBuilder.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/TrackingDataBuilder.java @@ -82,10 +82,7 @@ public TrackingDataBuilder providerTransaction(@Nullable final String providerTr } /** - *
      - *
    • If true, the Parcel is being returned.
    • - *
    • If false, the Parcel is being delivered to the customer.
    • - *
    + *

    Whether the Parcel is being returned. If false, the Parcel is being delivered to the customer.

    * @param isReturn value to be set * @return Builder */ @@ -136,10 +133,7 @@ public String getProviderTransaction() { } /** - *
      - *
    • If true, the Parcel is being returned.
    • - *
    • If false, the Parcel is being delivered to the customer.
    • - *
    + *

    Whether the Parcel is being returned. If false, the Parcel is being delivered to the customer.

    * @return isReturn */ diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/TrackingDataImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/TrackingDataImpl.java index 62e35a86fd..46604fd42a 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/TrackingDataImpl.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/TrackingDataImpl.java @@ -87,10 +87,7 @@ public String getProviderTransaction() { } /** - *
      - *
    • If true, the Parcel is being returned.
    • - *
    • If false, the Parcel is being delivered to the customer.
    • - *
    + *

    Whether the Parcel is being returned. If false, the Parcel is being delivered to the customer.

    */ public Boolean getIsReturn() { diff --git a/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/orders/TrackingData.java b/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/orders/TrackingData.java index c39e89339d..ef5013dbee 100644 --- a/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/orders/TrackingData.java +++ b/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/orders/TrackingData.java @@ -62,10 +62,7 @@ public interface TrackingData { public String getProviderTransaction(); /** - *
      - *
    • If true, the Parcel is being returned.
    • - *
    • If false, the Parcel is being delivered to the customer.
    • - *
    + *

    Whether the Parcel is being returned. If false, the Parcel is being delivered to the customer.

    * @return isReturn */ @@ -101,10 +98,7 @@ public interface TrackingData { public void setProviderTransaction(final String providerTransaction); /** - *
      - *
    • If true, the Parcel is being returned.
    • - *
    • If false, the Parcel is being delivered to the customer.
    • - *
    + *

    Whether the Parcel is being returned. If false, the Parcel is being delivered to the customer.

    * @param isReturn value to be set */ diff --git a/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/orders/TrackingDataBuilder.java b/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/orders/TrackingDataBuilder.java index e8c6b0a329..9d0df896ed 100644 --- a/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/orders/TrackingDataBuilder.java +++ b/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/orders/TrackingDataBuilder.java @@ -82,10 +82,7 @@ public TrackingDataBuilder providerTransaction(@Nullable final String providerTr } /** - *
      - *
    • If true, the Parcel is being returned.
    • - *
    • If false, the Parcel is being delivered to the customer.
    • - *
    + *

    Whether the Parcel is being returned. If false, the Parcel is being delivered to the customer.

    * @param isReturn value to be set * @return Builder */ @@ -136,10 +133,7 @@ public String getProviderTransaction() { } /** - *
      - *
    • If true, the Parcel is being returned.
    • - *
    • If false, the Parcel is being delivered to the customer.
    • - *
    + *

    Whether the Parcel is being returned. If false, the Parcel is being delivered to the customer.

    * @return isReturn */ diff --git a/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/orders/TrackingDataImpl.java b/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/orders/TrackingDataImpl.java index 35be2c2c00..2a4c32f8a9 100644 --- a/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/orders/TrackingDataImpl.java +++ b/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/orders/TrackingDataImpl.java @@ -87,10 +87,7 @@ public String getProviderTransaction() { } /** - *
      - *
    • If true, the Parcel is being returned.
    • - *
    • If false, the Parcel is being delivered to the customer.
    • - *
    + *

    Whether the Parcel is being returned. If false, the Parcel is being delivered to the customer.

    */ public Boolean getIsReturn() { diff --git a/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/product_tailoring/ProductTailoringImport.java b/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/product_tailoring/ProductTailoringImport.java index f6e605e09c..cc3d1b8b5f 100644 --- a/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/product_tailoring/ProductTailoringImport.java +++ b/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/product_tailoring/ProductTailoringImport.java @@ -115,7 +115,7 @@ public interface ProductTailoringImport extends ImportResource { public LocalizedString getSlug(); /** - *

    Set to true to publish the ProductTailoring immediately. Otherwise, the tailored product information is just staged.

    + *

    Whether to publish the ProductTailoring immediately. Otherwise, the tailored product information is just staged.

    * @return publish */ @@ -202,7 +202,7 @@ public interface ProductTailoringImport extends ImportResource { public void setSlug(final LocalizedString slug); /** - *

    Set to true to publish the ProductTailoring immediately. Otherwise, the tailored product information is just staged.

    + *

    Whether to publish the ProductTailoring immediately. Otherwise, the tailored product information is just staged.

    * @param publish value to be set */ diff --git a/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/product_tailoring/ProductTailoringImportBuilder.java b/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/product_tailoring/ProductTailoringImportBuilder.java index 8ec3cf42a8..64504a7453 100644 --- a/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/product_tailoring/ProductTailoringImportBuilder.java +++ b/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/product_tailoring/ProductTailoringImportBuilder.java @@ -361,7 +361,7 @@ public ProductTailoringImportBuilder slug( } /** - *

    Set to true to publish the ProductTailoring immediately. Otherwise, the tailored product information is just staged.

    + *

    Whether to publish the ProductTailoring immediately. Otherwise, the tailored product information is just staged.

    * @param publish value to be set * @return Builder */ @@ -623,7 +623,7 @@ public com.commercetools.importapi.models.common.LocalizedString getSlug() { } /** - *

    Set to true to publish the ProductTailoring immediately. Otherwise, the tailored product information is just staged.

    + *

    Whether to publish the ProductTailoring immediately. Otherwise, the tailored product information is just staged.

    * @return publish */ diff --git a/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/product_tailoring/ProductTailoringImportImpl.java b/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/product_tailoring/ProductTailoringImportImpl.java index 856d5c31f6..35092f9795 100644 --- a/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/product_tailoring/ProductTailoringImportImpl.java +++ b/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/product_tailoring/ProductTailoringImportImpl.java @@ -156,7 +156,7 @@ public com.commercetools.importapi.models.common.LocalizedString getSlug() { } /** - *

    Set to true to publish the ProductTailoring immediately. Otherwise, the tailored product information is just staged.

    + *

    Whether to publish the ProductTailoring immediately. Otherwise, the tailored product information is just staged.

    */ public Boolean getPublish() { diff --git a/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/producttypes/AttributeDefinition.java b/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/producttypes/AttributeDefinition.java index 9596239871..394a371e18 100644 --- a/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/producttypes/AttributeDefinition.java +++ b/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/producttypes/AttributeDefinition.java @@ -63,7 +63,7 @@ public interface AttributeDefinition { public LocalizedString getLabel(); /** - *

    If true, the Attribute must have a value on a ProductVariant.

    + *

    Whether the Attribute must have a value on a ProductVariant.

    * @return isRequired */ @NotNull @@ -95,7 +95,7 @@ public interface AttributeDefinition { public TextInputHint getInputHint(); /** - *

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

    + *

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

    * @return isSearchable */ @@ -132,7 +132,7 @@ public interface AttributeDefinition { public void setLabel(final LocalizedString label); /** - *

    If true, the Attribute must have a value on a ProductVariant.

    + *

    Whether the Attribute must have a value on a ProductVariant.

    * @param isRequired value to be set */ @@ -160,7 +160,7 @@ public interface AttributeDefinition { public void setInputHint(final TextInputHint inputHint); /** - *

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

    + *

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

    * @param isSearchable value to be set */ diff --git a/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/producttypes/AttributeDefinitionBuilder.java b/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/producttypes/AttributeDefinitionBuilder.java index ed320c5b15..7f478a3d41 100644 --- a/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/producttypes/AttributeDefinitionBuilder.java +++ b/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/producttypes/AttributeDefinitionBuilder.java @@ -120,7 +120,7 @@ public AttributeDefinitionBuilder label(final com.commercetools.importapi.models } /** - *

    If true, the Attribute must have a value on a ProductVariant.

    + *

    Whether the Attribute must have a value on a ProductVariant.

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

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

    + *

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

    * @param isSearchable value to be set * @return Builder */ @@ -241,7 +241,7 @@ public com.commercetools.importapi.models.common.LocalizedString getLabel() { } /** - *

    If true, the Attribute must have a value on a ProductVariant.

    + *

    Whether the Attribute must have a value on a ProductVariant.

    * @return isRequired */ @@ -280,7 +280,7 @@ public com.commercetools.importapi.models.producttypes.TextInputHint getInputHin } /** - *

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

    + *

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

    * @return isSearchable */ diff --git a/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/producttypes/AttributeDefinitionImpl.java b/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/producttypes/AttributeDefinitionImpl.java index ef4f4b2bb4..5682881d31 100644 --- a/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/producttypes/AttributeDefinitionImpl.java +++ b/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/producttypes/AttributeDefinitionImpl.java @@ -97,7 +97,7 @@ public com.commercetools.importapi.models.common.LocalizedString getLabel() { } /** - *

    If true, the Attribute must have a value on a ProductVariant.

    + *

    Whether the Attribute must have a value on a ProductVariant.

    */ public Boolean getIsRequired() { @@ -129,7 +129,7 @@ public com.commercetools.importapi.models.producttypes.TextInputHint getInputHin } /** - *

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

    + *

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

    */ public Boolean getIsSearchable() { diff --git a/references.txt b/references.txt index bb4adfc81c..cb0479ce95 100644 --- a/references.txt +++ b/references.txt @@ -608,3 +608,4 @@ f9a44493eef8a3103b16157bb030cc6be357c711 1d55942b238054575643c63d7b05394dc5f405bb b6060a56dd91f570badc882bab7e86d3f4a2d1ee b38d097b036e37f5e33e2d9754ecf5b484a4f0d4 +56c2560f8936ebcbaeb3ec83de2e90d4474ccdf9 From b3ef2986f087416ede2b46a07cd38e9db11295f1 Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Mon, 3 Aug 2026 14:59:09 +0000 Subject: [PATCH 27/27] build(codegen): updating SDK --- .../src/main/resources/graphql/schema.graphqls | 8 ++++++++ references.txt | 1 + 2 files changed, 9 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 22a8d3be29..6f7d8b5de4 100644 --- a/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls +++ b/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls @@ -1210,6 +1210,14 @@ type Mutation { id: String """Queries with specified key""" key: String + ): OrderEdit + applyOrderEdit( + """The id of the OrderEdit to apply.""" + id: String! + """Current version of the OrderEdit.""" + editVersion: Long! + """Current version of the referenced Order.""" + resourceVersion: Long! ): OrderEdit createShoppingList( draft: ShoppingListDraft! diff --git a/references.txt b/references.txt index cb0479ce95..2110800f89 100644 --- a/references.txt +++ b/references.txt @@ -609,3 +609,4 @@ f9a44493eef8a3103b16157bb030cc6be357c711 b6060a56dd91f570badc882bab7e86d3f4a2d1ee b38d097b036e37f5e33e2d9754ecf5b484a4f0d4 56c2560f8936ebcbaeb3ec83de2e90d4474ccdf9 +47bfaa05af36407cd1a5da1471722c073ee177de