diff --git a/changes.md b/changes.md index 1a2df4e505d..e2bd167ff7c 100644 --- a/changes.md +++ b/changes.md @@ -13,6 +13,7 @@ Required Property(s) - :warning: changed property `triggerPattern` of type `CartDiscountPatternTarget` to be required +- changed property `images` of type `ProductTailoringSetExternalImagesAction` to be optional diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetExternalImagesAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetExternalImagesAction.java index 9dc9b912250..93965beaec0 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetExternalImagesAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetExternalImagesAction.java @@ -15,7 +15,6 @@ import io.vrap.rmf.base.client.utils.Generated; import jakarta.validation.Valid; -import jakarta.validation.constraints.NotNull; /** *

Either variantId or sku is required to reference a ProductVariant that exists. Produces the ProductTailoringImagesSet Message.

@@ -25,7 +24,6 @@ *
*

  *     ProductTailoringSetExternalImagesAction productTailoringSetExternalImagesAction = ProductTailoringSetExternalImagesAction.builder()
- *             .plusImages(imagesBuilder -> imagesBuilder)
  *             .build()
  * 
*
@@ -56,10 +54,10 @@ public interface ProductTailoringSetExternalImagesAction extends ProductTailorin public String getSku(); /** - *

Value to set to images.

+ *

Images of the tailored ProductVariant.

+ *

Don't provide this field if you want to remove all images from the tailored Product Variant. Set to [] (empty) if you want to hide all images of the original ProductVariant on the tailored ProductVariant.

* @return images */ - @NotNull @Valid @JsonProperty("images") public List getImages(); @@ -87,7 +85,8 @@ public interface ProductTailoringSetExternalImagesAction extends ProductTailorin public void setSku(final String sku); /** - *

Value to set to images.

+ *

Images of the tailored ProductVariant.

+ *

Don't provide this field if you want to remove all images from the tailored Product Variant. Set to [] (empty) if you want to hide all images of the original ProductVariant on the tailored ProductVariant.

* @param images values to be set */ @@ -95,7 +94,8 @@ public interface ProductTailoringSetExternalImagesAction extends ProductTailorin public void setImages(final Image... images); /** - *

Value to set to images.

+ *

Images of the tailored ProductVariant.

+ *

Don't provide this field if you want to remove all images from the tailored Product Variant. Set to [] (empty) if you want to hide all images of the original ProductVariant on the tailored ProductVariant.

* @param images values to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetExternalImagesActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetExternalImagesActionBuilder.java index 92b56432053..477e5d8cc07 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetExternalImagesActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetExternalImagesActionBuilder.java @@ -16,7 +16,6 @@ *
*

  *     ProductTailoringSetExternalImagesAction productTailoringSetExternalImagesAction = ProductTailoringSetExternalImagesAction.builder()
- *             .plusImages(imagesBuilder -> imagesBuilder)
  *             .build()
  * 
*
@@ -31,6 +30,7 @@ public class ProductTailoringSetExternalImagesActionBuilder @Nullable private String sku; + @Nullable private java.util.List images; @Nullable @@ -59,37 +59,40 @@ public ProductTailoringSetExternalImagesActionBuilder sku(@Nullable final String } /** - *

Value to set to images.

+ *

Images of the tailored ProductVariant.

+ *

Don't provide this field if you want to remove all images from the tailored Product Variant. Set to [] (empty) if you want to hide all images of the original ProductVariant on the tailored ProductVariant.

* @param images value to be set * @return Builder */ public ProductTailoringSetExternalImagesActionBuilder images( - final com.commercetools.api.models.common.Image... images) { + @Nullable final com.commercetools.api.models.common.Image... images) { this.images = new ArrayList<>(Arrays.asList(images)); return this; } /** - *

Value to set to images.

+ *

Images of the tailored ProductVariant.

+ *

Don't provide this field if you want to remove all images from the tailored Product Variant. Set to [] (empty) if you want to hide all images of the original ProductVariant on the tailored ProductVariant.

* @param images value to be set * @return Builder */ public ProductTailoringSetExternalImagesActionBuilder images( - final java.util.List images) { + @Nullable final java.util.List images) { this.images = images; return this; } /** - *

Value to set to images.

+ *

Images of the tailored ProductVariant.

+ *

Don't provide this field if you want to remove all images from the tailored Product Variant. Set to [] (empty) if you want to hide all images of the original ProductVariant on the tailored ProductVariant.

* @param images value to be set * @return Builder */ public ProductTailoringSetExternalImagesActionBuilder plusImages( - final com.commercetools.api.models.common.Image... images) { + @Nullable final com.commercetools.api.models.common.Image... images) { if (this.images == null) { this.images = new ArrayList<>(); } @@ -98,7 +101,8 @@ public ProductTailoringSetExternalImagesActionBuilder plusImages( } /** - *

Value to set to images.

+ *

Images of the tailored ProductVariant.

+ *

Don't provide this field if you want to remove all images from the tailored Product Variant. Set to [] (empty) if you want to hide all images of the original ProductVariant on the tailored ProductVariant.

* @param builder function to build the images value * @return Builder */ @@ -113,7 +117,8 @@ public ProductTailoringSetExternalImagesActionBuilder plusImages( } /** - *

Value to set to images.

+ *

Images of the tailored ProductVariant.

+ *

Don't provide this field if you want to remove all images from the tailored Product Variant. Set to [] (empty) if you want to hide all images of the original ProductVariant on the tailored ProductVariant.

* @param builder function to build the images value * @return Builder */ @@ -126,7 +131,8 @@ public ProductTailoringSetExternalImagesActionBuilder withImages( } /** - *

Value to set to images.

+ *

Images of the tailored ProductVariant.

+ *

Don't provide this field if you want to remove all images from the tailored Product Variant. Set to [] (empty) if you want to hide all images of the original ProductVariant on the tailored ProductVariant.

* @param builder function to build the images value * @return Builder */ @@ -137,7 +143,8 @@ public ProductTailoringSetExternalImagesActionBuilder addImages( } /** - *

Value to set to images.

+ *

Images of the tailored ProductVariant.

+ *

Don't provide this field if you want to remove all images from the tailored Product Variant. Set to [] (empty) if you want to hide all images of the original ProductVariant on the tailored ProductVariant.

* @param builder function to build the images value * @return Builder */ @@ -179,10 +186,12 @@ public String getSku() { } /** - *

Value to set to images.

+ *

Images of the tailored ProductVariant.

+ *

Don't provide this field if you want to remove all images from the tailored Product Variant. Set to [] (empty) if you want to hide all images of the original ProductVariant on the tailored ProductVariant.

* @return images */ + @Nullable public java.util.List getImages() { return this.images; } @@ -202,7 +211,6 @@ public Boolean getStaged() { * @return ProductTailoringSetExternalImagesAction */ public ProductTailoringSetExternalImagesAction build() { - Objects.requireNonNull(images, ProductTailoringSetExternalImagesAction.class + ": images is missing"); return new ProductTailoringSetExternalImagesActionImpl(variantId, sku, images, staged); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetExternalImagesActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetExternalImagesActionImpl.java index f4f4fd4f275..1ec253f017a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetExternalImagesActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetExternalImagesActionImpl.java @@ -79,7 +79,8 @@ public String getSku() { } /** - *

Value to set to images.

+ *

Images of the tailored ProductVariant.

+ *

Don't provide this field if you want to remove all images from the tailored Product Variant. Set to [] (empty) if you want to hide all images of the original ProductVariant on the tailored ProductVariant.

*/ public java.util.List getImages() { diff --git a/references.txt b/references.txt index 4ac5850e220..e771adfa288 100644 --- a/references.txt +++ b/references.txt @@ -360,3 +360,4 @@ d042ef009240bb55e9b5b18003aba682ec9baa98 e3d5bc9cb69146c5d1dd755ed5e8cf2f54566b3a 591d5eaefd1d56fd350895ccea401cb42f2f0ee8 2cad0e3daf32cb4eacc6b08feef37acb27065b0b +64c89a7773b97bd6425a82d7d8cee1a9f0f3e6e2