From c8a00d548e770d40160ab1ec1545084880c89d04 Mon Sep 17 00:00:00 2001
From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com>
Date: Wed, 18 Sep 2024 12:27:46 +0000
Subject: [PATCH] build(codegen): updating SDK
---
changes.md | 12 +-
...ByProductIDProductTailoringImagesPost.java | 4 +-
...uctIDProductTailoringImagesPostString.java | 4 +-
...yProductKeyProductTailoringImagesPost.java | 4 +-
...ctKeyProductTailoringImagesPostString.java | 4 +-
.../ByProjectKeyProductsByIDImagesPost.java | 4 +-
...rojectKeyProductsByIDImagesPostString.java | 4 +-
.../api/models/product/Product.java | 31 ++++
.../api/models/product/ProductBuilder.java | 83 ++++++++++-
.../api/models/product/ProductImpl.java | 26 +++-
.../product_tailoring/ProductTailoring.java | 31 ++++
.../ProductTailoringBuilder.java | 85 ++++++++++-
...roductTailoringChangeAssetOrderAction.java | 6 +-
...ailoringChangeAssetOrderActionBuilder.java | 8 +-
...ctTailoringChangeAssetOrderActionImpl.java | 2 +-
.../ProductTailoringImpl.java | 26 +++-
.../ImageProcessingOngoingWarning.java | 135 ++++++++++++++++++
.../ImageProcessingOngoingWarningBuilder.java | 82 +++++++++++
.../ImageProcessingOngoingWarningImpl.java | 94 ++++++++++++
.../api/models/warning/WarningObject.java | 109 ++++++++++++++
.../models/warning/WarningObjectBuilder.java | 26 ++++
.../api/models/warning/WarningObjectImpl.java | 93 ++++++++++++
.../query/product/ProductQueryBuilderDsl.java | 14 ++
.../ProductTailoringQueryBuilderDsl.java | 14 ++
...ocessingOngoingWarningQueryBuilderDsl.java | 26 ++++
.../warning/WarningObjectQueryBuilderDsl.java | 34 +++++
.../api/models/product/ProductTest.java | 14 +-
.../ProductTailoringTest.java | 14 +-
.../ImageProcessingOngoingWarningTest.java | 36 +++++
references.txt | 1 +
30 files changed, 1002 insertions(+), 24 deletions(-)
create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/warning/ImageProcessingOngoingWarning.java
create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/warning/ImageProcessingOngoingWarningBuilder.java
create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/warning/ImageProcessingOngoingWarningImpl.java
create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/warning/WarningObject.java
create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/warning/WarningObjectBuilder.java
create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/warning/WarningObjectImpl.java
create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/warning/ImageProcessingOngoingWarningQueryBuilderDsl.java
create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/warning/WarningObjectQueryBuilderDsl.java
create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/warning/ImageProcessingOngoingWarningTest.java
diff --git a/changes.md b/changes.md
index 4441b3af51c..566386f9144 100644
--- a/changes.md
+++ b/changes.md
@@ -3,7 +3,15 @@
Added Property(s)
-- added property `staged` to type `ProductVariantDeletedMessage`
-- added property `staged` to type `ProductVariantDeletedMessagePayload`
+- added property `warnings` to type `ProductTailoring`
+- added property `warnings` to type `Product`
+
+
+
+
+Added Type(s)
+
+- added type `ImageProcessingOngoingWarning`
+- added type `WarningObject`
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringImagesPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringImagesPost.java
index 1243a1d1ded..1ead472aa13 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringImagesPost.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringImagesPost.java
@@ -23,7 +23,9 @@
import org.apache.commons.lang3.builder.HashCodeBuilder;
/**
- *
Upload a JPEG, PNG and GIF file to a ProductTailoringVariant. The maximum file size of the image is 10MB. variant
or sku
is required to update a specific ProductVariant. Produces the ProductTailoringImageAdded Message when the Small
version of the image has been uploaded to the CDN.
+ * Uploads a JPEG, PNG and GIF file to a ProductVariantTailoring. The maximum file size of the image is 10MB. Either variant
or sku
is required to update a specific ProductVariant. If neither is provided, the image is uploaded to the Master Variant of the Product.
+ * 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 Product returned with a 202 Accepted
status code contains a warnings
field with an ImageProcessingOngoing Warning.
+ * Produces the ProductTailoringImageAdded Message.
*
*
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringImagesPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringImagesPostString.java
index 4e8dff98b18..2d4e610e3ea 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringImagesPostString.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringImagesPostString.java
@@ -21,7 +21,9 @@
import org.apache.commons.lang3.builder.HashCodeBuilder;
/**
- *
Upload a JPEG, PNG and GIF file to a ProductTailoringVariant. The maximum file size of the image is 10MB. variant
or sku
is required to update a specific ProductVariant. Produces the ProductTailoringImageAdded Message when the Small
version of the image has been uploaded to the CDN.
+ *
Uploads a JPEG, PNG and GIF file to a ProductVariantTailoring. The maximum file size of the image is 10MB. Either variant
or sku
is required to update a specific ProductVariant. If neither is provided, the image is uploaded to the Master Variant of the Product.
+ *
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 Product returned with a 202 Accepted
status code contains a warnings
field with an ImageProcessingOngoing Warning.
+ *
Produces the ProductTailoringImageAdded Message.
*
*
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost.java
index f1dc1bfeabf..7d56f7f4904 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost.java
@@ -23,7 +23,9 @@
import org.apache.commons.lang3.builder.HashCodeBuilder;
/**
- *
Upload a JPEG, PNG and GIF file to a ProductTailoringVariant. The maximum file size of the image is 10MB. variant
or sku
is required to update a specific ProductVariant. Produces the ProductTailoringImageAdded Message when the Small
version of the image has been uploaded to the CDN.
+ *
Uploads a JPEG, PNG and GIF file to a ProductVariantTailoring. The maximum file size of the image is 10MB. Either variant
or sku
is required to update a specific ProductVariant. If neither is provided, the image is uploaded to the Master Variant of the Product.
+ *
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 Product returned with a 202 Accepted
status code contains a warnings
field with an ImageProcessingOngoing Warning.
+ *
Produces the ProductTailoringImageAdded Message.
*
*
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPostString.java
index 7963bd5cc47..512d1874863 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPostString.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPostString.java
@@ -21,7 +21,9 @@
import org.apache.commons.lang3.builder.HashCodeBuilder;
/**
- *
Upload a JPEG, PNG and GIF file to a ProductTailoringVariant. The maximum file size of the image is 10MB. variant
or sku
is required to update a specific ProductVariant. Produces the ProductTailoringImageAdded Message when the Small
version of the image has been uploaded to the CDN.
+ *
Uploads a JPEG, PNG and GIF file to a ProductVariantTailoring. The maximum file size of the image is 10MB. Either variant
or sku
is required to update a specific ProductVariant. If neither is provided, the image is uploaded to the Master Variant of the Product.
+ *
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 Product returned with a 202 Accepted
status code contains a warnings
field with an ImageProcessingOngoing Warning.
+ *
Produces the ProductTailoringImageAdded Message.
*
*
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsByIDImagesPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsByIDImagesPost.java
index 9a707ec671b..89f7d7cd097 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsByIDImagesPost.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsByIDImagesPost.java
@@ -23,7 +23,9 @@
import org.apache.commons.lang3.builder.HashCodeBuilder;
/**
- *
Upload a JPEG, PNG and GIF file to a ProductVariant. The maximum file size of the image is 10MB. variant
or sku
is required to update a specific ProductVariant. The image is uploaded to the Master Variant if variant
or sku
are not included. Produces the ProductImageAdded Message when the Small
version of the image has been uploaded to the CDN.
+ *
Uploads a JPEG, PNG, or a GIF image file to a ProductVariant. The maximum file size of the image is 10MB. Either variant
or sku
is required to update a specific ProductVariant. If neither is provided, the image is uploaded to the Master Variant of the Product.
+ *
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 Product returned with a 202 Accepted
status code contains a warnings
field with an ImageProcessingOngoing Warning.
+ *
Produces the ProductImageAdded Message.
*
*
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsByIDImagesPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsByIDImagesPostString.java
index 84e9e482fd2..5ba5da7ca27 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsByIDImagesPostString.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsByIDImagesPostString.java
@@ -21,7 +21,9 @@
import org.apache.commons.lang3.builder.HashCodeBuilder;
/**
- *
Upload a JPEG, PNG and GIF file to a ProductVariant. The maximum file size of the image is 10MB. variant
or sku
is required to update a specific ProductVariant. The image is uploaded to the Master Variant if variant
or sku
are not included. Produces the ProductImageAdded Message when the Small
version of the image has been uploaded to the CDN.
+ *
Uploads a JPEG, PNG, or a GIF image file to a ProductVariant. The maximum file size of the image is 10MB. Either variant
or sku
is required to update a specific ProductVariant. If neither is provided, the image is uploaded to the Master Variant of the Product.
+ *
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 Product returned with a 202 Accepted
status code contains a warnings
field with an ImageProcessingOngoing Warning.
+ *
Produces the ProductImageAdded Message.
*
*
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/Product.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/Product.java
index 1713553d020..7a646efdb27 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/Product.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/Product.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;
@@ -15,6 +16,7 @@
import com.commercetools.api.models.review.ReviewRatingStatistics;
import com.commercetools.api.models.state.StateReference;
import com.commercetools.api.models.tax_category.TaxCategoryReference;
+import com.commercetools.api.models.warning.WarningObject;
import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.annotation.*;
@@ -154,6 +156,14 @@ public interface Product extends BaseResource, ProductMixin, com.commercetools.a
@JsonProperty("priceMode")
public ProductPriceModeEnum getPriceMode();
+ /**
+ *
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 Product.
* @param id value to be set
@@ -246,6 +256,21 @@ public interface Product extends BaseResource, ProductMixin, com.commercetools.a
public void setPriceMode(final ProductPriceModeEnum priceMode);
+ /**
+ * 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 Product
@@ -274,6 +299,7 @@ public static Product of(final Product template) {
instance.setState(template.getState());
instance.setReviewRatingStatistics(template.getReviewRatingStatistics());
instance.setPriceMode(template.getPriceMode());
+ instance.setWarnings(template.getWarnings());
return instance;
}
@@ -306,6 +332,11 @@ public static Product deepCopy(@Nullable final Product template) {
instance.setReviewRatingStatistics(
com.commercetools.api.models.review.ReviewRatingStatistics.deepCopy(template.getReviewRatingStatistics()));
instance.setPriceMode(template.getPriceMode());
+ 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/product/ProductBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductBuilder.java
index 987fb9d4551..9544a6110cf 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductBuilder.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductBuilder.java
@@ -62,6 +62,9 @@ public class ProductBuilder implements Builder {
@Nullable
private com.commercetools.api.models.product.ProductPriceModeEnum priceMode;
+ @Nullable
+ private java.util.List warnings;
+
/**
* Unique identifier of the Product.
* @param id value to be set
@@ -384,6 +387,71 @@ public ProductBuilder priceMode(
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 ProductBuilder 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 ProductBuilder 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 ProductBuilder 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 ProductBuilder 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 ProductBuilder 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 Product.
* @return id
@@ -509,6 +577,16 @@ public com.commercetools.api.models.product.ProductPriceModeEnum getPriceMode()
return this.priceMode;
}
+ /**
+ * 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 Product with checking for non-null required values
* @return Product
@@ -521,7 +599,7 @@ public Product build() {
Objects.requireNonNull(productType, Product.class + ": productType is missing");
Objects.requireNonNull(masterData, Product.class + ": masterData is missing");
return new ProductImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, createdBy, key, productType,
- masterData, taxCategory, state, reviewRatingStatistics, priceMode);
+ masterData, taxCategory, state, reviewRatingStatistics, priceMode, warnings);
}
/**
@@ -530,7 +608,7 @@ public Product build() {
*/
public Product buildUnchecked() {
return new ProductImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, createdBy, key, productType,
- masterData, taxCategory, state, reviewRatingStatistics, priceMode);
+ masterData, taxCategory, state, reviewRatingStatistics, priceMode, warnings);
}
/**
@@ -561,6 +639,7 @@ public static ProductBuilder of(final Product template) {
builder.state = template.getState();
builder.reviewRatingStatistics = template.getReviewRatingStatistics();
builder.priceMode = template.getPriceMode();
+ builder.warnings = template.getWarnings();
return builder;
}
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductImpl.java
index 13e5418164c..8a96a525b1f 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductImpl.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductImpl.java
@@ -48,6 +48,8 @@ public class ProductImpl implements Product, ModelBase {
private com.commercetools.api.models.product.ProductPriceModeEnum priceMode;
+ private java.util.List warnings;
+
/**
* create instance with all properties
*/
@@ -63,7 +65,8 @@ public class ProductImpl implements Product, ModelBase {
@JsonProperty("taxCategory") final com.commercetools.api.models.tax_category.TaxCategoryReference taxCategory,
@JsonProperty("state") final com.commercetools.api.models.state.StateReference state,
@JsonProperty("reviewRatingStatistics") final com.commercetools.api.models.review.ReviewRatingStatistics reviewRatingStatistics,
- @JsonProperty("priceMode") final com.commercetools.api.models.product.ProductPriceModeEnum priceMode) {
+ @JsonProperty("priceMode") final com.commercetools.api.models.product.ProductPriceModeEnum priceMode,
+ @JsonProperty("warnings") final java.util.List warnings) {
this.id = id;
this.version = version;
this.createdAt = createdAt;
@@ -77,6 +80,7 @@ public class ProductImpl implements Product, ModelBase {
this.state = state;
this.reviewRatingStatistics = reviewRatingStatistics;
this.priceMode = priceMode;
+ this.warnings = warnings;
}
/**
@@ -190,6 +194,14 @@ public com.commercetools.api.models.product.ProductPriceModeEnum getPriceMode()
return this.priceMode;
}
+ /**
+ * 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;
}
@@ -243,6 +255,14 @@ public void setPriceMode(final com.commercetools.api.models.product.ProductPrice
this.priceMode = priceMode;
}
+ 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)
@@ -266,6 +286,7 @@ public boolean equals(Object o) {
.append(state, that.state)
.append(reviewRatingStatistics, that.reviewRatingStatistics)
.append(priceMode, that.priceMode)
+ .append(warnings, that.warnings)
.append(id, that.id)
.append(version, that.version)
.append(createdAt, that.createdAt)
@@ -279,6 +300,7 @@ public boolean equals(Object o) {
.append(state, that.state)
.append(reviewRatingStatistics, that.reviewRatingStatistics)
.append(priceMode, that.priceMode)
+ .append(warnings, that.warnings)
.isEquals();
}
@@ -297,6 +319,7 @@ public int hashCode() {
.append(state)
.append(reviewRatingStatistics)
.append(priceMode)
+ .append(warnings)
.toHashCode();
}
@@ -315,6 +338,7 @@ public String toString() {
.append("state", state)
.append("reviewRatingStatistics", reviewRatingStatistics)
.append("priceMode", priceMode)
+ .append("warnings", warnings)
.build();
}
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 15904f67221..e5e16d122bd 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
@@ -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;
@@ -13,6 +14,7 @@
import com.commercetools.api.models.common.LastModifiedBy;
import com.commercetools.api.models.product.ProductReference;
import com.commercetools.api.models.store.StoreKeyReference;
+import com.commercetools.api.models.warning.WarningObject;
import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.annotation.*;
@@ -155,6 +157,14 @@ public interface ProductTailoring extends BaseResource {
@JsonProperty("hasStagedChanges")
public Boolean getHasStagedChanges();
+ /**
+ * 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 ProductTailoring.
* @param id value to be set
@@ -246,6 +256,21 @@ public interface ProductTailoring extends BaseResource {
public void setHasStagedChanges(final Boolean hasStagedChanges);
+ /**
+ * 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 ProductTailoring
@@ -274,6 +299,7 @@ public static ProductTailoring of(final ProductTailoring template) {
instance.setCurrent(template.getCurrent());
instance.setStaged(template.getStaged());
instance.setHasStagedChanges(template.getHasStagedChanges());
+ instance.setWarnings(template.getWarnings());
return instance;
}
@@ -304,6 +330,11 @@ public static ProductTailoring deepCopy(@Nullable final ProductTailoring templat
instance.setStaged(
com.commercetools.api.models.product_tailoring.ProductTailoringData.deepCopy(template.getStaged()));
instance.setHasStagedChanges(template.getHasStagedChanges());
+ 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/product_tailoring/ProductTailoringBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringBuilder.java
index 9e750e2da28..3ad002129cf 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
@@ -62,6 +62,9 @@ public class ProductTailoringBuilder implements Builder {
private Boolean hasStagedChanges;
+ @Nullable
+ private java.util.List warnings;
+
/**
* Unique identifier of the ProductTailoring.
* @param id value to be set
@@ -354,6 +357,73 @@ public ProductTailoringBuilder hasStagedChanges(final Boolean hasStagedChanges)
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 ProductTailoringBuilder 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 ProductTailoringBuilder 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 ProductTailoringBuilder 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 ProductTailoringBuilder 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 ProductTailoringBuilder 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 ProductTailoring.
* @return id
@@ -474,6 +544,16 @@ public Boolean getHasStagedChanges() {
return this.hasStagedChanges;
}
+ /**
+ * 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 ProductTailoring with checking for non-null required values
* @return ProductTailoring
@@ -490,7 +570,7 @@ public ProductTailoring build() {
Objects.requireNonNull(staged, ProductTailoring.class + ": staged is missing");
Objects.requireNonNull(hasStagedChanges, ProductTailoring.class + ": hasStagedChanges is missing");
return new ProductTailoringImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, createdBy, key, store,
- product, published, current, staged, hasStagedChanges);
+ product, published, current, staged, hasStagedChanges, warnings);
}
/**
@@ -499,7 +579,7 @@ public ProductTailoring build() {
*/
public ProductTailoring buildUnchecked() {
return new ProductTailoringImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, createdBy, key, store,
- product, published, current, staged, hasStagedChanges);
+ product, published, current, staged, hasStagedChanges, warnings);
}
/**
@@ -530,6 +610,7 @@ public static ProductTailoringBuilder of(final ProductTailoring template) {
builder.current = template.getCurrent();
builder.staged = template.getStaged();
builder.hasStagedChanges = template.getHasStagedChanges();
+ builder.warnings = template.getWarnings();
return builder;
}
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 d98c0708515..7a6d3eb06f1 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
@@ -61,7 +61,7 @@ public interface ProductTailoringChangeAssetOrderAction extends ProductTailoring
public Boolean getStaged();
/**
- * All existing Asset id
s of the ProductTailoringVariant in the desired new order.
+ * All existing Asset id
s of the ProductVariantTailoring in the desired new order.
* @return assetOrder
*/
@NotNull
@@ -90,7 +90,7 @@ public interface ProductTailoringChangeAssetOrderAction extends ProductTailoring
public void setStaged(final Boolean staged);
/**
- * All existing Asset id
s of the ProductTailoringVariant in the desired new order.
+ * All existing Asset id
s of the ProductVariantTailoring in the desired new order.
* @param assetOrder values to be set
*/
@@ -98,7 +98,7 @@ public interface ProductTailoringChangeAssetOrderAction extends ProductTailoring
public void setAssetOrder(final String... assetOrder);
/**
- * All existing Asset id
s of the ProductTailoringVariant in the desired new order.
+ * All existing Asset id
s of the ProductVariantTailoring in the desired new order.
* @param assetOrder values 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 c58221c65c2..35eaf7876bf 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
@@ -68,7 +68,7 @@ public ProductTailoringChangeAssetOrderActionBuilder staged(@Nullable final Bool
}
/**
- * All existing Asset id
s of the ProductTailoringVariant in the desired new order.
+ * All existing Asset id
s of the ProductVariantTailoring in the desired new order.
* @param assetOrder value to be set
* @return Builder
*/
@@ -79,7 +79,7 @@ public ProductTailoringChangeAssetOrderActionBuilder assetOrder(final String...
}
/**
- * All existing Asset id
s of the ProductTailoringVariant in the desired new order.
+ * All existing Asset id
s of the ProductVariantTailoring in the desired new order.
* @param assetOrder value to be set
* @return Builder
*/
@@ -90,7 +90,7 @@ public ProductTailoringChangeAssetOrderActionBuilder assetOrder(final java.util.
}
/**
- * All existing Asset id
s of the ProductTailoringVariant in the desired new order.
+ * All existing Asset id
s of the ProductVariantTailoring in the desired new order.
* @param assetOrder value to be set
* @return Builder
*/
@@ -134,7 +134,7 @@ public Boolean getStaged() {
}
/**
- * All existing Asset id
s of the ProductTailoringVariant in the desired new order.
+ * All existing Asset id
s of the ProductVariantTailoring in the desired new order.
* @return assetOrder
*/
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 d6ff96f4d41..15dd04bb57b 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
@@ -86,7 +86,7 @@ public Boolean getStaged() {
}
/**
- * All existing Asset id
s of the ProductTailoringVariant in the desired new order.
+ * All existing Asset id
s of the ProductVariantTailoring in the desired new order.
*/
public java.util.List getAssetOrder() {
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 2ee5464ad45..5a299942e15 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
@@ -48,6 +48,8 @@ public class ProductTailoringImpl implements ProductTailoring, ModelBase {
private Boolean hasStagedChanges;
+ private java.util.List warnings;
+
/**
* create instance with all properties
*/
@@ -63,7 +65,8 @@ public class ProductTailoringImpl implements ProductTailoring, ModelBase {
@JsonProperty("published") final Boolean published,
@JsonProperty("current") final com.commercetools.api.models.product_tailoring.ProductTailoringData current,
@JsonProperty("staged") final com.commercetools.api.models.product_tailoring.ProductTailoringData staged,
- @JsonProperty("hasStagedChanges") final Boolean hasStagedChanges) {
+ @JsonProperty("hasStagedChanges") final Boolean hasStagedChanges,
+ @JsonProperty("warnings") final java.util.List warnings) {
this.id = id;
this.version = version;
this.createdAt = createdAt;
@@ -77,6 +80,7 @@ public class ProductTailoringImpl implements ProductTailoring, ModelBase {
this.current = current;
this.staged = staged;
this.hasStagedChanges = hasStagedChanges;
+ this.warnings = warnings;
}
/**
@@ -189,6 +193,14 @@ public Boolean getHasStagedChanges() {
return this.hasStagedChanges;
}
+ /**
+ * 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;
}
@@ -241,6 +253,14 @@ public void setHasStagedChanges(final Boolean hasStagedChanges) {
this.hasStagedChanges = hasStagedChanges;
}
+ 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)
@@ -264,6 +284,7 @@ public boolean equals(Object o) {
.append(current, that.current)
.append(staged, that.staged)
.append(hasStagedChanges, that.hasStagedChanges)
+ .append(warnings, that.warnings)
.append(id, that.id)
.append(version, that.version)
.append(createdAt, that.createdAt)
@@ -277,6 +298,7 @@ public boolean equals(Object o) {
.append(current, that.current)
.append(staged, that.staged)
.append(hasStagedChanges, that.hasStagedChanges)
+ .append(warnings, that.warnings)
.isEquals();
}
@@ -295,6 +317,7 @@ public int hashCode() {
.append(current)
.append(staged)
.append(hasStagedChanges)
+ .append(warnings)
.toHashCode();
}
@@ -313,6 +336,7 @@ public String toString() {
.append("current", current)
.append("staged", staged)
.append("hasStagedChanges", hasStagedChanges)
+ .append("warnings", warnings)
.build();
}
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
new file mode 100644
index 00000000000..f71c6b4b05e
--- /dev/null
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/warning/ImageProcessingOngoingWarning.java
@@ -0,0 +1,135 @@
+
+package com.commercetools.api.models.warning;
+
+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;
+
+/**
+ * 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.
+ *
+ *
+ * Example to create an instance using the builder pattern
+ *
+ *
+ * ImageProcessingOngoingWarning imageProcessingOngoingWarning = ImageProcessingOngoingWarning.builder()
+ * .message("{message}")
+ * .build()
+ *
+ *
+ */
+@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
+@JsonDeserialize(as = ImageProcessingOngoingWarningImpl.class)
+public interface ImageProcessingOngoingWarning extends WarningObject {
+
+ /**
+ * discriminator value for ImageProcessingOngoingWarning
+ */
+ String IMAGE_PROCESSING_ONGOING = "ImageProcessingOngoing";
+
+ /**
+ *
+ * @return code
+ */
+ @NotNull
+ @JsonProperty("code")
+ public String getCode();
+
+ /**
+ * "The image processing is still ongoing."
+ * @return message
+ */
+ @NotNull
+ @JsonProperty("message")
+ public String getMessage();
+
+ /**
+ * "The image processing is still ongoing."
+ * @param message value to be set
+ */
+
+ public void setMessage(final String message);
+
+ /**
+ * factory method
+ * @return instance of ImageProcessingOngoingWarning
+ */
+ public static ImageProcessingOngoingWarning of() {
+ return new ImageProcessingOngoingWarningImpl();
+ }
+
+ /**
+ * factory method to create a shallow copy ImageProcessingOngoingWarning
+ * @param template instance to be copied
+ * @return copy instance
+ */
+ public static ImageProcessingOngoingWarning of(final ImageProcessingOngoingWarning template) {
+ ImageProcessingOngoingWarningImpl instance = new ImageProcessingOngoingWarningImpl();
+ instance.setMessage(template.getMessage());
+ return instance;
+ }
+
+ /**
+ * factory method to create a deep copy of ImageProcessingOngoingWarning
+ * @param template instance to be copied
+ * @return copy instance
+ */
+ @Nullable
+ public static ImageProcessingOngoingWarning deepCopy(@Nullable final ImageProcessingOngoingWarning template) {
+ if (template == null) {
+ return null;
+ }
+ ImageProcessingOngoingWarningImpl instance = new ImageProcessingOngoingWarningImpl();
+ instance.setMessage(template.getMessage());
+ return instance;
+ }
+
+ /**
+ * builder factory method for ImageProcessingOngoingWarning
+ * @return builder
+ */
+ public static ImageProcessingOngoingWarningBuilder builder() {
+ return ImageProcessingOngoingWarningBuilder.of();
+ }
+
+ /**
+ * create builder for ImageProcessingOngoingWarning instance
+ * @param template instance with prefilled values for the builder
+ * @return builder
+ */
+ public static ImageProcessingOngoingWarningBuilder builder(final ImageProcessingOngoingWarning template) {
+ return ImageProcessingOngoingWarningBuilder.of(template);
+ }
+
+ /**
+ * accessor map function
+ * @param mapped type
+ * @param helper function to map the object
+ * @return mapped value
+ */
+ default T withImageProcessingOngoingWarning(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-api/src/main/java-generated/com/commercetools/api/models/warning/ImageProcessingOngoingWarningBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/warning/ImageProcessingOngoingWarningBuilder.java
new file mode 100644
index 00000000000..7316b878b0a
--- /dev/null
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/warning/ImageProcessingOngoingWarningBuilder.java
@@ -0,0 +1,82 @@
+
+package com.commercetools.api.models.warning;
+
+import java.util.*;
+
+import io.vrap.rmf.base.client.Builder;
+import io.vrap.rmf.base.client.utils.Generated;
+
+/**
+ * ImageProcessingOngoingWarningBuilder
+ *
+ * Example to create an instance using the builder pattern
+ *
+ *
+ * ImageProcessingOngoingWarning imageProcessingOngoingWarning = ImageProcessingOngoingWarning.builder()
+ * .message("{message}")
+ * .build()
+ *
+ *
+ */
+@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
+public class ImageProcessingOngoingWarningBuilder implements Builder {
+
+ private String message;
+
+ /**
+ * "The image processing is still ongoing."
+ * @param message value to be set
+ * @return Builder
+ */
+
+ public ImageProcessingOngoingWarningBuilder message(final String message) {
+ this.message = message;
+ return this;
+ }
+
+ /**
+ * "The image processing is still ongoing."
+ * @return message
+ */
+
+ public String getMessage() {
+ return this.message;
+ }
+
+ /**
+ * builds ImageProcessingOngoingWarning with checking for non-null required values
+ * @return ImageProcessingOngoingWarning
+ */
+ public ImageProcessingOngoingWarning build() {
+ Objects.requireNonNull(message, ImageProcessingOngoingWarning.class + ": message is missing");
+ return new ImageProcessingOngoingWarningImpl(message);
+ }
+
+ /**
+ * builds ImageProcessingOngoingWarning without checking for non-null required values
+ * @return ImageProcessingOngoingWarning
+ */
+ public ImageProcessingOngoingWarning buildUnchecked() {
+ return new ImageProcessingOngoingWarningImpl(message);
+ }
+
+ /**
+ * factory method for an instance of ImageProcessingOngoingWarningBuilder
+ * @return builder
+ */
+ public static ImageProcessingOngoingWarningBuilder of() {
+ return new ImageProcessingOngoingWarningBuilder();
+ }
+
+ /**
+ * create builder for ImageProcessingOngoingWarning instance
+ * @param template instance with prefilled values for the builder
+ * @return builder
+ */
+ public static ImageProcessingOngoingWarningBuilder of(final ImageProcessingOngoingWarning template) {
+ ImageProcessingOngoingWarningBuilder builder = new ImageProcessingOngoingWarningBuilder();
+ builder.message = template.getMessage();
+ return builder;
+ }
+
+}
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
new file mode 100644
index 00000000000..45e3d0f44a0
--- /dev/null
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/warning/ImageProcessingOngoingWarningImpl.java
@@ -0,0 +1,94 @@
+
+package com.commercetools.api.models.warning;
+
+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;
+
+/**
+ * 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.
+ */
+@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
+public class ImageProcessingOngoingWarningImpl implements ImageProcessingOngoingWarning, ModelBase {
+
+ private String code;
+
+ private String message;
+
+ /**
+ * create instance with all properties
+ */
+ @JsonCreator
+ ImageProcessingOngoingWarningImpl(@JsonProperty("message") final String message) {
+ this.message = message;
+ this.code = IMAGE_PROCESSING_ONGOING;
+ }
+
+ /**
+ * create empty instance
+ */
+ public ImageProcessingOngoingWarningImpl() {
+ this.code = IMAGE_PROCESSING_ONGOING;
+ }
+
+ /**
+ *
+ */
+
+ public String getCode() {
+ return this.code;
+ }
+
+ /**
+ * "The image processing is still ongoing."
+ */
+
+ public String getMessage() {
+ return this.message;
+ }
+
+ 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;
+
+ ImageProcessingOngoingWarningImpl that = (ImageProcessingOngoingWarningImpl) 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();
+ }
+
+}
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/warning/WarningObject.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/warning/WarningObject.java
new file mode 100644
index 00000000000..57e379fb8a3
--- /dev/null
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/warning/WarningObject.java
@@ -0,0 +1,109 @@
+
+package com.commercetools.api.models.warning;
+
+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 warning related to the returned response.
+ *
+ *
+ * Example to create a subtype instance using the builder pattern
+ *
+ *
+ * WarningObject warningObject = WarningObject.imageProcessingOngoingBuilder()
+ * message("{message}")
+ * .build()
+ *
+ *
+ */
+@JsonSubTypes({
+ @JsonSubTypes.Type(value = com.commercetools.api.models.warning.ImageProcessingOngoingWarningImpl.class, name = ImageProcessingOngoingWarning.IMAGE_PROCESSING_ONGOING) })
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "code", defaultImpl = WarningObjectImpl.class, visible = true)
+@JsonDeserialize(as = WarningObjectImpl.class)
+@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
+public interface WarningObject {
+
+ /**
+ * Identifier for the type of warning.
+ * @return code
+ */
+ @NotNull
+ @JsonProperty("code")
+ public String getCode();
+
+ /**
+ * Contains information about the returned response.
+ * @return message
+ */
+ @NotNull
+ @JsonProperty("message")
+ public String getMessage();
+
+ /**
+ * Contains information about the returned response.
+ * @param message value to be set
+ */
+
+ public void setMessage(final String message);
+
+ /**
+ * factory method to create a deep copy of WarningObject
+ * @param template instance to be copied
+ * @return copy instance
+ */
+ @Nullable
+ public static WarningObject deepCopy(@Nullable final WarningObject template) {
+ if (template == null) {
+ return null;
+ }
+ if (template instanceof com.commercetools.api.models.warning.ImageProcessingOngoingWarning) {
+ return com.commercetools.api.models.warning.ImageProcessingOngoingWarning
+ .deepCopy((com.commercetools.api.models.warning.ImageProcessingOngoingWarning) template);
+ }
+ WarningObjectImpl instance = new WarningObjectImpl();
+ instance.setMessage(template.getMessage());
+ return instance;
+ }
+
+ /**
+ * builder for imageProcessingOngoing subtype
+ * @return builder
+ */
+ public static com.commercetools.api.models.warning.ImageProcessingOngoingWarningBuilder imageProcessingOngoingBuilder() {
+ return com.commercetools.api.models.warning.ImageProcessingOngoingWarningBuilder.of();
+ }
+
+ /**
+ * accessor map function
+ * @param mapped type
+ * @param helper function to map the object
+ * @return mapped value
+ */
+ default T withWarningObject(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-api/src/main/java-generated/com/commercetools/api/models/warning/WarningObjectBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/warning/WarningObjectBuilder.java
new file mode 100644
index 00000000000..6853a0bf24d
--- /dev/null
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/warning/WarningObjectBuilder.java
@@ -0,0 +1,26 @@
+
+package com.commercetools.api.models.warning;
+
+import java.util.*;
+
+import io.vrap.rmf.base.client.utils.Generated;
+
+/**
+ * WarningObjectBuilder
+ */
+@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
+public class WarningObjectBuilder {
+
+ public com.commercetools.api.models.warning.ImageProcessingOngoingWarningBuilder imageProcessingOngoingBuilder() {
+ return com.commercetools.api.models.warning.ImageProcessingOngoingWarningBuilder.of();
+ }
+
+ /**
+ * factory method for an instance of WarningObjectBuilder
+ * @return builder
+ */
+ public static WarningObjectBuilder of() {
+ return new WarningObjectBuilder();
+ }
+
+}
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/warning/WarningObjectImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/warning/WarningObjectImpl.java
new file mode 100644
index 00000000000..cbaaa6d2398
--- /dev/null
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/warning/WarningObjectImpl.java
@@ -0,0 +1,93 @@
+
+package com.commercetools.api.models.warning;
+
+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;
+
+/**
+ * Represents a warning related to the returned response.
+ */
+@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
+public class WarningObjectImpl implements WarningObject, ModelBase {
+
+ private String code;
+
+ private String message;
+
+ /**
+ * create instance with all properties
+ */
+ @JsonCreator
+ WarningObjectImpl(@JsonProperty("code") final String code, @JsonProperty("message") final String message) {
+ this.code = code;
+ this.message = message;
+ }
+
+ /**
+ * create empty instance
+ */
+ public WarningObjectImpl() {
+ }
+
+ /**
+ * Identifier for the type of warning.
+ */
+
+ public String getCode() {
+ return this.code;
+ }
+
+ /**
+ * Contains information about the returned response.
+ */
+
+ public String getMessage() {
+ return this.message;
+ }
+
+ 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;
+
+ WarningObjectImpl that = (WarningObjectImpl) 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();
+ }
+
+}
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product/ProductQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product/ProductQueryBuilderDsl.java
index c764b6c30c8..155d57c4dc6 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product/ProductQueryBuilderDsl.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product/ProductQueryBuilderDsl.java
@@ -114,4 +114,18 @@ public StringComparisonPredicateBuilder priceMode() {
p -> new CombinationQueryPredicate<>(p, ProductQueryBuilderDsl::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())),
+ ProductQueryBuilderDsl::of);
+ }
+
+ public CollectionPredicateBuilder warnings() {
+ return new CollectionPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("warnings")),
+ p -> new CombinationQueryPredicate<>(p, ProductQueryBuilderDsl::of));
+ }
+
}
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_tailoring/ProductTailoringQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_tailoring/ProductTailoringQueryBuilderDsl.java
index 70fa4a05d1b..1a231c53d4a 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_tailoring/ProductTailoringQueryBuilderDsl.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_tailoring/ProductTailoringQueryBuilderDsl.java
@@ -105,4 +105,18 @@ public BooleanComparisonPredicateBuilder hasSta
p -> new CombinationQueryPredicate<>(p, ProductTailoringQueryBuilderDsl::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())),
+ ProductTailoringQueryBuilderDsl::of);
+ }
+
+ public CollectionPredicateBuilder warnings() {
+ return new CollectionPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("warnings")),
+ p -> new CombinationQueryPredicate<>(p, ProductTailoringQueryBuilderDsl::of));
+ }
+
}
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/warning/ImageProcessingOngoingWarningQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/warning/ImageProcessingOngoingWarningQueryBuilderDsl.java
new file mode 100644
index 00000000000..11db7f97a77
--- /dev/null
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/warning/ImageProcessingOngoingWarningQueryBuilderDsl.java
@@ -0,0 +1,26 @@
+
+package com.commercetools.api.predicates.query.warning;
+
+import com.commercetools.api.predicates.query.*;
+
+public class ImageProcessingOngoingWarningQueryBuilderDsl {
+ public ImageProcessingOngoingWarningQueryBuilderDsl() {
+ }
+
+ public static ImageProcessingOngoingWarningQueryBuilderDsl of() {
+ return new ImageProcessingOngoingWarningQueryBuilderDsl();
+ }
+
+ public StringComparisonPredicateBuilder code() {
+ return new StringComparisonPredicateBuilder<>(
+ BinaryQueryPredicate.of().left(new ConstantQueryPredicate("code")),
+ p -> new CombinationQueryPredicate<>(p, ImageProcessingOngoingWarningQueryBuilderDsl::of));
+ }
+
+ public StringComparisonPredicateBuilder message() {
+ return new StringComparisonPredicateBuilder<>(
+ BinaryQueryPredicate.of().left(new ConstantQueryPredicate("message")),
+ p -> new CombinationQueryPredicate<>(p, ImageProcessingOngoingWarningQueryBuilderDsl::of));
+ }
+
+}
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/warning/WarningObjectQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/warning/WarningObjectQueryBuilderDsl.java
new file mode 100644
index 00000000000..5a7b7df7b25
--- /dev/null
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/warning/WarningObjectQueryBuilderDsl.java
@@ -0,0 +1,34 @@
+
+package com.commercetools.api.predicates.query.warning;
+
+import java.util.function.Function;
+
+import com.commercetools.api.predicates.query.*;
+
+public class WarningObjectQueryBuilderDsl {
+ public WarningObjectQueryBuilderDsl() {
+ }
+
+ public static WarningObjectQueryBuilderDsl of() {
+ return new WarningObjectQueryBuilderDsl();
+ }
+
+ public StringComparisonPredicateBuilder code() {
+ return new StringComparisonPredicateBuilder<>(
+ BinaryQueryPredicate.of().left(new ConstantQueryPredicate("code")),
+ p -> new CombinationQueryPredicate<>(p, WarningObjectQueryBuilderDsl::of));
+ }
+
+ public StringComparisonPredicateBuilder message() {
+ return new StringComparisonPredicateBuilder<>(
+ BinaryQueryPredicate.of().left(new ConstantQueryPredicate("message")),
+ p -> new CombinationQueryPredicate<>(p, WarningObjectQueryBuilderDsl::of));
+ }
+
+ public CombinationQueryPredicate asImageProcessingOngoing(
+ Function> fn) {
+ return new CombinationQueryPredicate<>(
+ fn.apply(com.commercetools.api.predicates.query.warning.ImageProcessingOngoingWarningQueryBuilderDsl.of()),
+ WarningObjectQueryBuilderDsl::of);
+ }
+}
diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product/ProductTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product/ProductTest.java
index 6a3566f70ff..bb499092336 100644
--- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product/ProductTest.java
+++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product/ProductTest.java
@@ -2,6 +2,7 @@
package com.commercetools.api.models.product;
import java.time.ZonedDateTime;
+import java.util.Collections;
import com.tngtech.junit.dataprovider.DataProvider;
import com.tngtech.junit.dataprovider.DataProviderExtension;
@@ -44,7 +45,10 @@ public static Object[][] objectBuilder() {
new Object[] { Product.builder()
.reviewRatingStatistics(new com.commercetools.api.models.review.ReviewRatingStatisticsImpl()) },
new Object[] { Product.builder()
- .priceMode(com.commercetools.api.models.product.ProductPriceModeEnum.findEnum("Embedded")) } };
+ .priceMode(com.commercetools.api.models.product.ProductPriceModeEnum.findEnum("Embedded")) },
+ new Object[] { Product.builder()
+ .warnings(Collections
+ .singletonList(new com.commercetools.api.models.warning.WarningObjectImpl())) } };
}
@Test
@@ -143,4 +147,12 @@ public void priceMode() {
Assertions.assertThat(value.getPriceMode())
.isEqualTo(com.commercetools.api.models.product.ProductPriceModeEnum.findEnum("Embedded"));
}
+
+ @Test
+ public void warnings() {
+ Product value = Product.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/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringTest.java
index 00018ed48d5..b52c9fb54e0 100644
--- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringTest.java
+++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringTest.java
@@ -2,6 +2,7 @@
package com.commercetools.api.models.product_tailoring;
import java.time.ZonedDateTime;
+import java.util.Collections;
import com.tngtech.junit.dataprovider.DataProvider;
import com.tngtech.junit.dataprovider.DataProviderExtension;
@@ -44,7 +45,10 @@ public static Object[][] objectBuilder() {
.current(new com.commercetools.api.models.product_tailoring.ProductTailoringDataImpl()) },
new Object[] { ProductTailoring.builder()
.staged(new com.commercetools.api.models.product_tailoring.ProductTailoringDataImpl()) },
- new Object[] { ProductTailoring.builder().hasStagedChanges(true) } };
+ new Object[] { ProductTailoring.builder().hasStagedChanges(true) },
+ new Object[] { ProductTailoring.builder()
+ .warnings(Collections
+ .singletonList(new com.commercetools.api.models.warning.WarningObjectImpl())) } };
}
@Test
@@ -142,4 +146,12 @@ public void hasStagedChanges() {
value.setHasStagedChanges(true);
Assertions.assertThat(value.getHasStagedChanges()).isEqualTo(true);
}
+
+ @Test
+ public void warnings() {
+ ProductTailoring value = ProductTailoring.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/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/warning/ImageProcessingOngoingWarningTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/warning/ImageProcessingOngoingWarningTest.java
new file mode 100644
index 00000000000..5bac3e287d9
--- /dev/null
+++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/warning/ImageProcessingOngoingWarningTest.java
@@ -0,0 +1,36 @@
+
+package com.commercetools.api.models.warning;
+
+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 ImageProcessingOngoingWarningTest {
+
+ @TestTemplate
+ @UseDataProvider("objectBuilder")
+ public void buildUnchecked(ImageProcessingOngoingWarningBuilder builder) {
+ ImageProcessingOngoingWarning imageProcessingOngoingWarning = builder.buildUnchecked();
+ Assertions.assertThat(imageProcessingOngoingWarning).isInstanceOf(ImageProcessingOngoingWarning.class);
+ }
+
+ @DataProvider
+ public static Object[][] objectBuilder() {
+ return new Object[][] { new Object[] { ImageProcessingOngoingWarning.builder().message("message") } };
+ }
+
+ @Test
+ public void message() {
+ ImageProcessingOngoingWarning value = ImageProcessingOngoingWarning.of();
+ value.setMessage("message");
+ Assertions.assertThat(value.getMessage()).isEqualTo("message");
+ }
+}
diff --git a/references.txt b/references.txt
index d56cea9e94d..3ffbe744d64 100644
--- a/references.txt
+++ b/references.txt
@@ -305,3 +305,4 @@ ce56ab7c65a688f75d5cd4095378d6647c6bd9ae
4b2ade81b4e216628dd4a26448cd1c838f5a85b1
0065cdd802adcbf53195095773ccc5a2becca69e
ce2753aafee0b1d96970abb600b606748ce40568
+d947f454821e0834a2c8a8605d4a0f3347c11d4e