Skip to content

Releases: commercetools/commercetools-sdk-java-v2

6.2.1

22 Sep 12:48
6.2.1
47ed672
Compare
Choose a tag to compare
  • fix package for ProjectApiRoot
    Package has been changed from com.commercetools..defaultconfig to com.commercetools..client, e.g.: com.commercetools.api.client.ProjectApiRoot instead of com.commercetools.api.defaultconfig.ProjectApiRoot

6.2.0

13 Sep 09:43
6.2.0
d9328c6
Compare
Choose a tag to compare
  • adds ProjectApiRoot class to be used as project scoped api root.
    ProjectApiRoot root = ApiRootBuilder.of()
          .build("projectKey");
    
  • adds possibilities to add multiple query parameters at once

6.1.0

02 Sep 12:06
6.1.0
2bf1913
Compare
Choose a tag to compare
  • adds equals and hashCode to resource method classes

6.0.0

30 Aug 07:22
6.0.0
5759806
Compare
Choose a tag to compare

New Features

  • a new module with support for the Apache HTTP Async client has been added
  • API Client and Auth client provide hints of possible misconfigurations
  • Update of the Models to the latest API changes

Breaking change

  • All model builders now check if all required fields have been set. An additional method buildUnchecked has been added.

5.2.0

02 Aug 13:16
1f75d62
Compare
Choose a tag to compare
Merge pull request #170 from commercetools/gen-sdk-updates

Update generated SDKs

5.1.0

13 Jul 07:07
5.1.0
0acda3b
Compare
Choose a tag to compare

Examples:

  • added examples and test for Maven configured projects

OkHttp:

  • specify more clearly a version range of the OkHttp client
  • imports of the OkHttp client projects using the FQDN to avoid clashes in the classpath

Api:

  • fixed return type for customer email token confirmation
  • image upload improved to detect the content type if not given for the request
  • type fix for the image upload query parameter variant
  • type fixes for deliveryAdress custom field update actions
  • correct naming for StagedOrderUpdateActions

Import:

  • querying import sinks allow multiply sort parameters
  • added ImportOperation total
  • import sink resourceType is nullable

ML:

  • image upload improved to detect the content type if not given for the request

5.0.0

17 Jun 10:05
5.0.0
ba9cde2
Compare
Choose a tag to compare

As some return types have been changed we released a new major version.

  • Added a BaseAddress model to be able to use Address & AddressDraft models when writing to the API. This should be mostly backwards compatible, but return types of Drafts and DraftBuilders methods for addresses have been changed.
  • DeprecatableTrait has been split to Deprecatable200Trait and Deprecatable201Trait
  • fixed InventoryEntry supplyChannel type to ChannelReference

4.1.0

28 Apr 08:39
4.1.0
3199f8d
Compare
Choose a tag to compare
  • Fixes issue with HTTP/2 connections which result in shutdown of the HTTP client connection pool by forcing HTTP/1.1 connections
  • Introduces a compatibility layer for the JVM SDK
    This allows to use SDKv1 commands with the new SDK. Use the CompatClient for mapping the results to the v2 SDK models. Use the CompatSphereClient to use the v2 SDK client as a SphereClient replacement
  • Query parameters use now primitive types as parameters
    This allows autoboxing/unboxing and type conversions (e.g. int to long) to simplify the usage of query parameters
  • Fixed return types for Me endpoint methods
  • Improved Tracing of the RetryMiddleware

4.0.1

28 Apr 08:22
4.0.1
4b89e9d
Compare
Choose a tag to compare

Fixed type of quantity property for MyLineItemDraft

4.0.0

28 Apr 08:21
4.0.0
d83458f
Compare
Choose a tag to compare

Introduced ClientBuilder for easier creation of an ApiHttpClient instance
Deprecated ClientFactory
DateSerializer is now configurable to return Attribute dates as String
Support for form parameters in product search requests
Attribute with Numbers are now deserialized to a long if no decimal places are given
added Audit log SDK