From 8c6785248a59db6fcaad747552d6f17e85519c73 Mon Sep 17 00:00:00 2001
From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com>
Date: Mon, 6 Jan 2025 17:03:30 +0000
Subject: [PATCH] build(codegen): updating SDK
---
changes.md | 67 +------------
.../cart_discount/PatternComponent.java | 46 +++++++++
.../PatternComponentBuilder.java | 62 +++++++++++-
.../cart_discount/PatternComponentImpl.java | 4 +
...ChangeTargetPatternChangeValueBuilder.java | 56 ++++++++++-
.../models/error/GraphQLErrorObject.java | 94 ------------------
.../error/GraphQLErrorObjectBuilder.java | 22 -----
.../models/error/GraphQLErrorObjectImpl.java | 98 -------------------
.../history/models/graph_ql/GraphQLError.java | 8 +-
.../models/graph_ql/GraphQLErrorBuilder.java | 18 +---
.../models/graph_ql/GraphQLErrorImpl.java | 8 +-
.../cart_discount/PatternComponentTest.java | 36 +++++++
.../models/graph_ql/GraphQLErrorTest.java | 8 +-
reference.txt | 1 +
references.txt | 1 +
15 files changed, 218 insertions(+), 311 deletions(-)
delete mode 100644 commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/error/GraphQLErrorObject.java
delete mode 100644 commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/error/GraphQLErrorObjectBuilder.java
delete mode 100644 commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/error/GraphQLErrorObjectImpl.java
create mode 100644 commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/cart_discount/PatternComponentTest.java
create mode 100644 reference.txt
diff --git a/changes.md b/changes.md
index 42244cf42c..c2f8369d30 100644
--- a/changes.md
+++ b/changes.md
@@ -1,74 +1,15 @@
-**Api changes**
-
-
-Changed Property(s)
-
-- :warning: changed property `exact` of type `SearchExactExpression` from type `SearchAnyValue` to `SearchExactValue`
-
-
-
-
-Added Property(s)
-
-- added property `businessUnits` to type `SearchIndexingConfiguration`
-
-
-
-
-Added Resource(s)
-
-- added resource `/{projectKey}/business-units/search`
-- added resource `/{projectKey}/business-units/search/indexing-status`
-
-
-
-
-Added Method(s)
-
-- added method `apiRoot.withProjectKey().businessUnits().search().post()`
-- added method `apiRoot.withProjectKey().businessUnits().search().head()`
-- added method `apiRoot.withProjectKey().businessUnits().searchIndexingStatus().get()`
-
-
-
-
-Added Type(s)
-
-- added type `BusinessUnitIndexingProgress`
-- added type `BusinessUnitIndexingStatus`
-- added type `BusinessUnitPagedSearchResponse`
-- added type `BusinessUnitSearchIndexingStatusResponse`
-- added type `BusinessUnitSearchRequest`
-- added type `BusinessUnitSearchResult`
-- added type `BusinessUnitSearchStatus`
-- added type `ProjectChangeBusinessUnitSearchStatusAction`
-- added type `SearchExactValue`
-
-
**History changes**
-Added Resource(s)
-
-- added resource `/{projectKey}/graphql`
-
-
-
-
-Added Method(s)
+Changed Property(s)
-- added method `apiRoot.withProjectKeyValue().graphql().post()`
+- :warning: changed property `extensions` of type `GraphQLError` from type `GraphQLErrorObject` to `object`
-Added Type(s)
+Removed Type(s)
-- added type `GraphQLRequest`
-- added type `GraphQLResponse`
-- added type `GraphQLError`
-- added type `GraphQLErrorLocation`
-- added type `GraphQLVariablesMap`
-- added type `GraphQLErrorObject`
+- :warning: removed type `GraphQLErrorObject`
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/cart_discount/PatternComponent.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/cart_discount/PatternComponent.java
index 8cba0f99fd..1dbb36feb4 100644
--- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/cart_discount/PatternComponent.java
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/cart_discount/PatternComponent.java
@@ -22,11 +22,13 @@
*
*
* PatternComponent patternComponent = PatternComponent.builder()
+ * .type("{type}")
* .build()
*
*
*/
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
+@JsonDeserialize(as = PatternComponentImpl.class)
public interface PatternComponent {
/**
@@ -37,6 +39,32 @@ public interface PatternComponent {
@JsonProperty("type")
public String getType();
+ /**
+ * set type
+ * @param type value to be set
+ */
+
+ public void setType(final String type);
+
+ /**
+ * factory method
+ * @return instance of PatternComponent
+ */
+ public static PatternComponent of() {
+ return new PatternComponentImpl();
+ }
+
+ /**
+ * factory method to create a shallow copy PatternComponent
+ * @param template instance to be copied
+ * @return copy instance
+ */
+ public static PatternComponent of(final PatternComponent template) {
+ PatternComponentImpl instance = new PatternComponentImpl();
+ instance.setType(template.getType());
+ return instance;
+ }
+
/**
* factory method to create a deep copy of PatternComponent
* @param template instance to be copied
@@ -48,9 +76,27 @@ public static PatternComponent deepCopy(@Nullable final PatternComponent templat
return null;
}
PatternComponentImpl instance = new PatternComponentImpl();
+ instance.setType(template.getType());
return instance;
}
+ /**
+ * builder factory method for PatternComponent
+ * @return builder
+ */
+ public static PatternComponentBuilder builder() {
+ return PatternComponentBuilder.of();
+ }
+
+ /**
+ * create builder for PatternComponent instance
+ * @param template instance with prefilled values for the builder
+ * @return builder
+ */
+ public static PatternComponentBuilder builder(final PatternComponent template) {
+ return PatternComponentBuilder.of(template);
+ }
+
/**
* accessor map function
* @param mapped type
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/cart_discount/PatternComponentBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/cart_discount/PatternComponentBuilder.java
index 626dd0f027..aaad3e595f 100644
--- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/cart_discount/PatternComponentBuilder.java
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/cart_discount/PatternComponentBuilder.java
@@ -3,13 +3,62 @@
import java.util.*;
+import io.vrap.rmf.base.client.Builder;
import io.vrap.rmf.base.client.utils.Generated;
/**
* PatternComponentBuilder
+ *
+ * Example to create an instance using the builder pattern
+ *
+ *
+ * PatternComponent patternComponent = PatternComponent.builder()
+ * .type("{type}")
+ * .build()
+ *
+ *
*/
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
-public class PatternComponentBuilder {
+public class PatternComponentBuilder implements Builder {
+
+ private String type;
+
+ /**
+ * set the value to the type
+ * @param type value to be set
+ * @return Builder
+ */
+
+ public PatternComponentBuilder type(final String type) {
+ this.type = type;
+ return this;
+ }
+
+ /**
+ * value of type}
+ * @return type
+ */
+
+ public String getType() {
+ return this.type;
+ }
+
+ /**
+ * builds PatternComponent with checking for non-null required values
+ * @return PatternComponent
+ */
+ public PatternComponent build() {
+ Objects.requireNonNull(type, PatternComponent.class + ": type is missing");
+ return new PatternComponentImpl(type);
+ }
+
+ /**
+ * builds PatternComponent without checking for non-null required values
+ * @return PatternComponent
+ */
+ public PatternComponent buildUnchecked() {
+ return new PatternComponentImpl(type);
+ }
/**
* factory method for an instance of PatternComponentBuilder
@@ -19,4 +68,15 @@ public static PatternComponentBuilder of() {
return new PatternComponentBuilder();
}
+ /**
+ * create builder for PatternComponent instance
+ * @param template instance with prefilled values for the builder
+ * @return builder
+ */
+ public static PatternComponentBuilder of(final PatternComponent template) {
+ PatternComponentBuilder builder = new PatternComponentBuilder();
+ builder.type = template.getType();
+ return builder;
+ }
+
}
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/cart_discount/PatternComponentImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/cart_discount/PatternComponentImpl.java
index e2d3ce8875..5d20474a6b 100644
--- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/cart_discount/PatternComponentImpl.java
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/cart_discount/PatternComponentImpl.java
@@ -46,6 +46,10 @@ public String getType() {
return this.type;
}
+ public void setType(final String type) {
+ this.type = type;
+ }
+
@Override
public boolean equals(Object o) {
if (this == o)
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_value/ChangeTargetPatternChangeValueBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_value/ChangeTargetPatternChangeValueBuilder.java
index ef6c165515..de4ba29c27 100644
--- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_value/ChangeTargetPatternChangeValueBuilder.java
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_value/ChangeTargetPatternChangeValueBuilder.java
@@ -81,7 +81,7 @@ public ChangeTargetPatternChangeValueBuilder plusTriggerPattern(
*/
public ChangeTargetPatternChangeValueBuilder plusTriggerPattern(
- Function> builder) {
+ Function builder) {
if (this.triggerPattern == null) {
this.triggerPattern = new ArrayList<>();
}
@@ -97,13 +97,37 @@ public ChangeTargetPatternChangeValueBuilder plusTriggerPattern(
*/
public ChangeTargetPatternChangeValueBuilder withTriggerPattern(
- Function> builder) {
+ Function builder) {
this.triggerPattern = new ArrayList<>();
this.triggerPattern.add(
builder.apply(com.commercetools.history.models.cart_discount.PatternComponentBuilder.of()).build());
return this;
}
+ /**
+ * Units of a (Custom) Line Item that triggered the discount application.
+ * @param builder function to build the triggerPattern value
+ * @return Builder
+ */
+
+ public ChangeTargetPatternChangeValueBuilder addTriggerPattern(
+ Function builder) {
+ return plusTriggerPattern(
+ builder.apply(com.commercetools.history.models.cart_discount.PatternComponentBuilder.of()));
+ }
+
+ /**
+ * Units of a (Custom) Line Item that triggered the discount application.
+ * @param builder function to build the triggerPattern value
+ * @return Builder
+ */
+
+ public ChangeTargetPatternChangeValueBuilder setTriggerPattern(
+ Function builder) {
+ return triggerPattern(
+ builder.apply(com.commercetools.history.models.cart_discount.PatternComponentBuilder.of()));
+ }
+
/**
* Units of (Custom) Line Items on which the Discount is applied.
* @param targetPattern value to be set
@@ -150,7 +174,7 @@ public ChangeTargetPatternChangeValueBuilder plusTargetPattern(
*/
public ChangeTargetPatternChangeValueBuilder plusTargetPattern(
- Function> builder) {
+ Function builder) {
if (this.targetPattern == null) {
this.targetPattern = new ArrayList<>();
}
@@ -166,13 +190,37 @@ public ChangeTargetPatternChangeValueBuilder plusTargetPattern(
*/
public ChangeTargetPatternChangeValueBuilder withTargetPattern(
- Function> builder) {
+ Function builder) {
this.targetPattern = new ArrayList<>();
this.targetPattern.add(
builder.apply(com.commercetools.history.models.cart_discount.PatternComponentBuilder.of()).build());
return this;
}
+ /**
+ * Units of (Custom) Line Items on which the Discount is applied.
+ * @param builder function to build the targetPattern value
+ * @return Builder
+ */
+
+ public ChangeTargetPatternChangeValueBuilder addTargetPattern(
+ Function builder) {
+ return plusTargetPattern(
+ builder.apply(com.commercetools.history.models.cart_discount.PatternComponentBuilder.of()));
+ }
+
+ /**
+ * Units of (Custom) Line Items on which the Discount is applied.
+ * @param builder function to build the targetPattern value
+ * @return Builder
+ */
+
+ public ChangeTargetPatternChangeValueBuilder setTargetPattern(
+ Function builder) {
+ return targetPattern(
+ builder.apply(com.commercetools.history.models.cart_discount.PatternComponentBuilder.of()));
+ }
+
/**
* Maximum number of times the Discount applies on a Cart.
* If empty, the Discount applies indefinitely.
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/error/GraphQLErrorObject.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/error/GraphQLErrorObject.java
deleted file mode 100644
index 0202b59701..0000000000
--- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/error/GraphQLErrorObject.java
+++ /dev/null
@@ -1,94 +0,0 @@
-
-package com.commercetools.history.models.error;
-
-import java.time.*;
-import java.util.*;
-import java.util.function.Function;
-
-import javax.annotation.Nullable;
-
-import com.fasterxml.jackson.annotation.*;
-import com.fasterxml.jackson.databind.annotation.*;
-
-import io.vrap.rmf.base.client.utils.Generated;
-
-import jakarta.validation.constraints.NotNull;
-
-/**
- * Represents a single error.
- *
- *
- * Example to create an instance using the builder pattern
- *
- *
- * GraphQLErrorObject graphQLErrorObject = GraphQLErrorObject.builder()
- * .build()
- *
- *
- */
-@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
-public interface GraphQLErrorObject {
-
- /**
- * One of the error codes that is listed on the Errors page.
- * @return code
- */
- @NotNull
- @JsonProperty("code")
- public String getCode();
-
- /**
- * Error-specific additional fields.
- * @return map of the pattern property values
- */
- @NotNull
- @JsonAnyGetter
- public Map values();
-
- /**
- * Error-specific additional fields.
- * @param key property name
- * @param value property value
- */
-
- @JsonAnySetter
- public void setValue(String key, Object value);
-
- /**
- * factory method to create a deep copy of GraphQLErrorObject
- * @param template instance to be copied
- * @return copy instance
- */
- @Nullable
- public static GraphQLErrorObject deepCopy(@Nullable final GraphQLErrorObject template) {
- if (template == null) {
- return null;
- }
- GraphQLErrorObjectImpl instance = new GraphQLErrorObjectImpl();
- Optional.ofNullable(template.values()).ifPresent(t -> t.forEach(instance::setValue));
- return instance;
- }
-
- /**
- * accessor map function
- * @param mapped type
- * @param helper function to map the object
- * @return mapped value
- */
- default T withGraphQLErrorObject(Function helper) {
- return helper.apply(this);
- }
-
- /**
- * gives a TypeReference for usage with Jackson DataBind
- * @return TypeReference
- */
- public static com.fasterxml.jackson.core.type.TypeReference typeReference() {
- return new com.fasterxml.jackson.core.type.TypeReference() {
- @Override
- public String toString() {
- return "TypeReference";
- }
- };
- }
-}
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/error/GraphQLErrorObjectBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/error/GraphQLErrorObjectBuilder.java
deleted file mode 100644
index 97c0187724..0000000000
--- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/error/GraphQLErrorObjectBuilder.java
+++ /dev/null
@@ -1,22 +0,0 @@
-
-package com.commercetools.history.models.error;
-
-import java.util.*;
-
-import io.vrap.rmf.base.client.utils.Generated;
-
-/**
- * GraphQLErrorObjectBuilder
- */
-@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
-public class GraphQLErrorObjectBuilder {
-
- /**
- * factory method for an instance of GraphQLErrorObjectBuilder
- * @return builder
- */
- public static GraphQLErrorObjectBuilder of() {
- return new GraphQLErrorObjectBuilder();
- }
-
-}
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/error/GraphQLErrorObjectImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/error/GraphQLErrorObjectImpl.java
deleted file mode 100644
index 5e06401dcf..0000000000
--- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/error/GraphQLErrorObjectImpl.java
+++ /dev/null
@@ -1,98 +0,0 @@
-
-package com.commercetools.history.models.error;
-
-import java.time.*;
-import java.util.*;
-
-import com.fasterxml.jackson.annotation.JsonAnySetter;
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.databind.annotation.*;
-
-import io.vrap.rmf.base.client.ModelBase;
-import io.vrap.rmf.base.client.utils.Generated;
-
-import org.apache.commons.lang3.builder.EqualsBuilder;
-import org.apache.commons.lang3.builder.HashCodeBuilder;
-import org.apache.commons.lang3.builder.ToStringBuilder;
-import org.apache.commons.lang3.builder.ToStringStyle;
-
-/**
- * Represents a single error.
- */
-@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
-public class GraphQLErrorObjectImpl implements GraphQLErrorObject, ModelBase {
-
- private String code;
-
- private Map values;
-
- /**
- * create instance with all properties
- */
- @JsonCreator
- GraphQLErrorObjectImpl(@JsonProperty("code") final String code,
- @JsonAnySetter @JsonProperty("values") final Map values) {
- this.code = code;
- this.values = values;
- }
-
- /**
- * create empty instance
- */
- public GraphQLErrorObjectImpl() {
- }
-
- /**
- * One of the error codes that is listed on the Errors page.
- */
-
- public String getCode() {
- return this.code;
- }
-
- /**
- * Error-specific additional fields.
- */
-
- public Map values() {
- return values;
- }
-
- public void setValue(String key, java.lang.Object value) {
- if (values == null) {
- values = new HashMap<>();
- }
- values.put(key, value);
- }
-
- @Override
- public boolean equals(Object o) {
- if (this == o)
- return true;
-
- if (o == null || getClass() != o.getClass())
- return false;
-
- GraphQLErrorObjectImpl that = (GraphQLErrorObjectImpl) o;
-
- return new EqualsBuilder().append(code, that.code)
- .append(values, that.values)
- .append(code, that.code)
- .append(values, that.values)
- .isEquals();
- }
-
- @Override
- public int hashCode() {
- return new HashCodeBuilder(17, 37).append(code).append(values).toHashCode();
- }
-
- @Override
- public String toString() {
- return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("code", code)
- .append("values", values)
- .build();
- }
-
-}
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLError.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLError.java
index d197aca65d..2d71cc87ed 100644
--- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLError.java
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLError.java
@@ -8,7 +8,6 @@
import javax.annotation.Nullable;
-import com.commercetools.history.models.error.GraphQLErrorObject;
import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.annotation.*;
@@ -68,7 +67,7 @@ public interface GraphQLError {
@NotNull
@Valid
@JsonProperty("extensions")
- public GraphQLErrorObject getExtensions();
+ public Object getExtensions();
/**
* Detailed description of the error explaining the root cause of the problem and suggesting how to correct the error.
@@ -112,7 +111,7 @@ public interface GraphQLError {
* @param extensions value to be set
*/
- public void setExtensions(final GraphQLErrorObject extensions);
+ public void setExtensions(final Object extensions);
/**
* factory method
@@ -154,8 +153,7 @@ public static GraphQLError deepCopy(@Nullable final GraphQLError template) {
.collect(Collectors.toList()))
.orElse(null));
instance.setPath(Optional.ofNullable(template.getPath()).map(ArrayList::new).orElse(null));
- instance.setExtensions(
- com.commercetools.history.models.error.GraphQLErrorObject.deepCopy(template.getExtensions()));
+ instance.setExtensions(template.getExtensions());
return instance;
}
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLErrorBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLErrorBuilder.java
index 4fc9531649..e91e0ffada 100644
--- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLErrorBuilder.java
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLErrorBuilder.java
@@ -33,7 +33,7 @@ public class GraphQLErrorBuilder implements Builder {
@Nullable
private java.util.List path;
- private com.commercetools.history.models.error.GraphQLErrorObject extensions;
+ private java.lang.Object extensions;
/**
* Detailed description of the error explaining the root cause of the problem and suggesting how to correct the error.
@@ -179,23 +179,11 @@ public GraphQLErrorBuilder plusPath(@Nullable final java.lang.Object... path) {
* @return Builder
*/
- public GraphQLErrorBuilder extensions(final com.commercetools.history.models.error.GraphQLErrorObject extensions) {
+ public GraphQLErrorBuilder extensions(final java.lang.Object extensions) {
this.extensions = extensions;
return this;
}
- /**
- * Dictionary with additional information where applicable.
- * @param builder function to build the extensions value
- * @return Builder
- */
-
- public GraphQLErrorBuilder extensions(
- Function> builder) {
- this.extensions = builder.apply(com.commercetools.history.models.error.GraphQLErrorObjectBuilder.of()).build();
- return this;
- }
-
/**
* Detailed description of the error explaining the root cause of the problem and suggesting how to correct the error.
* @return message
@@ -229,7 +217,7 @@ public java.util.List getPath() {
* @return extensions
*/
- public com.commercetools.history.models.error.GraphQLErrorObject getExtensions() {
+ public java.lang.Object getExtensions() {
return this.extensions;
}
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLErrorImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLErrorImpl.java
index a40e15b040..139ffc2484 100644
--- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLErrorImpl.java
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/graph_ql/GraphQLErrorImpl.java
@@ -28,7 +28,7 @@ public class GraphQLErrorImpl implements GraphQLError, ModelBase {
private java.util.List path;
- private com.commercetools.history.models.error.GraphQLErrorObject extensions;
+ private java.lang.Object extensions;
/**
* create instance with all properties
@@ -37,7 +37,7 @@ public class GraphQLErrorImpl implements GraphQLError, ModelBase {
GraphQLErrorImpl(@JsonProperty("message") final String message,
@JsonProperty("locations") final java.util.List locations,
@JsonProperty("path") final java.util.List path,
- @JsonProperty("extensions") final com.commercetools.history.models.error.GraphQLErrorObject extensions) {
+ @JsonProperty("extensions") final java.lang.Object extensions) {
this.message = message;
this.locations = locations;
this.path = path;
@@ -78,7 +78,7 @@ public java.util.List getPath() {
* Dictionary with additional information where applicable.
*/
- public com.commercetools.history.models.error.GraphQLErrorObject getExtensions() {
+ public java.lang.Object getExtensions() {
return this.extensions;
}
@@ -103,7 +103,7 @@ public void setPath(final java.util.List path) {
this.path = path;
}
- public void setExtensions(final com.commercetools.history.models.error.GraphQLErrorObject extensions) {
+ public void setExtensions(final java.lang.Object extensions) {
this.extensions = extensions;
}
diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/cart_discount/PatternComponentTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/cart_discount/PatternComponentTest.java
new file mode 100644
index 0000000000..3d2257cc84
--- /dev/null
+++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/cart_discount/PatternComponentTest.java
@@ -0,0 +1,36 @@
+
+package com.commercetools.history.models.cart_discount;
+
+import com.tngtech.junit.dataprovider.DataProvider;
+import com.tngtech.junit.dataprovider.DataProviderExtension;
+import com.tngtech.junit.dataprovider.UseDataProvider;
+import com.tngtech.junit.dataprovider.UseDataProviderExtension;
+
+import org.assertj.core.api.Assertions;
+import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.TestTemplate;
+import org.junit.jupiter.api.extension.ExtendWith;
+
+@ExtendWith(UseDataProviderExtension.class)
+@ExtendWith(DataProviderExtension.class)
+public class PatternComponentTest {
+
+ @TestTemplate
+ @UseDataProvider("objectBuilder")
+ public void buildUnchecked(PatternComponentBuilder builder) {
+ PatternComponent patternComponent = builder.buildUnchecked();
+ Assertions.assertThat(patternComponent).isInstanceOf(PatternComponent.class);
+ }
+
+ @DataProvider
+ public static Object[][] objectBuilder() {
+ return new Object[][] { new Object[] { PatternComponent.builder().type("type") } };
+ }
+
+ @Test
+ public void type() {
+ PatternComponent value = PatternComponent.of();
+ value.setType("type");
+ Assertions.assertThat(value.getType()).isEqualTo("type");
+ }
+}
diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/graph_ql/GraphQLErrorTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/graph_ql/GraphQLErrorTest.java
index dfd63a8b3b..89d0819912 100644
--- a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/graph_ql/GraphQLErrorTest.java
+++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/graph_ql/GraphQLErrorTest.java
@@ -31,8 +31,7 @@ public static Object[][] objectBuilder() {
.locations(Collections.singletonList(
new com.commercetools.history.models.graph_ql.GraphQLErrorLocationImpl())) },
new Object[] { GraphQLError.builder().path(Collections.singletonList("path")) },
- new Object[] { GraphQLError.builder()
- .extensions(new com.commercetools.history.models.error.GraphQLErrorObjectImpl()) } };
+ new Object[] { GraphQLError.builder().extensions("extensions") } };
}
@Test
@@ -62,8 +61,7 @@ public void path() {
@Test
public void extensions() {
GraphQLError value = GraphQLError.of();
- value.setExtensions(new com.commercetools.history.models.error.GraphQLErrorObjectImpl());
- Assertions.assertThat(value.getExtensions())
- .isEqualTo(new com.commercetools.history.models.error.GraphQLErrorObjectImpl());
+ value.setExtensions("extensions");
+ Assertions.assertThat(value.getExtensions()).isEqualTo("extensions");
}
}
diff --git a/reference.txt b/reference.txt
new file mode 100644
index 0000000000..e5c7c0e15d
--- /dev/null
+++ b/reference.txt
@@ -0,0 +1 @@
+2a4e9c2d60f68a2f2b7976054db2c5052988fcaf
diff --git a/references.txt b/references.txt
index a44e549943..6598e995ea 100644
--- a/references.txt
+++ b/references.txt
@@ -354,3 +354,4 @@ f8b69ab19d6be2bcc6732deee0647bd8494c15f1
e8f731a742ca2997342b1b5f98121d86c8189a3b
473d2c6f1a9e9da0d2a42408ccf11f27a838f8b5
b7b82f5a701908239fcf39781bcbfa80823c9fa0
+cc1732f88ea3dc336358ff9f39cda9d5271cf7c2