Skip to content

Commit dc88d99

Browse files
Merge pull request #799 from commercetools/gen-sdk-updates
Update generated SDKs
2 parents 6a56cdd + aba9e0f commit dc88d99

File tree

5 files changed

+31
-20
lines changed

5 files changed

+31
-20
lines changed

changes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
<summary>Required Property(s)</summary>
1414

1515
- :warning: changed property `triggerPattern` of type `CartDiscountPatternTarget` to be required
16+
- changed property `images` of type `ProductTailoringSetExternalImagesAction` to be optional
1617
</details>
1718

1819

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetExternalImagesAction.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
import io.vrap.rmf.base.client.utils.Generated;
1616

1717
import jakarta.validation.Valid;
18-
import jakarta.validation.constraints.NotNull;
1918

2019
/**
2120
* <p>Either <code>variantId</code> or <code>sku</code> is required to reference a ProductVariant that exists. Produces the ProductTailoringImagesSet Message.</p>
@@ -25,7 +24,6 @@
2524
* <div class=code-example>
2625
* <pre><code class='java'>
2726
* ProductTailoringSetExternalImagesAction productTailoringSetExternalImagesAction = ProductTailoringSetExternalImagesAction.builder()
28-
* .plusImages(imagesBuilder -> imagesBuilder)
2927
* .build()
3028
* </code></pre>
3129
* </div>
@@ -56,10 +54,10 @@ public interface ProductTailoringSetExternalImagesAction extends ProductTailorin
5654
public String getSku();
5755

5856
/**
59-
* <p>Value to set to <code>images</code>.</p>
57+
* <p>Images of the tailored ProductVariant.</p>
58+
* <p>Don't provide this field if you want to remove all images from the tailored Product Variant. Set to <code>[]</code> (empty) if you want to hide all images of the original ProductVariant on the tailored ProductVariant.</p>
6059
* @return images
6160
*/
62-
@NotNull
6361
@Valid
6462
@JsonProperty("images")
6563
public List<Image> getImages();
@@ -87,15 +85,17 @@ public interface ProductTailoringSetExternalImagesAction extends ProductTailorin
8785
public void setSku(final String sku);
8886

8987
/**
90-
* <p>Value to set to <code>images</code>.</p>
88+
* <p>Images of the tailored ProductVariant.</p>
89+
* <p>Don't provide this field if you want to remove all images from the tailored Product Variant. Set to <code>[]</code> (empty) if you want to hide all images of the original ProductVariant on the tailored ProductVariant.</p>
9190
* @param images values to be set
9291
*/
9392

9493
@JsonIgnore
9594
public void setImages(final Image... images);
9695

9796
/**
98-
* <p>Value to set to <code>images</code>.</p>
97+
* <p>Images of the tailored ProductVariant.</p>
98+
* <p>Don't provide this field if you want to remove all images from the tailored Product Variant. Set to <code>[]</code> (empty) if you want to hide all images of the original ProductVariant on the tailored ProductVariant.</p>
9999
* @param images values to be set
100100
*/
101101

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetExternalImagesActionBuilder.java

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
* <div class=code-example>
1717
* <pre><code class='java'>
1818
* ProductTailoringSetExternalImagesAction productTailoringSetExternalImagesAction = ProductTailoringSetExternalImagesAction.builder()
19-
* .plusImages(imagesBuilder -> imagesBuilder)
2019
* .build()
2120
* </code></pre>
2221
* </div>
@@ -31,6 +30,7 @@ public class ProductTailoringSetExternalImagesActionBuilder
3130
@Nullable
3231
private String sku;
3332

33+
@Nullable
3434
private java.util.List<com.commercetools.api.models.common.Image> images;
3535

3636
@Nullable
@@ -59,37 +59,40 @@ public ProductTailoringSetExternalImagesActionBuilder sku(@Nullable final String
5959
}
6060

6161
/**
62-
* <p>Value to set to <code>images</code>.</p>
62+
* <p>Images of the tailored ProductVariant.</p>
63+
* <p>Don't provide this field if you want to remove all images from the tailored Product Variant. Set to <code>[]</code> (empty) if you want to hide all images of the original ProductVariant on the tailored ProductVariant.</p>
6364
* @param images value to be set
6465
* @return Builder
6566
*/
6667

6768
public ProductTailoringSetExternalImagesActionBuilder images(
68-
final com.commercetools.api.models.common.Image... images) {
69+
@Nullable final com.commercetools.api.models.common.Image... images) {
6970
this.images = new ArrayList<>(Arrays.asList(images));
7071
return this;
7172
}
7273

7374
/**
74-
* <p>Value to set to <code>images</code>.</p>
75+
* <p>Images of the tailored ProductVariant.</p>
76+
* <p>Don't provide this field if you want to remove all images from the tailored Product Variant. Set to <code>[]</code> (empty) if you want to hide all images of the original ProductVariant on the tailored ProductVariant.</p>
7577
* @param images value to be set
7678
* @return Builder
7779
*/
7880

