From e0f502873715864246361b23f8cfc9d0baf8cf57 Mon Sep 17 00:00:00 2001
From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com>
Date: Mon, 9 Dec 2024 10:03:10 +0000
Subject: [PATCH 1/4] build(codegen): updating SDK
---
changes.md | 7 +-
.../importapi/models/errors/ErrorObject.java | 13 --
.../models/errors/ErrorObjectBuilder.java | 4 -
.../errors/ReferencedResourceNotFound.java | 188 ------------------
.../ReferencedResourceNotFoundBuilder.java | 160 ---------------
.../ReferencedResourceNotFoundImpl.java | 155 ---------------
.../ReferencedResourceNotFoundTest.java | 62 ------
references.txt | 1 +
8 files changed, 4 insertions(+), 586 deletions(-)
delete mode 100644 commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/errors/ReferencedResourceNotFound.java
delete mode 100644 commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/errors/ReferencedResourceNotFoundBuilder.java
delete mode 100644 commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/errors/ReferencedResourceNotFoundImpl.java
delete mode 100644 commercetools/commercetools-sdk-java-importapi/src/test/java-generated/com/commercetools/importapi/models/errors/ReferencedResourceNotFoundTest.java
diff --git a/changes.md b/changes.md
index d58f6d2481..53dc55e046 100644
--- a/changes.md
+++ b/changes.md
@@ -1,9 +1,8 @@
-**Api changes**
+**Import changes**
Changed Property(s)
+Removed Type(s)
-- :warning: changed property `totalPrice` of type `StagedOrder` from type `TypedMoney` to `CentPrecisionMoney`
-- :warning: changed property `totalPrice` of type `Order` from type `TypedMoney` to `CentPrecisionMoney`
+- :warning: removed type `ReferencedResourceNotFound`
Returned when a resource referenced by a Reference or a ResourceIdentifier could not be found.
- * - *
- * ReferencedResourceNotFound referencedResourceNotFound = ReferencedResourceNotFound.builder()
- * .message("{message}")
- * .typeId(ReferenceType.CART)
- * .build()
- *
- * "The referenced object of type $typeId $predicate was not found. It either doesn't exist, or it can't be accessed from this endpoint (e.g., if the endpoint filters by store or customer account)."
Type of referenced resource.
- * @return typeId - */ - @NotNull - @JsonProperty("typeId") - public ReferenceType getTypeId(); - - /** - *Unique identifier of the referenced resource, if known.
- * @return id - */ - - @JsonProperty("id") - public String getId(); - - /** - *User-defined unique identifier of the referenced resource, if known.
- * @return key - */ - - @JsonProperty("key") - public String getKey(); - - /** - *"The referenced object of type $typeId $predicate was not found. It either doesn't exist, or it can't be accessed from this endpoint (e.g., if the endpoint filters by store or customer account)."
Type of referenced resource.
- * @param typeId value to be set - */ - - public void setTypeId(final ReferenceType typeId); - - /** - *Unique identifier of the referenced resource, if known.
- * @param id value to be set - */ - - public void setId(final String id); - - /** - *User-defined unique identifier of the referenced resource, if known.
- * @param key value to be set - */ - - public void setKey(final String key); - - /** - * factory method - * @return instance of ReferencedResourceNotFound - */ - public static ReferencedResourceNotFound of() { - return new ReferencedResourceNotFoundImpl(); - } - - /** - * factory method to create a shallow copy ReferencedResourceNotFound - * @param template instance to be copied - * @return copy instance - */ - public static ReferencedResourceNotFound of(final ReferencedResourceNotFound template) { - ReferencedResourceNotFoundImpl instance = new ReferencedResourceNotFoundImpl(); - instance.setMessage(template.getMessage()); - instance.setTypeId(template.getTypeId()); - instance.setId(template.getId()); - instance.setKey(template.getKey()); - return instance; - } - - /** - * factory method to create a deep copy of ReferencedResourceNotFound - * @param template instance to be copied - * @return copy instance - */ - @Nullable - public static ReferencedResourceNotFound deepCopy(@Nullable final ReferencedResourceNotFound template) { - if (template == null) { - return null; - } - ReferencedResourceNotFoundImpl instance = new ReferencedResourceNotFoundImpl(); - instance.setMessage(template.getMessage()); - instance.setTypeId(template.getTypeId()); - instance.setId(template.getId()); - instance.setKey(template.getKey()); - return instance; - } - - /** - * builder factory method for ReferencedResourceNotFound - * @return builder - */ - public static ReferencedResourceNotFoundBuilder builder() { - return ReferencedResourceNotFoundBuilder.of(); - } - - /** - * create builder for ReferencedResourceNotFound instance - * @param template instance with prefilled values for the builder - * @return builder - */ - public static ReferencedResourceNotFoundBuilder builder(final ReferencedResourceNotFound template) { - return ReferencedResourceNotFoundBuilder.of(template); - } - - /** - * accessor map function - * @param
- * ReferencedResourceNotFound referencedResourceNotFound = ReferencedResourceNotFound.builder()
- * .message("{message}")
- * .typeId(ReferenceType.CART)
- * .build()
- *
- * "The referenced object of type $typeId $predicate was not found. It either doesn't exist, or it can't be accessed from this endpoint (e.g., if the endpoint filters by store or customer account)."
Type of referenced resource.
- * @param typeId value to be set - * @return Builder - */ - - public ReferencedResourceNotFoundBuilder typeId( - final com.commercetools.importapi.models.common.ReferenceType typeId) { - this.typeId = typeId; - return this; - } - - /** - *Unique identifier of the referenced resource, if known.
- * @param id value to be set - * @return Builder - */ - - public ReferencedResourceNotFoundBuilder id(@Nullable final String id) { - this.id = id; - return this; - } - - /** - *User-defined unique identifier of the referenced resource, if known.
- * @param key value to be set - * @return Builder - */ - - public ReferencedResourceNotFoundBuilder key(@Nullable final String key) { - this.key = key; - return this; - } - - /** - *"The referenced object of type $typeId $predicate was not found. It either doesn't exist, or it can't be accessed from this endpoint (e.g., if the endpoint filters by store or customer account)."
Type of referenced resource.
- * @return typeId - */ - - public com.commercetools.importapi.models.common.ReferenceType getTypeId() { - return this.typeId; - } - - /** - *Unique identifier of the referenced resource, if known.
- * @return id - */ - - @Nullable - public String getId() { - return this.id; - } - - /** - *User-defined unique identifier of the referenced resource, if known.
- * @return key - */ - - @Nullable - public String getKey() { - return this.key; - } - - /** - * builds ReferencedResourceNotFound with checking for non-null required values - * @return ReferencedResourceNotFound - */ - public ReferencedResourceNotFound build() { - Objects.requireNonNull(message, ReferencedResourceNotFound.class + ": message is missing"); - Objects.requireNonNull(typeId, ReferencedResourceNotFound.class + ": typeId is missing"); - return new ReferencedResourceNotFoundImpl(message, typeId, id, key); - } - - /** - * builds ReferencedResourceNotFound without checking for non-null required values - * @return ReferencedResourceNotFound - */ - public ReferencedResourceNotFound buildUnchecked() { - return new ReferencedResourceNotFoundImpl(message, typeId, id, key); - } - - /** - * factory method for an instance of ReferencedResourceNotFoundBuilder - * @return builder - */ - public static ReferencedResourceNotFoundBuilder of() { - return new ReferencedResourceNotFoundBuilder(); - } - - /** - * create builder for ReferencedResourceNotFound instance - * @param template instance with prefilled values for the builder - * @return builder - */ - public static ReferencedResourceNotFoundBuilder of(final ReferencedResourceNotFound template) { - ReferencedResourceNotFoundBuilder builder = new ReferencedResourceNotFoundBuilder(); - builder.message = template.getMessage(); - builder.typeId = template.getTypeId(); - builder.id = template.getId(); - builder.key = template.getKey(); - return builder; - } - -} diff --git a/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/errors/ReferencedResourceNotFoundImpl.java b/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/errors/ReferencedResourceNotFoundImpl.java deleted file mode 100644 index 42603070f7..0000000000 --- a/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/errors/ReferencedResourceNotFoundImpl.java +++ /dev/null @@ -1,155 +0,0 @@ - -package com.commercetools.importapi.models.errors; - -import java.time.*; -import java.util.*; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.databind.annotation.*; - -import io.vrap.rmf.base.client.ModelBase; -import io.vrap.rmf.base.client.utils.Generated; - -import org.apache.commons.lang3.builder.EqualsBuilder; -import org.apache.commons.lang3.builder.HashCodeBuilder; -import org.apache.commons.lang3.builder.ToStringBuilder; -import org.apache.commons.lang3.builder.ToStringStyle; - -/** - *Returned when a resource referenced by a Reference or a ResourceIdentifier could not be found.
- */ -@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") -public class ReferencedResourceNotFoundImpl implements ReferencedResourceNotFound, ModelBase { - - private String code; - - private String message; - - private com.commercetools.importapi.models.common.ReferenceType typeId; - - private String id; - - private String key; - - /** - * create instance with all properties - */ - @JsonCreator - ReferencedResourceNotFoundImpl(@JsonProperty("message") final String message, - @JsonProperty("typeId") final com.commercetools.importapi.models.common.ReferenceType typeId, - @JsonProperty("id") final String id, @JsonProperty("key") final String key) { - this.message = message; - this.typeId = typeId; - this.id = id; - this.key = key; - this.code = REFERENCED_RESOURCE_NOT_FOUND; - } - - /** - * create empty instance - */ - public ReferencedResourceNotFoundImpl() { - this.code = REFERENCED_RESOURCE_NOT_FOUND; - } - - /** - * - */ - - public String getCode() { - return this.code; - } - - /** - *"The referenced object of type $typeId $predicate was not found. It either doesn't exist, or it can't be accessed from this endpoint (e.g., if the endpoint filters by store or customer account)."
Type of referenced resource.
- */ - - public com.commercetools.importapi.models.common.ReferenceType getTypeId() { - return this.typeId; - } - - /** - *Unique identifier of the referenced resource, if known.
- */ - - public String getId() { - return this.id; - } - - /** - *User-defined unique identifier of the referenced resource, if known.
- */ - - public String getKey() { - return this.key; - } - - public void setMessage(final String message) { - this.message = message; - } - - public void setTypeId(final com.commercetools.importapi.models.common.ReferenceType typeId) { - this.typeId = typeId; - } - - public void setId(final String id) { - this.id = id; - } - - public void setKey(final String key) { - this.key = key; - } - - @Override - public boolean equals(Object o) { - if (this == o) - return true; - - if (o == null || getClass() != o.getClass()) - return false; - - ReferencedResourceNotFoundImpl that = (ReferencedResourceNotFoundImpl) o; - - return new EqualsBuilder().append(code, that.code) - .append(message, that.message) - .append(typeId, that.typeId) - .append(id, that.id) - .append(key, that.key) - .append(code, that.code) - .append(message, that.message) - .append(typeId, that.typeId) - .append(id, that.id) - .append(key, that.key) - .isEquals(); - } - - @Override - public int hashCode() { - return new HashCodeBuilder(17, 37).append(code) - .append(message) - .append(typeId) - .append(id) - .append(key) - .toHashCode(); - } - - @Override - public String toString() { - return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("code", code) - .append("message", message) - .append("typeId", typeId) - .append("id", id) - .append("key", key) - .build(); - } - -} diff --git a/commercetools/commercetools-sdk-java-importapi/src/test/java-generated/com/commercetools/importapi/models/errors/ReferencedResourceNotFoundTest.java b/commercetools/commercetools-sdk-java-importapi/src/test/java-generated/com/commercetools/importapi/models/errors/ReferencedResourceNotFoundTest.java deleted file mode 100644 index cf5d11b3bb..0000000000 --- a/commercetools/commercetools-sdk-java-importapi/src/test/java-generated/com/commercetools/importapi/models/errors/ReferencedResourceNotFoundTest.java +++ /dev/null @@ -1,62 +0,0 @@ - -package com.commercetools.importapi.models.errors; - -import com.tngtech.junit.dataprovider.DataProvider; -import com.tngtech.junit.dataprovider.DataProviderExtension; -import com.tngtech.junit.dataprovider.UseDataProvider; -import com.tngtech.junit.dataprovider.UseDataProviderExtension; - -import org.assertj.core.api.Assertions; -import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.TestTemplate; -import org.junit.jupiter.api.extension.ExtendWith; - -@ExtendWith(UseDataProviderExtension.class) -@ExtendWith(DataProviderExtension.class) -public class ReferencedResourceNotFoundTest { - - @TestTemplate - @UseDataProvider("objectBuilder") - public void buildUnchecked(ReferencedResourceNotFoundBuilder builder) { - ReferencedResourceNotFound referencedResourceNotFound = builder.buildUnchecked(); - Assertions.assertThat(referencedResourceNotFound).isInstanceOf(ReferencedResourceNotFound.class); - } - - @DataProvider - public static Object[][] objectBuilder() { - return new Object[][] { new Object[] { ReferencedResourceNotFound.builder().message("message") }, - new Object[] { ReferencedResourceNotFound.builder() - .typeId(com.commercetools.importapi.models.common.ReferenceType.findEnum("cart")) }, - new Object[] { ReferencedResourceNotFound.builder().id("id") }, - new Object[] { ReferencedResourceNotFound.builder().key("key") } }; - } - - @Test - public void message() { - ReferencedResourceNotFound value = ReferencedResourceNotFound.of(); - value.setMessage("message"); - Assertions.assertThat(value.getMessage()).isEqualTo("message"); - } - - @Test - public void typeId() { - ReferencedResourceNotFound value = ReferencedResourceNotFound.of(); - value.setTypeId(com.commercetools.importapi.models.common.ReferenceType.findEnum("cart")); - Assertions.assertThat(value.getTypeId()) - .isEqualTo(com.commercetools.importapi.models.common.ReferenceType.findEnum("cart")); - } - - @Test - public void id() { - ReferencedResourceNotFound value = ReferencedResourceNotFound.of(); - value.setId("id"); - Assertions.assertThat(value.getId()).isEqualTo("id"); - } - - @Test - public void key() { - ReferencedResourceNotFound value = ReferencedResourceNotFound.of(); - value.setKey("key"); - Assertions.assertThat(value.getKey()).isEqualTo("key"); - } -} diff --git a/references.txt b/references.txt index 3f33aed822..32b81b715f 100644 --- a/references.txt +++ b/references.txt @@ -336,3 +336,4 @@ b747e1fa4f246b748a89bccbfd8a43f5b6f51175 b747e1fa4f246b748a89bccbfd8a43f5b6f51175 505b3af56b4452b22dfb595f93e010b3e2fccc53 7375cdc26481ba55e756479a87270432635bfcf7 +df53588d26d7953dfdf44166866ca03045f0a70b From 6bffe168b39d0db246277a4fbe3d1f42f6e953da Mon Sep 17 00:00:00 2001 From: Jens SchulzeSets the country for which this Price is valid.
- *The value cannot be updated. Attempting to update the value will result in an InvalidFieldsUpdate error.
+ *Sets the country for this Price, if the Price does not yet have a country.
+ *The country cannot be updated. Attempting to update the an existing country will result in an InvalidFieldsUpdate error.
* @return country */ @@ -78,8 +78,8 @@ public interface StandalonePriceImport extends ImportResource { public String getCountry(); /** - *Sets the CustomerGroup for which this Price is valid.
- *The value cannot be updated. Attempting to update the value will result in an InvalidFieldsUpdate error.
+ *Sets the CustomerGroup for this Price, if the Price does not yet have a CustomerGroup.
+ *The CustomerGroup cannot be updated. Attempting to update an existing CustomerGroup will result in an InvalidFieldsUpdate error.
* @return customerGroup */ @Valid @@ -87,8 +87,8 @@ public interface StandalonePriceImport extends ImportResource { public CustomerGroupKeyReference getCustomerGroup(); /** - *Sets the product distribution Channel for which this Price is valid.
- *The value cannot be updated. Attempting to update the value will result in an InvalidFieldsUpdate error.
+ *Sets the product distribution Channel for this Price, if the Price does not yet have a Channel.
+ *The Channel cannot be updated. Attempting to update an existing Channel will result in an InvalidFieldsUpdate error.
* @return channel */ @Valid @@ -157,24 +157,24 @@ public interface StandalonePriceImport extends ImportResource { public void setValue(final TypedMoney value); /** - *Sets the country for which this Price is valid.
- *The value cannot be updated. Attempting to update the value will result in an InvalidFieldsUpdate error.
+ *Sets the country for this Price, if the Price does not yet have a country.
+ *The country cannot be updated. Attempting to update the an existing country will result in an InvalidFieldsUpdate error.
* @param country value to be set */ public void setCountry(final String country); /** - *Sets the CustomerGroup for which this Price is valid.
- *The value cannot be updated. Attempting to update the value will result in an InvalidFieldsUpdate error.
+ *Sets the CustomerGroup for this Price, if the Price does not yet have a CustomerGroup.
+ *The CustomerGroup cannot be updated. Attempting to update an existing CustomerGroup will result in an InvalidFieldsUpdate error.
* @param customerGroup value to be set */ public void setCustomerGroup(final CustomerGroupKeyReference customerGroup); /** - *Sets the product distribution Channel for which this Price is valid.
- *The value cannot be updated. Attempting to update the value will result in an InvalidFieldsUpdate error.
+ *Sets the product distribution Channel for this Price, if the Price does not yet have a Channel.
+ *The Channel cannot be updated. Attempting to update an existing Channel will result in an InvalidFieldsUpdate error.
* @param channel value to be set */ diff --git a/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/standalone_prices/StandalonePriceImportBuilder.java b/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/standalone_prices/StandalonePriceImportBuilder.java index 7405df1d8d..aabd6f20cc 100644 --- a/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/standalone_prices/StandalonePriceImportBuilder.java +++ b/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/standalone_prices/StandalonePriceImportBuilder.java @@ -102,8 +102,8 @@ public StandalonePriceImportBuilder value( } /** - *Sets the country for which this Price is valid.
- *The value cannot be updated. Attempting to update the value will result in an InvalidFieldsUpdate error.
+ *Sets the country for this Price, if the Price does not yet have a country.
+ *The country cannot be updated. Attempting to update the an existing country will result in an InvalidFieldsUpdate error.
* @param country value to be set * @return Builder */ @@ -114,8 +114,8 @@ public StandalonePriceImportBuilder country(@Nullable final String country) { } /** - *Sets the CustomerGroup for which this Price is valid.
- *The value cannot be updated. Attempting to update the value will result in an InvalidFieldsUpdate error.
+ *Sets the CustomerGroup for this Price, if the Price does not yet have a CustomerGroup.
+ *The CustomerGroup cannot be updated. Attempting to update an existing CustomerGroup will result in an InvalidFieldsUpdate error.
* @param builder function to build the customerGroup value * @return Builder */ @@ -129,8 +129,8 @@ public StandalonePriceImportBuilder customerGroup( } /** - *Sets the CustomerGroup for which this Price is valid.
- *The value cannot be updated. Attempting to update the value will result in an InvalidFieldsUpdate error.
+ *Sets the CustomerGroup for this Price, if the Price does not yet have a CustomerGroup.
+ *The CustomerGroup cannot be updated. Attempting to update an existing CustomerGroup will result in an InvalidFieldsUpdate error.
* @param builder function to build the customerGroup value * @return Builder */ @@ -143,8 +143,8 @@ public StandalonePriceImportBuilder withCustomerGroup( } /** - *Sets the CustomerGroup for which this Price is valid.
- *The value cannot be updated. Attempting to update the value will result in an InvalidFieldsUpdate error.
+ *Sets the CustomerGroup for this Price, if the Price does not yet have a CustomerGroup.
+ *The CustomerGroup cannot be updated. Attempting to update an existing CustomerGroup will result in an InvalidFieldsUpdate error.
* @param customerGroup value to be set * @return Builder */ @@ -156,8 +156,8 @@ public StandalonePriceImportBuilder customerGroup( } /** - *Sets the product distribution Channel for which this Price is valid.
- *The value cannot be updated. Attempting to update the value will result in an InvalidFieldsUpdate error.
+ *Sets the product distribution Channel for this Price, if the Price does not yet have a Channel.
+ *The Channel cannot be updated. Attempting to update an existing Channel will result in an InvalidFieldsUpdate error.
* @param builder function to build the channel value * @return Builder */ @@ -169,8 +169,8 @@ public StandalonePriceImportBuilder channel( } /** - *Sets the product distribution Channel for which this Price is valid.
- *The value cannot be updated. Attempting to update the value will result in an InvalidFieldsUpdate error.
+ *Sets the product distribution Channel for this Price, if the Price does not yet have a Channel.
+ *The Channel cannot be updated. Attempting to update an existing Channel will result in an InvalidFieldsUpdate error.
* @param builder function to build the channel value * @return Builder */ @@ -182,8 +182,8 @@ public StandalonePriceImportBuilder withChannel( } /** - *Sets the product distribution Channel for which this Price is valid.
- *The value cannot be updated. Attempting to update the value will result in an InvalidFieldsUpdate error.
+ *Sets the product distribution Channel for this Price, if the Price does not yet have a Channel.
+ *The Channel cannot be updated. Attempting to update an existing Channel will result in an InvalidFieldsUpdate error.
* @param channel value to be set * @return Builder */ @@ -405,8 +405,8 @@ public com.commercetools.importapi.models.common.TypedMoney getValue() { } /** - *Sets the country for which this Price is valid.
- *The value cannot be updated. Attempting to update the value will result in an InvalidFieldsUpdate error.
+ *Sets the country for this Price, if the Price does not yet have a country.
+ *The country cannot be updated. Attempting to update the an existing country will result in an InvalidFieldsUpdate error.
* @return country */ @@ -416,8 +416,8 @@ public String getCountry() { } /** - *Sets the CustomerGroup for which this Price is valid.
- *The value cannot be updated. Attempting to update the value will result in an InvalidFieldsUpdate error.
+ *Sets the CustomerGroup for this Price, if the Price does not yet have a CustomerGroup.
+ *The CustomerGroup cannot be updated. Attempting to update an existing CustomerGroup will result in an InvalidFieldsUpdate error.
* @return customerGroup */ @@ -427,8 +427,8 @@ public com.commercetools.importapi.models.common.CustomerGroupKeyReference getCu } /** - *Sets the product distribution Channel for which this Price is valid.
- *The value cannot be updated. Attempting to update the value will result in an InvalidFieldsUpdate error.
+ *Sets the product distribution Channel for this Price, if the Price does not yet have a Channel.
+ *The Channel cannot be updated. Attempting to update an existing Channel will result in an InvalidFieldsUpdate error.
* @return channel */ diff --git a/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/standalone_prices/StandalonePriceImportImpl.java b/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/standalone_prices/StandalonePriceImportImpl.java index 3eabd9ce7b..08531de89e 100644 --- a/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/standalone_prices/StandalonePriceImportImpl.java +++ b/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/standalone_prices/StandalonePriceImportImpl.java @@ -102,8 +102,8 @@ public com.commercetools.importapi.models.common.TypedMoney getValue() { } /** - *Sets the country for which this Price is valid.
- *The value cannot be updated. Attempting to update the value will result in an InvalidFieldsUpdate error.
+ *Sets the country for this Price, if the Price does not yet have a country.
+ *The country cannot be updated. Attempting to update the an existing country will result in an InvalidFieldsUpdate error.
*/ public String getCountry() { @@ -111,8 +111,8 @@ public String getCountry() { } /** - *Sets the CustomerGroup for which this Price is valid.
- *The value cannot be updated. Attempting to update the value will result in an InvalidFieldsUpdate error.
+ *Sets the CustomerGroup for this Price, if the Price does not yet have a CustomerGroup.
+ *The CustomerGroup cannot be updated. Attempting to update an existing CustomerGroup will result in an InvalidFieldsUpdate error.
*/ public com.commercetools.importapi.models.common.CustomerGroupKeyReference getCustomerGroup() { @@ -120,8 +120,8 @@ public com.commercetools.importapi.models.common.CustomerGroupKeyReference getCu } /** - *Sets the product distribution Channel for which this Price is valid.
- *The value cannot be updated. Attempting to update the value will result in an InvalidFieldsUpdate error.
+ *Sets the product distribution Channel for this Price, if the Price does not yet have a Channel.
+ *The Channel cannot be updated. Attempting to update an existing Channel will result in an InvalidFieldsUpdate error.
*/ public com.commercetools.importapi.models.common.ChannelKeyReference getChannel() { diff --git a/references.txt b/references.txt index 32b81b715f..af6c79bb42 100644 --- a/references.txt +++ b/references.txt @@ -337,3 +337,4 @@ b747e1fa4f246b748a89bccbfd8a43f5b6f51175 505b3af56b4452b22dfb595f93e010b3e2fccc53 7375cdc26481ba55e756479a87270432635bfcf7 df53588d26d7953dfdf44166866ca03045f0a70b +6b69c5425fe16564147deb9b1d6a9a1078dc5330 From f346194f197eead26d944b5a042141030c41ade9 Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Tue, 10 Dec 2024 08:52:17 +0000 Subject: [PATCH 4/4] build(codegen): updating SDK --- .../api/models/common/DiscountedPriceDraft.java | 2 ++ .../api/models/common/DiscountedPriceDraftBuilder.java | 4 ++++ .../api/models/common/DiscountedPriceDraftImpl.java | 1 + .../com/commercetools/api/models/common/PriceDraft.java | 2 ++ .../api/models/common/PriceDraftBuilder.java | 4 ++++ .../commercetools/api/models/common/PriceDraftImpl.java | 1 + .../commercetools/api/models/common/PriceTierDraft.java | 4 ++-- .../api/models/common/PriceTierDraftBuilder.java | 8 ++++---- .../api/models/common/PriceTierDraftImpl.java | 2 +- .../StandalonePriceChangeValueAction.java | 2 ++ .../StandalonePriceChangeValueActionBuilder.java | 4 ++++ .../StandalonePriceChangeValueActionImpl.java | 1 + .../api/models/standalone_price/StandalonePriceDraft.java | 2 ++ .../standalone_price/StandalonePriceDraftBuilder.java | 4 ++++ .../models/standalone_price/StandalonePriceDraftImpl.java | 1 + references.txt | 1 + 16 files changed, 36 insertions(+), 7 deletions(-) diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/DiscountedPriceDraft.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/DiscountedPriceDraft.java index 59e5a4634d..a66a147a4d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/DiscountedPriceDraft.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/DiscountedPriceDraft.java @@ -36,6 +36,7 @@ public interface DiscountedPriceDraft extends io.vrap.rmf.base.client.DraftTo set the money value in high precision, use HighPrecisionMoneyDraft.
* @return value */ @NotNull @@ -54,6 +55,7 @@ public interface DiscountedPriceDraft extends io.vrap.rmf.base.client.DraftTo set the money value in high precision, use HighPrecisionMoneyDraft.
* @param value value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/DiscountedPriceDraftBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/DiscountedPriceDraftBuilder.java index 77280a2e9e..8778f590f3 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/DiscountedPriceDraftBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/DiscountedPriceDraftBuilder.java @@ -29,6 +29,7 @@ public class DiscountedPriceDraftBuilder implements BuilderTo set the money value in high precision, use HighPrecisionMoneyDraft.
* @param builder function to build the value value * @return Builder */ @@ -41,6 +42,7 @@ public DiscountedPriceDraftBuilder value( /** *Sets the money value for the discounted price.
+ *To set the money value in high precision, use HighPrecisionMoneyDraft.
* @param builder function to build the value value * @return Builder */ @@ -53,6 +55,7 @@ public DiscountedPriceDraftBuilder withValue( /** *Sets the money value for the discounted price.
+ *To set the money value in high precision, use HighPrecisionMoneyDraft.
* @param value value to be set * @return Builder */ @@ -103,6 +106,7 @@ public DiscountedPriceDraftBuilder discount( /** *Sets the money value for the discounted price.
+ *To set the money value in high precision, use HighPrecisionMoneyDraft.
* @return value */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/DiscountedPriceDraftImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/DiscountedPriceDraftImpl.java index e943ee5a0e..40719452ad 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/DiscountedPriceDraftImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/DiscountedPriceDraftImpl.java @@ -44,6 +44,7 @@ public DiscountedPriceDraftImpl() { /** *Sets the money value for the discounted price.
+ *To set the money value in high precision, use HighPrecisionMoneyDraft.
*/ public com.commercetools.api.models.common.Money getValue() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/PriceDraft.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/PriceDraft.java index d252683ad7..cb51839850 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/PriceDraft.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/PriceDraft.java @@ -48,6 +48,7 @@ public interface PriceDraft extends com.commercetools.api.models.CustomizableDra /** *Money value of this Price.
+ *To set the money value in high precision, use HighPrecisionMoneyDraft.
* @return value */ @NotNull @@ -135,6 +136,7 @@ public interface PriceDraft extends com.commercetools.api.models.CustomizableDra /** *Money value of this Price.
+ *To set the money value in high precision, use HighPrecisionMoneyDraft.
* @param value value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/PriceDraftBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/PriceDraftBuilder.java index a180240c9e..40b6cc5c1e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/PriceDraftBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/PriceDraftBuilder.java @@ -66,6 +66,7 @@ public PriceDraftBuilder key(@Nullable final String key) { /** *Money value of this Price.
+ *To set the money value in high precision, use HighPrecisionMoneyDraft.
* @param builder function to build the value value * @return Builder */ @@ -78,6 +79,7 @@ public PriceDraftBuilder value( /** *Money value of this Price.
+ *To set the money value in high precision, use HighPrecisionMoneyDraft.
* @param builder function to build the value value * @return Builder */ @@ -90,6 +92,7 @@ public PriceDraftBuilder withValue( /** *Money value of this Price.
+ *To set the money value in high precision, use HighPrecisionMoneyDraft.
* @param value value to be set * @return Builder */ @@ -403,6 +406,7 @@ public String getKey() { /** *Money value of this Price.
+ *To set the money value in high precision, use HighPrecisionMoneyDraft.
* @return value */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/PriceDraftImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/PriceDraftImpl.java index 14f119c7bf..ac2ca8b87b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/PriceDraftImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/PriceDraftImpl.java @@ -84,6 +84,7 @@ public String getKey() { /** *Money value of this Price.
+ *To set the money value in high precision, use HighPrecisionMoneyDraft.
*/ public com.commercetools.api.models.common.Money getValue() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/PriceTierDraft.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/PriceTierDraft.java index a6a0c7cad4..38c5fdd022 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/PriceTierDraft.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/PriceTierDraft.java @@ -43,7 +43,7 @@ public interface PriceTierDraft extends io.vrap.rmf.base.client.DraftminimumQuantity
is greater than or equal to the LineItem quantity
.
+ * Money value that applies when the minimumQuantity
is greater than or equal to the LineItem quantity
. To set the money value in high precision, use HighPrecisionMoneyDraft.
The currencyCode
of a Price tier must be the same as the currencyCode
in the value
of the related Price.
minimumQuantity
is greater than or equal to the LineItem quantity
.
+ * Money value that applies when the minimumQuantity
is greater than or equal to the LineItem quantity
. To set the money value in high precision, use HighPrecisionMoneyDraft.
The currencyCode
of a Price tier must be the same as the currencyCode
in the value
of the related Price.
Money value that applies when the minimumQuantity
is greater than or equal to the LineItem quantity
.
Money value that applies when the minimumQuantity
is greater than or equal to the LineItem quantity
. To set the money value in high precision, use HighPrecisionMoneyDraft.
The currencyCode
of a Price tier must be the same as the currencyCode
in the value
of the related Price.
Money value that applies when the minimumQuantity
is greater than or equal to the LineItem quantity
.
Money value that applies when the minimumQuantity
is greater than or equal to the LineItem quantity
. To set the money value in high precision, use HighPrecisionMoneyDraft.
The currencyCode
of a Price tier must be the same as the currencyCode
in the value
of the related Price.
Money value that applies when the minimumQuantity
is greater than or equal to the LineItem quantity
.
Money value that applies when the minimumQuantity
is greater than or equal to the LineItem quantity
. To set the money value in high precision, use HighPrecisionMoneyDraft.
The currencyCode
of a Price tier must be the same as the currencyCode
in the value
of the related Price.
Money value that applies when the minimumQuantity
is greater than or equal to the LineItem quantity
.
Money value that applies when the minimumQuantity
is greater than or equal to the LineItem quantity
. To set the money value in high precision, use HighPrecisionMoneyDraft.
The currencyCode
of a Price tier must be the same as the currencyCode
in the value
of the related Price.
Money value that applies when the minimumQuantity
is greater than or equal to the LineItem quantity
.
Money value that applies when the minimumQuantity
is greater than or equal to the LineItem quantity
. To set the money value in high precision, use HighPrecisionMoneyDraft.
The currencyCode
of a Price tier must be the same as the currencyCode
in the value
of the related Price.
New value to set. Must not be empty.
+ *To set the money value in high precision, use HighPrecisionMoneyDraft.
* @return value */ @NotNull @@ -57,6 +58,7 @@ public interface StandalonePriceChangeValueAction extends StandalonePriceUpdateA /** *New value to set. Must not be empty.
+ *To set the money value in high precision, use HighPrecisionMoneyDraft.
* @param value value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/standalone_price/StandalonePriceChangeValueActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/standalone_price/StandalonePriceChangeValueActionBuilder.java index 862a4aea6b..974d097917 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/standalone_price/StandalonePriceChangeValueActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/standalone_price/StandalonePriceChangeValueActionBuilder.java @@ -31,6 +31,7 @@ public class StandalonePriceChangeValueActionBuilder implements BuilderTo set the money value in high precision, use HighPrecisionMoneyDraft.
* @param builder function to build the value value * @return Builder */ @@ -43,6 +44,7 @@ public StandalonePriceChangeValueActionBuilder value( /** *New value to set. Must not be empty.
+ *To set the money value in high precision, use HighPrecisionMoneyDraft.
* @param builder function to build the value value * @return Builder */ @@ -55,6 +57,7 @@ public StandalonePriceChangeValueActionBuilder withValue( /** *New value to set. Must not be empty.
+ *To set the money value in high precision, use HighPrecisionMoneyDraft.
* @param value value to be set * @return Builder */ @@ -77,6 +80,7 @@ public StandalonePriceChangeValueActionBuilder staged(@Nullable final Boolean st /** *New value to set. Must not be empty.
+ *To set the money value in high precision, use HighPrecisionMoneyDraft.
* @return value */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/standalone_price/StandalonePriceChangeValueActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/standalone_price/StandalonePriceChangeValueActionImpl.java index 8e7f609291..d8eacaacb0 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/standalone_price/StandalonePriceChangeValueActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/standalone_price/StandalonePriceChangeValueActionImpl.java @@ -56,6 +56,7 @@ public String getAction() { /** *New value to set. Must not be empty.
+ *To set the money value in high precision, use HighPrecisionMoneyDraft.
*/ public com.commercetools.api.models.common.Money getValue() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/standalone_price/StandalonePriceDraft.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/standalone_price/StandalonePriceDraft.java index 2ddb307b9a..92106915cb 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/standalone_price/StandalonePriceDraft.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/standalone_price/StandalonePriceDraft.java @@ -60,6 +60,7 @@ public interface StandalonePriceDraft extends com.commercetools.api.models.Custo /** *Sets the money value of this Price.
+ *To set the money value in high precision, use HighPrecisionMoneyDraft.
* @return value */ @NotNull @@ -164,6 +165,7 @@ public interface StandalonePriceDraft extends com.commercetools.api.models.Custo /** *Sets the money value of this Price.
+ *To set the money value in high precision, use HighPrecisionMoneyDraft.
* @param value value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/standalone_price/StandalonePriceDraftBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/standalone_price/StandalonePriceDraftBuilder.java index feefe7f20a..75a81a01f3 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/standalone_price/StandalonePriceDraftBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/standalone_price/StandalonePriceDraftBuilder.java @@ -86,6 +86,7 @@ public StandalonePriceDraftBuilder sku(final String sku) { /** *Sets the money value of this Price.
+ *To set the money value in high precision, use HighPrecisionMoneyDraft.
* @param builder function to build the value value * @return Builder */ @@ -98,6 +99,7 @@ public StandalonePriceDraftBuilder value( /** *Sets the money value of this Price.
+ *To set the money value in high precision, use HighPrecisionMoneyDraft.
* @param builder function to build the value value * @return Builder */ @@ -110,6 +112,7 @@ public StandalonePriceDraftBuilder withValue( /** *Sets the money value of this Price.
+ *To set the money value in high precision, use HighPrecisionMoneyDraft.
* @param value value to be set * @return Builder */ @@ -464,6 +467,7 @@ public String getSku() { /** *Sets the money value of this Price.
+ *To set the money value in high precision, use HighPrecisionMoneyDraft.
* @return value */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/standalone_price/StandalonePriceDraftImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/standalone_price/StandalonePriceDraftImpl.java index d9ddc71cf4..2d5748979c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/standalone_price/StandalonePriceDraftImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/standalone_price/StandalonePriceDraftImpl.java @@ -103,6 +103,7 @@ public String getSku() { /** *Sets the money value of this Price.
+ *To set the money value in high precision, use HighPrecisionMoneyDraft.
*/ public com.commercetools.api.models.common.Money getValue() { diff --git a/references.txt b/references.txt index af6c79bb42..909bf55453 100644 --- a/references.txt +++ b/references.txt @@ -338,3 +338,4 @@ b747e1fa4f246b748a89bccbfd8a43f5b6f51175 7375cdc26481ba55e756479a87270432635bfcf7 df53588d26d7953dfdf44166866ca03045f0a70b 6b69c5425fe16564147deb9b1d6a9a1078dc5330 +99e7aa1c7e3ba67a59b6df3efbaf4e320611c549