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`
diff --git a/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/errors/ErrorObject.java b/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/errors/ErrorObject.java index 1c4fb5243a..de6a5e9f5b 100644 --- a/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/errors/ErrorObject.java +++ b/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/errors/ErrorObject.java @@ -48,7 +48,6 @@ @JsonSubTypes.Type(value = com.commercetools.importapi.models.errors.InvalidStateTransitionErrorImpl.class, name = InvalidStateTransitionError.INVALID_TRANSITION), @JsonSubTypes.Type(value = com.commercetools.importapi.models.errors.InvalidTokenErrorImpl.class, name = InvalidTokenError.INVALID_TOKEN), @JsonSubTypes.Type(value = com.commercetools.importapi.models.errors.NewMasterVariantAdditionNotAllowedErrorImpl.class, name = NewMasterVariantAdditionNotAllowedError.NEW_MASTER_VARIANT_ADDITION_NOT_ALLOWED), - @JsonSubTypes.Type(value = com.commercetools.importapi.models.errors.ReferencedResourceNotFoundImpl.class, name = ReferencedResourceNotFound.REFERENCED_RESOURCE_NOT_FOUND), @JsonSubTypes.Type(value = com.commercetools.importapi.models.errors.RequiredFieldErrorImpl.class, name = RequiredFieldError.REQUIRED_FIELD), @JsonSubTypes.Type(value = com.commercetools.importapi.models.errors.ResourceCreationErrorImpl.class, name = ResourceCreationError.RESOURCE_CREATION), @JsonSubTypes.Type(value = com.commercetools.importapi.models.errors.ResourceDeletionErrorImpl.class, name = ResourceDeletionError.RESOURCE_DELETION), @@ -168,10 +167,6 @@ public static ErrorObject deepCopy(@Nullable final ErrorObject template) { return com.commercetools.importapi.models.errors.NewMasterVariantAdditionNotAllowedError.deepCopy( (com.commercetools.importapi.models.errors.NewMasterVariantAdditionNotAllowedError) template); } - if (template instanceof com.commercetools.importapi.models.errors.ReferencedResourceNotFound) { - return com.commercetools.importapi.models.errors.ReferencedResourceNotFound - .deepCopy((com.commercetools.importapi.models.errors.ReferencedResourceNotFound) template); - } if (template instanceof com.commercetools.importapi.models.errors.RequiredFieldError) { return com.commercetools.importapi.models.errors.RequiredFieldError .deepCopy((com.commercetools.importapi.models.errors.RequiredFieldError) template); @@ -349,14 +344,6 @@ public static com.commercetools.importapi.models.errors.NewMasterVariantAddition return com.commercetools.importapi.models.errors.NewMasterVariantAdditionNotAllowedErrorBuilder.of(); } - /** - * builder for referencedResourceNotFound subtype - * @return builder - */ - public static com.commercetools.importapi.models.errors.ReferencedResourceNotFoundBuilder referencedResourceNotFoundBuilder() { - return com.commercetools.importapi.models.errors.ReferencedResourceNotFoundBuilder.of(); - } - /** * builder for requiredField subtype * @return builder diff --git a/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/errors/ErrorObjectBuilder.java b/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/errors/ErrorObjectBuilder.java index 455c2fd58e..5886b060d1 100644 --- a/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/errors/ErrorObjectBuilder.java +++ b/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/errors/ErrorObjectBuilder.java @@ -87,10 +87,6 @@ public com.commercetools.importapi.models.errors.NewMasterVariantAdditionNotAllo return com.commercetools.importapi.models.errors.NewMasterVariantAdditionNotAllowedErrorBuilder.of(); } - public com.commercetools.importapi.models.errors.ReferencedResourceNotFoundBuilder referencedResourceNotFoundBuilder() { - return com.commercetools.importapi.models.errors.ReferencedResourceNotFoundBuilder.of(); - } - public com.commercetools.importapi.models.errors.RequiredFieldErrorBuilder requiredFieldBuilder() { return com.commercetools.importapi.models.errors.RequiredFieldErrorBuilder.of(); } diff --git a/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/errors/ReferencedResourceNotFound.java b/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/errors/ReferencedResourceNotFound.java deleted file mode 100644 index 5bed5a3582..0000000000 --- a/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/errors/ReferencedResourceNotFound.java +++ /dev/null @@ -1,188 +0,0 @@ - -package com.commercetools.importapi.models.errors; - -import java.time.*; -import java.util.*; -import java.util.function.Function; - -import javax.annotation.Nullable; - -import com.commercetools.importapi.models.common.ReferenceType; -import com.fasterxml.jackson.annotation.*; -import com.fasterxml.jackson.databind.annotation.*; - -import io.vrap.rmf.base.client.utils.Generated; - -import jakarta.validation.constraints.NotNull; - -/** - *

Returned when a resource referenced by a Reference or a ResourceIdentifier could not be found.

- * - *
- * Example to create an instance using the builder pattern - *
- *

- *     ReferencedResourceNotFound referencedResourceNotFound = ReferencedResourceNotFound.builder()
- *             .message("{message}")
- *             .typeId(ReferenceType.CART)
- *             .build()
- * 
- *
- */ -@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") -@JsonDeserialize(as = ReferencedResourceNotFoundImpl.class) -public interface ReferencedResourceNotFound extends ErrorObject { - - /** - * discriminator value for ReferencedResourceNotFound - */ - String REFERENCED_RESOURCE_NOT_FOUND = "ReferencedResourceNotFound"; - - /** - * - * @return code - */ - @NotNull - @JsonProperty("code") - public String getCode(); - - /** - *

"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)."

- * @return message - */ - @NotNull - @JsonProperty("message") - public String getMessage(); - - /** - *

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)."

- * @param message value to be set - */ - - public void setMessage(final String message); - - /** - *

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 mapped type - * @param helper function to map the object - * @return mapped value - */ - default T withReferencedResourceNotFound(Function helper) { - return helper.apply(this); - } - - /** - * gives a TypeReference for usage with Jackson DataBind - * @return TypeReference - */ - public static com.fasterxml.jackson.core.type.TypeReference typeReference() { - return new com.fasterxml.jackson.core.type.TypeReference() { - @Override - public String toString() { - return "TypeReference"; - } - }; - } -} diff --git a/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/errors/ReferencedResourceNotFoundBuilder.java b/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/errors/ReferencedResourceNotFoundBuilder.java deleted file mode 100644 index c4983c92d5..0000000000 --- a/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/errors/ReferencedResourceNotFoundBuilder.java +++ /dev/null @@ -1,160 +0,0 @@ - -package com.commercetools.importapi.models.errors; - -import java.util.*; - -import javax.annotation.Nullable; - -import io.vrap.rmf.base.client.Builder; -import io.vrap.rmf.base.client.utils.Generated; - -/** - * ReferencedResourceNotFoundBuilder - *
- * Example to create an instance using the builder pattern - *
- *

- *     ReferencedResourceNotFound referencedResourceNotFound = ReferencedResourceNotFound.builder()
- *             .message("{message}")
- *             .typeId(ReferenceType.CART)
- *             .build()
- * 
- *
- */ -@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") -public class ReferencedResourceNotFoundBuilder implements Builder { - - private String message; - - private com.commercetools.importapi.models.common.ReferenceType typeId; - - @Nullable - private String id; - - @Nullable - private String key; - - /** - *

"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)."

- * @param message value to be set - * @return Builder - */ - - public ReferencedResourceNotFoundBuilder message(final String message) { - this.message = message; - return this; - } - - /** - *

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)."

- * @return message - */ - - public String getMessage() { - return this.message; - } - - /** - *

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)."

- */ - - public String getMessage() { - return this.message; - } - - /** - *

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 Schulze Date: Mon, 9 Dec 2024 12:44:20 +0100 Subject: [PATCH 2/4] chore: fix some workflow issues --- .github/workflows/benchmark.yml | 2 +- .github/workflows/ci.yml | 6 ++++-- .github/workflows/docs.yml | 4 +++- .github/workflows/release.yml | 12 +++++++++--- 4 files changed, 17 insertions(+), 7 deletions(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index cbef29ff4f..23969e55dc 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -4,7 +4,7 @@ on: name: Benchmark # Declare default permissions as read only. -permissions: read-all +permissions: { } jobs: benchmark: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e897caf229..fa32568bd8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,7 +9,7 @@ on: name: CI # Declare default permissions as read only. -permissions: read-all +permissions: {} concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -71,7 +71,9 @@ jobs: - name: "Run if style changes have been detected" if: steps.commit_style_fix.outputs.changes_detected == 'true' - run: echo "${{steps.commit_style_fix.outputs.commit_hash}}" >> .git-blame-ignore-revs + run: echo "$HASH" >> .git-blame-ignore-revs + env: + HASH: ${{steps.commit_style_fix.outputs.commit_hash}} - uses: stefanzweifel/git-auto-commit-action@8621497c8c39c72f3e2a999a26b4ca1b5058a842 # v5.0.1 id: commit_rev_ignore diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index a1ef3c2873..91dc76873b 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -59,8 +59,10 @@ jobs: - name: Setup Graphviz uses: ts-graphviz/setup-graphviz@b1de5da23ed0a6d14e0aeee8ed52fdd87af2363c # v2.0.2 - - run: ./gradlew -Pversion=${{ github.event.inputs.version }} alljavadoc + - run: ./gradlew -Pversion=$VERSION alljavadoc working-directory: sdk + env: + VERSION: ${{ github.event.inputs.version }} - run: rsync -r sdk/build/docs/javadoc/ doc/javadoc diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index be091be7ee..d2cc4d52de 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -36,8 +36,9 @@ jobs: SIGNING_KEY: ${{ secrets.SIGNING_KEY }} PASSPHRASE: ${{ secrets.PASSPHRASE }} - - run: ./gradlew -Pversion=${{ github.ref_name }} clean test javadoc publishToSonatype closeAndReleaseSonatypeStagingRepository + - run: ./gradlew -Pversion=$REF_NAME clean test javadoc publishToSonatype closeAndReleaseSonatypeStagingRepository env: + REF_NAME: ${{ github.ref_name }} CTP_OSS_USER: ${{ secrets.OSS_USER }} CTP_OSS_SECRET: ${{ secrets.OSS_SECRET }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -76,7 +77,9 @@ jobs: - uses: gradle/wrapper-validation-action@216d1ad2b3710bf005dc39237337b9673fd8fcd5 # v3.3.2 - - run: ./gradlew -Pversion=${{ github.ref_name }} writeVersionToExamples writeVersionToReadme setVersion nextMinorVersion snapshotVersion + - run: ./gradlew -Pversion=$REF_NAME writeVersionToExamples writeVersionToReadme setVersion nextMinorVersion snapshotVersion + env: + REF_NAME: ${{ github.ref_name }} - name: "Switch SDK to after release branch" run: | @@ -150,8 +153,11 @@ jobs: - name: Setup Graphviz uses: ts-graphviz/setup-graphviz@b1de5da23ed0a6d14e0aeee8ed52fdd87af2363c # v2.0.2 - - run: ./gradlew -Pversion=${{ github.ref_name }} alljavadoc + - run: ./gradlew -Pversion=$REF_NAME alljavadoc working-directory: sdk + env: + REF_NAME: ${{ github.ref_name }} + - run: rsync -r sdk/build/docs/javadoc/ doc/javadoc From fb76f568e06f870314d0c052e90f966aa0e82c35 Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Tue, 10 Dec 2024 05:44:34 +0000 Subject: [PATCH 3/4] build(codegen): updating SDK --- .../StandalonePriceImport.java | 24 +++++------ .../StandalonePriceImportBuilder.java | 40 +++++++++---------- .../StandalonePriceImportImpl.java | 12 +++--- references.txt | 1 + 4 files changed, 39 insertions(+), 38 deletions(-) diff --git a/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/standalone_prices/StandalonePriceImport.java b/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/standalone_prices/StandalonePriceImport.java index 33b17b80d2..58d834874e 100644 --- a/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/standalone_prices/StandalonePriceImport.java +++ b/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/standalone_prices/StandalonePriceImport.java @@ -69,8 +69,8 @@ public interface StandalonePriceImport extends ImportResource { public 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 */ @@ -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.DraftSets the money value for the discounted price.

+ *

To 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.DraftSets the money value for the discounted 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/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 BuilderSets 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 */ @@ -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.DraftMoney 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.

* @return value */ @@ -61,7 +61,7 @@ public interface PriceTierDraft extends io.vrap.rmf.base.client.DraftMoney 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.

* @param value value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/PriceTierDraftBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/PriceTierDraftBuilder.java index 39e02289e2..bba136aa79 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/PriceTierDraftBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/PriceTierDraftBuilder.java @@ -40,7 +40,7 @@ public PriceTierDraftBuilder minimumQuantity(final Long minimumQuantity) { } /** - *

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.

* @param builder function to build the value value * @return Builder @@ -53,7 +53,7 @@ public PriceTierDraftBuilder value( } /** - *

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.

* @param builder function to build the value value * @return Builder @@ -66,7 +66,7 @@ public PriceTierDraftBuilder withValue( } /** - *

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.

* @param value value to be set * @return Builder @@ -88,7 +88,7 @@ public Long getMinimumQuantity() { } /** - *

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.

* @return value */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/PriceTierDraftImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/PriceTierDraftImpl.java index 955a9a5a3b..2c0b610e29 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/PriceTierDraftImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/PriceTierDraftImpl.java @@ -52,7 +52,7 @@ public Long getMinimumQuantity() { } /** - *

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.

*/ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/standalone_price/StandalonePriceChangeValueAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/standalone_price/StandalonePriceChangeValueAction.java index 30b49a9ec7..ab4bc33ba3 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/standalone_price/StandalonePriceChangeValueAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/standalone_price/StandalonePriceChangeValueAction.java @@ -40,6 +40,7 @@ public interface StandalonePriceChangeValueAction extends StandalonePriceUpdateA /** *

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 BuilderNew 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 */ @@ -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