Skip to content
This repository was archived by the owner on Mar 5, 2021. It is now read-only.

Releases: commercetools/sphere-play-sdk

0.36

Choose a tag to compare

@schleichardt schleichardt released this 10 Oct 14:42

API

  • The Java client can now handle i18n for the name, description and the meta
    attributes of Category and Product instances

Play SDK

  • Default locale can be set in application.conf's sphere.defaultLocale

0.34

Choose a tag to compare

@schleichardt schleichardt released this 10 Oct 14:43
General

New error handling: Errors returned by the Sphere Projects Web Service are now properly parsed and reported.
See the API docs for reference.

Play SDK

API

  • Sphere.products, Sphere.orders etc. are now methods instead of public final fields to allow for easier mocking.
  • New error handling: the return type of all async methods that modify backend state changed
    from Promise<T> to Promise<SphereResult<T>>.
Java client

API

  • Added a method SphereClient.shutdown that releases all resources acquired by the SphereClient.
    This closes all HTTP connections and shuts down all internal thread pools.
  • New error handling: the return type of all async methods that modify backend state changed
    from ListenableFuture<T> to ListenableFuture<SphereResult<T>>.

MISC

  • Image.getSize falls back to the original image if requested size is not available.
  • Updated Async HTTP client to 1.7.16
  • Updated Joda time to 2.2
  • Updated Joda convert to 1.3.1
  • Updated Jackson to 1.9.10
  • Removed dependency on Apache commons codec

0.33

Choose a tag to compare

@schleichardt schleichardt released this 10 Oct 14:44
General

API

  • All service methods that used to accept the (id, version) pair now accept a VersionedId.
Play SDK

API

  • Renamed CurrentCustomer.updateCustomer to CurrentCustomer.update.
  • Renamed CurrentCart.unsetShippingAddress[Async] to clearShippingAddress[Async].
  • Merged the class SphereClient into Sphere.
  • All service methods that modify backend state now have two versions: synchronous and asynchronous. This is to
    make calling service.update(...) less error prone: previously such call would do nothing unless you said
    service.update(...).execute().
Java client

API

  • Changed the type of variant id from String to int.
  • Annotated all data object methods that are guaranteed to never return null with @Nonnull.
  • Added a getIdAndVersion method to all versioned data objects. This method returns a VersionedId, which is an id plus version.
    Removed the getVersion method, but kept getId for convenience as it is often needed.
  • Removed SphereClient and AppClient that don't have a good use case yet.
  • Renamed ShopClient to SphereClient.
  • Added LineItemContainer.customerEmail.
  • Added Customer.getAddressById
  • Order now has a getCurrency method.
  • Renamed OrderService.orderCart to createOrder.
  • Removed methods to get individual parts of Customer's name. Use Customer.getName.
  • Removed ScaledImage.getScaleRatio, added 'Image.isSizeAvailable(size)'.
  • Renamed [Comment|Review]Update.setAuthorName to setAuthor.
  • Renamed [Comment|Review].getAuthorName to getAuthor.
  • Renamed CustomerUpdate.unsetDefault[Shipping|Billing]Address to clearDefault[Shipping|Billing]Address.

MISC

  • Improved Javadoc

0.32

Choose a tag to compare

@schleichardt schleichardt released this 10 Oct 14:45
General

MISC

  • Removed test dependency on Scalamock.
Play SDK

API

  • Config key sphere.api.mode renamed to sphere.products.mode. Valid values are "published", "staged".
  • Config keys sphere.cartCurrency, sphere.cartInventoryMode are now sphere.cart.currency, sphere.cart.inventoryMode.
  • Renamed checkoutSummaryId to checkoutSnapshotId.
  • `resetPassword1 is now a method of CustomerService.
Java client

API

  • CustomerService.signup() and signupWithCart() now accept a CustomerName object.

FIX

  • Customer update actions now match the backend by referring to addresses by ids.

MISC

  • Removed dependency on Scala standard library.)`