Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<summary>Required Property(s)</summary>

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


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import io.vrap.rmf.base.client.utils.Generated;

import jakarta.validation.Valid;
import jakarta.validation.constraints.NotNull;

/**
* <p>Either <code>variantId</code> or <code>sku</code> is required to reference a ProductVariant that exists. Produces the ProductTailoringImagesSet Message.</p>
Expand All @@ -25,7 +24,6 @@
* <div class=code-example>
* <pre><code class='java'>
* ProductTailoringSetExternalImagesAction productTailoringSetExternalImagesAction = ProductTailoringSetExternalImagesAction.builder()
* .plusImages(imagesBuilder -> imagesBuilder)
* .build()
* </code></pre>
* </div>
Expand Down Expand Up @@ -56,10 +54,10 @@ public interface ProductTailoringSetExternalImagesAction extends ProductTailorin
public String getSku();

/**
* <p>Value to set to <code>images</code>.</p>
* <p>Images of the tailored ProductVariant.</p>
* <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>
* @return images
*/
@NotNull
@Valid
@JsonProperty("images")
public List<Image> getImages();
Expand Down Expand Up @@ -87,15 +85,17 @@ public interface ProductTailoringSetExternalImagesAction extends ProductTailorin
public void setSku(final String sku);

/**
* <p>Value to set to <code>images</code>.</p>
* <p>Images of the tailored ProductVariant.</p>
* <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>
* @param images values to be set
*/

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

/**
* <p>Value to set to <code>images</code>.</p>
* <p>Images of the tailored ProductVariant.</p>
* <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>
* @param images values to be set
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* <div class=code-example>
* <pre><code class='java'>
* ProductTailoringSetExternalImagesAction productTailoringSetExternalImagesAction = ProductTailoringSetExternalImagesAction.builder()
* .plusImages(imagesBuilder -> imagesBuilder)
* .build()
* </code></pre>
* </div>
Expand All @@ -31,6 +30,7 @@ public class ProductTailoringSetExternalImagesActionBuilder
@Nullable
private String sku;

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

@Nullable
Expand Down Expand Up @@ -59,37 +59,40 @@ public ProductTailoringSetExternalImagesActionBuilder sku(@Nullable final String
}

/**
* <p>Value to set to <code>images</code>.</p>
* <p>Images of the tailored ProductVariant.</p>
* <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>
* @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;
}

/**
* <p>Value to set to <code>images</code>.</p>
* <p>Images of the tailored ProductVariant.</p>
* <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>
* @param images value to be set
* @return Builder
*/

public ProductTailoringSetExternalImagesActionBuilder images(
final java.util.List<com.commercetools.api.models.common.Image> images) {
@Nullable final java.util.List<com.commercetools.api.models.common.Image> images) {
this.images = images;
return this;
}

/**
* <p>Value to set to <code>images</code>.</p>
* <p>Images of the tailored ProductVariant.</p>
* <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>
* @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<>();
}
Expand All @@ -98,7 +101,8 @@ public ProductTailoringSetExternalImagesActionBuilder plusImages(
}

/**
* <p>Value to set to <code>images</code>.</p>
* <p>Images of the tailored ProductVariant.</p>
* <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>
* @param builder function to build the images value
* @return Builder
*/
Expand All @@ -113,7 +117,8 @@ public ProductTailoringSetExternalImagesActionBuilder plusImages(
}

/**
* <p>Value to set to <code>images</code>.</p>
* <p>Images of the tailored ProductVariant.</p>
* <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>
* @param builder function to build the images value
* @return Builder
*/
Expand All @@ -126,7 +131,8 @@ public ProductTailoringSetExternalImagesActionBuilder withImages(
}

/**
* <p>Value to set to <code>images</code>.</p>
* <p>Images of the tailored ProductVariant.</p>
* <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>
* @param builder function to build the images value
* @return Builder
*/
Expand All @@ -137,7 +143,8 @@ public ProductTailoringSetExternalImagesActionBuilder addImages(
}

/**
* <p>Value to set to <code>images</code>.</p>
* <p>Images of the tailored ProductVariant.</p>
* <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>
* @param builder function to build the images value
* @return Builder
*/
Expand Down Expand Up @@ -179,10 +186,12 @@ public String getSku() {
}

/**
* <p>Value to set to <code>images</code>.</p>
* <p>Images of the tailored ProductVariant.</p>
* <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>
* @return images
*/

@Nullable
public java.util.List<com.commercetools.api.models.common.Image> getImages() {
return this.images;
}
Expand All @@ -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);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ public String getSku() {
}

/**
* <p>Value to set to <code>images</code>.</p>
* <p>Images of the tailored ProductVariant.</p>
* <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>
*/

public java.util.List<com.commercetools.api.models.common.Image> getImages() {
Expand Down
1 change: 1 addition & 0 deletions references.txt
Original file line number Diff line number Diff line change
Expand Up @@ -360,3 +360,4 @@ d042ef009240bb55e9b5b18003aba682ec9baa98
e3d5bc9cb69146c5d1dd755ed5e8cf2f54566b3a
591d5eaefd1d56fd350895ccea401cb42f2f0ee8
2cad0e3daf32cb4eacc6b08feef37acb27065b0b
64c89a7773b97bd6425a82d7d8cee1a9f0f3e6e2
Loading