Unique identifier of the Product Variant that was added.
* @param variant value to be set
@@ -76,6 +85,13 @@ public interface ProductVariantDeletedMessagePayload extends MessagePayload {
public void setRemovedImageUrls(final List removedImageUrls);
+ /**
+ * If true
, this message informs that only the staged ProductVariant has been removed by the update action. If false
, both the current and staged ProductVariant have been removed.
+ * @param staged value to be set
+ */
+
+ public void setStaged(final Boolean staged);
+
/**
* factory method
* @return instance of ProductVariantDeletedMessagePayload
@@ -93,6 +109,7 @@ public static ProductVariantDeletedMessagePayload of(final ProductVariantDeleted
ProductVariantDeletedMessagePayloadImpl instance = new ProductVariantDeletedMessagePayloadImpl();
instance.setVariant(template.getVariant());
instance.setRemovedImageUrls(template.getRemovedImageUrls());
+ instance.setStaged(template.getStaged());
return instance;
}
@@ -111,6 +128,7 @@ public static ProductVariantDeletedMessagePayload deepCopy(
instance.setVariant(com.commercetools.api.models.product.ProductVariant.deepCopy(template.getVariant()));
instance.setRemovedImageUrls(
Optional.ofNullable(template.getRemovedImageUrls()).map(ArrayList::new).orElse(null));
+ instance.setStaged(template.getStaged());
return instance;
}
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductVariantDeletedMessagePayloadBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductVariantDeletedMessagePayloadBuilder.java
index 8d46dcb5be4..0f9c0704ca2 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductVariantDeletedMessagePayloadBuilder.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductVariantDeletedMessagePayloadBuilder.java
@@ -17,6 +17,7 @@
*
* ProductVariantDeletedMessagePayload productVariantDeletedMessagePayload = ProductVariantDeletedMessagePayload.builder()
* .plusRemovedImageUrls(removedImageUrlsBuilder -> removedImageUrlsBuilder)
+ * .staged(true)
* .build()
*
*
@@ -29,6 +30,8 @@ public class ProductVariantDeletedMessagePayloadBuilder implements Builder removedImageUrls;
+ private Boolean staged;
+
/**
* Unique identifier of the Product Variant that was added.
* @param builder function to build the variant value
@@ -101,6 +104,17 @@ public ProductVariantDeletedMessagePayloadBuilder plusRemovedImageUrls(final Str
return this;
}
+ /**
+ * If true
, this message informs that only the staged ProductVariant has been removed by the update action. If false
, both the current and staged ProductVariant have been removed.
+ * @param staged value to be set
+ * @return Builder
+ */
+
+ public ProductVariantDeletedMessagePayloadBuilder staged(final Boolean staged) {
+ this.staged = staged;
+ return this;
+ }
+
/**
* Unique identifier of the Product Variant that was added.
* @return variant
@@ -120,6 +134,15 @@ public java.util.List getRemovedImageUrls() {
return this.removedImageUrls;
}
+ /**
+ * If true
, this message informs that only the staged ProductVariant has been removed by the update action. If false
, both the current and staged ProductVariant have been removed.
+ * @return staged
+ */
+
+ public Boolean getStaged() {
+ return this.staged;
+ }
+
/**
* builds ProductVariantDeletedMessagePayload with checking for non-null required values
* @return ProductVariantDeletedMessagePayload
@@ -127,7 +150,8 @@ public java.util.List getRemovedImageUrls() {
public ProductVariantDeletedMessagePayload build() {
Objects.requireNonNull(removedImageUrls,
ProductVariantDeletedMessagePayload.class + ": removedImageUrls is missing");
- return new ProductVariantDeletedMessagePayloadImpl(variant, removedImageUrls);
+ Objects.requireNonNull(staged, ProductVariantDeletedMessagePayload.class + ": staged is missing");
+ return new ProductVariantDeletedMessagePayloadImpl(variant, removedImageUrls, staged);
}
/**
@@ -135,7 +159,7 @@ public ProductVariantDeletedMessagePayload build() {
* @return ProductVariantDeletedMessagePayload
*/
public ProductVariantDeletedMessagePayload buildUnchecked() {
- return new ProductVariantDeletedMessagePayloadImpl(variant, removedImageUrls);
+ return new ProductVariantDeletedMessagePayloadImpl(variant, removedImageUrls, staged);
}
/**
@@ -155,6 +179,7 @@ public static ProductVariantDeletedMessagePayloadBuilder of(final ProductVariant
ProductVariantDeletedMessagePayloadBuilder builder = new ProductVariantDeletedMessagePayloadBuilder();
builder.variant = template.getVariant();
builder.removedImageUrls = template.getRemovedImageUrls();
+ builder.staged = template.getStaged();
return builder;
}
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductVariantDeletedMessagePayloadImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductVariantDeletedMessagePayloadImpl.java
index b6cf1ce8d23..b5a0a797a89 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductVariantDeletedMessagePayloadImpl.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductVariantDeletedMessagePayloadImpl.java
@@ -28,15 +28,19 @@ public class ProductVariantDeletedMessagePayloadImpl implements ProductVariantDe
private java.util.List removedImageUrls;
+ private Boolean staged;
+
/**
* create instance with all properties
*/
@JsonCreator
ProductVariantDeletedMessagePayloadImpl(
@JsonProperty("variant") final com.commercetools.api.models.product.ProductVariant variant,
- @JsonProperty("removedImageUrls") final java.util.List removedImageUrls) {
+ @JsonProperty("removedImageUrls") final java.util.List removedImageUrls,
+ @JsonProperty("staged") final Boolean staged) {
this.variant = variant;
this.removedImageUrls = removedImageUrls;
+ this.staged = staged;
this.type = PRODUCT_VARIANT_DELETED;
}
@@ -71,6 +75,14 @@ public java.util.List getRemovedImageUrls() {
return this.removedImageUrls;
}
+ /**
+ * If true
, this message informs that only the staged ProductVariant has been removed by the update action. If false
, both the current and staged ProductVariant have been removed.
+ */
+
+ public Boolean getStaged() {
+ return this.staged;
+ }
+
public void setVariant(final com.commercetools.api.models.product.ProductVariant variant) {
this.variant = variant;
}
@@ -83,6 +95,10 @@ public void setRemovedImageUrls(final java.util.List removedImageUrls) {
this.removedImageUrls = removedImageUrls;
}
+ public void setStaged(final Boolean staged) {
+ this.staged = staged;
+ }
+
@Override
public boolean equals(Object o) {
if (this == o)
@@ -96,15 +112,21 @@ public boolean equals(Object o) {
return new EqualsBuilder().append(type, that.type)
.append(variant, that.variant)
.append(removedImageUrls, that.removedImageUrls)
+ .append(staged, that.staged)
.append(type, that.type)
.append(variant, that.variant)
.append(removedImageUrls, that.removedImageUrls)
+ .append(staged, that.staged)
.isEquals();
}
@Override
public int hashCode() {
- return new HashCodeBuilder(17, 37).append(type).append(variant).append(removedImageUrls).toHashCode();
+ return new HashCodeBuilder(17, 37).append(type)
+ .append(variant)
+ .append(removedImageUrls)
+ .append(staged)
+ .toHashCode();
}
@Override
@@ -112,6 +134,7 @@ public String toString() {
return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type)
.append("variant", variant)
.append("removedImageUrls", removedImageUrls)
+ .append("staged", staged)
.build();
}
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/ProductVariantDeletedMessagePayloadQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/ProductVariantDeletedMessagePayloadQueryBuilderDsl.java
index f7fca7531d6..7a290a84699 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/ProductVariantDeletedMessagePayloadQueryBuilderDsl.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/ProductVariantDeletedMessagePayloadQueryBuilderDsl.java
@@ -34,4 +34,10 @@ public StringCollectionPredicateBuilder new CombinationQueryPredicate<>(p, ProductVariantDeletedMessagePayloadQueryBuilderDsl::of));
}
+ public BooleanComparisonPredicateBuilder staged() {
+ return new BooleanComparisonPredicateBuilder<>(
+ BinaryQueryPredicate.of().left(new ConstantQueryPredicate("staged")),
+ p -> new CombinationQueryPredicate<>(p, ProductVariantDeletedMessagePayloadQueryBuilderDsl::of));
+ }
+
}
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/ProductVariantDeletedMessageQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/ProductVariantDeletedMessageQueryBuilderDsl.java
index 12e5552397f..35ff101b660 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/ProductVariantDeletedMessageQueryBuilderDsl.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/ProductVariantDeletedMessageQueryBuilderDsl.java
@@ -106,4 +106,10 @@ public StringCollectionPredicateBuilder new CombinationQueryPredicate<>(p, ProductVariantDeletedMessageQueryBuilderDsl::of));
}
+ public BooleanComparisonPredicateBuilder staged() {
+ return new BooleanComparisonPredicateBuilder<>(
+ BinaryQueryPredicate.of().left(new ConstantQueryPredicate("staged")),
+ p -> new CombinationQueryPredicate<>(p, ProductVariantDeletedMessageQueryBuilderDsl::of));
+ }
+
}
diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/ProductVariantDeletedMessagePayloadTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/ProductVariantDeletedMessagePayloadTest.java
index 0ec68c3528c..731771a4de3 100644
--- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/ProductVariantDeletedMessagePayloadTest.java
+++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/ProductVariantDeletedMessagePayloadTest.java
@@ -31,7 +31,8 @@ public static Object[][] objectBuilder() {
new Object[] { ProductVariantDeletedMessagePayload.builder()
.variant(new com.commercetools.api.models.product.ProductVariantImpl()) },
new Object[] { ProductVariantDeletedMessagePayload.builder()
- .removedImageUrls(Collections.singletonList("removedImageUrls")) } };
+ .removedImageUrls(Collections.singletonList("removedImageUrls")) },
+ new Object[] { ProductVariantDeletedMessagePayload.builder().staged(true) } };
}
@Test
@@ -48,4 +49,11 @@ public void removedImageUrls() {
value.setRemovedImageUrls(Collections.singletonList("removedImageUrls"));
Assertions.assertThat(value.getRemovedImageUrls()).isEqualTo(Collections.singletonList("removedImageUrls"));
}
+
+ @Test
+ public void staged() {
+ ProductVariantDeletedMessagePayload value = ProductVariantDeletedMessagePayload.of();
+ value.setStaged(true);
+ Assertions.assertThat(value.getStaged()).isEqualTo(true);
+ }
}
diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/ProductVariantDeletedMessageTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/ProductVariantDeletedMessageTest.java
index b491e7ab205..a00d82ac587 100644
--- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/ProductVariantDeletedMessageTest.java
+++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/ProductVariantDeletedMessageTest.java
@@ -30,7 +30,8 @@ public static Object[][] objectBuilder() {
new Object[] { ProductVariantDeletedMessage.builder()
.variant(new com.commercetools.api.models.product.ProductVariantImpl()) },
new Object[] { ProductVariantDeletedMessage.builder()
- .removedImageUrls(Collections.singletonList("removedImageUrls")) } };
+ .removedImageUrls(Collections.singletonList("removedImageUrls")) },
+ new Object[] { ProductVariantDeletedMessage.builder().staged(true) } };
}
@Test
@@ -47,4 +48,11 @@ public void removedImageUrls() {
value.setRemovedImageUrls(Collections.singletonList("removedImageUrls"));
Assertions.assertThat(value.getRemovedImageUrls()).isEqualTo(Collections.singletonList("removedImageUrls"));
}
+
+ @Test
+ public void staged() {
+ ProductVariantDeletedMessage value = ProductVariantDeletedMessage.of();
+ value.setStaged(true);
+ Assertions.assertThat(value.getStaged()).isEqualTo(true);
+ }
}
diff --git a/references.txt b/references.txt
index 3ed71fec87e..f9e55330614 100644
--- a/references.txt
+++ b/references.txt
@@ -301,3 +301,4 @@ ab4dd4a6e46c77f13c03d43fe3628f37509c95b4
7fa01c3fa58cb65ecfaeeac01d0584541a8d26e5
dc09dbc8bb089b789be7b711ebeb272f820ed184
fa091aad2bce74e0d07ee69a886f4cd9ae02e05d
+ce56ab7c65a688f75d5cd4095378d6647c6bd9ae