From 30e7a659e4982b6577e07bfd2fa6412b1781d0e5 Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Wed, 5 Feb 2025 15:45:05 +0000 Subject: [PATCH] build(codegen): updating SDK --- changes.md | 7 ++ .../ProductSearchFacetScope.java | 112 ------------------ references.txt | 1 + 3 files changed, 8 insertions(+), 112 deletions(-) delete mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetScope.java diff --git a/changes.md b/changes.md index 07bc86e10d6..05db4c4e8bd 100644 --- a/changes.md +++ b/changes.md @@ -1,5 +1,12 @@ **Api changes** +
+Removed Type(s) + +- :warning: removed type `ProductSearchFacetScope` +
+ +
Added Type(s) diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetScope.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetScope.java deleted file mode 100644 index b04a66d6e4a..00000000000 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetScope.java +++ /dev/null @@ -1,112 +0,0 @@ - -package com.commercetools.api.models.product_search; - -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; - -/** - * ProductSearchFacetScope - */ -@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") -public interface ProductSearchFacetScope extends JsonEnum { - - ProductSearchFacetScope ALL = ProductSearchFacetScopeEnum.ALL; - - ProductSearchFacetScope QUERY = ProductSearchFacetScopeEnum.QUERY; - - /** - * possible values of ProductSearchFacetScope - */ - enum ProductSearchFacetScopeEnum implements ProductSearchFacetScope { - /** - * all - */ - ALL("all"), - - /** - * query - */ - QUERY("query"); - private final String jsonName; - - private ProductSearchFacetScopeEnum(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 ProductSearchFacetScope - * 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 ProductSearchFacetScope findEnum(String value) { - return findEnumViaJsonName(value).orElse(new ProductSearchFacetScope() { - @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 ProductSearchFacetScope[] values() { - return ProductSearchFacetScopeEnum.values(); - } - -} diff --git a/references.txt b/references.txt index 3ad179e4d3c..b6ac373be3d 100644 --- a/references.txt +++ b/references.txt @@ -367,3 +367,4 @@ e18cd8073ea975fe92c1bad4dea957b16ee0b1c4 50762378331ebbfba5d3c3a44945770362d4edd9 1664a8457691cf9460b5f5fe50aae15df4ac6b20 b71e64cba7a81b26a5892daca52a9715fd32c05f +159b6f682f761a18daea978cdb2760e7713e0000