From ba06a6c83a044ec5fbb5a0b69ba3c243ed68dd66 Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Wed, 4 Sep 2024 08:05:43 +0000 Subject: [PATCH] build(codegen): updating SDK --- changes.md | 37 +------------------ .../message/ProductVariantDeletedMessage.java | 18 +++++++++ .../ProductVariantDeletedMessageBuilder.java | 31 +++++++++++++++- .../ProductVariantDeletedMessageImpl.java | 22 ++++++++++- .../ProductVariantDeletedMessagePayload.java | 18 +++++++++ ...ctVariantDeletedMessagePayloadBuilder.java | 29 ++++++++++++++- ...oductVariantDeletedMessagePayloadImpl.java | 27 +++++++++++++- ...tDeletedMessagePayloadQueryBuilderDsl.java | 6 +++ ...tVariantDeletedMessageQueryBuilderDsl.java | 6 +++ ...oductVariantDeletedMessagePayloadTest.java | 10 ++++- .../ProductVariantDeletedMessageTest.java | 10 ++++- references.txt | 1 + 12 files changed, 171 insertions(+), 44 deletions(-) diff --git a/changes.md b/changes.md index e8bee2b9fad..4441b3af51c 100644 --- a/changes.md +++ b/changes.md @@ -1,42 +1,9 @@ **Api changes** -
-Removed Method(s) - -- :warning: removed method `apiRoot.withProjectKey().me().businessUnits().withId().delete()` -- :warning: removed method `apiRoot.withProjectKey().me().businessUnits().withKey().delete()` -
- -
Added Property(s) -- added property `applicationMode` to type `CartDiscountValueAbsolute` -- added property `applicationMode` to type `CartDiscountValueAbsoluteDraft` -
- - -
-Added Type(s) - -- added type `DiscountApplicationMode` -- added type `DeliveryCustomFieldAddedMessage` -- added type `DeliveryCustomFieldChangedMessage` -- added type `DeliveryCustomFieldRemovedMessage` -- added type `DeliveryCustomTypeRemovedMessage` -- added type `DeliveryCustomTypeSetMessage` -- added type `DeliveryCustomFieldAddedMessagePayload` -- added type `DeliveryCustomFieldChangedMessagePayload` -- added type `DeliveryCustomFieldRemovedMessagePayload` -- added type `DeliveryCustomTypeRemovedMessagePayload` -- added type `DeliveryCustomTypeSetMessagePayload` -
- -**Import changes** - -
-Added Type(s) - -- added type `ReferencedResourceNotFound` +- added property `staged` to type `ProductVariantDeletedMessage` +- added property `staged` to type `ProductVariantDeletedMessagePayload`
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductVariantDeletedMessage.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductVariantDeletedMessage.java index 197d601b1a3..9c22a5aa980 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductVariantDeletedMessage.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductVariantDeletedMessage.java @@ -32,6 +32,7 @@ * .resource(resourceBuilder -> resourceBuilder) * .resourceVersion(0.3) * .plusRemovedImageUrls(removedImageUrlsBuilder -> removedImageUrlsBuilder) + * .staged(true) * .build() * * @@ -61,6 +62,14 @@ public interface ProductVariantDeletedMessage extends Message { @JsonProperty("removedImageUrls") public List getRemovedImageUrls(); + /** + *

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 + */ + @NotNull + @JsonProperty("staged") + public Boolean getStaged(); + /** *

Unique identifier of the Product Variant that was added.

* @param variant value to be set @@ -83,6 +92,13 @@ public interface ProductVariantDeletedMessage extends Message { 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 ProductVariantDeletedMessage @@ -110,6 +126,7 @@ public static ProductVariantDeletedMessage of(final ProductVariantDeletedMessage instance.setResourceUserProvidedIdentifiers(template.getResourceUserProvidedIdentifiers()); instance.setVariant(template.getVariant()); instance.setRemovedImageUrls(template.getRemovedImageUrls()); + instance.setStaged(template.getStaged()); return instance; } @@ -139,6 +156,7 @@ public static ProductVariantDeletedMessage deepCopy(@Nullable final ProductVaria 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/ProductVariantDeletedMessageBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductVariantDeletedMessageBuilder.java index 11bc611d351..c50e19d7d68 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductVariantDeletedMessageBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductVariantDeletedMessageBuilder.java @@ -24,6 +24,7 @@ * .resource(resourceBuilder -> resourceBuilder) * .resourceVersion(0.3) * .plusRemovedImageUrls(removedImageUrlsBuilder -> removedImageUrlsBuilder) + * .staged(true) * .build() * * @@ -59,6 +60,8 @@ public class ProductVariantDeletedMessageBuilder implements Builder removedImageUrls; + private Boolean staged; + /** *

Unique identifier of the Message. Can be used to track which Messages have been processed.

* @param id value to be set @@ -331,6 +334,17 @@ public ProductVariantDeletedMessageBuilder plusRemovedImageUrls(final String... 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 ProductVariantDeletedMessageBuilder staged(final Boolean staged) { + this.staged = staged; + return this; + } + /** *

Unique identifier of the Message. Can be used to track which Messages have been processed.

* @return id @@ -443,6 +457,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 ProductVariantDeletedMessage with checking for non-null required values * @return ProductVariantDeletedMessage @@ -456,8 +479,10 @@ public ProductVariantDeletedMessage build() { Objects.requireNonNull(resource, ProductVariantDeletedMessage.class + ": resource is missing"); Objects.requireNonNull(resourceVersion, ProductVariantDeletedMessage.class + ": resourceVersion is missing"); Objects.requireNonNull(removedImageUrls, ProductVariantDeletedMessage.class + ": removedImageUrls is missing"); + Objects.requireNonNull(staged, ProductVariantDeletedMessage.class + ": staged is missing"); return new ProductVariantDeletedMessageImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, createdBy, - sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, variant, removedImageUrls); + sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, variant, removedImageUrls, + staged); } /** @@ -466,7 +491,8 @@ public ProductVariantDeletedMessage build() { */ public ProductVariantDeletedMessage buildUnchecked() { return new ProductVariantDeletedMessageImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, createdBy, - sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, variant, removedImageUrls); + sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, variant, removedImageUrls, + staged); } /** @@ -496,6 +522,7 @@ public static ProductVariantDeletedMessageBuilder of(final ProductVariantDeleted builder.resourceUserProvidedIdentifiers = template.getResourceUserProvidedIdentifiers(); 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/ProductVariantDeletedMessageImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductVariantDeletedMessageImpl.java index 0c9d555a75a..074de109df1 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductVariantDeletedMessageImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductVariantDeletedMessageImpl.java @@ -48,6 +48,8 @@ public class ProductVariantDeletedMessageImpl implements ProductVariantDeletedMe private java.util.List removedImageUrls; + private Boolean staged; + /** * create instance with all properties */ @@ -62,7 +64,8 @@ public class ProductVariantDeletedMessageImpl implements ProductVariantDeletedMe @JsonProperty("resourceVersion") final Long resourceVersion, @JsonProperty("resourceUserProvidedIdentifiers") final com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers, @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.id = id; this.version = version; this.createdAt = createdAt; @@ -75,6 +78,7 @@ public class ProductVariantDeletedMessageImpl implements ProductVariantDeletedMe this.resourceUserProvidedIdentifiers = resourceUserProvidedIdentifiers; this.variant = variant; this.removedImageUrls = removedImageUrls; + this.staged = staged; this.type = PRODUCT_VARIANT_DELETED; } @@ -189,6 +193,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 setId(final String id) { this.id = id; } @@ -242,6 +254,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) @@ -265,6 +281,7 @@ public boolean equals(Object o) { .append(resourceUserProvidedIdentifiers, that.resourceUserProvidedIdentifiers) .append(variant, that.variant) .append(removedImageUrls, that.removedImageUrls) + .append(staged, that.staged) .append(id, that.id) .append(version, that.version) .append(createdAt, that.createdAt) @@ -278,6 +295,7 @@ public boolean equals(Object o) { .append(resourceUserProvidedIdentifiers, that.resourceUserProvidedIdentifiers) .append(variant, that.variant) .append(removedImageUrls, that.removedImageUrls) + .append(staged, that.staged) .isEquals(); } @@ -296,6 +314,7 @@ public int hashCode() { .append(resourceUserProvidedIdentifiers) .append(variant) .append(removedImageUrls) + .append(staged) .toHashCode(); } @@ -314,6 +333,7 @@ public String toString() { .append("resourceUserProvidedIdentifiers", resourceUserProvidedIdentifiers) .append("variant", variant) .append("removedImageUrls", removedImageUrls) + .append("staged", staged) .build(); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductVariantDeletedMessagePayload.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductVariantDeletedMessagePayload.java index 859b0c3fbbb..233fb905c91 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductVariantDeletedMessagePayload.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/ProductVariantDeletedMessagePayload.java @@ -25,6 +25,7 @@ *

  *     ProductVariantDeletedMessagePayload productVariantDeletedMessagePayload = ProductVariantDeletedMessagePayload.builder()
  *             .plusRemovedImageUrls(removedImageUrlsBuilder -> removedImageUrlsBuilder)
+ *             .staged(true)
  *             .build()
  * 
* @@ -54,6 +55,14 @@ public interface ProductVariantDeletedMessagePayload extends MessagePayload { @JsonProperty("removedImageUrls") public List getRemovedImageUrls(); + /** + *

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 + */ + @NotNull + @JsonProperty("staged") + public Boolean getStaged(); + /** *

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