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 2b4af96caa0..d7de56a75cd 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
@@ -24,6 +24,7 @@
/**
*
If the request exceeds the rate limit, a TooManyRequests error is returned.
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/ErrorObject.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/ErrorObject.java
index 13b847e03da..938dd4b79e8 100644
--- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/ErrorObject.java
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/ErrorObject.java
@@ -94,6 +94,10 @@ public static ErrorObject deepCopy(@Nullable final ErrorObject template) {
if (template == null) {
return null;
}
+
+ if (!(template instanceof ErrorObjectImpl)) {
+ return template.copyDeep();
+ }
ErrorObjectImpl instance = new ErrorObjectImpl();
instance.setCode(template.getCode());
instance.setMessage(template.getMessage());
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/error/GraphQLErrorObject.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/error/GraphQLErrorObject.java
new file mode 100644
index 00000000000..b4629699dc0
--- /dev/null
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/error/GraphQLErrorObject.java
@@ -0,0 +1,110 @@
+
+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 a subtype instance using the builder pattern
+ *
+ *
+ * GraphQLErrorObject graphQLErrorObject = GraphQLErrorObject.tooManyRequestsBuilder()
+ * .build()
+ *
+ *
+ */
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "code", defaultImpl = GraphQLErrorObjectImpl.class, visible = true)
+@JsonDeserialize(as = GraphQLErrorObjectImpl.class)
+@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);
+
+ public GraphQLErrorObject copyDeep();
+
+ /**
+ * 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;
+ }
+
+ if (!(template instanceof GraphQLErrorObjectImpl)) {
+ return template.copyDeep();
+ }
+ GraphQLErrorObjectImpl instance = new GraphQLErrorObjectImpl();
+ Optional.ofNullable(template.values()).ifPresent(t -> t.forEach(instance::setValue));
+ return instance;
+ }
+
+ /**
+ * builder for tooManyRequests subtype
+ * @return builder
+ */
+ public static com.commercetools.history.models.error.GraphQLTooManyRequestsErrorBuilder tooManyRequestsBuilder() {
+ return com.commercetools.history.models.error.GraphQLTooManyRequestsErrorBuilder.of();
+ }
+
+ /**
+ * accessor map function
+ * @param mapped type
+ * @param helper function to map the object
+ * @return mapped value
+ */
+ default T withGraphQLErrorObject(Function helper) {
+ return helper.apply(this);
+ }
+
+ /**
+ * gives a TypeReference for usage with Jackson DataBind
+ * @return TypeReference
+ */
+ public static com.fasterxml.jackson.core.type.TypeReference typeReference() {
+ return new com.fasterxml.jackson.core.type.TypeReference() {
+ @Override
+ public String toString() {
+ return "TypeReference";
+ }
+ };
+ }
+}
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/error/GraphQLErrorObjectBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/error/GraphQLErrorObjectBuilder.java
new file mode 100644
index 00000000000..dfea8a471b9
--- /dev/null
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/error/GraphQLErrorObjectBuilder.java
@@ -0,0 +1,26 @@
+
+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 {
+
+ public com.commercetools.history.models.error.GraphQLTooManyRequestsErrorBuilder tooManyRequestsBuilder() {
+ return com.commercetools.history.models.error.GraphQLTooManyRequestsErrorBuilder.of();
+ }
+
+ /**
+ * factory method for an instance of GraphQLErrorObjectBuilder
+ * @return builder
+ */
+ public static GraphQLErrorObjectBuilder of() {
+ return new GraphQLErrorObjectBuilder();
+ }
+
+}
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/error/GraphQLErrorObjectImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/error/GraphQLErrorObjectImpl.java
new file mode 100644
index 00000000000..9e680990ee1
--- /dev/null
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/error/GraphQLErrorObjectImpl.java
@@ -0,0 +1,102 @@
+
+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();
+ }
+
+ @Override
+ public GraphQLErrorObject copyDeep() {
+ return GraphQLErrorObject.deepCopy(this);
+ }
+}
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/error/GraphQLTooManyRequestsError.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/error/GraphQLTooManyRequestsError.java
new file mode 100644
index 00000000000..06144dbbf0a
--- /dev/null
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/error/GraphQLTooManyRequestsError.java
@@ -0,0 +1,123 @@
+
+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;
+
+/**
+ * Returned when the Query Records request exceeds the rate limit.
+ * Reduce the date range and resource types in your query to minimize the token usage, or retry the request after some time (indicated in the Retry-After header).
+ *
+ *
+ * Example to create an instance using the builder pattern
+ *
+ *
+ * GraphQLTooManyRequestsError graphQLTooManyRequestsError = GraphQLTooManyRequestsError.builder()
+ * .build()
+ *
+ *
+ */
+@io.vrap.rmf.base.client.utils.json.SubType("TooManyRequests")
+@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
+@JsonDeserialize(as = GraphQLTooManyRequestsErrorImpl.class)
+public interface GraphQLTooManyRequestsError extends GraphQLErrorObject {
+
+ /**
+ * discriminator value for GraphQLTooManyRequestsError
+ */
+ String TOO_MANY_REQUESTS = "TooManyRequests";
+
+ /**
+ *
+ * @return code
+ */
+ @NotNull
+ @JsonProperty("code")
+ public String getCode();
+
+ /**
+ * factory method
+ * @return instance of GraphQLTooManyRequestsError
+ */
+ public static GraphQLTooManyRequestsError of() {
+ return new GraphQLTooManyRequestsErrorImpl();
+ }
+
+ /**
+ * factory method to create a shallow copy GraphQLTooManyRequestsError
+ * @param template instance to be copied
+ * @return copy instance
+ */
+ public static GraphQLTooManyRequestsError of(final GraphQLTooManyRequestsError template) {
+ GraphQLTooManyRequestsErrorImpl instance = new GraphQLTooManyRequestsErrorImpl();
+ Optional.ofNullable(template.values()).ifPresent(t -> t.forEach(instance::setValue));
+ return instance;
+ }
+
+ public GraphQLTooManyRequestsError copyDeep();
+
+ /**
+ * factory method to create a deep copy of GraphQLTooManyRequestsError
+ * @param template instance to be copied
+ * @return copy instance
+ */
+ @Nullable
+ public static GraphQLTooManyRequestsError deepCopy(@Nullable final GraphQLTooManyRequestsError template) {
+ if (template == null) {
+ return null;
+ }
+ GraphQLTooManyRequestsErrorImpl instance = new GraphQLTooManyRequestsErrorImpl();
+ Optional.ofNullable(template.values()).ifPresent(t -> t.forEach(instance::setValue));
+ return instance;
+ }
+
+ /**
+ * builder factory method for GraphQLTooManyRequestsError
+ * @return builder
+ */
+ public static GraphQLTooManyRequestsErrorBuilder builder() {
+ return GraphQLTooManyRequestsErrorBuilder.of();
+ }
+
+ /**
+ * create builder for GraphQLTooManyRequestsError instance
+ * @param template instance with prefilled values for the builder
+ * @return builder
+ */
+ public static GraphQLTooManyRequestsErrorBuilder builder(final GraphQLTooManyRequestsError template) {
+ return GraphQLTooManyRequestsErrorBuilder.of(template);
+ }
+
+ /**
+ * accessor map function
+ * @param mapped type
+ * @param helper function to map the object
+ * @return mapped value
+ */
+ default T withGraphQLTooManyRequestsError(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/GraphQLTooManyRequestsErrorBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/error/GraphQLTooManyRequestsErrorBuilder.java
new file mode 100644
index 00000000000..4cb261d9b55
--- /dev/null
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/error/GraphQLTooManyRequestsErrorBuilder.java
@@ -0,0 +1,95 @@
+
+package com.commercetools.history.models.error;
+
+import java.util.*;
+
+import io.vrap.rmf.base.client.Builder;
+import io.vrap.rmf.base.client.utils.Generated;
+
+/**
+ * GraphQLTooManyRequestsErrorBuilder
+ *
+ * Example to create an instance using the builder pattern
+ *
+ *
+ * GraphQLTooManyRequestsError graphQLTooManyRequestsError = GraphQLTooManyRequestsError.builder()
+ * .build()
+ *
+ *
+ */
+@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
+public class GraphQLTooManyRequestsErrorBuilder implements Builder {
+
+ private Map values = new HashMap<>();
+
+ /**
+ * Error-specific additional fields.
+ * @param values properties to be set
+ * @return Builder
+ */
+
+ public GraphQLTooManyRequestsErrorBuilder values(final Map values) {
+ this.values = values;
+ return this;
+ }
+
+ /**
+ * Error-specific additional fields.
+ * @param key property name
+ * @param value property value
+ * @return Builder
+ */
+
+ public GraphQLTooManyRequestsErrorBuilder addValue(final String key, final java.lang.Object value) {
+ if (this.values == null) {
+ values = new HashMap<>();
+ }
+ values.put(key, value);
+ return this;
+ }
+
+ /**
+ * Error-specific additional fields.
+ * @return pattern properties
+ */
+
+ public Map getValues() {
+ return this.values;
+ }
+
+ /**
+ * builds GraphQLTooManyRequestsError with checking for non-null required values
+ * @return GraphQLTooManyRequestsError
+ */
+ public GraphQLTooManyRequestsError build() {
+ return new GraphQLTooManyRequestsErrorImpl(values);
+ }
+
+ /**
+ * builds GraphQLTooManyRequestsError without checking for non-null required values
+ * @return GraphQLTooManyRequestsError
+ */
+ public GraphQLTooManyRequestsError buildUnchecked() {
+ return new GraphQLTooManyRequestsErrorImpl(values);
+ }
+
+ /**
+ * factory method for an instance of GraphQLTooManyRequestsErrorBuilder
+ * @return builder
+ */
+ public static GraphQLTooManyRequestsErrorBuilder of() {
+ return new GraphQLTooManyRequestsErrorBuilder();
+ }
+
+ /**
+ * create builder for GraphQLTooManyRequestsError instance
+ * @param template instance with prefilled values for the builder
+ * @return builder
+ */
+ public static GraphQLTooManyRequestsErrorBuilder of(final GraphQLTooManyRequestsError template) {
+ GraphQLTooManyRequestsErrorBuilder builder = new GraphQLTooManyRequestsErrorBuilder();
+ builder.values = template.values();
+ return builder;
+ }
+
+}
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/error/GraphQLTooManyRequestsErrorImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/error/GraphQLTooManyRequestsErrorImpl.java
new file mode 100644
index 00000000000..c875be89a9e
--- /dev/null
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/error/GraphQLTooManyRequestsErrorImpl.java
@@ -0,0 +1,103 @@
+
+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;
+
+/**
+ * Returned when the Query Records request exceeds the rate limit.
+ * Reduce the date range and resource types in your query to minimize the token usage, or retry the request after some time (indicated in the Retry-After header).
+ */
+@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
+public class GraphQLTooManyRequestsErrorImpl implements GraphQLTooManyRequestsError, ModelBase {
+
+ private String code;
+
+ private Map values;
+
+ /**
+ * create instance with all properties
+ */
+ @JsonCreator
+ GraphQLTooManyRequestsErrorImpl(@JsonAnySetter @JsonProperty("values") final Map values) {
+ this.values = values;
+ this.code = TOO_MANY_REQUESTS;
+ }
+
+ /**
+ * create empty instance
+ */
+ public GraphQLTooManyRequestsErrorImpl() {
+ this.code = TOO_MANY_REQUESTS;
+ }
+
+ /**
+ *
+ */
+
+ 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;
+
+ GraphQLTooManyRequestsErrorImpl that = (GraphQLTooManyRequestsErrorImpl) 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();
+ }
+
+ @Override
+ public GraphQLTooManyRequestsError copyDeep() {
+ return GraphQLTooManyRequestsError.deepCopy(this);
+ }
+}
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/error/TooManyRequestsError.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/error/TooManyRequestsError.java
new file mode 100644
index 00000000000..f5ba51677cd
--- /dev/null
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/error/TooManyRequestsError.java
@@ -0,0 +1,150 @@
+
+package com.commercetools.history.models.error;
+
+import java.time.*;
+import java.util.*;
+import java.util.function.Function;
+
+import javax.annotation.Nullable;
+
+import com.commercetools.history.models.change_history.ErrorObject;
+import com.fasterxml.jackson.annotation.*;
+import com.fasterxml.jackson.databind.annotation.*;
+
+import io.vrap.rmf.base.client.utils.Generated;
+
+import jakarta.validation.constraints.NotNull;
+
+/**
+ * Returned when the Query Records request exceeds the rate limit.
+ * Reduce the date range and resource types in your query to minimize the token usage, or retry the request after some time (indicated in the Retry-After header).
+ *
+ *
+ * Example to create an instance using the builder pattern
+ *
+ *
+ * TooManyRequestsError tooManyRequestsError = TooManyRequestsError.builder()
+ * .code("{code}")
+ * .message("{message}")
+ * .build()
+ *
+ *
+ */
+@io.vrap.rmf.base.client.utils.json.SubType("TooManyRequests")
+@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
+@JsonDeserialize(as = TooManyRequestsErrorImpl.class)
+public interface TooManyRequestsError extends ErrorObject {
+
+ /**
+ * discriminator value for TooManyRequestsError
+ */
+ String TOO_MANY_REQUESTS = "TooManyRequests";
+
+ /**
+ * "TooManyRequests"
+ * @return code
+ */
+ @NotNull
+ @JsonProperty("code")
+ public String getCode();
+
+ /**
+ * "You have made too many requests. Please try again later."
+ * @return message
+ */
+ @NotNull
+ @JsonProperty("message")
+ public String getMessage();
+
+ /**
+ * "TooManyRequests"
+ * @param code value to be set
+ */
+
+ public void setCode(final String code);
+
+ /**
+ * "You have made too many requests. Please try again later."
+ * @param message value to be set
+ */
+
+ public void setMessage(final String message);
+
+ /**
+ * factory method
+ * @return instance of TooManyRequestsError
+ */
+ public static TooManyRequestsError of() {
+ return new TooManyRequestsErrorImpl();
+ }
+
+ /**
+ * factory method to create a shallow copy TooManyRequestsError
+ * @param template instance to be copied
+ * @return copy instance
+ */
+ public static TooManyRequestsError of(final TooManyRequestsError template) {
+ TooManyRequestsErrorImpl instance = new TooManyRequestsErrorImpl();
+ instance.setCode(template.getCode());
+ instance.setMessage(template.getMessage());
+ return instance;
+ }
+
+ public TooManyRequestsError copyDeep();
+
+ /**
+ * factory method to create a deep copy of TooManyRequestsError
+ * @param template instance to be copied
+ * @return copy instance
+ */
+ @Nullable
+ public static TooManyRequestsError deepCopy(@Nullable final TooManyRequestsError template) {
+ if (template == null) {
+ return null;
+ }
+ TooManyRequestsErrorImpl instance = new TooManyRequestsErrorImpl();
+ instance.setCode(template.getCode());
+ instance.setMessage(template.getMessage());
+ return instance;
+ }
+
+ /**
+ * builder factory method for TooManyRequestsError
+ * @return builder
+ */
+ public static TooManyRequestsErrorBuilder builder() {
+ return TooManyRequestsErrorBuilder.of();
+ }
+
+ /**
+ * create builder for TooManyRequestsError instance
+ * @param template instance with prefilled values for the builder
+ * @return builder
+ */
+ public static TooManyRequestsErrorBuilder builder(final TooManyRequestsError template) {
+ return TooManyRequestsErrorBuilder.of(template);
+ }
+
+ /**
+ * accessor map function
+ * @param mapped type
+ * @param helper function to map the object
+ * @return mapped value
+ */
+ default T withTooManyRequestsError(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/TooManyRequestsErrorBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/error/TooManyRequestsErrorBuilder.java
new file mode 100644
index 00000000000..03555b0eda4
--- /dev/null
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/error/TooManyRequestsErrorBuilder.java
@@ -0,0 +1,107 @@
+
+package com.commercetools.history.models.error;
+
+import java.util.*;
+
+import io.vrap.rmf.base.client.Builder;
+import io.vrap.rmf.base.client.utils.Generated;
+
+/**
+ * TooManyRequestsErrorBuilder
+ *
+ * Example to create an instance using the builder pattern
+ *
+ *
+ * TooManyRequestsError tooManyRequestsError = TooManyRequestsError.builder()
+ * .code("{code}")
+ * .message("{message}")
+ * .build()
+ *
+ *
+ */
+@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
+public class TooManyRequestsErrorBuilder implements Builder {
+
+ private String code;
+
+ private String message;
+
+ /**
+ * "TooManyRequests"
+ * @param code value to be set
+ * @return Builder
+ */
+
+ public TooManyRequestsErrorBuilder code(final String code) {
+ this.code = code;
+ return this;
+ }
+
+ /**
+ * "You have made too many requests. Please try again later."
+ * @param message value to be set
+ * @return Builder
+ */
+
+ public TooManyRequestsErrorBuilder message(final String message) {
+ this.message = message;
+ return this;
+ }
+
+ /**
+ * "TooManyRequests"
+ * @return code
+ */
+
+ public String getCode() {
+ return this.code;
+ }
+
+ /**
+ * "You have made too many requests. Please try again later."
+ * @return message
+ */
+
+ public String getMessage() {
+ return this.message;
+ }
+
+ /**
+ * builds TooManyRequestsError with checking for non-null required values
+ * @return TooManyRequestsError
+ */
+ public TooManyRequestsError build() {
+ Objects.requireNonNull(code, TooManyRequestsError.class + ": code is missing");
+ Objects.requireNonNull(message, TooManyRequestsError.class + ": message is missing");
+ return new TooManyRequestsErrorImpl(code, message);
+ }
+
+ /**
+ * builds TooManyRequestsError without checking for non-null required values
+ * @return TooManyRequestsError
+ */
+ public TooManyRequestsError buildUnchecked() {
+ return new TooManyRequestsErrorImpl(code, message);
+ }
+
+ /**
+ * factory method for an instance of TooManyRequestsErrorBuilder
+ * @return builder
+ */
+ public static TooManyRequestsErrorBuilder of() {
+ return new TooManyRequestsErrorBuilder();
+ }
+
+ /**
+ * create builder for TooManyRequestsError instance
+ * @param template instance with prefilled values for the builder
+ * @return builder
+ */
+ public static TooManyRequestsErrorBuilder of(final TooManyRequestsError template) {
+ TooManyRequestsErrorBuilder builder = new TooManyRequestsErrorBuilder();
+ builder.code = template.getCode();
+ builder.message = template.getMessage();
+ return builder;
+ }
+
+}
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/error/TooManyRequestsErrorImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/error/TooManyRequestsErrorImpl.java
new file mode 100644
index 00000000000..ba9b39be0b4
--- /dev/null
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/error/TooManyRequestsErrorImpl.java
@@ -0,0 +1,102 @@
+
+package com.commercetools.history.models.error;
+
+import java.time.*;
+import java.util.*;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.databind.annotation.*;
+
+import io.vrap.rmf.base.client.ModelBase;
+import io.vrap.rmf.base.client.utils.Generated;
+
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+
+/**
+ * Returned when the Query Records request exceeds the rate limit.
+ * Reduce the date range and resource types in your query to minimize the token usage, or retry the request after some time (indicated in the Retry-After header).
+ */
+@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
+public class TooManyRequestsErrorImpl implements TooManyRequestsError, ModelBase {
+
+ private String code;
+
+ private String message;
+
+ /**
+ * create instance with all properties
+ */
+ @JsonCreator
+ TooManyRequestsErrorImpl(@JsonProperty("code") final String code, @JsonProperty("message") final String message) {
+ this.code = code;
+ this.message = message;
+ }
+
+ /**
+ * create empty instance
+ */
+ public TooManyRequestsErrorImpl() {
+ }
+
+ /**
+ * "TooManyRequests"
+ */
+
+ public String getCode() {
+ return this.code;
+ }
+
+ /**
+ * "You have made too many requests. Please try again later."
+ */
+
+ public String getMessage() {
+ return this.message;
+ }
+
+ public void setCode(final String code) {
+ this.code = code;
+ }
+
+ public void setMessage(final String message) {
+ this.message = message;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o)
+ return true;
+
+ if (o == null || getClass() != o.getClass())
+ return false;
+
+ TooManyRequestsErrorImpl that = (TooManyRequestsErrorImpl) o;
+
+ return new EqualsBuilder().append(code, that.code)
+ .append(message, that.message)
+ .append(code, that.code)
+ .append(message, that.message)
+ .isEquals();
+ }
+
+ @Override
+ public int hashCode() {
+ return new HashCodeBuilder(17, 37).append(code).append(message).toHashCode();
+ }
+
+ @Override
+ public String toString() {
+ return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("code", code)
+ .append("message", message)
+ .build();
+ }
+
+ @Override
+ public TooManyRequestsError copyDeep() {
+ return TooManyRequestsError.deepCopy(this);
+ }
+}
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 720c539240e..5e8289f5e4c 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,6 +8,7 @@
import javax.annotation.Nullable;
+import com.commercetools.history.models.error.GraphQLErrorObject;
import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.annotation.*;
@@ -67,7 +68,7 @@ public interface GraphQLError {
@NotNull
@Valid
@JsonProperty("extensions")
- public Object getExtensions();
+ public GraphQLErrorObject getExtensions();
/**
* Detailed description of the error explaining the root cause of the problem and suggesting how to correct the error.
@@ -111,7 +112,7 @@ public interface GraphQLError {
* @param extensions value to be set
*/
- public void setExtensions(final Object extensions);
+ public void setExtensions(final GraphQLErrorObject extensions);
/**
* factory method
@@ -155,7 +156,8 @@ 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(template.getExtensions());
+ instance.setExtensions(
+ com.commercetools.history.models.error.GraphQLErrorObject.deepCopy(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 e91e0ffadae..4fc95316498 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 java.lang.Object extensions;
+ private com.commercetools.history.models.error.GraphQLErrorObject extensions;
/**
* Detailed description of the error explaining the root cause of the problem and suggesting how to correct the error.
@@ -179,11 +179,23 @@ public GraphQLErrorBuilder plusPath(@Nullable final java.lang.Object... path) {
* @return Builder
*/
- public GraphQLErrorBuilder extensions(final java.lang.Object extensions) {
+ public GraphQLErrorBuilder extensions(final com.commercetools.history.models.error.GraphQLErrorObject extensions) {
this.extensions = extensions;
return this;
}
+ /**
+ * Dictionary with additional information where applicable.
+ * @param builder function to build the extensions value
+ * @return Builder
+ */
+
+ public GraphQLErrorBuilder extensions(
+ Function> builder) {
+ this.extensions = builder.apply(com.commercetools.history.models.error.GraphQLErrorObjectBuilder.of()).build();
+ return this;
+ }
+
/**
* Detailed description of the error explaining the root cause of the problem and suggesting how to correct the error.
* @return message
@@ -217,7 +229,7 @@ public java.util.List getPath() {
* @return extensions
*/
- public java.lang.Object getExtensions() {
+ public com.commercetools.history.models.error.GraphQLErrorObject 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 f2d2a8ed51f..10c9d53eb1f 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 java.lang.Object extensions;
+ private com.commercetools.history.models.error.GraphQLErrorObject 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 java.lang.Object extensions) {
+ @JsonProperty("extensions") final com.commercetools.history.models.error.GraphQLErrorObject 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 java.lang.Object getExtensions() {
+ public com.commercetools.history.models.error.GraphQLErrorObject getExtensions() {
return this.extensions;
}
@@ -103,7 +103,7 @@ public void setPath(final java.util.List path) {
this.path = path;
}
- public void setExtensions(final java.lang.Object extensions) {
+ public void setExtensions(final com.commercetools.history.models.error.GraphQLErrorObject extensions) {
this.extensions = extensions;
}
diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/error/GraphQLTooManyRequestsErrorTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/error/GraphQLTooManyRequestsErrorTest.java
new file mode 100644
index 00000000000..a1629fe08ac
--- /dev/null
+++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/error/GraphQLTooManyRequestsErrorTest.java
@@ -0,0 +1,6 @@
+
+package com.commercetools.history.models.error;
+
+public class GraphQLTooManyRequestsErrorTest {
+
+}
diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/error/TooManyRequestsErrorTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/error/TooManyRequestsErrorTest.java
new file mode 100644
index 00000000000..59e9109bc7c
--- /dev/null
+++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/error/TooManyRequestsErrorTest.java
@@ -0,0 +1,36 @@
+
+package com.commercetools.history.models.error;
+
+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 TooManyRequestsErrorTest {
+
+ @ParameterizedTest(name = "#{index} with {0}")
+ @MethodSource("objectBuilder")
+ public void buildUnchecked(String name, TooManyRequestsErrorBuilder builder) {
+ TooManyRequestsError tooManyRequestsError = builder.buildUnchecked();
+ Assertions.assertThat(tooManyRequestsError).isInstanceOf(TooManyRequestsError.class);
+ }
+
+ public static Object[][] objectBuilder() {
+ return new Object[][] { new Object[] { "code", TooManyRequestsError.builder().code("code") },
+ new Object[] { "message", TooManyRequestsError.builder().message("message") } };
+ }
+
+ @Test
+ public void code() {
+ TooManyRequestsError value = TooManyRequestsError.of();
+ value.setCode("code");
+ Assertions.assertThat(value.getCode()).isEqualTo("code");
+ }
+
+ @Test
+ public void message() {
+ TooManyRequestsError value = TooManyRequestsError.of();
+ value.setMessage("message");
+ Assertions.assertThat(value.getMessage()).isEqualTo("message");
+ }
+}
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 88d77f0172e..cfbea4b39ba 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
@@ -24,7 +24,8 @@ public static Object[][] objectBuilder() {
.locations(Collections.singletonList(
new com.commercetools.history.models.graph_ql.GraphQLErrorLocationImpl())) },
new Object[] { "path", GraphQLError.builder().path(Collections.singletonList("path")) },
- new Object[] { "extensions", GraphQLError.builder().extensions("extensions") } };
+ new Object[] { "extensions", GraphQLError.builder()
+ .extensions(new com.commercetools.history.models.error.GraphQLErrorObjectImpl()) } };
}
@Test
@@ -54,7 +55,8 @@ public void path() {
@Test
public void extensions() {
GraphQLError value = GraphQLError.of();
- value.setExtensions("extensions");
- Assertions.assertThat(value.getExtensions()).isEqualTo("extensions");
+ value.setExtensions(new com.commercetools.history.models.error.GraphQLErrorObjectImpl());
+ Assertions.assertThat(value.getExtensions())
+ .isEqualTo(new com.commercetools.history.models.error.GraphQLErrorObjectImpl());
}
}
diff --git a/references.txt b/references.txt
index 6bd0a762287..ec18aa9db68 100644
--- a/references.txt
+++ b/references.txt
@@ -445,3 +445,4 @@ cd07396232802b1c29238fb92214946462f19e5d
0e52ed3672e48fed855eed94497de9b16e7a50fa
e4973c1b97c71699c2945d476161cd47eded2e6d
c47b5eda641591a8ffe2eb071826f157e2150771
+48cdda09a82127b5745d64a6b889a500a31139d8