Skip to content

Commit

Permalink
Merge branch 'main' into SUPPORT-29621-jackson-2-18-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jenschude authored Nov 20, 2024
2 parents 3d059d3 + b98089c commit e7f2827
Show file tree
Hide file tree
Showing 193 changed files with 1,534 additions and 431 deletions.
1 change: 1 addition & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ a8ec45c8ea4ba559247b654d01b0d35b21a68865
d0129c1095216d5c830900c8a6223ef5d4274de1
4bc5c823b8ebf5a00491c7e63e1ea49d29bf5ee7
352051999507bd78542e177d67ce1548a0752691
bbe9f971763ca1b27687a6a51067a385a0d23b04
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
}
Expand All @@ -42,7 +42,7 @@ dependencies {

```maven
<properties>
<commercetools.version>17.17.0</commercetools.version>
<commercetools.version>17.18.0</commercetools.version>
</properties>
<dependencies>
<dependency>
Expand Down
10 changes: 0 additions & 10 deletions changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,7 @@
<details>
<summary>Changed Property(s)</summary>

- :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`
</details>


<details>
<summary>Added QueryParameter(s)</summary>

- 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`
</details>

Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,15 @@ public void execute() {
}
}

private <TMethod extends SimplePagedQueryResourceRequest<TMethod, TResult, ?>, TResult extends ResourcePagedQueryResponse<TElement>, TElement extends DomainResource<TElement>> void deleteAllResources(
private static <TMethod extends SimplePagedQueryResourceRequest<TMethod, TResult, ?>, TResult extends ResourcePagedQueryResponse<TElement>, TElement extends DomainResource<TElement>> void deleteAllResources(
SimplePagedQueryResourceRequest<TMethod, TResult, ?> request, Consumer<TElement> deleteFn) {

QueryUtils.queryAll(request, list -> {
list.forEach(deleteFn);
}, 100).toCompletableFuture().join();
}

private void checkDepends(Runnable block) {
public static void checkDepends(Runnable block) {
assertEventually(Duration.ofSeconds(60), Duration.ofMillis(1000), block);
}

Expand Down Expand Up @@ -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());
Expand Down
Original file line number Diff line number Diff line change
@@ -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;

Expand All @@ -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<ReferenceTypeId> optional = ReferenceTypeId.findEnumViaJsonName("product-type");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.*;
Expand Down Expand Up @@ -34,7 +35,7 @@ public class AnonymousIdAlreadyInUseErrorImpl implements AnonymousIdAlreadyInUse
*/
@JsonCreator
AnonymousIdAlreadyInUseErrorImpl(@JsonProperty("message") final String message,
@JsonProperty("values") final Map<String, java.lang.Object> values) {
@JsonAnySetter @JsonProperty("values") final Map<String, java.lang.Object> values) {
this.message = message;
this.values = values;
this.code = ANONYMOUS_ID_ALREADY_IN_USE;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.*;
Expand Down Expand Up @@ -41,7 +42,7 @@ public class AssociateMissingPermissionErrorImpl implements AssociateMissingPerm
*/
@JsonCreator
AssociateMissingPermissionErrorImpl(@JsonProperty("message") final String message,
@JsonProperty("values") final Map<String, java.lang.Object> values,
@JsonAnySetter @JsonProperty("values") final Map<String, java.lang.Object> 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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.*;
Expand Down Expand Up @@ -40,7 +41,7 @@ public class AttributeDefinitionAlreadyExistsErrorImpl implements AttributeDefin
*/
@JsonCreator
AttributeDefinitionAlreadyExistsErrorImpl(@JsonProperty("message") final String message,
@JsonProperty("values") final Map<String, java.lang.Object> values,
@JsonAnySetter @JsonProperty("values") final Map<String, java.lang.Object> values,
@JsonProperty("conflictingProductTypeId") final String conflictingProductTypeId,
@JsonProperty("conflictingProductTypeName") final String conflictingProductTypeName,
@JsonProperty("conflictingAttributeName") final String conflictingAttributeName) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.*;
Expand Down Expand Up @@ -40,7 +41,7 @@ public class AttributeDefinitionTypeConflictErrorImpl implements AttributeDefini
*/
@JsonCreator
AttributeDefinitionTypeConflictErrorImpl(@JsonProperty("message") final String message,
@JsonProperty("values") final Map<String, java.lang.Object> values,
@JsonAnySetter @JsonProperty("values") final Map<String, java.lang.Object> values,
@JsonProperty("conflictingProductTypeId") final String conflictingProductTypeId,
@JsonProperty("conflictingProductTypeName") final String conflictingProductTypeName,
@JsonProperty("conflictingAttributeName") final String conflictingAttributeName) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.*;
Expand Down Expand Up @@ -36,7 +37,7 @@ public class AttributeNameDoesNotExistErrorImpl implements AttributeNameDoesNotE
*/
@JsonCreator
AttributeNameDoesNotExistErrorImpl(@JsonProperty("message") final String message,
@JsonProperty("values") final Map<String, java.lang.Object> values,
@JsonAnySetter @JsonProperty("values") final Map<String, java.lang.Object> values,
@JsonProperty("invalidAttributeName") final String invalidAttributeName) {
this.message = message;
this.values = values;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.*;
Expand Down Expand Up @@ -34,7 +35,7 @@ public class BadGatewayErrorImpl implements BadGatewayError, ModelBase {
*/
@JsonCreator
BadGatewayErrorImpl(@JsonProperty("message") final String message,
@JsonProperty("values") final Map<String, java.lang.Object> values) {
@JsonAnySetter @JsonProperty("values") final Map<String, java.lang.Object> values) {
this.message = message;
this.values = values;
this.code = BAD_GATEWAY;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.*;
Expand Down Expand Up @@ -35,7 +36,7 @@ public class ConcurrentModificationErrorImpl implements ConcurrentModificationEr
*/
@JsonCreator
ConcurrentModificationErrorImpl(@JsonProperty("message") final String message,
@JsonProperty("values") final Map<String, java.lang.Object> values,
@JsonAnySetter @JsonProperty("values") final Map<String, java.lang.Object> values,
@JsonProperty("currentVersion") final Long currentVersion) {
this.message = message;
this.values = values;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.*;
Expand Down Expand Up @@ -33,7 +34,7 @@ public class ContentTooLargeErrorImpl implements ContentTooLargeError, ModelBase
*/
@JsonCreator
ContentTooLargeErrorImpl(@JsonProperty("message") final String message,
@JsonProperty("values") final Map<String, java.lang.Object> values) {
@JsonAnySetter @JsonProperty("values") final Map<String, java.lang.Object> values) {
this.message = message;
this.values = values;
this.code = CONTENT_TOO_LARGE;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.*;
Expand Down Expand Up @@ -46,7 +47,7 @@ public class CountryNotConfiguredInStoreErrorImpl implements CountryNotConfigure
*/
@JsonCreator
CountryNotConfiguredInStoreErrorImpl(@JsonProperty("message") final String message,
@JsonProperty("values") final Map<String, java.lang.Object> values,
@JsonAnySetter @JsonProperty("values") final Map<String, java.lang.Object> values,
@JsonProperty("storeCountries") final java.util.List<String> storeCountries,
@JsonProperty("country") final String country) {
this.message = message;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.*;
Expand Down Expand Up @@ -55,7 +56,7 @@ public class DiscountCodeNonApplicableErrorImpl implements DiscountCodeNonApplic
*/
@JsonCreator
DiscountCodeNonApplicableErrorImpl(@JsonProperty("message") final String message,
@JsonProperty("values") final Map<String, java.lang.Object> values,
@JsonAnySetter @JsonProperty("values") final Map<String, java.lang.Object> values,
@JsonProperty("discountCode") final String discountCode, @JsonProperty("reason") final String reason,
@JsonProperty("discountCodeId") final String discountCodeId,
@JsonProperty("validFrom") final java.time.ZonedDateTime validFrom,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.*;
Expand Down Expand Up @@ -35,7 +36,7 @@ public class DuplicateAttributeValueErrorImpl implements DuplicateAttributeValue
*/
@JsonCreator
DuplicateAttributeValueErrorImpl(@JsonProperty("message") final String message,
@JsonProperty("values") final Map<String, java.lang.Object> values,
@JsonAnySetter @JsonProperty("values") final Map<String, java.lang.Object> values,
@JsonProperty("attribute") final com.commercetools.api.models.product.Attribute attribute) {
this.message = message;
this.values = values;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.*;
Expand Down Expand Up @@ -35,7 +36,7 @@ public class DuplicateAttributeValuesErrorImpl implements DuplicateAttributeValu
*/
@JsonCreator
DuplicateAttributeValuesErrorImpl(@JsonProperty("message") final String message,
@JsonProperty("values") final Map<String, java.lang.Object> values,
@JsonAnySetter @JsonProperty("values") final Map<String, java.lang.Object> values,
@JsonProperty("attributes") final java.util.List<com.commercetools.api.models.product.Attribute> attributes) {
this.message = message;
this.values = values;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.*;
Expand Down Expand Up @@ -35,7 +36,7 @@ public class DuplicateEnumValuesErrorImpl implements DuplicateEnumValuesError, M
*/
@JsonCreator
DuplicateEnumValuesErrorImpl(@JsonProperty("message") final String message,
@JsonProperty("values") final Map<String, java.lang.Object> values,
@JsonAnySetter @JsonProperty("values") final Map<String, java.lang.Object> values,
@JsonProperty("duplicates") final java.util.List<String> duplicates) {
this.message = message;
this.values = values;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.*;
Expand Down Expand Up @@ -37,7 +38,7 @@ public class DuplicateFieldErrorImpl implements DuplicateFieldError, ModelBase {
*/
@JsonCreator
DuplicateFieldErrorImpl(@JsonProperty("message") final String message,
@JsonProperty("values") final Map<String, java.lang.Object> values,
@JsonAnySetter @JsonProperty("values") final Map<String, java.lang.Object> values,
@JsonProperty("field") final String field,
@JsonProperty("duplicateValue") final java.lang.Object duplicateValue) {
this.message = message;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.*;
Expand Down Expand Up @@ -40,7 +41,7 @@ public class DuplicateFieldWithConflictingResourceErrorImpl
*/
@JsonCreator
DuplicateFieldWithConflictingResourceErrorImpl(@JsonProperty("message") final String message,
@JsonProperty("values") final Map<String, java.lang.Object> values,
@JsonAnySetter @JsonProperty("values") final Map<String, java.lang.Object> values,
@JsonProperty("field") final String field,
@JsonProperty("duplicateValue") final java.lang.Object duplicateValue,
@JsonProperty("conflictingResource") final com.commercetools.api.models.common.Reference conflictingResource) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.*;
Expand Down Expand Up @@ -36,7 +37,7 @@ public class DuplicatePriceKeyErrorImpl implements DuplicatePriceKeyError, Model
*/
@JsonCreator
DuplicatePriceKeyErrorImpl(@JsonProperty("message") final String message,
@JsonProperty("values") final Map<String, java.lang.Object> values,
@JsonAnySetter @JsonProperty("values") final Map<String, java.lang.Object> values,
@JsonProperty("conflictingPrice") final com.commercetools.api.models.common.Price conflictingPrice) {
this.message = message;
this.values = values;
Expand Down
Loading

0 comments on commit e7f2827

Please sign in to comment.