From 10b64e43987fb5124d6057a7516b996685d765bc Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Mon, 30 Sep 2024 15:37:56 +0000 Subject: [PATCH] build(codegen): updating SDK --- changes.md | 7 ++ .../models/project/ProductSearchStatus.java | 115 ------------------ references.txt | 1 + 3 files changed, 8 insertions(+), 115 deletions(-) delete mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/ProductSearchStatus.java diff --git a/changes.md b/changes.md index 9ea10e867fe..21c67f3f911 100644 --- a/changes.md +++ b/changes.md @@ -24,6 +24,13 @@ +
+Removed Type(s) + +- :warning: removed type `ProductSearchStatus` +
+ +
Added Enum(s) diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/ProductSearchStatus.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/ProductSearchStatus.java deleted file mode 100644 index 094882b7f05..00000000000 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/ProductSearchStatus.java +++ /dev/null @@ -1,115 +0,0 @@ - -package com.commercetools.api.models.project; - -import java.util.Arrays; -import java.util.Optional; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -import io.vrap.rmf.base.client.JsonEnum; -import io.vrap.rmf.base.client.utils.Generated; - -/** - *

Specifies the status of the Product Search index.

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

indicates that the Search Products endpoint is fully operational.

*/ - ProductSearchStatus ACTIVATED = ProductSearchStatusEnum.ACTIVATED; - /** -

indicates that the Product Search feature is currently not active.

*/ - ProductSearchStatus DEACTIVATED = ProductSearchStatusEnum.DEACTIVATED; - - /** - * possible values of ProductSearchStatus - */ - enum ProductSearchStatusEnum implements ProductSearchStatus { - /** - * Activated - */ - ACTIVATED("Activated"), - - /** - * Deactivated - */ - DEACTIVATED("Deactivated"); - private final String jsonName; - - private ProductSearchStatusEnum(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 ProductSearchStatus - * 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 ProductSearchStatus findEnum(String value) { - return findEnumViaJsonName(value).orElse(new ProductSearchStatus() { - @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 ProductSearchStatus[] values() { - return ProductSearchStatusEnum.values(); - } - -} diff --git a/references.txt b/references.txt index 562219b1392..9216da245cc 100644 --- a/references.txt +++ b/references.txt @@ -307,3 +307,4 @@ ce56ab7c65a688f75d5cd4095378d6647c6bd9ae ce2753aafee0b1d96970abb600b606748ce40568 d947f454821e0834a2c8a8605d4a0f3347c11d4e efc70952597a3160e6bb47891894b109bd82b7c3 +4ee8b39787eb0f0b2d025520acdaa022122bd617