diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index cbef29ff4fd..23969e55dca 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 e897caf229f..fa32568bd83 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 a1ef3c28730..91dc76873b2 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 be091be7ee5..d2cc4d52de9 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 diff --git a/changes.md b/changes.md index d58f6d2481f..53dc55e046b 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-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 59e5a4634db..a66a147a4d1 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 77280a2e9e5..8778f590f3e 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 e943ee5a0e9..40719452adc 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 d252683ad7c..cb518398508 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 a180240c9e8..40b6cc5c1ef 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 14f119c7bf6..ac2ca8b87b5 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 a6a0c7cad46..38c5fdd0223 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 39e02289e25..bba136aa799 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 955a9a5a3b3..2c0b610e291 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 30b49a9ec78..ab4bc33ba30 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 862a4aea6bb..974d0979176 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 8e7f6092915..d8eacaacb09 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 2ddb307b9ab..92106915cb3 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 feefe7f20a3..75a81a01f33 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 d9ddc71cf4f..2d5748979cb 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/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 1c4fb5243a3..de6a5e9f5b2 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 455c2fd58e7..5886b060d12 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 5bed5a35829..00000000000 --- 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 c4983c92d59..00000000000 --- 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 42603070f7a..00000000000 --- 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/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 33b17b80d2e..58d834874e2 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 7405df1d8d0..aabd6f20cca 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 3eabd9ce7be..08531de89ec 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/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 cf5d11b3bb7..00000000000 --- 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 3f33aed8223..909bf554534 100644 --- a/references.txt +++ b/references.txt @@ -336,3 +336,6 @@ b747e1fa4f246b748a89bccbfd8a43f5b6f51175 b747e1fa4f246b748a89bccbfd8a43f5b6f51175 505b3af56b4452b22dfb595f93e010b3e2fccc53 7375cdc26481ba55e756479a87270432635bfcf7 +df53588d26d7953dfdf44166866ca03045f0a70b +6b69c5425fe16564147deb9b1d6a9a1078dc5330 +99e7aa1c7e3ba67a59b6df3efbaf4e320611c549