7981
public ProductTailoringSetExternalImagesActionBuilder images(
80-
final java.util.List<com.commercetools.api.models.common.Image> images) {
82+
@Nullable final java.util.List<com.commercetools.api.models.common.Image> images) {
8183
this.images = images;
8284
return this;
8385
}
8486

8587
/**
86-
* <p>Value to set to <code>images</code>.</p>
88+
* <p>Images of the tailored ProductVariant.</p>
89+
* <p>Don't provide this field if you want to remove all images from the tailored Product Variant. Set to <code>[]</code> (empty) if you want to hide all images of the original ProductVariant on the tailored ProductVariant.</p>
8790
* @param images value to be set
8891
* @return Builder
8992
*/
9093

9194
public ProductTailoringSetExternalImagesActionBuilder plusImages(
92-
final com.commercetools.api.models.common.Image... images) {
95+
@Nullable final com.commercetools.api.models.common.Image... images) {
9396
if (this.images == null) {
9497
this.images = new ArrayList<>();
9598
}
@@ -98,7 +101,8 @@ public ProductTailoringSetExternalImagesActionBuilder plusImages(
98101
}
99102

100103
/**
101-
* <p>Value to set to <code>images</code>.</p>
104+
* <p>Images of the tailored ProductVariant.</p>
105+
* <p>Don't provide this field if you want to remove all images from the tailored Product Variant. Set to <code>[]</code> (empty) if you want to hide all images of the original ProductVariant on the tailored ProductVariant.</p>
102106
* @param builder function to build the images value
103107
* @return Builder
104108
*/
@@ -113,7 +117,8 @@ public ProductTailoringSetExternalImagesActionBuilder plusImages(
113117
}
114118

115119
/**
116-
* <p>Value to set to <code>images</code>.</p>
120+
* <p>Images of the tailored ProductVariant.</p>
121+
* <p>Don't provide this field if you want to remove all images from the tailored Product Variant. Set to <code>[]</code> (empty) if you want to hide all images of the original ProductVariant on the tailored ProductVariant.</p>
117122
* @param builder function to build the images value
118123
* @return Builder
119124
*/
@@ -126,7 +131,8 @@ public ProductTailoringSetExternalImagesActionBuilder withImages(
126131
}
127132

128133
/**
129-
* <p>Value to set to <code>images</code>.</p>
134+
* <p>Images of the tailored ProductVariant.</p>
135+
* <p>Don't provide this field if you want to remove all images from the tailored Product Variant. Set to <code>[]</code> (empty) if you want to hide all images of the original ProductVariant on the tailored ProductVariant.</p>
130136
* @param builder function to build the images value
131137
* @return Builder
132138
*/
@@ -137,7 +143,8 @@ public ProductTailoringSetExternalImagesActionBuilder addImages(
137143
}
138144

139145
/**
140-
* <p>Value to set to <code>images</code>.</p>
146+
* <p>Images of the tailored ProductVariant.</p>
147+
* <p>Don't provide this field if you want to remove all images from the tailored Product Variant. Set to <code>[]</code> (empty) if you want to hide all images of the original ProductVariant on the tailored ProductVariant.</p>
141148
* @param builder function to build the images value
142149
* @return Builder
143150
*/
@@ -179,10 +186,12 @@ public String getSku() {
179186
}
180187

181188
/**
182-
* <p>Value to set to <code>images</code>.</p>
189+
* <p>Images of the tailored ProductVariant.</p>
190+
* <p>Don't provide this field if you want to remove all images from the tailored Product Variant. Set to <code>[]</code> (empty) if you want to hide all images of the original ProductVariant on the tailored ProductVariant.</p>
183191
* @return images
184192
*/
185193

194+
@Nullable
186195
public java.util.List<com.commercetools.api.models.common.Image> getImages() {
187196
return this.images;
188197
}
@@ -202,7 +211,6 @@ public Boolean getStaged() {
202211
* @return ProductTailoringSetExternalImagesAction
203212
*/
204213
public ProductTailoringSetExternalImagesAction build() {
205-
Objects.requireNonNull(images, ProductTailoringSetExternalImagesAction.class + ": images is missing");
206214
return new ProductTailoringSetExternalImagesActionImpl(variantId, sku, images, staged);
207215
}
208216

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringSetExternalImagesActionImpl.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ public String getSku() {
7979
}
8080

8181
/**
82-
* <p>Value to set to <code>images</code>.</p>
82+
* <p>Images of the tailored ProductVariant.</p>
83+
* <p>Don't provide this field if you want to remove all images from the tailored Product Variant. Set to <code>[]</code> (empty) if you want to hide all images of the original ProductVariant on the tailored ProductVariant.</p>
8384
*/
8485

8586
public java.util.List<com.commercetools.api.models.common.Image> getImages() {

references.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,3 +360,4 @@ d042ef009240bb55e9b5b18003aba682ec9baa98
360360
e3d5bc9cb69146c5d1dd755ed5e8cf2f54566b3a
361361
591d5eaefd1d56fd350895ccea401cb42f2f0ee8
362362
2cad0e3daf32cb4eacc6b08feef37acb27065b0b
363+
64c89a7773b97bd6425a82d7d8cee1a9f0f3e6e2

0 commit comments

Comments
 (0)