From abd5112492fbc77258d58653c8acd1617d1b2c1d Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Tue, 7 May 2024 08:34:41 +0000 Subject: [PATCH] build(codegen): updating SDK --- changes.md | 15 +++------------ .../api/models/cart/DirectDiscountDraft.java | 9 +++++---- .../models/cart/DirectDiscountDraftBuilder.java | 12 +++++++----- .../api/models/cart/DirectDiscountDraftImpl.java | 8 ++++---- .../cart/DirectDiscountDraftQueryBuilderDsl.java | 11 +++++------ .../api/models/cart/DirectDiscountDraftTest.java | 6 +++--- references.txt | 1 + 7 files changed, 28 insertions(+), 34 deletions(-) diff --git a/changes.md b/changes.md index 0251f5fc59f..428ed991c87 100644 --- a/changes.md +++ b/changes.md @@ -1,17 +1,8 @@ -**Import changes** +**Api changes**
-MarkDeprecated Property(s) +Changed Property(s) -- marked property `PriceImport::publish` as deprecated -- marked property `ProductVariantImport::publish` as deprecated -
- - -
-Added Property(s) - -- added property `staged` to type `PriceImport` -- added property `staged` to type `ProductVariantImport` +- :warning: changed property `value` of type `DirectDiscountDraft` from type `CartDiscountValue` to `CartDiscountValueDraft`
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/DirectDiscountDraft.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/DirectDiscountDraft.java index aae2f20f34e..8d930e3d254 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/DirectDiscountDraft.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/DirectDiscountDraft.java @@ -10,7 +10,7 @@ import javax.validation.constraints.NotNull; import com.commercetools.api.models.cart_discount.CartDiscountTarget; -import com.commercetools.api.models.cart_discount.CartDiscountValue; +import com.commercetools.api.models.cart_discount.CartDiscountValueDraft; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.annotation.*; @@ -42,7 +42,7 @@ public interface DirectDiscountDraft extends io.vrap.rmf.base.client.DraftDefines what segment of the Cart will be discounted.

@@ -58,7 +58,7 @@ public interface DirectDiscountDraft extends io.vrap.rmf.base.client.DraftDefines what segment of the Cart will be discounted.

