diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs index 066cfd71cda..15c3c507357 100644 --- a/.git-blame-ignore-revs +++ b/.git-blame-ignore-revs @@ -4,3 +4,4 @@ a8ec45c8ea4ba559247b654d01b0d35b21a68865 d0129c1095216d5c830900c8a6223ef5d4274de1 4bc5c823b8ebf5a00491c7e63e1ea49d29bf5ee7 352051999507bd78542e177d67ce1548a0752691 +bbe9f971763ca1b27687a6a51067a385a0d23b04 diff --git a/CHANGELOG.md b/CHANGELOG.md index fa688f1e5f2..8fe7b2c99a1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,19 @@ +# 17.18.0 (2024-11-20) + +## What's Changed +* Update changelog by @ct-sdks in https://github.com/commercetools/commercetools-sdk-java-v2/pull/750 +* Update generated SDKs by @ct-sdks in https://github.com/commercetools/commercetools-sdk-java-v2/pull/751 +* Update generated SDKs by @ct-sdks in https://github.com/commercetools/commercetools-sdk-java-v2/pull/752 +* Update generated SDKs by @ct-sdks in https://github.com/commercetools/commercetools-sdk-java-v2/pull/753 +* Update generated SDKs by @ct-sdks in https://github.com/commercetools/commercetools-sdk-java-v2/pull/754 +* Update generated SDKs by @ct-sdks in https://github.com/commercetools/commercetools-sdk-java-v2/pull/756 +* Update generated SDKs by @ct-sdks in https://github.com/commercetools/commercetools-sdk-java-v2/pull/759 +* SUPPORT-28804 add custom deserializer for attrs in import api by @lojzatran in https://github.com/commercetools/commercetools-sdk-java-v2/pull/748 + + +**Full Changelog**: https://github.com/commercetools/commercetools-sdk-java-v2/compare/17.17.0...17.18.0 + # 17.17.0 (2024-11-07) ## What's Changed diff --git a/README.md b/README.md index 8cd418aff24..073556fd123 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ The latest stable SDK release can be retrieved from [Maven Central](https://sear ```gradle ext { versions = [ - commercetools: "17.17.0" + commercetools: "17.18.0" ] } @@ -42,7 +42,7 @@ dependencies { ```maven - 17.17.0 + 17.18.0 diff --git a/changes.md b/changes.md index 048f1ace496..d58f6d2481f 100644 --- a/changes.md +++ b/changes.md @@ -3,17 +3,7 @@
Changed Property(s) -- :warning: changed property `line` of type `GraphQLErrorLocation` from type `integer` to `number` -- :warning: changed property `column` of type `GraphQLErrorLocation` from type `integer` to `number` - :warning: changed property `totalPrice` of type `StagedOrder` from type `TypedMoney` to `CentPrecisionMoney` - :warning: changed property `totalPrice` of type `Order` from type `TypedMoney` to `CentPrecisionMoney`
- -
-Added QueryParameter(s) - -- added query parameter `where` to method `get /{projectKey}/product-selections/key={key}/products` -- added query parameter `where` to method `get /{projectKey}/product-selections/{ID}/products` -
- diff --git a/commercetools/commercetools-sdk-java-api/src/integrationTest/java/cleanup/DeleteEverythingIntegrationTest.java b/commercetools/commercetools-sdk-java-api/src/integrationTest/java/cleanup/DeleteEverythingIntegrationTest.java index 59304d38bce..e75673506dc 100644 --- a/commercetools/commercetools-sdk-java-api/src/integrationTest/java/cleanup/DeleteEverythingIntegrationTest.java +++ b/commercetools/commercetools-sdk-java-api/src/integrationTest/java/cleanup/DeleteEverythingIntegrationTest.java @@ -82,7 +82,7 @@ public void execute() { } } - private , TResult extends ResourcePagedQueryResponse, TElement extends DomainResource> void deleteAllResources( + private static , TResult extends ResourcePagedQueryResponse, TElement extends DomainResource> void deleteAllResources( SimplePagedQueryResourceRequest request, Consumer deleteFn) { QueryUtils.queryAll(request, list -> { @@ -90,7 +90,7 @@ public void execute() { }, 100).toCompletableFuture().join(); } - private void checkDepends(Runnable block) { + public static void checkDepends(Runnable block) { assertEventually(Duration.ofSeconds(60), Duration.ofMillis(1000), block); } @@ -212,7 +212,7 @@ private void deleteAllCategories() { } while (response.getResults().size() != 0); } - private void deleteAllCartDiscounts() { + public static void deleteAllCartDiscounts() { checkDepends(() -> Assertions.assertThat( CommercetoolsTestUtils.getProjectApiRoot().discountCodes().get().executeBlocking().getBody().getCount()) .isZero()); diff --git a/commercetools/commercetools-sdk-java-api/src/integrationTest/java/commercetools/cart_discount/CartDiscountIntegrationTests.java b/commercetools/commercetools-sdk-java-api/src/integrationTest/java/commercetools/cart_discount/CartDiscountIntegrationTests.java index b161c1f5b0f..70aadef3ef4 100644 --- a/commercetools/commercetools-sdk-java-api/src/integrationTest/java/commercetools/cart_discount/CartDiscountIntegrationTests.java +++ b/commercetools/commercetools-sdk-java-api/src/integrationTest/java/commercetools/cart_discount/CartDiscountIntegrationTests.java @@ -1,6 +1,7 @@ package commercetools.cart_discount; +import static cleanup.DeleteEverythingIntegrationTest.deleteAllCartDiscounts; import static commercetools.cart_discount.CartDiscountFixtures.*; import static commercetools.type.TypeFixtures.getFieldName; @@ -16,10 +17,18 @@ import commercetools.utils.CommercetoolsTestUtils; import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.AfterAll; +import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; public class CartDiscountIntegrationTests { + @BeforeAll + @AfterAll + public static void deleteCartDiscounts() { + deleteAllCartDiscounts(); + } + @Test public void ref() { Optional optional = ReferenceTypeId.findEnumViaJsonName("product-type"); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/AnonymousIdAlreadyInUseErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/AnonymousIdAlreadyInUseErrorImpl.java index 53c0ea2d2b7..e1f12818189 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/AnonymousIdAlreadyInUseErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/AnonymousIdAlreadyInUseErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -34,7 +35,7 @@ public class AnonymousIdAlreadyInUseErrorImpl implements AnonymousIdAlreadyInUse */ @JsonCreator AnonymousIdAlreadyInUseErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values) { + @JsonAnySetter @JsonProperty("values") final Map values) { this.message = message; this.values = values; this.code = ANONYMOUS_ID_ALREADY_IN_USE; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/AssociateMissingPermissionErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/AssociateMissingPermissionErrorImpl.java index 45071ccb124..c7f7f8e5f57 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/AssociateMissingPermissionErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/AssociateMissingPermissionErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -41,7 +42,7 @@ public class AssociateMissingPermissionErrorImpl implements AssociateMissingPerm */ @JsonCreator AssociateMissingPermissionErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values, + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("associate") final com.commercetools.api.models.customer.CustomerResourceIdentifier associate, @JsonProperty("businessUnit") final com.commercetools.api.models.business_unit.BusinessUnitResourceIdentifier businessUnit, @JsonProperty("associateOnBehalf") final com.commercetools.api.models.customer.CustomerResourceIdentifier associateOnBehalf, diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/AttributeDefinitionAlreadyExistsErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/AttributeDefinitionAlreadyExistsErrorImpl.java index 168cc5e3c5b..d33f281dc12 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/AttributeDefinitionAlreadyExistsErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/AttributeDefinitionAlreadyExistsErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -40,7 +41,7 @@ public class AttributeDefinitionAlreadyExistsErrorImpl implements AttributeDefin */ @JsonCreator AttributeDefinitionAlreadyExistsErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values, + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("conflictingProductTypeId") final String conflictingProductTypeId, @JsonProperty("conflictingProductTypeName") final String conflictingProductTypeName, @JsonProperty("conflictingAttributeName") final String conflictingAttributeName) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/AttributeDefinitionTypeConflictErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/AttributeDefinitionTypeConflictErrorImpl.java index ece9f75a662..0ee33fe7fbf 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/AttributeDefinitionTypeConflictErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/AttributeDefinitionTypeConflictErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -40,7 +41,7 @@ public class AttributeDefinitionTypeConflictErrorImpl implements AttributeDefini */ @JsonCreator AttributeDefinitionTypeConflictErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values, + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("conflictingProductTypeId") final String conflictingProductTypeId, @JsonProperty("conflictingProductTypeName") final String conflictingProductTypeName, @JsonProperty("conflictingAttributeName") final String conflictingAttributeName) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/AttributeNameDoesNotExistErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/AttributeNameDoesNotExistErrorImpl.java index 31f5e9fa191..f34887e8544 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/AttributeNameDoesNotExistErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/AttributeNameDoesNotExistErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -36,7 +37,7 @@ public class AttributeNameDoesNotExistErrorImpl implements AttributeNameDoesNotE */ @JsonCreator AttributeNameDoesNotExistErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values, + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("invalidAttributeName") final String invalidAttributeName) { this.message = message; this.values = values; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/BadGatewayErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/BadGatewayErrorImpl.java index d272b432d6d..1daef27dbd5 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/BadGatewayErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/BadGatewayErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -34,7 +35,7 @@ public class BadGatewayErrorImpl implements BadGatewayError, ModelBase { */ @JsonCreator BadGatewayErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values) { + @JsonAnySetter @JsonProperty("values") final Map values) { this.message = message; this.values = values; this.code = BAD_GATEWAY; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ConcurrentModificationErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ConcurrentModificationErrorImpl.java index ec3eefdbe32..2ae2b165cf8 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ConcurrentModificationErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ConcurrentModificationErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -35,7 +36,7 @@ public class ConcurrentModificationErrorImpl implements ConcurrentModificationEr */ @JsonCreator ConcurrentModificationErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values, + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("currentVersion") final Long currentVersion) { this.message = message; this.values = values; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ContentTooLargeErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ContentTooLargeErrorImpl.java index a003fbadf34..a5a5cffc0ab 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ContentTooLargeErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ContentTooLargeErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -33,7 +34,7 @@ public class ContentTooLargeErrorImpl implements ContentTooLargeError, ModelBase */ @JsonCreator ContentTooLargeErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values) { + @JsonAnySetter @JsonProperty("values") final Map values) { this.message = message; this.values = values; this.code = CONTENT_TOO_LARGE; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/CountryNotConfiguredInStoreErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/CountryNotConfiguredInStoreErrorImpl.java index b7383694e73..a0f19748728 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/CountryNotConfiguredInStoreErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/CountryNotConfiguredInStoreErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -46,7 +47,7 @@ public class CountryNotConfiguredInStoreErrorImpl implements CountryNotConfigure */ @JsonCreator CountryNotConfiguredInStoreErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values, + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("storeCountries") final java.util.List storeCountries, @JsonProperty("country") final String country) { this.message = message; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/DiscountCodeNonApplicableErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/DiscountCodeNonApplicableErrorImpl.java index 1480cc25cc4..482afae02da 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/DiscountCodeNonApplicableErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/DiscountCodeNonApplicableErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -55,7 +56,7 @@ public class DiscountCodeNonApplicableErrorImpl implements DiscountCodeNonApplic */ @JsonCreator DiscountCodeNonApplicableErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values, + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("discountCode") final String discountCode, @JsonProperty("reason") final String reason, @JsonProperty("discountCodeId") final String discountCodeId, @JsonProperty("validFrom") final java.time.ZonedDateTime validFrom, diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/DuplicateAttributeValueErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/DuplicateAttributeValueErrorImpl.java index b3aa5daf1a6..81cb6154b18 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/DuplicateAttributeValueErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/DuplicateAttributeValueErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -35,7 +36,7 @@ public class DuplicateAttributeValueErrorImpl implements DuplicateAttributeValue */ @JsonCreator DuplicateAttributeValueErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values, + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("attribute") final com.commercetools.api.models.product.Attribute attribute) { this.message = message; this.values = values; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/DuplicateAttributeValuesErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/DuplicateAttributeValuesErrorImpl.java index 944fb746ec4..e0521de22d9 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/DuplicateAttributeValuesErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/DuplicateAttributeValuesErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -35,7 +36,7 @@ public class DuplicateAttributeValuesErrorImpl implements DuplicateAttributeValu */ @JsonCreator DuplicateAttributeValuesErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values, + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("attributes") final java.util.List attributes) { this.message = message; this.values = values; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/DuplicateEnumValuesErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/DuplicateEnumValuesErrorImpl.java index f62254135c4..bc0914e414f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/DuplicateEnumValuesErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/DuplicateEnumValuesErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -35,7 +36,7 @@ public class DuplicateEnumValuesErrorImpl implements DuplicateEnumValuesError, M */ @JsonCreator DuplicateEnumValuesErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values, + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("duplicates") final java.util.List duplicates) { this.message = message; this.values = values; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/DuplicateFieldErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/DuplicateFieldErrorImpl.java index 58ca45871ad..176e155ab2b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/DuplicateFieldErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/DuplicateFieldErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -37,7 +38,7 @@ public class DuplicateFieldErrorImpl implements DuplicateFieldError, ModelBase { */ @JsonCreator DuplicateFieldErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values, + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("field") final String field, @JsonProperty("duplicateValue") final java.lang.Object duplicateValue) { this.message = message; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/DuplicateFieldWithConflictingResourceErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/DuplicateFieldWithConflictingResourceErrorImpl.java index e710e9e6fb6..db5e09031fe 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/DuplicateFieldWithConflictingResourceErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/DuplicateFieldWithConflictingResourceErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -40,7 +41,7 @@ public class DuplicateFieldWithConflictingResourceErrorImpl */ @JsonCreator DuplicateFieldWithConflictingResourceErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values, + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("field") final String field, @JsonProperty("duplicateValue") final java.lang.Object duplicateValue, @JsonProperty("conflictingResource") final com.commercetools.api.models.common.Reference conflictingResource) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/DuplicatePriceKeyErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/DuplicatePriceKeyErrorImpl.java index 3962d4453fe..93a90a1ee43 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/DuplicatePriceKeyErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/DuplicatePriceKeyErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -36,7 +37,7 @@ public class DuplicatePriceKeyErrorImpl implements DuplicatePriceKeyError, Model */ @JsonCreator DuplicatePriceKeyErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values, + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("conflictingPrice") final com.commercetools.api.models.common.Price conflictingPrice) { this.message = message; this.values = values; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/DuplicatePriceScopeErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/DuplicatePriceScopeErrorImpl.java index 9ab65866aa7..3ca7d701fa2 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/DuplicatePriceScopeErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/DuplicatePriceScopeErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -36,7 +37,7 @@ public class DuplicatePriceScopeErrorImpl implements DuplicatePriceScopeError, M */ @JsonCreator DuplicatePriceScopeErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values, + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("conflictingPrice") final com.commercetools.api.models.common.Price conflictingPrice) { this.message = message; this.values = values; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/DuplicateStandalonePriceScopeErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/DuplicateStandalonePriceScopeErrorImpl.java index 98c61db8d4f..6f63fbc4c45 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/DuplicateStandalonePriceScopeErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/DuplicateStandalonePriceScopeErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -50,7 +51,7 @@ public class DuplicateStandalonePriceScopeErrorImpl implements DuplicateStandalo */ @JsonCreator DuplicateStandalonePriceScopeErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values, + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("conflictingStandalonePrice") final com.commercetools.api.models.standalone_price.StandalonePriceReference conflictingStandalonePrice, @JsonProperty("sku") final String sku, @JsonProperty("currency") final String currency, @JsonProperty("country") final String country, diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/DuplicateVariantValuesErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/DuplicateVariantValuesErrorImpl.java index e73174a9298..91a7b572e7b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/DuplicateVariantValuesErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/DuplicateVariantValuesErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -35,7 +36,7 @@ public class DuplicateVariantValuesErrorImpl implements DuplicateVariantValuesEr */ @JsonCreator DuplicateVariantValuesErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values, + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("variantValues") final com.commercetools.api.models.error.VariantValues variantValues) { this.message = message; this.values = values; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/EditPreviewFailedErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/EditPreviewFailedErrorImpl.java index 7a999e82c0c..73013ddc7f4 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/EditPreviewFailedErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/EditPreviewFailedErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -36,7 +37,7 @@ public class EditPreviewFailedErrorImpl implements EditPreviewFailedError, Model */ @JsonCreator EditPreviewFailedErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values, + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("result") final com.commercetools.api.models.order_edit.OrderEditPreviewFailure result) { this.message = message; this.values = values; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/EnumKeyAlreadyExistsErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/EnumKeyAlreadyExistsErrorImpl.java index d42074603d6..02ef30f94ee 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/EnumKeyAlreadyExistsErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/EnumKeyAlreadyExistsErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -37,7 +38,7 @@ public class EnumKeyAlreadyExistsErrorImpl implements EnumKeyAlreadyExistsError, */ @JsonCreator EnumKeyAlreadyExistsErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values, + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("conflictingEnumKey") final String conflictingEnumKey, @JsonProperty("conflictingAttributeName") final String conflictingAttributeName) { this.message = message; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/EnumKeyDoesNotExistErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/EnumKeyDoesNotExistErrorImpl.java index d435c39d588..d680760369d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/EnumKeyDoesNotExistErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/EnumKeyDoesNotExistErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -38,7 +39,7 @@ public class EnumKeyDoesNotExistErrorImpl implements EnumKeyDoesNotExistError, M */ @JsonCreator EnumKeyDoesNotExistErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values, + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("conflictingEnumKey") final String conflictingEnumKey, @JsonProperty("conflictingAttributeName") final String conflictingAttributeName) { this.message = message; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/EnumValueIsUsedErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/EnumValueIsUsedErrorImpl.java index 4d47f800bc5..d7fa5d3e6ef 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/EnumValueIsUsedErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/EnumValueIsUsedErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -34,7 +35,7 @@ public class EnumValueIsUsedErrorImpl implements EnumValueIsUsedError, ModelBase */ @JsonCreator EnumValueIsUsedErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values) { + @JsonAnySetter @JsonProperty("values") final Map values) { this.message = message; this.values = values; this.code = ENUM_VALUE_IS_USED; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/EnumValuesMustMatchErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/EnumValuesMustMatchErrorImpl.java index 128b3ad3a39..e40d37ad976 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/EnumValuesMustMatchErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/EnumValuesMustMatchErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -34,7 +35,7 @@ public class EnumValuesMustMatchErrorImpl implements EnumValuesMustMatchError, M */ @JsonCreator EnumValuesMustMatchErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values) { + @JsonAnySetter @JsonProperty("values") final Map values) { this.message = message; this.values = values; this.code = ENUM_VALUES_MUST_MATCH; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ExtensionBadResponseErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ExtensionBadResponseErrorImpl.java index 2ae269f2f35..ec6d87802b7 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ExtensionBadResponseErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ExtensionBadResponseErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -47,7 +48,7 @@ public class ExtensionBadResponseErrorImpl implements ExtensionBadResponseError, */ @JsonCreator ExtensionBadResponseErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values, + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("localizedMessage") final com.commercetools.api.models.common.LocalizedString localizedMessage, @JsonProperty("extensionExtraInfo") final java.lang.Object extensionExtraInfo, @JsonProperty("extensionErrors") final java.util.List extensionErrors, diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ExtensionErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ExtensionErrorImpl.java index bbe9d3d0b5b..2ccdbb28f25 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ExtensionErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ExtensionErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -39,7 +40,7 @@ public class ExtensionErrorImpl implements ExtensionError, ModelBase { ExtensionErrorImpl(@JsonProperty("code") final String code, @JsonProperty("message") final String message, @JsonProperty("extensionId") final String extensionId, @JsonProperty("extensionKey") final String extensionKey, - @JsonProperty("values") final Map values) { + @JsonAnySetter @JsonProperty("values") final Map values) { this.code = code; this.message = message; this.extensionId = extensionId; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ExtensionNoResponseErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ExtensionNoResponseErrorImpl.java index 0847706be5f..f28933d38a0 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ExtensionNoResponseErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ExtensionNoResponseErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -37,7 +38,7 @@ public class ExtensionNoResponseErrorImpl implements ExtensionNoResponseError, M */ @JsonCreator ExtensionNoResponseErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values, + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("extensionId") final String extensionId, @JsonProperty("extensionKey") final String extensionKey) { this.message = message; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ExtensionPredicateEvaluationFailedErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ExtensionPredicateEvaluationFailedErrorImpl.java index 080ddbbdab9..a344668ccb6 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ExtensionPredicateEvaluationFailedErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ExtensionPredicateEvaluationFailedErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -35,7 +36,7 @@ public class ExtensionPredicateEvaluationFailedErrorImpl implements ExtensionPre */ @JsonCreator ExtensionPredicateEvaluationFailedErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values, + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("errorByExtension") final com.commercetools.api.models.error.ErrorByExtension errorByExtension) { this.message = message; this.values = values; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ExtensionUpdateActionsFailedErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ExtensionUpdateActionsFailedErrorImpl.java index 51973b9b2be..e53938099da 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ExtensionUpdateActionsFailedErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ExtensionUpdateActionsFailedErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -39,7 +40,7 @@ public class ExtensionUpdateActionsFailedErrorImpl implements ExtensionUpdateAct */ @JsonCreator ExtensionUpdateActionsFailedErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values, + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("localizedMessage") final com.commercetools.api.models.common.LocalizedString localizedMessage, @JsonProperty("extensionExtraInfo") final java.lang.Object extensionExtraInfo, @JsonProperty("extensionErrors") final java.util.List extensionErrors) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ExternalOAuthFailedErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ExternalOAuthFailedErrorImpl.java index 91e57cc5475..be9655098ee 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ExternalOAuthFailedErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ExternalOAuthFailedErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -33,7 +34,7 @@ public class ExternalOAuthFailedErrorImpl implements ExternalOAuthFailedError, M */ @JsonCreator ExternalOAuthFailedErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values) { + @JsonAnySetter @JsonProperty("values") final Map values) { this.message = message; this.values = values; this.code = EXTERNAL_O_AUTH_FAILED; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/FeatureRemovedErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/FeatureRemovedErrorImpl.java index 025e44c640f..078b9fd50f1 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/FeatureRemovedErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/FeatureRemovedErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -33,7 +34,7 @@ public class FeatureRemovedErrorImpl implements FeatureRemovedError, ModelBase { */ @JsonCreator FeatureRemovedErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values) { + @JsonAnySetter @JsonProperty("values") final Map values) { this.message = message; this.values = values; this.code = FEATURE_REMOVED; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GeneralErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GeneralErrorImpl.java index f67eef359a9..48a6996881c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GeneralErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GeneralErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -34,7 +35,7 @@ public class GeneralErrorImpl implements GeneralError, ModelBase { */ @JsonCreator GeneralErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values) { + @JsonAnySetter @JsonProperty("values") final Map values) { this.message = message; this.values = values; this.code = GENERAL; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLAnonymousIdAlreadyInUseErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLAnonymousIdAlreadyInUseErrorImpl.java index 64b3391b599..bff251c1370 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLAnonymousIdAlreadyInUseErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLAnonymousIdAlreadyInUseErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -31,7 +32,8 @@ public class GraphQLAnonymousIdAlreadyInUseErrorImpl implements GraphQLAnonymous * create instance with all properties */ @JsonCreator - GraphQLAnonymousIdAlreadyInUseErrorImpl(@JsonProperty("values") final Map values) { + GraphQLAnonymousIdAlreadyInUseErrorImpl( + @JsonAnySetter @JsonProperty("values") final Map values) { this.values = values; this.code = ANONYMOUS_ID_ALREADY_IN_USE; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLAssociateMissingPermissionErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLAssociateMissingPermissionErrorImpl.java index c2b5e2f2cc6..ddce18d8a10 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLAssociateMissingPermissionErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLAssociateMissingPermissionErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -38,7 +39,8 @@ public class GraphQLAssociateMissingPermissionErrorImpl implements GraphQLAssoci * create instance with all properties */ @JsonCreator - GraphQLAssociateMissingPermissionErrorImpl(@JsonProperty("values") final Map values, + GraphQLAssociateMissingPermissionErrorImpl( + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("associate") final com.commercetools.api.models.customer.CustomerResourceIdentifier associate, @JsonProperty("businessUnit") final com.commercetools.api.models.business_unit.BusinessUnitResourceIdentifier businessUnit, @JsonProperty("associateOnBehalf") final com.commercetools.api.models.customer.CustomerResourceIdentifier associateOnBehalf, diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLAttributeDefinitionAlreadyExistsErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLAttributeDefinitionAlreadyExistsErrorImpl.java index 3f92f647bdc..170587d84e0 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLAttributeDefinitionAlreadyExistsErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLAttributeDefinitionAlreadyExistsErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -38,7 +39,8 @@ public class GraphQLAttributeDefinitionAlreadyExistsErrorImpl * create instance with all properties */ @JsonCreator - GraphQLAttributeDefinitionAlreadyExistsErrorImpl(@JsonProperty("values") final Map values, + GraphQLAttributeDefinitionAlreadyExistsErrorImpl( + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("conflictingProductTypeId") final String conflictingProductTypeId, @JsonProperty("conflictingProductTypeName") final String conflictingProductTypeName, @JsonProperty("conflictingAttributeName") final String conflictingAttributeName) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLAttributeDefinitionTypeConflictErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLAttributeDefinitionTypeConflictErrorImpl.java index 897632d8b50..98ac960b4c4 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLAttributeDefinitionTypeConflictErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLAttributeDefinitionTypeConflictErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -38,7 +39,8 @@ public class GraphQLAttributeDefinitionTypeConflictErrorImpl * create instance with all properties */ @JsonCreator - GraphQLAttributeDefinitionTypeConflictErrorImpl(@JsonProperty("values") final Map values, + GraphQLAttributeDefinitionTypeConflictErrorImpl( + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("conflictingProductTypeId") final String conflictingProductTypeId, @JsonProperty("conflictingProductTypeName") final String conflictingProductTypeName, @JsonProperty("conflictingAttributeName") final String conflictingAttributeName) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLAttributeNameDoesNotExistErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLAttributeNameDoesNotExistErrorImpl.java index a92fcae9723..74048a54fdb 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLAttributeNameDoesNotExistErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLAttributeNameDoesNotExistErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -33,7 +34,8 @@ public class GraphQLAttributeNameDoesNotExistErrorImpl implements GraphQLAttribu * create instance with all properties */ @JsonCreator - GraphQLAttributeNameDoesNotExistErrorImpl(@JsonProperty("values") final Map values, + GraphQLAttributeNameDoesNotExistErrorImpl( + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("invalidAttributeName") final String invalidAttributeName) { this.values = values; this.invalidAttributeName = invalidAttributeName; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLBadGatewayErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLBadGatewayErrorImpl.java index 589fbb2974f..a3589108a83 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLBadGatewayErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLBadGatewayErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -31,7 +32,7 @@ public class GraphQLBadGatewayErrorImpl implements GraphQLBadGatewayError, Model * create instance with all properties */ @JsonCreator - GraphQLBadGatewayErrorImpl(@JsonProperty("values") final Map values) { + GraphQLBadGatewayErrorImpl(@JsonAnySetter @JsonProperty("values") final Map values) { this.values = values; this.code = BAD_GATEWAY; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLConcurrentModificationErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLConcurrentModificationErrorImpl.java index 99a23767e57..3f20cbbe213 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLConcurrentModificationErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLConcurrentModificationErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -32,7 +33,8 @@ public class GraphQLConcurrentModificationErrorImpl implements GraphQLConcurrent * create instance with all properties */ @JsonCreator - GraphQLConcurrentModificationErrorImpl(@JsonProperty("values") final Map values, + GraphQLConcurrentModificationErrorImpl( + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("currentVersion") final Long currentVersion) { this.values = values; this.currentVersion = currentVersion; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLContentTooLargeErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLContentTooLargeErrorImpl.java index 4c00f3d62a1..088ce5e5597 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLContentTooLargeErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLContentTooLargeErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -30,7 +31,7 @@ public class GraphQLContentTooLargeErrorImpl implements GraphQLContentTooLargeEr * create instance with all properties */ @JsonCreator - GraphQLContentTooLargeErrorImpl(@JsonProperty("values") final Map values) { + GraphQLContentTooLargeErrorImpl(@JsonAnySetter @JsonProperty("values") final Map values) { this.values = values; this.code = CONTENT_TOO_LARGE; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLCountryNotConfiguredInStoreErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLCountryNotConfiguredInStoreErrorImpl.java index b7876a33250..ec3e2f9e535 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLCountryNotConfiguredInStoreErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLCountryNotConfiguredInStoreErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -43,7 +44,8 @@ public class GraphQLCountryNotConfiguredInStoreErrorImpl implements GraphQLCount * create instance with all properties */ @JsonCreator - GraphQLCountryNotConfiguredInStoreErrorImpl(@JsonProperty("values") final Map values, + GraphQLCountryNotConfiguredInStoreErrorImpl( + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("storeCountries") final java.util.List storeCountries, @JsonProperty("country") final String country) { this.values = values; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLDiscountCodeNonApplicableErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLDiscountCodeNonApplicableErrorImpl.java index 826a9145ef8..d0a42552409 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLDiscountCodeNonApplicableErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLDiscountCodeNonApplicableErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -52,7 +53,8 @@ public class GraphQLDiscountCodeNonApplicableErrorImpl implements GraphQLDiscoun * create instance with all properties */ @JsonCreator - GraphQLDiscountCodeNonApplicableErrorImpl(@JsonProperty("values") final Map values, + GraphQLDiscountCodeNonApplicableErrorImpl( + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("discountCode") final String discountCode, @JsonProperty("reason") final String reason, @JsonProperty("discountCodeId") final String discountCodeId, @JsonProperty("validFrom") final java.time.ZonedDateTime validFrom, diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLDuplicateAttributeValueErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLDuplicateAttributeValueErrorImpl.java index d26d67c9699..7d27ec11a98 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLDuplicateAttributeValueErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLDuplicateAttributeValueErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -32,7 +33,8 @@ public class GraphQLDuplicateAttributeValueErrorImpl implements GraphQLDuplicate * create instance with all properties */ @JsonCreator - GraphQLDuplicateAttributeValueErrorImpl(@JsonProperty("values") final Map values, + GraphQLDuplicateAttributeValueErrorImpl( + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("attribute") final com.commercetools.api.models.product.Attribute attribute) { this.values = values; this.attribute = attribute; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLDuplicateAttributeValuesErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLDuplicateAttributeValuesErrorImpl.java index 8dfdf4f5e5d..1464813f4a8 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLDuplicateAttributeValuesErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLDuplicateAttributeValuesErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -32,7 +33,8 @@ public class GraphQLDuplicateAttributeValuesErrorImpl implements GraphQLDuplicat * create instance with all properties */ @JsonCreator - GraphQLDuplicateAttributeValuesErrorImpl(@JsonProperty("values") final Map values, + GraphQLDuplicateAttributeValuesErrorImpl( + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("attributes") final java.util.List attributes) { this.values = values; this.attributes = attributes; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLDuplicateEnumValuesErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLDuplicateEnumValuesErrorImpl.java index 742639747ee..ac5eb469e5f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLDuplicateEnumValuesErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLDuplicateEnumValuesErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -32,7 +33,8 @@ public class GraphQLDuplicateEnumValuesErrorImpl implements GraphQLDuplicateEnum * create instance with all properties */ @JsonCreator - GraphQLDuplicateEnumValuesErrorImpl(@JsonProperty("values") final Map values, + GraphQLDuplicateEnumValuesErrorImpl( + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("duplicates") final java.util.List duplicates) { this.values = values; this.duplicates = duplicates; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLDuplicateFieldErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLDuplicateFieldErrorImpl.java index 4412d0b1e89..8ba8038df7e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLDuplicateFieldErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLDuplicateFieldErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -34,7 +35,7 @@ public class GraphQLDuplicateFieldErrorImpl implements GraphQLDuplicateFieldErro * create instance with all properties */ @JsonCreator - GraphQLDuplicateFieldErrorImpl(@JsonProperty("values") final Map values, + GraphQLDuplicateFieldErrorImpl(@JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("field") final String field, @JsonProperty("duplicateValue") final java.lang.Object duplicateValue) { this.values = values; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLDuplicateFieldWithConflictingResourceErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLDuplicateFieldWithConflictingResourceErrorImpl.java index e55605fdc12..751add7ebfb 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLDuplicateFieldWithConflictingResourceErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLDuplicateFieldWithConflictingResourceErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -38,7 +39,7 @@ public class GraphQLDuplicateFieldWithConflictingResourceErrorImpl */ @JsonCreator GraphQLDuplicateFieldWithConflictingResourceErrorImpl( - @JsonProperty("values") final Map values, + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("field") final String field, @JsonProperty("duplicateValue") final java.lang.Object duplicateValue, @JsonProperty("conflictingResource") final com.commercetools.api.models.common.Reference conflictingResource) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLDuplicatePriceKeyErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLDuplicatePriceKeyErrorImpl.java index e951811e8f4..308f8535107 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLDuplicatePriceKeyErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLDuplicatePriceKeyErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -33,7 +34,7 @@ public class GraphQLDuplicatePriceKeyErrorImpl implements GraphQLDuplicatePriceK * create instance with all properties */ @JsonCreator - GraphQLDuplicatePriceKeyErrorImpl(@JsonProperty("values") final Map values, + GraphQLDuplicatePriceKeyErrorImpl(@JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("conflictingPrice") final com.commercetools.api.models.common.Price conflictingPrice) { this.values = values; this.conflictingPrice = conflictingPrice; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLDuplicatePriceScopeErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLDuplicatePriceScopeErrorImpl.java index 45ea327134f..c68eb19ca2b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLDuplicatePriceScopeErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLDuplicatePriceScopeErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -33,7 +34,8 @@ public class GraphQLDuplicatePriceScopeErrorImpl implements GraphQLDuplicatePric * create instance with all properties */ @JsonCreator - GraphQLDuplicatePriceScopeErrorImpl(@JsonProperty("values") final Map values, + GraphQLDuplicatePriceScopeErrorImpl( + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("conflictingPrice") final com.commercetools.api.models.common.Price conflictingPrice) { this.values = values; this.conflictingPrice = conflictingPrice; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLDuplicateStandalonePriceScopeErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLDuplicateStandalonePriceScopeErrorImpl.java index bac1d1371d2..fb01c7dcdfc 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLDuplicateStandalonePriceScopeErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLDuplicateStandalonePriceScopeErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -48,7 +49,8 @@ public class GraphQLDuplicateStandalonePriceScopeErrorImpl * create instance with all properties */ @JsonCreator - GraphQLDuplicateStandalonePriceScopeErrorImpl(@JsonProperty("values") final Map values, + GraphQLDuplicateStandalonePriceScopeErrorImpl( + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("conflictingStandalonePrice") final com.commercetools.api.models.standalone_price.StandalonePriceReference conflictingStandalonePrice, @JsonProperty("sku") final String sku, @JsonProperty("currency") final String currency, @JsonProperty("country") final String country, diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLDuplicateVariantValuesErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLDuplicateVariantValuesErrorImpl.java index 24c313b7d34..a7d5b038ba9 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLDuplicateVariantValuesErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLDuplicateVariantValuesErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -32,7 +33,8 @@ public class GraphQLDuplicateVariantValuesErrorImpl implements GraphQLDuplicateV * create instance with all properties */ @JsonCreator - GraphQLDuplicateVariantValuesErrorImpl(@JsonProperty("values") final Map values, + GraphQLDuplicateVariantValuesErrorImpl( + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("variantValues") final com.commercetools.api.models.error.VariantValues variantValues) { this.values = values; this.variantValues = variantValues; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLEditPreviewFailedErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLEditPreviewFailedErrorImpl.java index 5ceb25f2d44..866b66455e5 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLEditPreviewFailedErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLEditPreviewFailedErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -33,7 +34,7 @@ public class GraphQLEditPreviewFailedErrorImpl implements GraphQLEditPreviewFail * create instance with all properties */ @JsonCreator - GraphQLEditPreviewFailedErrorImpl(@JsonProperty("values") final Map values, + GraphQLEditPreviewFailedErrorImpl(@JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("result") final com.commercetools.api.models.order_edit.OrderEditPreviewFailure result) { this.values = values; this.result = result; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLEnumKeyAlreadyExistsErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLEnumKeyAlreadyExistsErrorImpl.java index a42568eb0b1..e00aebd6ac2 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLEnumKeyAlreadyExistsErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLEnumKeyAlreadyExistsErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -34,7 +35,8 @@ public class GraphQLEnumKeyAlreadyExistsErrorImpl implements GraphQLEnumKeyAlrea * create instance with all properties */ @JsonCreator - GraphQLEnumKeyAlreadyExistsErrorImpl(@JsonProperty("values") final Map values, + GraphQLEnumKeyAlreadyExistsErrorImpl( + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("conflictingEnumKey") final String conflictingEnumKey, @JsonProperty("conflictingAttributeName") final String conflictingAttributeName) { this.values = values; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLEnumKeyDoesNotExistErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLEnumKeyDoesNotExistErrorImpl.java index 3d92b8fea5d..a09e8a36324 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLEnumKeyDoesNotExistErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLEnumKeyDoesNotExistErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -35,7 +36,8 @@ public class GraphQLEnumKeyDoesNotExistErrorImpl implements GraphQLEnumKeyDoesNo * create instance with all properties */ @JsonCreator - GraphQLEnumKeyDoesNotExistErrorImpl(@JsonProperty("values") final Map values, + GraphQLEnumKeyDoesNotExistErrorImpl( + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("conflictingEnumKey") final String conflictingEnumKey, @JsonProperty("conflictingAttributeName") final String conflictingAttributeName) { this.values = values; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLEnumValueIsUsedErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLEnumValueIsUsedErrorImpl.java index c4e0f5518a1..96c1cd278f3 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLEnumValueIsUsedErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLEnumValueIsUsedErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -31,7 +32,7 @@ public class GraphQLEnumValueIsUsedErrorImpl implements GraphQLEnumValueIsUsedEr * create instance with all properties */ @JsonCreator - GraphQLEnumValueIsUsedErrorImpl(@JsonProperty("values") final Map values) { + GraphQLEnumValueIsUsedErrorImpl(@JsonAnySetter @JsonProperty("values") final Map values) { this.values = values; this.code = ENUM_VALUE_IS_USED; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLEnumValuesMustMatchErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLEnumValuesMustMatchErrorImpl.java index c9dd0ca8611..1dd0a8ae0d3 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLEnumValuesMustMatchErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLEnumValuesMustMatchErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -31,7 +32,8 @@ public class GraphQLEnumValuesMustMatchErrorImpl implements GraphQLEnumValuesMus * create instance with all properties */ @JsonCreator - GraphQLEnumValuesMustMatchErrorImpl(@JsonProperty("values") final Map values) { + GraphQLEnumValuesMustMatchErrorImpl( + @JsonAnySetter @JsonProperty("values") final Map values) { this.values = values; this.code = ENUM_VALUES_MUST_MATCH; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLErrorObjectImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLErrorObjectImpl.java index 3bce3bfb9dc..6ad3ed6eebf 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLErrorObjectImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLErrorObjectImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -31,7 +32,7 @@ public class GraphQLErrorObjectImpl implements GraphQLErrorObject, ModelBase { */ @JsonCreator GraphQLErrorObjectImpl(@JsonProperty("code") final String code, - @JsonProperty("values") final Map values) { + @JsonAnySetter @JsonProperty("values") final Map values) { this.code = code; this.values = values; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLExtensionBadResponseErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLExtensionBadResponseErrorImpl.java index 0d626b43399..7b92bb58835 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLExtensionBadResponseErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLExtensionBadResponseErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -44,7 +45,8 @@ public class GraphQLExtensionBadResponseErrorImpl implements GraphQLExtensionBad * create instance with all properties */ @JsonCreator - GraphQLExtensionBadResponseErrorImpl(@JsonProperty("values") final Map values, + GraphQLExtensionBadResponseErrorImpl( + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("localizedMessage") final com.commercetools.api.models.common.LocalizedString localizedMessage, @JsonProperty("extensionExtraInfo") final java.lang.Object extensionExtraInfo, @JsonProperty("extensionErrors") final java.util.List extensionErrors, diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLExtensionNoResponseErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLExtensionNoResponseErrorImpl.java index b8310e73853..8a30eab777e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLExtensionNoResponseErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLExtensionNoResponseErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -34,7 +35,8 @@ public class GraphQLExtensionNoResponseErrorImpl implements GraphQLExtensionNoRe * create instance with all properties */ @JsonCreator - GraphQLExtensionNoResponseErrorImpl(@JsonProperty("values") final Map values, + GraphQLExtensionNoResponseErrorImpl( + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("extensionId") final String extensionId, @JsonProperty("extensionKey") final String extensionKey) { this.values = values; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLExtensionPredicateEvaluationFailedErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLExtensionPredicateEvaluationFailedErrorImpl.java index 1a1921017b5..109220cc41a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLExtensionPredicateEvaluationFailedErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLExtensionPredicateEvaluationFailedErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -34,7 +35,7 @@ public class GraphQLExtensionPredicateEvaluationFailedErrorImpl */ @JsonCreator GraphQLExtensionPredicateEvaluationFailedErrorImpl( - @JsonProperty("values") final Map values, + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("errorByExtension") final com.commercetools.api.models.error.ErrorByExtension errorByExtension) { this.values = values; this.errorByExtension = errorByExtension; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLExtensionUpdateActionsFailedErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLExtensionUpdateActionsFailedErrorImpl.java index dfb20f1162d..e2f0756004d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLExtensionUpdateActionsFailedErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLExtensionUpdateActionsFailedErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -37,7 +38,8 @@ public class GraphQLExtensionUpdateActionsFailedErrorImpl * create instance with all properties */ @JsonCreator - GraphQLExtensionUpdateActionsFailedErrorImpl(@JsonProperty("values") final Map values, + GraphQLExtensionUpdateActionsFailedErrorImpl( + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("localizedMessage") final com.commercetools.api.models.common.LocalizedString localizedMessage, @JsonProperty("extensionExtraInfo") final java.lang.Object extensionExtraInfo, @JsonProperty("extensionErrors") final java.util.List extensionErrors) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLExternalOAuthFailedErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLExternalOAuthFailedErrorImpl.java index 2506f622cf3..8f08ec0c7b0 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLExternalOAuthFailedErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLExternalOAuthFailedErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -30,7 +31,8 @@ public class GraphQLExternalOAuthFailedErrorImpl implements GraphQLExternalOAuth * create instance with all properties */ @JsonCreator - GraphQLExternalOAuthFailedErrorImpl(@JsonProperty("values") final Map values) { + GraphQLExternalOAuthFailedErrorImpl( + @JsonAnySetter @JsonProperty("values") final Map values) { this.values = values; this.code = EXTERNAL_O_AUTH_FAILED; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLFeatureRemovedErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLFeatureRemovedErrorImpl.java index d17f892d1a9..8284f998b10 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLFeatureRemovedErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLFeatureRemovedErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -30,7 +31,7 @@ public class GraphQLFeatureRemovedErrorImpl implements GraphQLFeatureRemovedErro * create instance with all properties */ @JsonCreator - GraphQLFeatureRemovedErrorImpl(@JsonProperty("values") final Map values) { + GraphQLFeatureRemovedErrorImpl(@JsonAnySetter @JsonProperty("values") final Map values) { this.values = values; this.code = FEATURE_REMOVED; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLGeneralErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLGeneralErrorImpl.java index c58dd8ee994..d64495650ba 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLGeneralErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLGeneralErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -31,7 +32,7 @@ public class GraphQLGeneralErrorImpl implements GraphQLGeneralError, ModelBase { * create instance with all properties */ @JsonCreator - GraphQLGeneralErrorImpl(@JsonProperty("values") final Map values) { + GraphQLGeneralErrorImpl(@JsonAnySetter @JsonProperty("values") final Map values) { this.values = values; this.code = GENERAL; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLInsufficientScopeErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLInsufficientScopeErrorImpl.java index e6675f4d186..ac66ec01cfd 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLInsufficientScopeErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLInsufficientScopeErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -30,7 +31,8 @@ public class GraphQLInsufficientScopeErrorImpl implements GraphQLInsufficientSco * create instance with all properties */ @JsonCreator - GraphQLInsufficientScopeErrorImpl(@JsonProperty("values") final Map values) { + GraphQLInsufficientScopeErrorImpl( + @JsonAnySetter @JsonProperty("values") final Map values) { this.values = values; this.code = INSUFFICIENT_SCOPE; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLInternalConstraintViolatedErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLInternalConstraintViolatedErrorImpl.java index 2ea244fcb99..2c344761eb8 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLInternalConstraintViolatedErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLInternalConstraintViolatedErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -30,7 +31,8 @@ public class GraphQLInternalConstraintViolatedErrorImpl implements GraphQLIntern * create instance with all properties */ @JsonCreator - GraphQLInternalConstraintViolatedErrorImpl(@JsonProperty("values") final Map values) { + GraphQLInternalConstraintViolatedErrorImpl( + @JsonAnySetter @JsonProperty("values") final Map values) { this.values = values; this.code = INTERNAL_CONSTRAINT_VIOLATED; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLInvalidCredentialsErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLInvalidCredentialsErrorImpl.java index c001fbe722b..12a4c04ad71 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLInvalidCredentialsErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLInvalidCredentialsErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -35,7 +36,8 @@ public class GraphQLInvalidCredentialsErrorImpl implements GraphQLInvalidCredent * create instance with all properties */ @JsonCreator - GraphQLInvalidCredentialsErrorImpl(@JsonProperty("values") final Map values) { + GraphQLInvalidCredentialsErrorImpl( + @JsonAnySetter @JsonProperty("values") final Map values) { this.values = values; this.code = INVALID_CREDENTIALS; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLInvalidCurrentPasswordErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLInvalidCurrentPasswordErrorImpl.java index 2e501b224a6..7619f251dc1 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLInvalidCurrentPasswordErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLInvalidCurrentPasswordErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -35,7 +36,8 @@ public class GraphQLInvalidCurrentPasswordErrorImpl implements GraphQLInvalidCur * create instance with all properties */ @JsonCreator - GraphQLInvalidCurrentPasswordErrorImpl(@JsonProperty("values") final Map values) { + GraphQLInvalidCurrentPasswordErrorImpl( + @JsonAnySetter @JsonProperty("values") final Map values) { this.values = values; this.code = INVALID_CURRENT_PASSWORD; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLInvalidFieldErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLInvalidFieldErrorImpl.java index d9f55be967d..87876341e0d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLInvalidFieldErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLInvalidFieldErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -36,7 +37,7 @@ public class GraphQLInvalidFieldErrorImpl implements GraphQLInvalidFieldError, M * create instance with all properties */ @JsonCreator - GraphQLInvalidFieldErrorImpl(@JsonProperty("values") final Map values, + GraphQLInvalidFieldErrorImpl(@JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("field") final String field, @JsonProperty("invalidValue") final java.lang.Object invalidValue, @JsonProperty("allowedValues") final java.util.List allowedValues) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLInvalidInputErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLInvalidInputErrorImpl.java index 26793dbadbf..55d7f686056 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLInvalidInputErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLInvalidInputErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -30,7 +31,7 @@ public class GraphQLInvalidInputErrorImpl implements GraphQLInvalidInputError, M * create instance with all properties */ @JsonCreator - GraphQLInvalidInputErrorImpl(@JsonProperty("values") final Map values) { + GraphQLInvalidInputErrorImpl(@JsonAnySetter @JsonProperty("values") final Map values) { this.values = values; this.code = INVALID_INPUT; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLInvalidItemShippingDetailsErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLInvalidItemShippingDetailsErrorImpl.java index 6c5747a7640..6f9df5b2e53 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLInvalidItemShippingDetailsErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLInvalidItemShippingDetailsErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -45,7 +46,8 @@ public class GraphQLInvalidItemShippingDetailsErrorImpl implements GraphQLInvali * create instance with all properties */ @JsonCreator - GraphQLInvalidItemShippingDetailsErrorImpl(@JsonProperty("values") final Map values, + GraphQLInvalidItemShippingDetailsErrorImpl( + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("subject") final String subject, @JsonProperty("itemId") final String itemId) { this.values = values; this.subject = subject; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLInvalidJsonInputErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLInvalidJsonInputErrorImpl.java index 3612cf144c2..00876cff509 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLInvalidJsonInputErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLInvalidJsonInputErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -33,7 +34,7 @@ public class GraphQLInvalidJsonInputErrorImpl implements GraphQLInvalidJsonInput * create instance with all properties */ @JsonCreator - GraphQLInvalidJsonInputErrorImpl(@JsonProperty("values") final Map values, + GraphQLInvalidJsonInputErrorImpl(@JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("detailedErrorMessage") final String detailedErrorMessage) { this.values = values; this.detailedErrorMessage = detailedErrorMessage; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLInvalidOperationErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLInvalidOperationErrorImpl.java index 21053d7dd5e..4d877883290 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLInvalidOperationErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLInvalidOperationErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -31,7 +32,8 @@ public class GraphQLInvalidOperationErrorImpl implements GraphQLInvalidOperation * create instance with all properties */ @JsonCreator - GraphQLInvalidOperationErrorImpl(@JsonProperty("values") final Map values) { + GraphQLInvalidOperationErrorImpl( + @JsonAnySetter @JsonProperty("values") final Map values) { this.values = values; this.code = INVALID_OPERATION; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLInvalidSubjectErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLInvalidSubjectErrorImpl.java index 2e65fa5103d..be3ad8a0cbd 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLInvalidSubjectErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLInvalidSubjectErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -30,7 +31,7 @@ public class GraphQLInvalidSubjectErrorImpl implements GraphQLInvalidSubjectErro * create instance with all properties */ @JsonCreator - GraphQLInvalidSubjectErrorImpl(@JsonProperty("values") final Map values) { + GraphQLInvalidSubjectErrorImpl(@JsonAnySetter @JsonProperty("values") final Map values) { this.values = values; this.code = INVALID_SUBJECT; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLInvalidTokenErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLInvalidTokenErrorImpl.java index 3b226173f09..3c384f5cccb 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLInvalidTokenErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLInvalidTokenErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -30,7 +31,7 @@ public class GraphQLInvalidTokenErrorImpl implements GraphQLInvalidTokenError, M * create instance with all properties */ @JsonCreator - GraphQLInvalidTokenErrorImpl(@JsonProperty("values") final Map values) { + GraphQLInvalidTokenErrorImpl(@JsonAnySetter @JsonProperty("values") final Map values) { this.values = values; this.code = INVALID_TOKEN; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLLanguageUsedInStoresErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLLanguageUsedInStoresErrorImpl.java index f4ea65cdf83..8f0383aad98 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLLanguageUsedInStoresErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLLanguageUsedInStoresErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -31,7 +32,8 @@ public class GraphQLLanguageUsedInStoresErrorImpl implements GraphQLLanguageUsed * create instance with all properties */ @JsonCreator - GraphQLLanguageUsedInStoresErrorImpl(@JsonProperty("values") final Map values) { + GraphQLLanguageUsedInStoresErrorImpl( + @JsonAnySetter @JsonProperty("values") final Map values) { this.values = values; this.code = LANGUAGE_USED_IN_STORES; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLLockedFieldErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLLockedFieldErrorImpl.java index 533254be428..c286fc7c1e0 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLLockedFieldErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLLockedFieldErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -33,7 +34,7 @@ public class GraphQLLockedFieldErrorImpl implements GraphQLLockedFieldError, Mod * create instance with all properties */ @JsonCreator - GraphQLLockedFieldErrorImpl(@JsonProperty("values") final Map values, + GraphQLLockedFieldErrorImpl(@JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("field") final String field) { this.values = values; this.field = field; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLMatchingPriceNotFoundErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLMatchingPriceNotFoundErrorImpl.java index aa4f8e8b10f..2765cc271e5 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLMatchingPriceNotFoundErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLMatchingPriceNotFoundErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -54,7 +55,8 @@ public class GraphQLMatchingPriceNotFoundErrorImpl implements GraphQLMatchingPri * create instance with all properties */ @JsonCreator - GraphQLMatchingPriceNotFoundErrorImpl(@JsonProperty("values") final Map values, + GraphQLMatchingPriceNotFoundErrorImpl( + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("productId") final String productId, @JsonProperty("variantId") final Integer variantId, @JsonProperty("currency") final String currency, @JsonProperty("country") final String country, @JsonProperty("customerGroup") final com.commercetools.api.models.customer_group.CustomerGroupReference customerGroup, diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLMaxCartDiscountsReachedErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLMaxCartDiscountsReachedErrorImpl.java index b983b1c3094..724dcb84551 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLMaxCartDiscountsReachedErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLMaxCartDiscountsReachedErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -35,7 +36,8 @@ public class GraphQLMaxCartDiscountsReachedErrorImpl implements GraphQLMaxCartDi * create instance with all properties */ @JsonCreator - GraphQLMaxCartDiscountsReachedErrorImpl(@JsonProperty("values") final Map values) { + GraphQLMaxCartDiscountsReachedErrorImpl( + @JsonAnySetter @JsonProperty("values") final Map values) { this.values = values; this.code = MAX_CART_DISCOUNTS_REACHED; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLMaxResourceLimitExceededErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLMaxResourceLimitExceededErrorImpl.java index 1fcb7e79891..cd0905faaa3 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLMaxResourceLimitExceededErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLMaxResourceLimitExceededErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -33,7 +34,8 @@ public class GraphQLMaxResourceLimitExceededErrorImpl implements GraphQLMaxResou * create instance with all properties */ @JsonCreator - GraphQLMaxResourceLimitExceededErrorImpl(@JsonProperty("values") final Map values, + GraphQLMaxResourceLimitExceededErrorImpl( + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("exceededResource") final com.commercetools.api.models.common.ReferenceTypeId exceededResource) { this.values = values; this.exceededResource = exceededResource; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLMaxStoreReferencesReachedErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLMaxStoreReferencesReachedErrorImpl.java index 713cdd299b3..09e84eaac7e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLMaxStoreReferencesReachedErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLMaxStoreReferencesReachedErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -35,7 +36,8 @@ public class GraphQLMaxStoreReferencesReachedErrorImpl implements GraphQLMaxStor * create instance with all properties */ @JsonCreator - GraphQLMaxStoreReferencesReachedErrorImpl(@JsonProperty("values") final Map values) { + GraphQLMaxStoreReferencesReachedErrorImpl( + @JsonAnySetter @JsonProperty("values") final Map values) { this.values = values; this.code = MAX_STORE_REFERENCES_REACHED; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLMissingRoleOnChannelErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLMissingRoleOnChannelErrorImpl.java index b4a494ee5d3..071ced8f691 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLMissingRoleOnChannelErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLMissingRoleOnChannelErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -43,7 +44,8 @@ public class GraphQLMissingRoleOnChannelErrorImpl implements GraphQLMissingRoleO * create instance with all properties */ @JsonCreator - GraphQLMissingRoleOnChannelErrorImpl(@JsonProperty("values") final Map values, + GraphQLMissingRoleOnChannelErrorImpl( + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("channel") final com.commercetools.api.models.channel.ChannelResourceIdentifier channel, @JsonProperty("missingRole") final com.commercetools.api.models.channel.ChannelRoleEnum missingRole) { this.values = values; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLMissingTaxRateForCountryErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLMissingTaxRateForCountryErrorImpl.java index 6b3b99d0f2f..bce34fe35d1 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLMissingTaxRateForCountryErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLMissingTaxRateForCountryErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -48,7 +49,8 @@ public class GraphQLMissingTaxRateForCountryErrorImpl implements GraphQLMissingT * create instance with all properties */ @JsonCreator - GraphQLMissingTaxRateForCountryErrorImpl(@JsonProperty("values") final Map values, + GraphQLMissingTaxRateForCountryErrorImpl( + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("taxCategoryId") final String taxCategoryId, @JsonProperty("country") final String country, @JsonProperty("state") final String state) { this.values = values; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLMoneyOverflowErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLMoneyOverflowErrorImpl.java index 59a64f01564..bb2f2b4ca64 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLMoneyOverflowErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLMoneyOverflowErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -30,7 +31,7 @@ public class GraphQLMoneyOverflowErrorImpl implements GraphQLMoneyOverflowError, * create instance with all properties */ @JsonCreator - GraphQLMoneyOverflowErrorImpl(@JsonProperty("values") final Map values) { + GraphQLMoneyOverflowErrorImpl(@JsonAnySetter @JsonProperty("values") final Map values) { this.values = values; this.code = MONEY_OVERFLOW; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLNoMatchingProductDiscountFoundErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLNoMatchingProductDiscountFoundErrorImpl.java index 8ca72f78623..816f1521362 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLNoMatchingProductDiscountFoundErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLNoMatchingProductDiscountFoundErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -32,7 +33,8 @@ public class GraphQLNoMatchingProductDiscountFoundErrorImpl * create instance with all properties */ @JsonCreator - GraphQLNoMatchingProductDiscountFoundErrorImpl(@JsonProperty("values") final Map values) { + GraphQLNoMatchingProductDiscountFoundErrorImpl( + @JsonAnySetter @JsonProperty("values") final Map values) { this.values = values; this.code = NO_MATCHING_PRODUCT_DISCOUNT_FOUND; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLObjectNotFoundErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLObjectNotFoundErrorImpl.java index c735d7efaa9..1ef4aa32ab6 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLObjectNotFoundErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLObjectNotFoundErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -30,7 +31,7 @@ public class GraphQLObjectNotFoundErrorImpl implements GraphQLObjectNotFoundErro * create instance with all properties */ @JsonCreator - GraphQLObjectNotFoundErrorImpl(@JsonProperty("values") final Map values) { + GraphQLObjectNotFoundErrorImpl(@JsonAnySetter @JsonProperty("values") final Map values) { this.values = values; this.code = OBJECT_NOT_FOUND; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLOutOfStockErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLOutOfStockErrorImpl.java index de09aac2958..86b690dd213 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLOutOfStockErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLOutOfStockErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -40,7 +41,7 @@ public class GraphQLOutOfStockErrorImpl implements GraphQLOutOfStockError, Model * create instance with all properties */ @JsonCreator - GraphQLOutOfStockErrorImpl(@JsonProperty("values") final Map values, + GraphQLOutOfStockErrorImpl(@JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("lineItems") final java.util.List lineItems, @JsonProperty("skus") final java.util.List skus) { this.values = values; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLOverCapacityErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLOverCapacityErrorImpl.java index c8e769d5a8d..fc1557dca32 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLOverCapacityErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLOverCapacityErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -31,7 +32,7 @@ public class GraphQLOverCapacityErrorImpl implements GraphQLOverCapacityError, M * create instance with all properties */ @JsonCreator - GraphQLOverCapacityErrorImpl(@JsonProperty("values") final Map values) { + GraphQLOverCapacityErrorImpl(@JsonAnySetter @JsonProperty("values") final Map values) { this.values = values; this.code = OVER_CAPACITY; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLOverlappingStandalonePriceValidityErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLOverlappingStandalonePriceValidityErrorImpl.java index ad6e7c0eec9..34549ed81de 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLOverlappingStandalonePriceValidityErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLOverlappingStandalonePriceValidityErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -53,7 +54,7 @@ public class GraphQLOverlappingStandalonePriceValidityErrorImpl */ @JsonCreator GraphQLOverlappingStandalonePriceValidityErrorImpl( - @JsonProperty("values") final Map values, + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("conflictingStandalonePrice") final com.commercetools.api.models.standalone_price.StandalonePriceReference conflictingStandalonePrice, @JsonProperty("sku") final String sku, @JsonProperty("currency") final String currency, @JsonProperty("country") final String country, diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLPendingOperationErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLPendingOperationErrorImpl.java index 429f5eaa033..df5ec2415cd 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLPendingOperationErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLPendingOperationErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -31,7 +32,8 @@ public class GraphQLPendingOperationErrorImpl implements GraphQLPendingOperation * create instance with all properties */ @JsonCreator - GraphQLPendingOperationErrorImpl(@JsonProperty("values") final Map values) { + GraphQLPendingOperationErrorImpl( + @JsonAnySetter @JsonProperty("values") final Map values) { this.values = values; this.code = PENDING_OPERATION; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLPriceChangedErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLPriceChangedErrorImpl.java index 552301a496a..427948d2e16 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLPriceChangedErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLPriceChangedErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -41,7 +42,7 @@ public class GraphQLPriceChangedErrorImpl implements GraphQLPriceChangedError, M * create instance with all properties */ @JsonCreator - GraphQLPriceChangedErrorImpl(@JsonProperty("values") final Map values, + GraphQLPriceChangedErrorImpl(@JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("lineItems") final java.util.List lineItems, @JsonProperty("shipping") final Boolean shipping) { this.values = values; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLProductAssignmentMissingErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLProductAssignmentMissingErrorImpl.java index 4e6b7c4e937..5c71f9fcced 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLProductAssignmentMissingErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLProductAssignmentMissingErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -32,7 +33,8 @@ public class GraphQLProductAssignmentMissingErrorImpl implements GraphQLProductA * create instance with all properties */ @JsonCreator - GraphQLProductAssignmentMissingErrorImpl(@JsonProperty("values") final Map values, + GraphQLProductAssignmentMissingErrorImpl( + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("product") final com.commercetools.api.models.product.ProductReference product) { this.values = values; this.product = product; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLProductPresentWithDifferentVariantSelectionErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLProductPresentWithDifferentVariantSelectionErrorImpl.java index 399d1fc28c1..72922660e14 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLProductPresentWithDifferentVariantSelectionErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLProductPresentWithDifferentVariantSelectionErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -37,7 +38,7 @@ public class GraphQLProductPresentWithDifferentVariantSelectionErrorImpl */ @JsonCreator GraphQLProductPresentWithDifferentVariantSelectionErrorImpl( - @JsonProperty("values") final Map values, + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("product") final com.commercetools.api.models.product.ProductReference product, @JsonProperty("existingVariantSelection") final com.commercetools.api.models.product_selection.ProductVariantSelection existingVariantSelection) { this.values = values; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLProjectNotConfiguredForLanguagesErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLProjectNotConfiguredForLanguagesErrorImpl.java index 3a333ea47f2..03386b944b2 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLProjectNotConfiguredForLanguagesErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLProjectNotConfiguredForLanguagesErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -34,7 +35,8 @@ public class GraphQLProjectNotConfiguredForLanguagesErrorImpl * create instance with all properties */ @JsonCreator - GraphQLProjectNotConfiguredForLanguagesErrorImpl(@JsonProperty("values") final Map values, + GraphQLProjectNotConfiguredForLanguagesErrorImpl( + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("languages") final java.util.List languages) { this.values = values; this.languages = languages; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLQueryComplexityLimitExceededErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLQueryComplexityLimitExceededErrorImpl.java index 411c9530162..8f61039ca7b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLQueryComplexityLimitExceededErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLQueryComplexityLimitExceededErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -31,7 +32,8 @@ public class GraphQLQueryComplexityLimitExceededErrorImpl * create instance with all properties */ @JsonCreator - GraphQLQueryComplexityLimitExceededErrorImpl(@JsonProperty("values") final Map values) { + GraphQLQueryComplexityLimitExceededErrorImpl( + @JsonAnySetter @JsonProperty("values") final Map values) { this.values = values; this.code = QUERY_COMPLEXITY_LIMIT_EXCEEDED; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLQueryTimedOutErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLQueryTimedOutErrorImpl.java index ef112cdea17..828ec2251bc 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLQueryTimedOutErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLQueryTimedOutErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -31,7 +32,7 @@ public class GraphQLQueryTimedOutErrorImpl implements GraphQLQueryTimedOutError, * create instance with all properties */ @JsonCreator - GraphQLQueryTimedOutErrorImpl(@JsonProperty("values") final Map values) { + GraphQLQueryTimedOutErrorImpl(@JsonAnySetter @JsonProperty("values") final Map values) { this.values = values; this.code = QUERY_TIMED_OUT; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLReferenceExistsErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLReferenceExistsErrorImpl.java index d010be32991..2e1d8e0b754 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLReferenceExistsErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLReferenceExistsErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -32,7 +33,7 @@ public class GraphQLReferenceExistsErrorImpl implements GraphQLReferenceExistsEr * create instance with all properties */ @JsonCreator - GraphQLReferenceExistsErrorImpl(@JsonProperty("values") final Map values, + GraphQLReferenceExistsErrorImpl(@JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("referencedBy") final com.commercetools.api.models.common.ReferenceTypeId referencedBy) { this.values = values; this.referencedBy = referencedBy; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLReferencedResourceNotFoundErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLReferencedResourceNotFoundErrorImpl.java index 52d1a529cbe..dd12bd7e335 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLReferencedResourceNotFoundErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLReferencedResourceNotFoundErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -36,7 +37,8 @@ public class GraphQLReferencedResourceNotFoundErrorImpl implements GraphQLRefere * create instance with all properties */ @JsonCreator - GraphQLReferencedResourceNotFoundErrorImpl(@JsonProperty("values") final Map values, + GraphQLReferencedResourceNotFoundErrorImpl( + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("typeId") final com.commercetools.api.models.common.ReferenceTypeId typeId, @JsonProperty("id") final String id, @JsonProperty("key") final String key) { this.values = values; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLRequiredFieldErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLRequiredFieldErrorImpl.java index 50951bc9d5d..d0372d8d7db 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLRequiredFieldErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLRequiredFieldErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -32,7 +33,7 @@ public class GraphQLRequiredFieldErrorImpl implements GraphQLRequiredFieldError, * create instance with all properties */ @JsonCreator - GraphQLRequiredFieldErrorImpl(@JsonProperty("values") final Map values, + GraphQLRequiredFieldErrorImpl(@JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("field") final String field) { this.values = values; this.field = field; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLResourceNotFoundErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLResourceNotFoundErrorImpl.java index 140e4ad9f59..33a698a8810 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLResourceNotFoundErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLResourceNotFoundErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -30,7 +31,8 @@ public class GraphQLResourceNotFoundErrorImpl implements GraphQLResourceNotFound * create instance with all properties */ @JsonCreator - GraphQLResourceNotFoundErrorImpl(@JsonProperty("values") final Map values) { + GraphQLResourceNotFoundErrorImpl( + @JsonAnySetter @JsonProperty("values") final Map values) { this.values = values; this.code = RESOURCE_NOT_FOUND; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLResourceSizeLimitExceededErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLResourceSizeLimitExceededErrorImpl.java index 62b5d8081b9..fb8d81d9b23 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLResourceSizeLimitExceededErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLResourceSizeLimitExceededErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -30,7 +31,8 @@ public class GraphQLResourceSizeLimitExceededErrorImpl implements GraphQLResourc * create instance with all properties */ @JsonCreator - GraphQLResourceSizeLimitExceededErrorImpl(@JsonProperty("values") final Map values) { + GraphQLResourceSizeLimitExceededErrorImpl( + @JsonAnySetter @JsonProperty("values") final Map values) { this.values = values; this.code = RESOURCE_SIZE_LIMIT_EXCEEDED; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLSearchDeactivatedErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLSearchDeactivatedErrorImpl.java index 9ea48c34911..f3501a42fdc 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLSearchDeactivatedErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLSearchDeactivatedErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -31,7 +32,8 @@ public class GraphQLSearchDeactivatedErrorImpl implements GraphQLSearchDeactivat * create instance with all properties */ @JsonCreator - GraphQLSearchDeactivatedErrorImpl(@JsonProperty("values") final Map values) { + GraphQLSearchDeactivatedErrorImpl( + @JsonAnySetter @JsonProperty("values") final Map values) { this.values = values; this.code = SEARCH_DEACTIVATED; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLSearchExecutionFailureErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLSearchExecutionFailureErrorImpl.java index 71ef72e6114..dc949baad19 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLSearchExecutionFailureErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLSearchExecutionFailureErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -30,7 +31,8 @@ public class GraphQLSearchExecutionFailureErrorImpl implements GraphQLSearchExec * create instance with all properties */ @JsonCreator - GraphQLSearchExecutionFailureErrorImpl(@JsonProperty("values") final Map values) { + GraphQLSearchExecutionFailureErrorImpl( + @JsonAnySetter @JsonProperty("values") final Map values) { this.values = values; this.code = SEARCH_EXECUTION_FAILURE; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLSearchFacetPathNotFoundErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLSearchFacetPathNotFoundErrorImpl.java index d6e06bb4d0b..0c9c009311a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLSearchFacetPathNotFoundErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLSearchFacetPathNotFoundErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -30,7 +31,8 @@ public class GraphQLSearchFacetPathNotFoundErrorImpl implements GraphQLSearchFac * create instance with all properties */ @JsonCreator - GraphQLSearchFacetPathNotFoundErrorImpl(@JsonProperty("values") final Map values) { + GraphQLSearchFacetPathNotFoundErrorImpl( + @JsonAnySetter @JsonProperty("values") final Map values) { this.values = values; this.code = SEARCH_FACET_PATH_NOT_FOUND; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLSearchIndexingInProgressErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLSearchIndexingInProgressErrorImpl.java index 3547c5c6c6d..a6e089eeea0 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLSearchIndexingInProgressErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLSearchIndexingInProgressErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -30,7 +31,8 @@ public class GraphQLSearchIndexingInProgressErrorImpl implements GraphQLSearchIn * create instance with all properties */ @JsonCreator - GraphQLSearchIndexingInProgressErrorImpl(@JsonProperty("values") final Map values) { + GraphQLSearchIndexingInProgressErrorImpl( + @JsonAnySetter @JsonProperty("values") final Map values) { this.values = values; this.code = SEARCH_INDEXING_IN_PROGRESS; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLSearchNotReadyErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLSearchNotReadyErrorImpl.java index 0d4aa538730..f3977057a60 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLSearchNotReadyErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLSearchNotReadyErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -30,7 +31,7 @@ public class GraphQLSearchNotReadyErrorImpl implements GraphQLSearchNotReadyErro * create instance with all properties */ @JsonCreator - GraphQLSearchNotReadyErrorImpl(@JsonProperty("values") final Map values) { + GraphQLSearchNotReadyErrorImpl(@JsonAnySetter @JsonProperty("values") final Map values) { this.values = values; this.code = SEARCH_NOT_READY; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLSemanticErrorErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLSemanticErrorErrorImpl.java index 280201fde26..21a8bbac40b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLSemanticErrorErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLSemanticErrorErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -30,7 +31,7 @@ public class GraphQLSemanticErrorErrorImpl implements GraphQLSemanticErrorError, * create instance with all properties */ @JsonCreator - GraphQLSemanticErrorErrorImpl(@JsonProperty("values") final Map values) { + GraphQLSemanticErrorErrorImpl(@JsonAnySetter @JsonProperty("values") final Map values) { this.values = values; this.code = SEMANTIC_ERROR; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLShippingMethodDoesNotMatchCartErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLShippingMethodDoesNotMatchCartErrorImpl.java index c63b51a4e0b..7026b816dba 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLShippingMethodDoesNotMatchCartErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLShippingMethodDoesNotMatchCartErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -38,7 +39,8 @@ public class GraphQLShippingMethodDoesNotMatchCartErrorImpl * create instance with all properties */ @JsonCreator - GraphQLShippingMethodDoesNotMatchCartErrorImpl(@JsonProperty("values") final Map values) { + GraphQLShippingMethodDoesNotMatchCartErrorImpl( + @JsonAnySetter @JsonProperty("values") final Map values) { this.values = values; this.code = SHIPPING_METHOD_DOES_NOT_MATCH_CART; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLStoreCartDiscountsLimitReachedErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLStoreCartDiscountsLimitReachedErrorImpl.java index 15cfff9438c..6f4be3e0e10 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLStoreCartDiscountsLimitReachedErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLStoreCartDiscountsLimitReachedErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -38,7 +39,8 @@ public class GraphQLStoreCartDiscountsLimitReachedErrorImpl * create instance with all properties */ @JsonCreator - GraphQLStoreCartDiscountsLimitReachedErrorImpl(@JsonProperty("values") final Map values, + GraphQLStoreCartDiscountsLimitReachedErrorImpl( + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("stores") final java.util.List stores) { this.values = values; this.stores = stores; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLSyntaxErrorErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLSyntaxErrorErrorImpl.java index 2b5318568d7..078a943e8bb 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLSyntaxErrorErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLSyntaxErrorErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -30,7 +31,7 @@ public class GraphQLSyntaxErrorErrorImpl implements GraphQLSyntaxErrorError, Mod * create instance with all properties */ @JsonCreator - GraphQLSyntaxErrorErrorImpl(@JsonProperty("values") final Map values) { + GraphQLSyntaxErrorErrorImpl(@JsonAnySetter @JsonProperty("values") final Map values) { this.values = values; this.code = SYNTAX_ERROR; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/InsufficientScopeErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/InsufficientScopeErrorImpl.java index f35f07105e9..6f860c92148 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/InsufficientScopeErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/InsufficientScopeErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -33,7 +34,7 @@ public class InsufficientScopeErrorImpl implements InsufficientScopeError, Model */ @JsonCreator InsufficientScopeErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values) { + @JsonAnySetter @JsonProperty("values") final Map values) { this.message = message; this.values = values; this.code = INSUFFICIENT_SCOPE; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/InternalConstraintViolatedErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/InternalConstraintViolatedErrorImpl.java index 230acfff457..d4ee6722973 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/InternalConstraintViolatedErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/InternalConstraintViolatedErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -33,7 +34,7 @@ public class InternalConstraintViolatedErrorImpl implements InternalConstraintVi */ @JsonCreator InternalConstraintViolatedErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values) { + @JsonAnySetter @JsonProperty("values") final Map values) { this.message = message; this.values = values; this.code = INTERNAL_CONSTRAINT_VIOLATED; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/InvalidCredentialsErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/InvalidCredentialsErrorImpl.java index 445530c5b42..85a00ddeffd 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/InvalidCredentialsErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/InvalidCredentialsErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -38,7 +39,7 @@ public class InvalidCredentialsErrorImpl implements InvalidCredentialsError, Mod */ @JsonCreator InvalidCredentialsErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values) { + @JsonAnySetter @JsonProperty("values") final Map values) { this.message = message; this.values = values; this.code = INVALID_CREDENTIALS; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/InvalidCurrentPasswordErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/InvalidCurrentPasswordErrorImpl.java index 6efc605b537..0d3d31b2dfd 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/InvalidCurrentPasswordErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/InvalidCurrentPasswordErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -38,7 +39,7 @@ public class InvalidCurrentPasswordErrorImpl implements InvalidCurrentPasswordEr */ @JsonCreator InvalidCurrentPasswordErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values) { + @JsonAnySetter @JsonProperty("values") final Map values) { this.message = message; this.values = values; this.code = INVALID_CURRENT_PASSWORD; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/InvalidFieldErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/InvalidFieldErrorImpl.java index b3f06dd4dc0..b81fa79680c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/InvalidFieldErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/InvalidFieldErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -39,7 +40,7 @@ public class InvalidFieldErrorImpl implements InvalidFieldError, ModelBase { */ @JsonCreator InvalidFieldErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values, + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("field") final String field, @JsonProperty("invalidValue") final java.lang.Object invalidValue, @JsonProperty("allowedValues") final java.util.List allowedValues) { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/InvalidInputErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/InvalidInputErrorImpl.java index 59ac47c110f..0c82704208b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/InvalidInputErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/InvalidInputErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -33,7 +34,7 @@ public class InvalidInputErrorImpl implements InvalidInputError, ModelBase { */ @JsonCreator InvalidInputErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values) { + @JsonAnySetter @JsonProperty("values") final Map values) { this.message = message; this.values = values; this.code = INVALID_INPUT; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/InvalidItemShippingDetailsErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/InvalidItemShippingDetailsErrorImpl.java index 0f168e63f1f..62ef781ead1 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/InvalidItemShippingDetailsErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/InvalidItemShippingDetailsErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -48,7 +49,7 @@ public class InvalidItemShippingDetailsErrorImpl implements InvalidItemShippingD */ @JsonCreator InvalidItemShippingDetailsErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values, + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("subject") final String subject, @JsonProperty("itemId") final String itemId) { this.message = message; this.values = values; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/InvalidJsonInputErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/InvalidJsonInputErrorImpl.java index fc4ddcd6162..0371ca40df6 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/InvalidJsonInputErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/InvalidJsonInputErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -36,7 +37,7 @@ public class InvalidJsonInputErrorImpl implements InvalidJsonInputError, ModelBa */ @JsonCreator InvalidJsonInputErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values, + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("detailedErrorMessage") final String detailedErrorMessage) { this.message = message; this.values = values; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/InvalidOperationErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/InvalidOperationErrorImpl.java index 4ce61fd52db..d4b3bc956a8 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/InvalidOperationErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/InvalidOperationErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -34,7 +35,7 @@ public class InvalidOperationErrorImpl implements InvalidOperationError, ModelBa */ @JsonCreator InvalidOperationErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values) { + @JsonAnySetter @JsonProperty("values") final Map values) { this.message = message; this.values = values; this.code = INVALID_OPERATION; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/InvalidSubjectErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/InvalidSubjectErrorImpl.java index 60c4948c440..1b9087f5da9 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/InvalidSubjectErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/InvalidSubjectErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -33,7 +34,7 @@ public class InvalidSubjectErrorImpl implements InvalidSubjectError, ModelBase { */ @JsonCreator InvalidSubjectErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values) { + @JsonAnySetter @JsonProperty("values") final Map values) { this.message = message; this.values = values; this.code = INVALID_SUBJECT; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/InvalidTokenErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/InvalidTokenErrorImpl.java index e9fe7a81bee..4b7cd67bfa7 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/InvalidTokenErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/InvalidTokenErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -33,7 +34,7 @@ public class InvalidTokenErrorImpl implements InvalidTokenError, ModelBase { */ @JsonCreator InvalidTokenErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values) { + @JsonAnySetter @JsonProperty("values") final Map values) { this.message = message; this.values = values; this.code = INVALID_TOKEN; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/LanguageUsedInStoresErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/LanguageUsedInStoresErrorImpl.java index a2f5f583d36..06e88861b2e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/LanguageUsedInStoresErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/LanguageUsedInStoresErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -34,7 +35,7 @@ public class LanguageUsedInStoresErrorImpl implements LanguageUsedInStoresError, */ @JsonCreator LanguageUsedInStoresErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values) { + @JsonAnySetter @JsonProperty("values") final Map values) { this.message = message; this.values = values; this.code = LANGUAGE_USED_IN_STORES; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/LockedFieldErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/LockedFieldErrorImpl.java index 0099d593050..cbd43f218a4 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/LockedFieldErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/LockedFieldErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -36,7 +37,7 @@ public class LockedFieldErrorImpl implements LockedFieldError, ModelBase { */ @JsonCreator LockedFieldErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values, + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("field") final String field) { this.message = message; this.values = values; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/MatchingPriceNotFoundErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/MatchingPriceNotFoundErrorImpl.java index 5dd13faf0f6..f521fd567b3 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/MatchingPriceNotFoundErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/MatchingPriceNotFoundErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -57,7 +58,7 @@ public class MatchingPriceNotFoundErrorImpl implements MatchingPriceNotFoundErro */ @JsonCreator MatchingPriceNotFoundErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values, + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("productId") final String productId, @JsonProperty("variantId") final Integer variantId, @JsonProperty("currency") final String currency, @JsonProperty("country") final String country, @JsonProperty("customerGroup") final com.commercetools.api.models.customer_group.CustomerGroupReference customerGroup, diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/MaxCartDiscountsReachedErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/MaxCartDiscountsReachedErrorImpl.java index 6bd8c67fdd9..cf50015bc39 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/MaxCartDiscountsReachedErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/MaxCartDiscountsReachedErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -38,7 +39,7 @@ public class MaxCartDiscountsReachedErrorImpl implements MaxCartDiscountsReached */ @JsonCreator MaxCartDiscountsReachedErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values) { + @JsonAnySetter @JsonProperty("values") final Map values) { this.message = message; this.values = values; this.code = MAX_CART_DISCOUNTS_REACHED; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/MaxResourceLimitExceededErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/MaxResourceLimitExceededErrorImpl.java index c5c5d82ed7d..4d81c61c98b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/MaxResourceLimitExceededErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/MaxResourceLimitExceededErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -36,7 +37,7 @@ public class MaxResourceLimitExceededErrorImpl implements MaxResourceLimitExceed */ @JsonCreator MaxResourceLimitExceededErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values, + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("exceededResource") final com.commercetools.api.models.common.ReferenceTypeId exceededResource) { this.message = message; this.values = values; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/MaxStoreReferencesReachedErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/MaxStoreReferencesReachedErrorImpl.java index 3066e0af740..4d37e45edd2 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/MaxStoreReferencesReachedErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/MaxStoreReferencesReachedErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -38,7 +39,7 @@ public class MaxStoreReferencesReachedErrorImpl implements MaxStoreReferencesRea */ @JsonCreator MaxStoreReferencesReachedErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values) { + @JsonAnySetter @JsonProperty("values") final Map values) { this.message = message; this.values = values; this.code = MAX_STORE_REFERENCES_REACHED; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/MissingRoleOnChannelErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/MissingRoleOnChannelErrorImpl.java index b177e8cdfe6..8b8a5b22839 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/MissingRoleOnChannelErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/MissingRoleOnChannelErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -46,7 +47,7 @@ public class MissingRoleOnChannelErrorImpl implements MissingRoleOnChannelError, */ @JsonCreator MissingRoleOnChannelErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values, + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("channel") final com.commercetools.api.models.channel.ChannelResourceIdentifier channel, @JsonProperty("missingRole") final com.commercetools.api.models.channel.ChannelRoleEnum missingRole) { this.message = message; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/MissingTaxRateForCountryErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/MissingTaxRateForCountryErrorImpl.java index 69f04ef0897..22a7550a745 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/MissingTaxRateForCountryErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/MissingTaxRateForCountryErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -51,7 +52,7 @@ public class MissingTaxRateForCountryErrorImpl implements MissingTaxRateForCount */ @JsonCreator MissingTaxRateForCountryErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values, + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("taxCategoryId") final String taxCategoryId, @JsonProperty("country") final String country, @JsonProperty("state") final String state) { this.message = message; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/MoneyOverflowErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/MoneyOverflowErrorImpl.java index a30ece40a64..b280f542745 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/MoneyOverflowErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/MoneyOverflowErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -33,7 +34,7 @@ public class MoneyOverflowErrorImpl implements MoneyOverflowError, ModelBase { */ @JsonCreator MoneyOverflowErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values) { + @JsonAnySetter @JsonProperty("values") final Map values) { this.message = message; this.values = values; this.code = MONEY_OVERFLOW; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/NoMatchingProductDiscountFoundErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/NoMatchingProductDiscountFoundErrorImpl.java index 0147e424ff7..3dba74914c2 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/NoMatchingProductDiscountFoundErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/NoMatchingProductDiscountFoundErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -34,7 +35,7 @@ public class NoMatchingProductDiscountFoundErrorImpl implements NoMatchingProduc */ @JsonCreator NoMatchingProductDiscountFoundErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values) { + @JsonAnySetter @JsonProperty("values") final Map values) { this.message = message; this.values = values; this.code = NO_MATCHING_PRODUCT_DISCOUNT_FOUND; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ObjectNotFoundErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ObjectNotFoundErrorImpl.java index 3bb046ce003..04fdfc4779a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ObjectNotFoundErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ObjectNotFoundErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -33,7 +34,7 @@ public class ObjectNotFoundErrorImpl implements ObjectNotFoundError, ModelBase { */ @JsonCreator ObjectNotFoundErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values) { + @JsonAnySetter @JsonProperty("values") final Map values) { this.message = message; this.values = values; this.code = OBJECT_NOT_FOUND; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/OutOfStockErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/OutOfStockErrorImpl.java index d3adf79f64b..3b0cd61ac13 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/OutOfStockErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/OutOfStockErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -43,7 +44,7 @@ public class OutOfStockErrorImpl implements OutOfStockError, ModelBase { */ @JsonCreator OutOfStockErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values, + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("lineItems") final java.util.List lineItems, @JsonProperty("skus") final java.util.List skus) { this.message = message; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/OverCapacityErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/OverCapacityErrorImpl.java index 51555907a99..cf8a6d7ecb0 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/OverCapacityErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/OverCapacityErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -34,7 +35,7 @@ public class OverCapacityErrorImpl implements OverCapacityError, ModelBase { */ @JsonCreator OverCapacityErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values) { + @JsonAnySetter @JsonProperty("values") final Map values) { this.message = message; this.values = values; this.code = OVER_CAPACITY; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/OverlappingStandalonePriceValidityErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/OverlappingStandalonePriceValidityErrorImpl.java index f22a81b1dd2..37e35b2b96b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/OverlappingStandalonePriceValidityErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/OverlappingStandalonePriceValidityErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -54,7 +55,7 @@ public class OverlappingStandalonePriceValidityErrorImpl implements OverlappingS */ @JsonCreator OverlappingStandalonePriceValidityErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values, + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("conflictingStandalonePrice") final com.commercetools.api.models.standalone_price.StandalonePriceReference conflictingStandalonePrice, @JsonProperty("sku") final String sku, @JsonProperty("currency") final String currency, @JsonProperty("country") final String country, diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/PendingOperationErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/PendingOperationErrorImpl.java index 8c5ec350888..4b450c77c87 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/PendingOperationErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/PendingOperationErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -34,7 +35,7 @@ public class PendingOperationErrorImpl implements PendingOperationError, ModelBa */ @JsonCreator PendingOperationErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values) { + @JsonAnySetter @JsonProperty("values") final Map values) { this.message = message; this.values = values; this.code = PENDING_OPERATION; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/PriceChangedErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/PriceChangedErrorImpl.java index cb2ea22bae2..f0be663a0b8 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/PriceChangedErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/PriceChangedErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -44,7 +45,7 @@ public class PriceChangedErrorImpl implements PriceChangedError, ModelBase { */ @JsonCreator PriceChangedErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values, + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("lineItems") final java.util.List lineItems, @JsonProperty("shipping") final Boolean shipping) { this.message = message; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ProductAssignmentMissingErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ProductAssignmentMissingErrorImpl.java index 2bf0636dd98..ce9c359c32f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ProductAssignmentMissingErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ProductAssignmentMissingErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -35,7 +36,7 @@ public class ProductAssignmentMissingErrorImpl implements ProductAssignmentMissi */ @JsonCreator ProductAssignmentMissingErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values, + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("product") final com.commercetools.api.models.product.ProductReference product) { this.message = message; this.values = values; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ProductPresentWithDifferentVariantSelectionErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ProductPresentWithDifferentVariantSelectionErrorImpl.java index 091a659ec5a..20aff64c921 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ProductPresentWithDifferentVariantSelectionErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ProductPresentWithDifferentVariantSelectionErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -39,7 +40,7 @@ public class ProductPresentWithDifferentVariantSelectionErrorImpl */ @JsonCreator ProductPresentWithDifferentVariantSelectionErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values, + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("product") final com.commercetools.api.models.product.ProductReference product, @JsonProperty("existingVariantSelection") final com.commercetools.api.models.product_selection.ProductVariantSelection existingVariantSelection) { this.message = message; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ProjectNotConfiguredForLanguagesErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ProjectNotConfiguredForLanguagesErrorImpl.java index 7b26fde35fc..ea4ea907548 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ProjectNotConfiguredForLanguagesErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ProjectNotConfiguredForLanguagesErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -36,7 +37,7 @@ public class ProjectNotConfiguredForLanguagesErrorImpl implements ProjectNotConf */ @JsonCreator ProjectNotConfiguredForLanguagesErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values, + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("languages") final java.util.List languages) { this.message = message; this.values = values; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/QueryComplexityLimitExceededErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/QueryComplexityLimitExceededErrorImpl.java index 4fb6d281121..014a5ef7329 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/QueryComplexityLimitExceededErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/QueryComplexityLimitExceededErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -33,7 +34,7 @@ public class QueryComplexityLimitExceededErrorImpl implements QueryComplexityLim */ @JsonCreator QueryComplexityLimitExceededErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values) { + @JsonAnySetter @JsonProperty("values") final Map values) { this.message = message; this.values = values; this.code = QUERY_COMPLEXITY_LIMIT_EXCEEDED; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/QueryTimedOutErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/QueryTimedOutErrorImpl.java index 7c9d2cf4028..9f2c4ad5cc5 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/QueryTimedOutErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/QueryTimedOutErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -34,7 +35,7 @@ public class QueryTimedOutErrorImpl implements QueryTimedOutError, ModelBase { */ @JsonCreator QueryTimedOutErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values) { + @JsonAnySetter @JsonProperty("values") final Map values) { this.message = message; this.values = values; this.code = QUERY_TIMED_OUT; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ReferenceExistsErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ReferenceExistsErrorImpl.java index c231c25402b..ff7bb105fcf 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ReferenceExistsErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ReferenceExistsErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -35,7 +36,7 @@ public class ReferenceExistsErrorImpl implements ReferenceExistsError, ModelBase */ @JsonCreator ReferenceExistsErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values, + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("referencedBy") final com.commercetools.api.models.common.ReferenceTypeId referencedBy) { this.message = message; this.values = values; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ReferencedResourceNotFoundErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ReferencedResourceNotFoundErrorImpl.java index 7fe6eb15e90..267ab1f6b53 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ReferencedResourceNotFoundErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ReferencedResourceNotFoundErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -39,7 +40,7 @@ public class ReferencedResourceNotFoundErrorImpl implements ReferencedResourceNo */ @JsonCreator ReferencedResourceNotFoundErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values, + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("typeId") final com.commercetools.api.models.common.ReferenceTypeId typeId, @JsonProperty("id") final String id, @JsonProperty("key") final String key) { this.message = message; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/RequiredFieldErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/RequiredFieldErrorImpl.java index f03f094d3cc..183322a6bc9 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/RequiredFieldErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/RequiredFieldErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -35,7 +36,7 @@ public class RequiredFieldErrorImpl implements RequiredFieldError, ModelBase { */ @JsonCreator RequiredFieldErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values, + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("field") final String field) { this.message = message; this.values = values; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ResourceNotFoundErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ResourceNotFoundErrorImpl.java index df406a370bc..520418107f8 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ResourceNotFoundErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ResourceNotFoundErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -33,7 +34,7 @@ public class ResourceNotFoundErrorImpl implements ResourceNotFoundError, ModelBa */ @JsonCreator ResourceNotFoundErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values) { + @JsonAnySetter @JsonProperty("values") final Map values) { this.message = message; this.values = values; this.code = RESOURCE_NOT_FOUND; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ResourceSizeLimitExceededErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ResourceSizeLimitExceededErrorImpl.java index bd6292033c7..1fd72c96e3c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ResourceSizeLimitExceededErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ResourceSizeLimitExceededErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -33,7 +34,7 @@ public class ResourceSizeLimitExceededErrorImpl implements ResourceSizeLimitExce */ @JsonCreator ResourceSizeLimitExceededErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values) { + @JsonAnySetter @JsonProperty("values") final Map values) { this.message = message; this.values = values; this.code = RESOURCE_SIZE_LIMIT_EXCEEDED; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/SearchDeactivatedErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/SearchDeactivatedErrorImpl.java index 0a112baf24a..36f0885a92f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/SearchDeactivatedErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/SearchDeactivatedErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -34,7 +35,7 @@ public class SearchDeactivatedErrorImpl implements SearchDeactivatedError, Model */ @JsonCreator SearchDeactivatedErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values) { + @JsonAnySetter @JsonProperty("values") final Map values) { this.message = message; this.values = values; this.code = SEARCH_DEACTIVATED; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/SearchExecutionFailureErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/SearchExecutionFailureErrorImpl.java index ec392bc0841..47fd3fcca84 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/SearchExecutionFailureErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/SearchExecutionFailureErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -33,7 +34,7 @@ public class SearchExecutionFailureErrorImpl implements SearchExecutionFailureEr */ @JsonCreator SearchExecutionFailureErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values) { + @JsonAnySetter @JsonProperty("values") final Map values) { this.message = message; this.values = values; this.code = SEARCH_EXECUTION_FAILURE; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/SearchFacetPathNotFoundErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/SearchFacetPathNotFoundErrorImpl.java index c4733a47b07..97607b72c8e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/SearchFacetPathNotFoundErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/SearchFacetPathNotFoundErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -33,7 +34,7 @@ public class SearchFacetPathNotFoundErrorImpl implements SearchFacetPathNotFound */ @JsonCreator SearchFacetPathNotFoundErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values) { + @JsonAnySetter @JsonProperty("values") final Map values) { this.message = message; this.values = values; this.code = SEARCH_FACET_PATH_NOT_FOUND; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/SearchIndexingInProgressErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/SearchIndexingInProgressErrorImpl.java index d82b438a336..283d6bfd456 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/SearchIndexingInProgressErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/SearchIndexingInProgressErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -33,7 +34,7 @@ public class SearchIndexingInProgressErrorImpl implements SearchIndexingInProgre */ @JsonCreator SearchIndexingInProgressErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values) { + @JsonAnySetter @JsonProperty("values") final Map values) { this.message = message; this.values = values; this.code = SEARCH_INDEXING_IN_PROGRESS; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/SearchNotReadyErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/SearchNotReadyErrorImpl.java index 522ac961881..0dddc82e693 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/SearchNotReadyErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/SearchNotReadyErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -33,7 +34,7 @@ public class SearchNotReadyErrorImpl implements SearchNotReadyError, ModelBase { */ @JsonCreator SearchNotReadyErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values) { + @JsonAnySetter @JsonProperty("values") final Map values) { this.message = message; this.values = values; this.code = SEARCH_NOT_READY; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/SemanticErrorErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/SemanticErrorErrorImpl.java index 6c94b9deedf..a6ddfff9779 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/SemanticErrorErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/SemanticErrorErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -33,7 +34,7 @@ public class SemanticErrorErrorImpl implements SemanticErrorError, ModelBase { */ @JsonCreator SemanticErrorErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values) { + @JsonAnySetter @JsonProperty("values") final Map values) { this.message = message; this.values = values; this.code = SEMANTIC_ERROR; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ShippingMethodDoesNotMatchCartErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ShippingMethodDoesNotMatchCartErrorImpl.java index b491b8c51a0..54ad468da3e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ShippingMethodDoesNotMatchCartErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ShippingMethodDoesNotMatchCartErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -40,7 +41,7 @@ public class ShippingMethodDoesNotMatchCartErrorImpl implements ShippingMethodDo */ @JsonCreator ShippingMethodDoesNotMatchCartErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values) { + @JsonAnySetter @JsonProperty("values") final Map values) { this.message = message; this.values = values; this.code = SHIPPING_METHOD_DOES_NOT_MATCH_CART; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/StoreCartDiscountsLimitReachedErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/StoreCartDiscountsLimitReachedErrorImpl.java index 7070ab4d776..4e9bf652204 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/StoreCartDiscountsLimitReachedErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/StoreCartDiscountsLimitReachedErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -40,7 +41,7 @@ public class StoreCartDiscountsLimitReachedErrorImpl implements StoreCartDiscoun */ @JsonCreator StoreCartDiscountsLimitReachedErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values, + @JsonAnySetter @JsonProperty("values") final Map values, @JsonProperty("stores") final java.util.List stores) { this.message = message; this.values = values; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/SyntaxErrorErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/SyntaxErrorErrorImpl.java index fdf46d258d3..8d591b05ffa 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/SyntaxErrorErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/SyntaxErrorErrorImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -33,7 +34,7 @@ public class SyntaxErrorErrorImpl implements SyntaxErrorError, ModelBase { */ @JsonCreator SyntaxErrorErrorImpl(@JsonProperty("message") final String message, - @JsonProperty("values") final Map values) { + @JsonAnySetter @JsonProperty("values") final Map values) { this.message = message; this.values = values; this.code = SYNTAX_ERROR; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/graph_ql/GraphQLVariablesMapImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/graph_ql/GraphQLVariablesMapImpl.java index 4bfbecd42a9..d2631decd75 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/graph_ql/GraphQLVariablesMapImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/graph_ql/GraphQLVariablesMapImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -28,7 +29,7 @@ public class GraphQLVariablesMapImpl implements GraphQLVariablesMap, ModelBase { * create instance with all properties */ @JsonCreator - GraphQLVariablesMapImpl(@JsonProperty("values") final Map values) { + GraphQLVariablesMapImpl(@JsonAnySetter @JsonProperty("values") final Map values) { this.values = values; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/CategoryOrderHintsImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/CategoryOrderHintsImpl.java index acc8bc08550..dc6001027e7 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/CategoryOrderHintsImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/CategoryOrderHintsImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -28,7 +29,7 @@ public class CategoryOrderHintsImpl implements CategoryOrderHints, ModelBase { * create instance with all properties */ @JsonCreator - CategoryOrderHintsImpl(@JsonProperty("values") final Map values) { + CategoryOrderHintsImpl(@JsonAnySetter @JsonProperty("values") final Map values) { this.values = values; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductVariantChannelAvailabilityMapImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductVariantChannelAvailabilityMapImpl.java index e84f93dab14..7325c4f6084 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductVariantChannelAvailabilityMapImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductVariantChannelAvailabilityMapImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -29,7 +30,7 @@ public class ProductVariantChannelAvailabilityMapImpl implements ProductVariantC */ @JsonCreator ProductVariantChannelAvailabilityMapImpl( - @JsonProperty("values") final Map values) { + @JsonAnySetter @JsonProperty("values") final Map values) { this.values = values; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/SearchKeywordsImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/SearchKeywordsImpl.java index f2565b235fe..39731ee2d87 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/SearchKeywordsImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/SearchKeywordsImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -29,7 +30,7 @@ public class SearchKeywordsImpl implements SearchKeywords, ModelBase { */ @JsonCreator SearchKeywordsImpl( - @JsonProperty("values") final Map> values) { + @JsonAnySetter @JsonProperty("values") final Map> values) { this.values = values; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/SuggestionResultImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/SuggestionResultImpl.java index 524abc8a074..5e078e5cd85 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/SuggestionResultImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/SuggestionResultImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -29,7 +30,7 @@ public class SuggestionResultImpl implements SuggestionResult, ModelBase { */ @JsonCreator SuggestionResultImpl( - @JsonProperty("values") final Map> values) { + @JsonAnySetter @JsonProperty("values") final Map> values) { this.values = values; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/type/FieldContainerImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/type/FieldContainerImpl.java index e6dc93579ea..1323144d907 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/type/FieldContainerImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/type/FieldContainerImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -28,7 +29,7 @@ public class FieldContainerImpl implements FieldContainer, ModelBase { * create instance with all properties */ @JsonCreator - FieldContainerImpl(@JsonProperty("values") final Map values) { + FieldContainerImpl(@JsonAnySetter @JsonProperty("values") final Map values) { this.values = values; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java/com/commercetools/api/json/ApiModule.java b/commercetools/commercetools-sdk-java-api/src/main/java/com/commercetools/api/json/ApiModule.java index 771b96451de..3451f9a352a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java/com/commercetools/api/json/ApiModule.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java/com/commercetools/api/json/ApiModule.java @@ -42,7 +42,7 @@ public ApiModule(ModuleOptions options) { } else { addDeserializer(AttributeImpl.class, - new AtrributeDeserializer(attributeAsDateString, attributeNumberAsDouble)); + new AttributeDeserializer(attributeAsDateString, attributeNumberAsDouble)); } if (customFieldAsJsonNode) { addDeserializer(FieldContainerImpl.class, new CustomFieldJsonNodeDeserializer()); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java/com/commercetools/api/json/AtrributeDeserializer.java b/commercetools/commercetools-sdk-java-api/src/main/java/com/commercetools/api/json/AtrributeDeserializer.java index cb9d6b48083..1c6365f3168 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java/com/commercetools/api/json/AtrributeDeserializer.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java/com/commercetools/api/json/AtrributeDeserializer.java @@ -1,247 +1,20 @@ package com.commercetools.api.json; -import java.io.IOException; -import java.time.LocalDate; -import java.time.LocalTime; -import java.time.ZonedDateTime; -import java.util.List; -import java.util.regex.Pattern; - -import com.commercetools.api.models.common.LocalizedString; -import com.commercetools.api.models.common.Reference; -import com.commercetools.api.models.common.TypedMoney; -import com.commercetools.api.models.product.*; -import com.commercetools.api.models.product_type.AttributeLocalizedEnumValue; -import com.commercetools.api.models.product_type.AttributePlainEnumValue; -import com.fasterxml.jackson.core.JsonParser; -import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.DeserializationContext; -import com.fasterxml.jackson.databind.JsonDeserializer; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.node.JsonNodeType; - -public class AtrributeDeserializer extends JsonDeserializer { - - private static Pattern p = Pattern.compile("^[0-9]"); - private static Pattern dateTime = Pattern - .compile("^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}([.][0-9]{1,6})?(Z|[+-][0-9]{2}:[0-9]{2})"); - private static Pattern date = Pattern.compile("^[0-9]{4}-[0-9]{2}-[0-9]{2}"); - private static Pattern time = Pattern.compile("^[0-9]{2}:[0-9]{2}:[0-9]{2}([.][0-9]{1,6})?"); - - private final boolean deserializeAsDate; - - private final boolean deserializeNumberAsDouble; - +/** + * @deprecated typo in the class name, use AttributeDeserializer instead + */ +@Deprecated +public class AtrributeDeserializer extends AttributeDeserializer { public AtrributeDeserializer(boolean deserializeAsDateString) { - this.deserializeAsDate = !deserializeAsDateString; - this.deserializeNumberAsDouble = false; + super(deserializeAsDateString); } public AtrributeDeserializer(boolean deserializeAsDateString, boolean deserializeNumberAsDouble) { - this.deserializeAsDate = !deserializeAsDateString; - this.deserializeNumberAsDouble = deserializeNumberAsDouble; + super(deserializeAsDateString, deserializeNumberAsDouble); } public AtrributeDeserializer() { - this.deserializeAsDate = true; - this.deserializeNumberAsDouble = false; - } - - @Override - public AttributeImpl deserialize(JsonParser p, DeserializationContext ctx) throws IOException { - - JsonNode node = p.readValueAsTree(); - JsonNode valueNode = node.get("value"); - - AttributeBuilder builder = Attribute.builder(); - builder.name(node.get("name").asText()); - - return (AttributeImpl) builder.value(p.getCodec().treeAsTokens(valueNode).readValueAs(typeRef(valueNode))) - .build(); - } - - private TypeReference typeRef(JsonNode valueNode) { - JsonNodeType valueNodeType = valueNode.getNodeType(); - switch (valueNodeType) { - case BOOLEAN: - return new TypeReference() { - }; - case NUMBER: - if (!deserializeNumberAsDouble && (valueNode.isInt() || valueNode.isLong())) { - return new TypeReference() { - }; - } - return new TypeReference() { - }; - case STRING: - if (deserializeAsDate) { - String val = valueNode.asText(); - if (p.matcher(val).find()) { - if (dateTime.matcher(val).find()) { - return new TypeReference() { - }; - } - if (date.matcher(val).matches()) { - return new TypeReference() { - }; - } - if (time.matcher(val).matches()) { - return new TypeReference() { - }; - } - } - } - return new TypeReference() { - }; - case OBJECT: - if (valueNode.has("key") && valueNode.has("label")) { - JsonNode label = valueNode.get("label"); - if (label.getNodeType() == JsonNodeType.OBJECT) { - return new TypeReference() { - }; - } - return new TypeReference() { - }; - } - if (valueNode.has("currencyCode")) { - return new TypeReference() { - }; - } - if (valueNode.has("typeId")) { - return new TypeReference() { - }; - } - if (valueNode.has("value")) { - return new TypeReference() { - }; - } - return new TypeReference() { - }; - case ARRAY: - JsonNode first = valueNode.get(0); - switch (elemType(first)) { - case STRING: - return new TypeReference>() { - }; - case DATE: - return new TypeReference>() { - }; - case DATETIME: - return new TypeReference>() { - }; - case TIME: - return new TypeReference>() { - }; - case NUMBER: - return new TypeReference>() { - }; - case LONG: - return new TypeReference>() { - }; - case BOOLEAN: - return new TypeReference>() { - }; - case ENUM: - return new TypeReference>() { - }; - case LOCALIZED_ENUM: - return new TypeReference>() { - }; - case LOCALIZED_STRING: - return new TypeReference>() { - }; - case MONEY: - return new TypeReference>() { - }; - case REFERENCE: - return new TypeReference>() { - }; - case NESTED: - return new TypeReference>() { - }; - case SET_NESTED: - return new TypeReference>>() { - }; - default: - return new TypeReference>() { - }; - } - default: - return new TypeReference() { - }; - } - } - - private ElemType elemType(JsonNode valueNode) { - if (valueNode == null) { - return ElemType.JSON_NODE; - } - JsonNodeType valueNodeType = valueNode.getNodeType(); - switch (valueNodeType) { - case OBJECT: - if (valueNode.has("key") && valueNode.has("label")) { - JsonNode label = valueNode.get("label"); - if (label.getNodeType() == JsonNodeType.OBJECT) { - return ElemType.LOCALIZED_ENUM; - } - return ElemType.ENUM; - } - if (valueNode.has("currencyCode")) { - return ElemType.MONEY; - } - if (valueNode.has("typeId")) { - return ElemType.REFERENCE; - } - if (valueNode.has("value")) { - return ElemType.NESTED; - } - return ElemType.LOCALIZED_STRING; - case NUMBER: - if (!deserializeNumberAsDouble && (valueNode.isInt() || valueNode.isLong())) { - return ElemType.LONG; - } - return ElemType.NUMBER; - case STRING: - if (deserializeAsDate) { - String val = valueNode.asText(); - if (p.matcher(val).find()) { - if (dateTime.matcher(val).find()) { - return ElemType.DATETIME; - } - if (date.matcher(val).matches()) { - return ElemType.DATE; - } - if (time.matcher(val).matches()) { - return ElemType.TIME; - } - } - } - return ElemType.STRING; - case ARRAY: - return ElemType.SET_NESTED; - case BOOLEAN: - return ElemType.BOOLEAN; - default: - return ElemType.JSON_NODE; - } - } - - private enum ElemType { - STRING, - DATE, - DATETIME, - TIME, - NUMBER, - LONG, - BOOLEAN, - ENUM, - LOCALIZED_ENUM, - LOCALIZED_STRING, - REFERENCE, - MONEY, - JSON_NODE, - NESTED, - SET_NESTED + super(); } } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java/com/commercetools/api/json/AttributeDeserializer.java b/commercetools/commercetools-sdk-java-api/src/main/java/com/commercetools/api/json/AttributeDeserializer.java new file mode 100644 index 00000000000..5a09e241485 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java/com/commercetools/api/json/AttributeDeserializer.java @@ -0,0 +1,247 @@ + +package com.commercetools.api.json; + +import java.io.IOException; +import java.time.LocalDate; +import java.time.LocalTime; +import java.time.ZonedDateTime; +import java.util.List; +import java.util.regex.Pattern; + +import com.commercetools.api.models.common.LocalizedString; +import com.commercetools.api.models.common.Reference; +import com.commercetools.api.models.common.TypedMoney; +import com.commercetools.api.models.product.*; +import com.commercetools.api.models.product_type.AttributeLocalizedEnumValue; +import com.commercetools.api.models.product_type.AttributePlainEnumValue; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.JsonDeserializer; +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.node.JsonNodeType; + +public class AttributeDeserializer extends JsonDeserializer { + + private static Pattern p = Pattern.compile("^[0-9]"); + private static Pattern dateTime = Pattern + .compile("^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}([.][0-9]{1,6})?(Z|[+-][0-9]{2}:[0-9]{2})"); + private static Pattern date = Pattern.compile("^[0-9]{4}-[0-9]{2}-[0-9]{2}"); + private static Pattern time = Pattern.compile("^[0-9]{2}:[0-9]{2}:[0-9]{2}([.][0-9]{1,6})?"); + + private final boolean deserializeAsDate; + + private final boolean deserializeNumberAsDouble; + + public AttributeDeserializer(boolean deserializeAsDateString) { + this.deserializeAsDate = !deserializeAsDateString; + this.deserializeNumberAsDouble = false; + } + + public AttributeDeserializer(boolean deserializeAsDateString, boolean deserializeNumberAsDouble) { + this.deserializeAsDate = !deserializeAsDateString; + this.deserializeNumberAsDouble = deserializeNumberAsDouble; + } + + public AttributeDeserializer() { + this.deserializeAsDate = true; + this.deserializeNumberAsDouble = false; + } + + @Override + public AttributeImpl deserialize(JsonParser p, DeserializationContext ctx) throws IOException { + + JsonNode node = p.readValueAsTree(); + JsonNode valueNode = node.get("value"); + + AttributeBuilder builder = Attribute.builder(); + builder.name(node.get("name").asText()); + + return (AttributeImpl) builder.value(p.getCodec().treeAsTokens(valueNode).readValueAs(typeRef(valueNode))) + .build(); + } + + private TypeReference typeRef(JsonNode valueNode) { + JsonNodeType valueNodeType = valueNode.getNodeType(); + switch (valueNodeType) { + case BOOLEAN: + return new TypeReference() { + }; + case NUMBER: + if (!deserializeNumberAsDouble && (valueNode.isInt() || valueNode.isLong())) { + return new TypeReference() { + }; + } + return new TypeReference() { + }; + case STRING: + if (deserializeAsDate) { + String val = valueNode.asText(); + if (p.matcher(val).find()) { + if (dateTime.matcher(val).find()) { + return new TypeReference() { + }; + } + if (date.matcher(val).matches()) { + return new TypeReference() { + }; + } + if (time.matcher(val).matches()) { + return new TypeReference() { + }; + } + } + } + return new TypeReference() { + }; + case OBJECT: + if (valueNode.has("key") && valueNode.has("label")) { + JsonNode label = valueNode.get("label"); + if (label.getNodeType() == JsonNodeType.OBJECT) { + return new TypeReference() { + }; + } + return new TypeReference() { + }; + } + if (valueNode.has("currencyCode")) { + return new TypeReference() { + }; + } + if (valueNode.has("typeId")) { + return new TypeReference() { + }; + } + if (valueNode.has("value")) { + return new TypeReference() { + }; + } + return new TypeReference() { + }; + case ARRAY: + JsonNode first = valueNode.get(0); + switch (elemType(first)) { + case STRING: + return new TypeReference>() { + }; + case DATE: + return new TypeReference>() { + }; + case DATETIME: + return new TypeReference>() { + }; + case TIME: + return new TypeReference>() { + }; + case NUMBER: + return new TypeReference>() { + }; + case LONG: + return new TypeReference>() { + }; + case BOOLEAN: + return new TypeReference>() { + }; + case ENUM: + return new TypeReference>() { + }; + case LOCALIZED_ENUM: + return new TypeReference>() { + }; + case LOCALIZED_STRING: + return new TypeReference>() { + }; + case MONEY: + return new TypeReference>() { + }; + case REFERENCE: + return new TypeReference>() { + }; + case NESTED: + return new TypeReference>() { + }; + case SET_NESTED: + return new TypeReference>>() { + }; + default: + return new TypeReference>() { + }; + } + default: + return new TypeReference() { + }; + } + } + + private ElemType elemType(JsonNode valueNode) { + if (valueNode == null) { + return ElemType.JSON_NODE; + } + JsonNodeType valueNodeType = valueNode.getNodeType(); + switch (valueNodeType) { + case OBJECT: + if (valueNode.has("key") && valueNode.has("label")) { + JsonNode label = valueNode.get("label"); + if (label.getNodeType() == JsonNodeType.OBJECT) { + return ElemType.LOCALIZED_ENUM; + } + return ElemType.ENUM; + } + if (valueNode.has("currencyCode")) { + return ElemType.MONEY; + } + if (valueNode.has("typeId")) { + return ElemType.REFERENCE; + } + if (valueNode.has("value")) { + return ElemType.NESTED; + } + return ElemType.LOCALIZED_STRING; + case NUMBER: + if (!deserializeNumberAsDouble && (valueNode.isInt() || valueNode.isLong())) { + return ElemType.LONG; + } + return ElemType.NUMBER; + case STRING: + if (deserializeAsDate) { + String val = valueNode.asText(); + if (p.matcher(val).find()) { + if (dateTime.matcher(val).find()) { + return ElemType.DATETIME; + } + if (date.matcher(val).matches()) { + return ElemType.DATE; + } + if (time.matcher(val).matches()) { + return ElemType.TIME; + } + } + } + return ElemType.STRING; + case ARRAY: + return ElemType.SET_NESTED; + case BOOLEAN: + return ElemType.BOOLEAN; + default: + return ElemType.JSON_NODE; + } + } + + private enum ElemType { + STRING, + DATE, + DATETIME, + TIME, + NUMBER, + LONG, + BOOLEAN, + ENUM, + LOCALIZED_ENUM, + LOCALIZED_STRING, + REFERENCE, + MONEY, + JSON_NODE, + NESTED, + SET_NESTED + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/CategoryOrderHintsImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/CategoryOrderHintsImpl.java index 79e343cad6a..163afa10bd8 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/CategoryOrderHintsImpl.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/CategoryOrderHintsImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -28,7 +29,7 @@ public class CategoryOrderHintsImpl implements CategoryOrderHints, ModelBase { * create instance with all properties */ @JsonCreator - CategoryOrderHintsImpl(@JsonProperty("values") final Map values) { + CategoryOrderHintsImpl(@JsonAnySetter @JsonProperty("values") final Map values) { this.values = values; } diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/LocalizedStringImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/LocalizedStringImpl.java index 76a9e973d85..0144dce541f 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/LocalizedStringImpl.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/LocalizedStringImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -28,7 +29,7 @@ public class LocalizedStringImpl implements LocalizedString, ModelBase { * create instance with all properties */ @JsonCreator - LocalizedStringImpl(@JsonProperty("values") final Map values) { + LocalizedStringImpl(@JsonAnySetter @JsonProperty("values") final Map values) { this.values = values; } diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ProductVariantChannelAvailabilityMapImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ProductVariantChannelAvailabilityMapImpl.java index ff060a4e76f..31c02585c51 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ProductVariantChannelAvailabilityMapImpl.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ProductVariantChannelAvailabilityMapImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -29,7 +30,7 @@ public class ProductVariantChannelAvailabilityMapImpl implements ProductVariantC */ @JsonCreator ProductVariantChannelAvailabilityMapImpl( - @JsonProperty("values") final Map values) { + @JsonAnySetter @JsonProperty("values") final Map values) { this.values = values; } diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/SearchKeywordsImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/SearchKeywordsImpl.java index 56c707e1f95..249949f46a1 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/SearchKeywordsImpl.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/SearchKeywordsImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -29,7 +30,7 @@ public class SearchKeywordsImpl implements SearchKeywords, ModelBase { */ @JsonCreator SearchKeywordsImpl( - @JsonProperty("values") final Map> values) { + @JsonAnySetter @JsonProperty("values") final Map> values) { this.values = values; } diff --git a/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/common/LocalizedStringImpl.java b/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/common/LocalizedStringImpl.java index 41f1094ee33..c449ba4e134 100644 --- a/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/common/LocalizedStringImpl.java +++ b/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/common/LocalizedStringImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -33,7 +34,7 @@ public class LocalizedStringImpl implements LocalizedString, ModelBase { * create instance with all properties */ @JsonCreator - LocalizedStringImpl(@JsonProperty("values") final Map values) { + LocalizedStringImpl(@JsonAnySetter @JsonProperty("values") final Map values) { this.values = values; } diff --git a/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/customfields/FieldContainerImpl.java b/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/customfields/FieldContainerImpl.java index 9ef32f48da5..23030dfbbb2 100644 --- a/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/customfields/FieldContainerImpl.java +++ b/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/customfields/FieldContainerImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -29,7 +30,7 @@ public class FieldContainerImpl implements FieldContainer, ModelBase { */ @JsonCreator FieldContainerImpl( - @JsonProperty("values") final Map values) { + @JsonAnySetter @JsonProperty("values") final Map values) { this.values = values; } diff --git a/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/products/SearchKeywordsImpl.java b/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/products/SearchKeywordsImpl.java index 45a142be1f5..d09d5147e4d 100644 --- a/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/products/SearchKeywordsImpl.java +++ b/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/products/SearchKeywordsImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -45,7 +46,7 @@ public class SearchKeywordsImpl implements SearchKeywords, ModelBase { */ @JsonCreator SearchKeywordsImpl( - @JsonProperty("values") final Map> values) { + @JsonAnySetter @JsonProperty("values") final Map> values) { this.values = values; } diff --git a/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/productvariants/AttributesImpl.java b/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/productvariants/AttributesImpl.java index decf84e210a..7b4bd63fa27 100644 --- a/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/productvariants/AttributesImpl.java +++ b/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/productvariants/AttributesImpl.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.*; @@ -29,7 +30,7 @@ public class AttributesImpl implements Attributes, ModelBase { */ @JsonCreator AttributesImpl( - @JsonProperty("values") final Map values) { + @JsonAnySetter @JsonProperty("values") final Map values) { this.values = values; } diff --git a/commercetools/commercetools-sdk-java-importapi/src/main/java/com/commercetools/importapi/json/AttributeMixin.java b/commercetools/commercetools-sdk-java-importapi/src/main/java/com/commercetools/importapi/json/AttributeMixin.java new file mode 100644 index 00000000000..64886ddcdfd --- /dev/null +++ b/commercetools/commercetools-sdk-java-importapi/src/main/java/com/commercetools/importapi/json/AttributeMixin.java @@ -0,0 +1,8 @@ + +package com.commercetools.importapi.json; + +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; + +@JsonDeserialize(using = ErrorAttributeDeserializer.class) +public interface AttributeMixin { +} diff --git a/commercetools/commercetools-sdk-java-importapi/src/main/java/com/commercetools/importapi/json/ErrorAttributeDeserializer.java b/commercetools/commercetools-sdk-java-importapi/src/main/java/com/commercetools/importapi/json/ErrorAttributeDeserializer.java new file mode 100644 index 00000000000..4d8596c165c --- /dev/null +++ b/commercetools/commercetools-sdk-java-importapi/src/main/java/com/commercetools/importapi/json/ErrorAttributeDeserializer.java @@ -0,0 +1,183 @@ + +package com.commercetools.importapi.json; + +import static com.fasterxml.jackson.databind.node.JsonNodeType.OBJECT; + +import java.io.IOException; +import java.util.*; + +import com.commercetools.importapi.models.common.*; +import com.commercetools.importapi.models.productvariants.*; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.JsonDeserializer; +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.node.JsonNodeType; + +public class ErrorAttributeDeserializer extends JsonDeserializer { + protected ErrorAttributeDeserializer() { + } + + @Override + public Attribute deserialize(JsonParser p, DeserializationContext ctxt) throws IOException { + JsonNode node = p.readValueAsTree(); + JsonNode valueNode = node.get("value"); + + JsonNodeType valueNodeType = valueNode.getNodeType(); + switch (valueNodeType) { + case BOOLEAN: + return BooleanAttributeBuilder.of() + .name(node.get("name").asText()) + .value(valueNode.asBoolean()) + .build(); + + case NUMBER: + return NumberAttributeBuilder.of().name(node.get("name").asText()).value(valueNode.asDouble()).build(); + case STRING: + return TextAttributeBuilder.of().name(node.get("name").asText()).value(valueNode.asText()).build(); + case OBJECT: + return createAttributeFromObject(node); + case ARRAY: + JsonNode firstElement = valueNode.get(0); + JsonNodeType firstElementNodeType = firstElement.getNodeType(); + switch (firstElementNodeType) { + case STRING: + List stringValues = new ArrayList<>(); + valueNode.elements().forEachRemaining(element -> stringValues.add(element.asText())); + return TextSetAttributeBuilder.of().name(node.get("name").asText()).value(stringValues).build(); + case NUMBER: + List numberValues = new ArrayList<>(); + valueNode.elements().forEachRemaining(element -> numberValues.add(element.asDouble())); + return NumberSetAttributeBuilder.of() + .name(node.get("name").asText()) + .value(numberValues) + .build(); + case BOOLEAN: + List booleanValues = new ArrayList<>(); + valueNode.elements().forEachRemaining(element -> booleanValues.add(element.asBoolean())); + return BooleanSetAttributeBuilder.of() + .name(node.get("name").asText()) + .value(booleanValues) + .build(); + case OBJECT: + return createSetAttributeFromObject(node); + } + default: + AttributeImpl attribute = new AttributeImpl(); + attribute.setName(node.get("name").asText()); + return attribute; + } + } + + private ReferenceType getReferenceType(String typeId) { + return Arrays.stream(ReferenceType.ReferenceTypeEnum.values()) + .filter(referenceTypeEnum -> referenceTypeEnum.getJsonName().equals(typeId)) + .findFirst() + .orElse(null); + } + + private Attribute createAttributeFromObject(JsonNode node) { + JsonNode valueNode = node.get("value"); + if (valueNode.has("key") && valueNode.has("label")) { + JsonNode label = valueNode.get("label"); + if (label.getNodeType() == OBJECT) { + return LocalizableEnumAttributeBuilder.of() + .name(node.get("name").asText()) + .value(valueNode.get("key").textValue()) + .build(); + } + return EnumAttributeBuilder.of() + .name(node.get("name").asText()) + .value(valueNode.get("key").textValue()) + .build(); + } + if (valueNode.has("currencyCode")) { + return MoneyAttributeBuilder.of() + .name(node.get("name").asText()) + .value(typedMoneyBuilder -> typedMoneyBuilder.centPrecisionBuilder() + .currencyCode(valueNode.get("currencyCode").asText()) + .centAmount(valueNode.get("centAmount").asLong()) + .fractionDigits(valueNode.get("fractionDigits").asInt())) + .build(); + } + if (valueNode.has("typeId")) { + return ReferenceAttributeBuilder.of() + .name(node.get("name").asText()) + // this is not working because reference contains ID and KeyReference requires ID + // .value((KeyReference) p.getCodec().treeAsTokens(valueNode).readValueAs(getTypeRef(valueNode.get("typeId").asText()))) + .value(createKeyReference(valueNode)) + .build(); + } + return LocalizableTextAttributeBuilder.of().name(node.get("name").asText()).value(localizedStringBuilder -> { + valueNode.fields() + .forEachRemaining(nodeEntry -> localizedStringBuilder.addValue(nodeEntry.getKey(), + nodeEntry.getValue().asText())); + return localizedStringBuilder; + }).build(); + } + + private Attribute createSetAttributeFromObject(JsonNode node) { + JsonNode valueNode = node.get("value"); + JsonNode firstElement = valueNode.get(0); + if (firstElement.has("key") && firstElement.has("label")) { + List keys = new ArrayList<>(); + valueNode.iterator().forEachRemaining(jsonNode -> jsonNode.fields().forEachRemaining(nodeEntry -> { + String key = nodeEntry.getKey(); + if (key.equals("key")) { + keys.add(nodeEntry.getValue().asText()); + } + })); + JsonNode label = firstElement.get("label"); + if (label.getNodeType() == OBJECT) { + return LocalizableEnumSetAttributeBuilder.of().name(node.get("name").asText()).value(keys).build(); + } + return EnumSetAttributeBuilder.of().name(node.get("name").asText()).value(keys).build(); + } + if (firstElement.has("typeId")) { + List keyReferences = new ArrayList<>(); + valueNode.iterator().forEachRemaining(nodeEntry -> { + keyReferences.add(createKeyReference(nodeEntry)); + }); + return ReferenceSetAttributeBuilder.of().name(node.get("name").asText()).value(keyReferences).build(); + } + if (firstElement.has("currencyCode")) { + List values = new ArrayList<>(); + valueNode.iterator().forEachRemaining(nodeEntry -> { + values.add(MoneyBuilder.of() + .currencyCode(nodeEntry.get("currencyCode").asText()) + .centAmount(nodeEntry.get("centAmount").asLong()) + .fractionDigits(nodeEntry.get("fractionDigits").asInt()) + .build()); + }); + return MoneySetAttributeBuilder.of().name(node.get("name").asText()).value(values).build(); + } + + List values = new ArrayList<>(); + valueNode.iterator().forEachRemaining(jsonNode -> { + LocalizedStringBuilder localizedStringBuilder = LocalizedStringBuilder.of(); + jsonNode.fields() + .forEachRemaining(nodeEntry -> localizedStringBuilder.addValue(nodeEntry.getKey(), + nodeEntry.getValue().asText())); + values.add(localizedStringBuilder.build()); + }); + return LocalizableTextSetAttributeBuilder.of().name(node.get("name").asText()).value(values).build(); + } + + private KeyReference createKeyReference(JsonNode node) { + return new KeyReference() { + @Override + public String getKey() { + return node.get("id").asText(); + } + + @Override + public ReferenceType getTypeId() { + return getReferenceType(node.get("typeId").asText()); + } + + @Override + public void setKey(String key) { + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-importapi/src/main/java/com/commercetools/importapi/json/ImportApiModule.java b/commercetools/commercetools-sdk-java-importapi/src/main/java/com/commercetools/importapi/json/ImportApiModule.java index 0690008154a..4e633b014a9 100644 --- a/commercetools/commercetools-sdk-java-importapi/src/main/java/com/commercetools/importapi/json/ImportApiModule.java +++ b/commercetools/commercetools-sdk-java-importapi/src/main/java/com/commercetools/importapi/json/ImportApiModule.java @@ -1,6 +1,7 @@ package com.commercetools.importapi.json; +import com.commercetools.importapi.models.productvariants.Attribute; import com.commercetools.importapi.models.productvariants.Attributes; import com.fasterxml.jackson.databind.module.SimpleModule; @@ -14,5 +15,6 @@ public class ImportApiModule extends SimpleModule { public ImportApiModule(ModuleOptions options) { setMixInAnnotation(Attributes.class, AttributesMixin.class); + setMixInAnnotation(Attribute.class, AttributeMixin.class); } } diff --git a/commercetools/commercetools-sdk-java-importapi/src/test/java/com/commerctools/importapi/DeserializerTest.java b/commercetools/commercetools-sdk-java-importapi/src/test/java/com/commerctools/importapi/DeserializerTest.java new file mode 100644 index 00000000000..56f70d06804 --- /dev/null +++ b/commercetools/commercetools-sdk-java-importapi/src/test/java/com/commerctools/importapi/DeserializerTest.java @@ -0,0 +1,656 @@ + +package com.commerctools.importapi; + +import java.util.Arrays; +import java.util.List; +import java.util.Map; + +import com.commercetools.importapi.models.common.LocalizedStringBuilder; +import com.commercetools.importapi.models.common.MoneyType; +import com.commercetools.importapi.models.common.ReferenceType; +import com.commercetools.importapi.models.errors.DuplicateAttributeValueError; +import com.commercetools.importapi.models.errors.ErrorResponse; +import com.commercetools.importapi.models.productvariants.*; + +import io.vrap.rmf.base.client.utils.json.JsonUtils; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; + +public class DeserializerTest { + + @Test + public void shouldCorrectlyDeserializeErrorWithLocalizedTextAttribute() { + String t = """ + { + "version": 2, + "importContainerKey": "product-index-all", + "resourceKey": "5098_NZ", + "id": "e3708a0b-18d3-4dd5-ba5d-4d59eaff48de", + "state": "validationFailed", + "errors": [ + { + "code": "DuplicateAttributeValue", + "message": "Attribute can't have the same value in a different variant.", + "attribute": { + "name": "slug", + "value": { + "en-NZ": "en-light-medium", + "de-DE": "de-light-medium" + } + } + } + ], + "createdAt": "2024-10-02T06:39:12.614Z", + "lastModifiedAt": "2024-10-02T06:39:52.840Z", + "expiresAt": "2024-10-04T06:39:12.614Z" + } + """; + ErrorResponse errorResponse = JsonUtils.fromJsonString(t, ErrorResponse.class); + Assertions.assertThat(errorResponse.getErrors()).hasSize(1); + LocalizableTextAttribute value = (LocalizableTextAttribute) ((DuplicateAttributeValueError) errorResponse + .getErrors() + .get(0)).getAttribute(); + Assertions.assertThat(value.getValue().values().get("en-NZ")).isEqualTo("en-light-medium"); + Assertions.assertThat(value.getValue().values().get("de-DE")).isEqualTo("de-light-medium"); + } + + @Test + public void shouldCorrectlyDeserializeErrorWithDateAttribute() { + String t = """ + { + "version": 2, + "importContainerKey": "product-index-all", + "resourceKey": "5098_NZ", + "id": "e3708a0b-18d3-4dd5-ba5d-4d59eaff48de", + "state": "validationFailed", + "errors": [ + { + "code": "DuplicateAttributeValue", + "message": "Attribute can't have the same value in a different variant.", + "attribute": { + "name": "creationDate", + "value": "2016-11-21" + } + } + ], + "createdAt": "2024-10-02T06:39:12.614Z", + "lastModifiedAt": "2024-10-02T06:39:52.840Z", + "expiresAt": "2024-10-04T06:39:12.614Z" + } + """; + ErrorResponse errorResponse = JsonUtils.fromJsonString(t, ErrorResponse.class); + Assertions.assertThat(errorResponse.getErrors()).hasSize(1); + TextAttribute value = (TextAttribute) ((DuplicateAttributeValueError) errorResponse.getErrors().get(0)) + .getAttribute(); + Assertions.assertThat(value.getValue()).isEqualTo("2016-11-21"); + } + + @Test + public void shouldCorrectlyDeserializeErrorWithTextAttribute() { + String t = """ + { + "version": 2, + "importContainerKey": "product-index-all", + "resourceKey": "5098_NZ", + "id": "e3708a0b-18d3-4dd5-ba5d-4d59eaff48de", + "state": "validationFailed", + "errors": [ + { + "code": "DuplicateAttributeValue", + "message": "Attribute can't have the same value in a different variant.", + "attribute": { + "name": "textAttribute", + "value": "text" + } + } + ], + "createdAt": "2024-10-02T06:39:12.614Z", + "lastModifiedAt": "2024-10-02T06:39:52.840Z", + "expiresAt": "2024-10-04T06:39:12.614Z" + } + """; + ErrorResponse errorResponse = JsonUtils.fromJsonString(t, ErrorResponse.class); + Assertions.assertThat(errorResponse.getErrors()).hasSize(1); + TextAttribute value = (TextAttribute) ((DuplicateAttributeValueError) errorResponse.getErrors().get(0)) + .getAttribute(); + Assertions.assertThat(value.getValue()).isEqualTo("text"); + } + + @Test + public void shouldCorrectlyDeserializeErrorWithLTextAttribute() { + String t = """ + { + "version": 2, + "importContainerKey": "product-index-all", + "resourceKey": "5098_NZ", + "id": "e3708a0b-18d3-4dd5-ba5d-4d59eaff48de", + "state": "validationFailed", + "errors": [ + { + "code": "DuplicateAttributeValue", + "message": "Attribute can't have the same value in a different variant.", + "attribute": { + "name": "localized-text", + "value": + { + "en": "en-test", + "de": "de-test" + } + } + } + ], + "createdAt": "2024-10-02T06:39:12.614Z", + "lastModifiedAt": "2024-10-02T06:39:52.840Z", + "expiresAt": "2024-10-04T06:39:12.614Z" + } + """; + ErrorResponse errorResponse = JsonUtils.fromJsonString(t, ErrorResponse.class); + Assertions.assertThat(errorResponse.getErrors()).hasSize(1); + LocalizableTextAttribute value = (LocalizableTextAttribute) ((DuplicateAttributeValueError) errorResponse + .getErrors() + .get(0)).getAttribute(); + Assertions.assertThat(value.getValue()) + .isEqualTo(LocalizedStringBuilder.of().values(Map.of("en", "en-test", "de", "de-test")).build()); + } + + @Test + public void shouldCorrectlyDeserializeErrorWithBooleanAttribute() { + String t = """ + { + "version": 2, + "importContainerKey": "product-index-all", + "resourceKey": "5098_NZ", + "id": "e3708a0b-18d3-4dd5-ba5d-4d59eaff48de", + "state": "validationFailed", + "errors": [ + { + "code": "DuplicateAttributeValue", + "message": "Attribute can't have the same value in a different variant.", + "attribute": { + "name": "booleanAttribute", + "value": false + } + } + ], + "createdAt": "2024-10-02T06:39:12.614Z", + "lastModifiedAt": "2024-10-02T06:39:52.840Z", + "expiresAt": "2024-10-04T06:39:12.614Z" + } + """; + ErrorResponse errorResponse = JsonUtils.fromJsonString(t, ErrorResponse.class); + Assertions.assertThat(errorResponse.getErrors()).hasSize(1); + BooleanAttribute value = (BooleanAttribute) ((DuplicateAttributeValueError) errorResponse.getErrors().get(0)) + .getAttribute(); + Assertions.assertThat(value.getValue()).isEqualTo(false); + } + + @Test + public void shouldCorrectlyDeserializeErrorWithLenumAttribute() { + String t = """ + { + "version": 2, + "importContainerKey": "product-index-all", + "resourceKey": "5098_NZ", + "id": "e3708a0b-18d3-4dd5-ba5d-4d59eaff48de", + "state": "validationFailed", + "errors": [ + { + "code": "DuplicateAttributeValue", + "message": "Attribute can't have the same value in a different variant.", + "attribute": { + "name": "color", + "value": { + "key": "black", + "label": { + "en": "black", + "it": "nero", + "de": "schwarz" + } + } + } + } + ], + "createdAt": "2024-10-02T06:39:12.614Z", + "lastModifiedAt": "2024-10-02T06:39:52.840Z", + "expiresAt": "2024-10-04T06:39:12.614Z" + } + """; + ErrorResponse errorResponse = JsonUtils.fromJsonString(t, ErrorResponse.class); + Assertions.assertThat(errorResponse.getErrors()).hasSize(1); + LocalizableEnumAttribute value = (LocalizableEnumAttribute) ((DuplicateAttributeValueError) errorResponse + .getErrors() + .get(0)).getAttribute(); + Assertions.assertThat(value.getValue()).isEqualTo("black"); + } + + @Test + public void shouldCorrectlyDeserializeErrorWithEnumAttribute() { + String t = """ + { + "version": 2, + "importContainerKey": "product-index-all", + "resourceKey": "5098_NZ", + "id": "e3708a0b-18d3-4dd5-ba5d-4d59eaff48de", + "state": "validationFailed", + "errors": [ + { + "code": "DuplicateAttributeValue", + "message": "Attribute can't have the same value in a different variant.", + "attribute": { + "name": "style", + "value": { + "key": "sporty", + "label": "sporty" + } + } + } + ], + "createdAt": "2024-10-02T06:39:12.614Z", + "lastModifiedAt": "2024-10-02T06:39:52.840Z", + "expiresAt": "2024-10-04T06:39:12.614Z" + } + """; + ErrorResponse errorResponse = JsonUtils.fromJsonString(t, ErrorResponse.class); + Assertions.assertThat(errorResponse.getErrors()).hasSize(1); + EnumAttribute value = (EnumAttribute) ((DuplicateAttributeValueError) errorResponse.getErrors().get(0)) + .getAttribute(); + Assertions.assertThat(value.getValue()).isEqualTo("sporty"); + } + + @Test + public void shouldCorrectlyDeserializeErrorWithSetOfTextAttribute() { + String t = """ + { + "version": 2, + "importContainerKey": "product-index-all", + "resourceKey": "5098_NZ", + "id": "e3708a0b-18d3-4dd5-ba5d-4d59eaff48de", + "state": "validationFailed", + "errors": [ + { + "code": "DuplicateAttributeValue", + "message": "Attribute can't have the same value in a different variant.", + "attribute": { + "name": "completeTheLook", + "value": [ + "072336", + "072337", + "072338", + "072339", + "072340", + "072341" + ] + } + } + ], + "createdAt": "2024-10-02T06:39:12.614Z", + "lastModifiedAt": "2024-10-02T06:39:52.840Z", + "expiresAt": "2024-10-04T06:39:12.614Z" + } + """; + ErrorResponse errorResponse = JsonUtils.fromJsonString(t, ErrorResponse.class); + Assertions.assertThat(errorResponse.getErrors()).hasSize(1); + TextSetAttribute value = (TextSetAttribute) ((DuplicateAttributeValueError) errorResponse.getErrors().get(0)) + .getAttribute(); + Assertions.assertThat(value.getValue()) + .isEqualTo(Arrays.asList("072336", "072337", "072338", "072339", "072340", "072341")); + } + + @Test + public void shouldCorrectlyDeserializeErrorWithSetOfNumberAttribute() { + String t = """ + { + "version": 2, + "importContainerKey": "product-index-all", + "resourceKey": "5098_NZ", + "id": "e3708a0b-18d3-4dd5-ba5d-4d59eaff48de", + "state": "validationFailed", + "errors": [ + { + "code": "DuplicateAttributeValue", + "message": "Attribute can't have the same value in a different variant.", + "attribute": { + "name": "test-set-number", + "value": [ + 11, 12 + ] + } + } + ], + "createdAt": "2024-10-02T06:39:12.614Z", + "lastModifiedAt": "2024-10-02T06:39:52.840Z", + "expiresAt": "2024-10-04T06:39:12.614Z" + } + """; + ErrorResponse errorResponse = JsonUtils.fromJsonString(t, ErrorResponse.class); + Assertions.assertThat(errorResponse.getErrors()).hasSize(1); + NumberSetAttribute value = (NumberSetAttribute) ((DuplicateAttributeValueError) errorResponse.getErrors() + .get(0)).getAttribute(); + Assertions.assertThat(value.getValue()).isEqualTo(Arrays.asList(11.0, 12.0)); + } + + @Test + public void shouldCorrectlyDeserializeErrorWithSetOfBooleanAttribute() { + String t = """ + { + "version": 2, + "importContainerKey": "product-index-all", + "resourceKey": "5098_NZ", + "id": "e3708a0b-18d3-4dd5-ba5d-4d59eaff48de", + "state": "validationFailed", + "errors": [ + { + "code": "DuplicateAttributeValue", + "message": "Attribute can't have the same value in a different variant.", + "attribute": { + "name": "test-set-number", + "value": [ + false, true, false + ] + } + } + ], + "createdAt": "2024-10-02T06:39:12.614Z", + "lastModifiedAt": "2024-10-02T06:39:52.840Z", + "expiresAt": "2024-10-04T06:39:12.614Z" + } + """; + ErrorResponse errorResponse = JsonUtils.fromJsonString(t, ErrorResponse.class); + Assertions.assertThat(errorResponse.getErrors()).hasSize(1); + BooleanSetAttribute value = (BooleanSetAttribute) ((DuplicateAttributeValueError) errorResponse.getErrors() + .get(0)).getAttribute(); + Assertions.assertThat(value.getValue()).isEqualTo(Arrays.asList(false, true, false)); + } + + @Test + public void shouldCorrectlyDeserializeErrorWithSetOfLocalizedTextAttribute() { + String t = """ + { + "version": 2, + "importContainerKey": "product-index-all", + "resourceKey": "5098_NZ", + "id": "e3708a0b-18d3-4dd5-ba5d-4d59eaff48de", + "state": "validationFailed", + "errors": [ + { + "code": "DuplicateAttributeValue", + "message": "Attribute can't have the same value in a different variant.", + "attribute": { + "name": "localized-text-set", + "value": [ + { + "en": "en-test", + "de": "de-test" + } + ] + } + } + ], + "createdAt": "2024-10-02T06:39:12.614Z", + "lastModifiedAt": "2024-10-02T06:39:52.840Z", + "expiresAt": "2024-10-04T06:39:12.614Z" + } + """; + ErrorResponse errorResponse = JsonUtils.fromJsonString(t, ErrorResponse.class); + Assertions.assertThat(errorResponse.getErrors()).hasSize(1); + LocalizableTextSetAttribute value = (LocalizableTextSetAttribute) ((DuplicateAttributeValueError) errorResponse + .getErrors() + .get(0)).getAttribute(); + Assertions.assertThat(value.getValue()) + .isEqualTo( + List.of(LocalizedStringBuilder.of().values(Map.of("en", "en-test", "de", "de-test")).build())); + } + + @Test + public void shouldCorrectlyDeserializeErrorWithSetOfEnumAttribute() { + String t = """ + { + "version": 2, + "importContainerKey": "product-index-all", + "resourceKey": "5098_NZ", + "id": "e3708a0b-18d3-4dd5-ba5d-4d59eaff48de", + "state": "validationFailed", + "errors": [ + { + "code": "DuplicateAttributeValue", + "message": "Attribute can't have the same value in a different variant.", + "attribute": { + "name": "enum-set", + "value": [ + { + "key": "DE", + "label": "DE" + }, + { + "key": "EN", + "label": "EN" + } + ] + } + } + ], + "createdAt": "2024-10-02T06:39:12.614Z", + "lastModifiedAt": "2024-10-02T06:39:52.840Z", + "expiresAt": "2024-10-04T06:39:12.614Z" + } + """; + ErrorResponse errorResponse = JsonUtils.fromJsonString(t, ErrorResponse.class); + Assertions.assertThat(errorResponse.getErrors()).hasSize(1); + EnumSetAttribute value = (EnumSetAttribute) ((DuplicateAttributeValueError) errorResponse.getErrors().get(0)) + .getAttribute(); + Assertions.assertThat(value.getValue()).isEqualTo(Arrays.asList("DE", "EN")); + } + + @Test + public void shouldCorrectlyDeserializeErrorWithSetOfLenumAttribute() { + String t = """ + { + "version": 2, + "importContainerKey": "product-index-all", + "resourceKey": "5098_NZ", + "id": "e3708a0b-18d3-4dd5-ba5d-4d59eaff48de", + "state": "validationFailed", + "errors": [ + { + "code": "DuplicateAttributeValue", + "message": "Attribute can't have the same value in a different variant.", + "attribute": { + "name": "localized-enum-set", + "value": [ + { + "key": "731045", + "label": { + "de-DE": "Titanium" + } + }, + { + "key": "731046", + "label": { + "de-DE": "Load adapted" + } + } + ] + } + } + ], + "createdAt": "2024-10-02T06:39:12.614Z", + "lastModifiedAt": "2024-10-02T06:39:52.840Z", + "expiresAt": "2024-10-04T06:39:12.614Z" + } + """; + ErrorResponse errorResponse = JsonUtils.fromJsonString(t, ErrorResponse.class); + Assertions.assertThat(errorResponse.getErrors()).hasSize(1); + LocalizableEnumSetAttribute value = (LocalizableEnumSetAttribute) ((DuplicateAttributeValueError) errorResponse + .getErrors() + .get(0)).getAttribute(); + Assertions.assertThat(value.getValue()).isEqualTo(Arrays.asList("731045", "731046")); + } + + @Test + public void shouldCorrectlyDeserializeErrorWithSetOfReferenceAttribute() { + String t = """ + { + "version": 2, + "importContainerKey": "product-index-all", + "resourceKey": "5098_NZ", + "id": "e3708a0b-18d3-4dd5-ba5d-4d59eaff48de", + "state": "validationFailed", + "errors": [ + { + "code": "DuplicateAttributeValue", + "message": "Attribute can't have the same value in a different variant.", + "attribute": { + "name": "state-reference-set", + "value": [ + { + "id" : "d3e14b2a-5848-4d86-af8a-8e9a27ca84d8", + "typeId" : "state" + }, + { + "id" : "xxx-123-456", + "typeId" : "state" + } + ] + } + } + ], + "createdAt": "2024-10-02T06:39:12.614Z", + "lastModifiedAt": "2024-10-02T06:39:52.840Z", + "expiresAt": "2024-10-04T06:39:12.614Z" + } + """; + ErrorResponse errorResponse = JsonUtils.fromJsonString(t, ErrorResponse.class); + Assertions.assertThat(errorResponse.getErrors()).hasSize(1); + ReferenceSetAttribute value = (ReferenceSetAttribute) ((DuplicateAttributeValueError) errorResponse.getErrors() + .get(0)).getAttribute(); + Assertions.assertThat(value.getValue().size()).isEqualTo(2); + Assertions.assertThat(value.getValue().get(0).getKey()).isEqualTo("d3e14b2a-5848-4d86-af8a-8e9a27ca84d8"); + Assertions.assertThat(value.getValue().get(0).getTypeId().getJsonName()).isEqualTo("state"); + Assertions.assertThat(value.getValue().get(1).getKey()).isEqualTo("xxx-123-456"); + Assertions.assertThat(value.getValue().get(1).getTypeId().getJsonName()).isEqualTo("state"); + } + + @Test + public void shouldCorrectlyDeserializeErrorWithSetOfMoneyAttribute() { + String t = """ + { + "version": 2, + "importContainerKey": "product-index-all", + "resourceKey": "5098_NZ", + "id": "e3708a0b-18d3-4dd5-ba5d-4d59eaff48de", + "state": "validationFailed", + "errors": [ + { + "code": "DuplicateAttributeValue", + "message": "Attribute can't have the same value in a different variant.", + "attribute": { + "name": "money-set", + "value": [ + { + "type": "centPrecision", + "currencyCode": "EUR", + "centAmount": 6490, + "fractionDigits": 2 + }, + { + "type": "centPrecision", + "currencyCode": "USD", + "centAmount": 123, + "fractionDigits": 2 + } + ] + } + } + ], + "createdAt": "2024-10-02T06:39:12.614Z", + "lastModifiedAt": "2024-10-02T06:39:52.840Z", + "expiresAt": "2024-10-04T06:39:12.614Z" + } + """; + ErrorResponse errorResponse = JsonUtils.fromJsonString(t, ErrorResponse.class); + Assertions.assertThat(errorResponse.getErrors()).hasSize(1); + MoneySetAttribute value = (MoneySetAttribute) ((DuplicateAttributeValueError) errorResponse.getErrors().get(0)) + .getAttribute(); + Assertions.assertThat(value.getValue().size()).isEqualTo(2); + Assertions.assertThat(value.getValue().get(0).getCurrencyCode()).isEqualTo("EUR"); + Assertions.assertThat(value.getValue().get(0).getCentAmount()).isEqualTo(6490); + Assertions.assertThat(value.getValue().get(1).getCurrencyCode()).isEqualTo("USD"); + Assertions.assertThat(value.getValue().get(1).getCentAmount()).isEqualTo(123); + } + + @Test + public void shouldCorrectlyDeserializeErrorWithReferenceAttribute() { + String t = """ + { + "version": 2, + "importContainerKey": "product-index-all", + "resourceKey": "5098_NZ", + "id": "e3708a0b-18d3-4dd5-ba5d-4d59eaff48de", + "state": "validationFailed", + "errors": [ + { + "code": "DuplicateAttributeValue", + "message": "Attribute can't have the same value in a different variant.", + "attribute": { + "name": "state-reference", + "value": { + "typeId": "state", + "id": "3ff4cb59-80a5-4ed2-be53-a9637fb7ffae" + } + } + + } + ], + "createdAt": "2024-10-02T06:39:12.614Z", + "lastModifiedAt": "2024-10-02T06:39:52.840Z", + "expiresAt": "2024-10-04T06:39:12.614Z" + } + """; + ErrorResponse errorResponse = JsonUtils.fromJsonString(t, ErrorResponse.class); + Assertions.assertThat(errorResponse.getErrors()).hasSize(1); + ReferenceAttribute value = (ReferenceAttribute) ((DuplicateAttributeValueError) errorResponse.getErrors() + .get(0)).getAttribute(); + Assertions.assertThat(value.getValue().getKey()).isEqualTo("3ff4cb59-80a5-4ed2-be53-a9637fb7ffae"); + Assertions.assertThat(value.getValue().getTypeId()).isEqualTo(ReferenceType.ReferenceTypeEnum.STATE); + } + + @Test + public void shouldCorrectlyDeserializeErrorWithCentPrecisionMoneyAttribute() { + String t = """ + { + "version": 2, + "importContainerKey": "product-index-all", + "resourceKey": "5098_NZ", + "id": "e3708a0b-18d3-4dd5-ba5d-4d59eaff48de", + "state": "validationFailed", + "errors": [ + { + "code": "DuplicateAttributeValue", + "message": "Attribute can't have the same value in a different variant.", + "attribute": { + "name": "moneyAttribute", + "value": { + "type": "centPrecision", + "currencyCode": "EUR", + "centAmount": 6490, + "fractionDigits": 2 + } + } + } + ], + "createdAt": "2024-10-02T06:39:12.614Z", + "lastModifiedAt": "2024-10-02T06:39:52.840Z", + "expiresAt": "2024-10-04T06:39:12.614Z" + } + """; + ErrorResponse errorResponse = JsonUtils.fromJsonString(t, ErrorResponse.class); + Assertions.assertThat(errorResponse.getErrors()).hasSize(1); + MoneyAttribute value = (MoneyAttribute) ((DuplicateAttributeValueError) errorResponse.getErrors().get(0)) + .getAttribute(); + Assertions.assertThat(value.getValue().getCentAmount()).isEqualTo(6490); + Assertions.assertThat(value.getValue().getCurrencyCode()).isEqualTo("EUR"); + Assertions.assertThat(value.getValue().getFractionDigits()).isEqualTo(2); + Assertions.assertThat(value.getValue().getType()).isEqualTo(MoneyType.CENT_PRECISION); + } +} diff --git a/examples/maven-okhttp3/pom.xml b/examples/maven-okhttp3/pom.xml index dbc954f27ca..0c6ae5f1434 100644 --- a/examples/maven-okhttp3/pom.xml +++ b/examples/maven-okhttp3/pom.xml @@ -27,7 +27,7 @@ - 17.17.0 + 17.18.0 diff --git a/examples/maven-okhttp4/pom.xml b/examples/maven-okhttp4/pom.xml index 005f991102e..bf5794884ea 100644 --- a/examples/maven-okhttp4/pom.xml +++ b/examples/maven-okhttp4/pom.xml @@ -27,7 +27,7 @@ - 17.17.0 + 17.18.0 diff --git a/examples/spring-datadog-statsd/build.gradle b/examples/spring-datadog-statsd/build.gradle index 28576a34e32..7a0a8537d9d 100644 --- a/examples/spring-datadog-statsd/build.gradle +++ b/examples/spring-datadog-statsd/build.gradle @@ -20,7 +20,7 @@ repositories { ext { versions = [ - commercetools: "17.17.0", + commercetools: "17.18.0", ] } diff --git a/examples/spring-datadog/build.gradle b/examples/spring-datadog/build.gradle index 4c2a5123867..7e7ddc5678e 100644 --- a/examples/spring-datadog/build.gradle +++ b/examples/spring-datadog/build.gradle @@ -21,7 +21,7 @@ repositories { ext { versions = [ - commercetools: "17.17.0", + commercetools: "17.18.0", ] } diff --git a/examples/spring-newrelic/build.gradle b/examples/spring-newrelic/build.gradle index ab839697e34..c82082be611 100644 --- a/examples/spring-newrelic/build.gradle +++ b/examples/spring-newrelic/build.gradle @@ -21,7 +21,7 @@ repositories { ext { versions = [ - commercetools: "17.17.0", + commercetools: "17.18.0", newrelic: "8.0.1" ] } diff --git a/examples/spring-otel/build.gradle b/examples/spring-otel/build.gradle index a865ec405b2..2e0c208a04c 100644 --- a/examples/spring-otel/build.gradle +++ b/examples/spring-otel/build.gradle @@ -21,7 +21,7 @@ repositories { ext { versions = [ - commercetools: "17.17.0", + commercetools: "17.18.0", ] } diff --git a/examples/spring/build.gradle b/examples/spring/build.gradle index 9f5b7746ddc..5fa5edd6cec 100644 --- a/examples/spring/build.gradle +++ b/examples/spring/build.gradle @@ -31,7 +31,7 @@ spotless { ext { versions = [ - commercetools: "17.17.0", + commercetools: "17.18.0", newrelic: "7.7.0" ] } diff --git a/gradle.properties b/gradle.properties index 184f081b54a..1264a3604fa 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ -#Thu Nov 07 10:34:47 UTC 2024 +#Wed Nov 20 12:38:09 UTC 2024 kotlinVersion=1.5.30 org.gradle.jvmargs=-Xmx2048m -version=17.18.0-SNAPSHOT +version=17.19.0-SNAPSHOT diff --git a/reference.txt b/reference.txt index 47582d8155e..8aa034d956a 100644 --- a/reference.txt +++ b/reference.txt @@ -1 +1 @@ -ccf4522140c12b0093aefe0e2a27d62bcc4834a6 +971c1b4ce06c29fcb8c2402dc2ca523b2907352c diff --git a/references.txt b/references.txt index f604fcc2844..6541ec43b14 100644 --- a/references.txt +++ b/references.txt @@ -333,3 +333,4 @@ a639dbb1cfe5b434c350e7b47ca717c69b3aa369 6a8624fb41168a6a78ac836b7208c2790a686608 971c1b4ce06c29fcb8c2402dc2ca523b2907352c b747e1fa4f246b748a89bccbfd8a43f5b6f51175 +b747e1fa4f246b748a89bccbfd8a43f5b6f51175