@@ -99,7 +99,8 @@ public static DirectDiscountDraft deepCopy(@Nullable final DirectDiscountDraft t return null; } DirectDiscountDraftImpl instance = new DirectDiscountDraftImpl(); - instance.setValue(com.commercetools.api.models.cart_discount.CartDiscountValue.deepCopy(template.getValue())); + instance.setValue( + com.commercetools.api.models.cart_discount.CartDiscountValueDraft.deepCopy(template.getValue())); instance.setTarget( com.commercetools.api.models.cart_discount.CartDiscountTarget.deepCopy(template.getTarget())); return instance; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/DirectDiscountDraftBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/DirectDiscountDraftBuilder.java index dc010c3069c..11a9e6d2984 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/DirectDiscountDraftBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/DirectDiscountDraftBuilder.java @@ -24,7 +24,7 @@ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class DirectDiscountDraftBuilder implements Builder { - private com.commercetools.api.models.cart_discount.CartDiscountValue value; + private com.commercetools.api.models.cart_discount.CartDiscountValueDraft value; @Nullable private com.commercetools.api.models.cart_discount.CartDiscountTarget target; @@ -35,7 +35,8 @@ public class DirectDiscountDraftBuilder implements Builder * @return Builder */ - public DirectDiscountDraftBuilder value(final com.commercetools.api.models.cart_discount.CartDiscountValue value) { + public DirectDiscountDraftBuilder value( + final com.commercetools.api.models.cart_discount.CartDiscountValueDraft value) { this.value = value; return this; } @@ -47,8 +48,9 @@ public DirectDiscountDraftBuilder value(final com.commercetools.api.models.cart_ */ public DirectDiscountDraftBuilder value( - Function> builder) { - this.value = builder.apply(com.commercetools.api.models.cart_discount.CartDiscountValueBuilder.of()).build(); + Function> builder) { + this.value = builder.apply(com.commercetools.api.models.cart_discount.CartDiscountValueDraftBuilder.of()) + .build(); return this; } @@ -83,7 +85,7 @@ public DirectDiscountDraftBuilder target( * @return value */ - public com.commercetools.api.models.cart_discount.CartDiscountValue getValue() { + public com.commercetools.api.models.cart_discount.CartDiscountValueDraft getValue() { return this.value; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/DirectDiscountDraftImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/DirectDiscountDraftImpl.java index 7a6325eeac4..e246ca184ce 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/DirectDiscountDraftImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/DirectDiscountDraftImpl.java @@ -24,7 +24,7 @@ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class DirectDiscountDraftImpl implements DirectDiscountDraft, ModelBase { - private com.commercetools.api.models.cart_discount.CartDiscountValue value; + private com.commercetools.api.models.cart_discount.CartDiscountValueDraft value; private com.commercetools.api.models.cart_discount.CartDiscountTarget target; @@ -33,7 +33,7 @@ public class DirectDiscountDraftImpl implements DirectDiscountDraft, ModelBase { */ @JsonCreator DirectDiscountDraftImpl( - @JsonProperty("value") final com.commercetools.api.models.cart_discount.CartDiscountValue value, + @JsonProperty("value") final com.commercetools.api.models.cart_discount.CartDiscountValueDraft value, @JsonProperty("target") final com.commercetools.api.models.cart_discount.CartDiscountTarget target) { this.value = value; this.target = target; @@ -49,7 +49,7 @@ public DirectDiscountDraftImpl() { *

Defines the effect the Discount will have.

*/ - public com.commercetools.api.models.cart_discount.CartDiscountValue getValue() { + public com.commercetools.api.models.cart_discount.CartDiscountValueDraft getValue() { return this.value; } @@ -62,7 +62,7 @@ public com.commercetools.api.models.cart_discount.CartDiscountTarget getTarget() return this.target; } - public void setValue(final com.commercetools.api.models.cart_discount.CartDiscountValue value) { + public void setValue(final com.commercetools.api.models.cart_discount.CartDiscountValueDraft value) { this.value = value; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/cart/DirectDiscountDraftQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/cart/DirectDiscountDraftQueryBuilderDsl.java index cb090e09959..67180480f65 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/cart/DirectDiscountDraftQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/cart/DirectDiscountDraftQueryBuilderDsl.java @@ -14,12 +14,11 @@ public static DirectDiscountDraftQueryBuilderDsl of() { } public CombinationQueryPredicate value( - Function> fn) { - return new CombinationQueryPredicate<>( - ContainerQueryPredicate.of() - .parent(ConstantQueryPredicate.of().constant("value")) - .inner(fn.apply( - com.commercetools.api.predicates.query.cart_discount.CartDiscountValueQueryBuilderDsl.of())), + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("value")) + .inner(fn.apply( + com.commercetools.api.predicates.query.cart_discount.CartDiscountValueDraftQueryBuilderDsl.of())), DirectDiscountDraftQueryBuilderDsl::of); } diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/cart/DirectDiscountDraftTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/cart/DirectDiscountDraftTest.java index 257021353c7..e68bd1d8084 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/cart/DirectDiscountDraftTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/cart/DirectDiscountDraftTest.java @@ -26,7 +26,7 @@ public void buildUnchecked(DirectDiscountDraftBuilder builder) { public static Object[][] objectBuilder() { return new Object[][] { new Object[] { DirectDiscountDraft.builder() - .value(new com.commercetools.api.models.cart_discount.CartDiscountValueImpl()) }, + .value(new com.commercetools.api.models.cart_discount.CartDiscountValueDraftImpl()) }, new Object[] { DirectDiscountDraft.builder() .target(new com.commercetools.api.models.cart_discount.CartDiscountTargetImpl()) } }; } @@ -34,9 +34,9 @@ public static Object[][] objectBuilder() { @Test public void value() { DirectDiscountDraft value = DirectDiscountDraft.of(); - value.setValue(new com.commercetools.api.models.cart_discount.CartDiscountValueImpl()); + value.setValue(new com.commercetools.api.models.cart_discount.CartDiscountValueDraftImpl()); Assertions.assertThat(value.getValue()) - .isEqualTo(new com.commercetools.api.models.cart_discount.CartDiscountValueImpl()); + .isEqualTo(new com.commercetools.api.models.cart_discount.CartDiscountValueDraftImpl()); } @Test diff --git a/references.txt b/references.txt index b0a6ed1ead4..aba4a910e23 100644 --- a/references.txt +++ b/references.txt @@ -229,3 +229,4 @@ c50b9ffcff1ea4a31e509f124bf0f87baced36af 494b8e902a3947c3c10bee83fde353fca02e3883 486ddbfe9cd2b72d6ad3253ed78b00bc41d0cd3c 47606ecb6f140e1e97dc0578ea2207fb4a9bc5f7 +a690700ee3c192050e86193dea13bef4cc8effc6