Skip to content
This repository was archived by the owner on Oct 24, 2023. It is now read-only.

Releases: commercetools/commercetools-php-sdk

v1.2.1

06 Jan 13:52
Compare
Choose a tag to compare
  • OAuth: remove dependency for CacheItem implementation (59265b3)

v1.2.0

06 Jan 13:53
Compare
Choose a tag to compare

Bug Fixes

  • Client: fix format of UserAgent header (bc37b2f)

Features

  • Cart: add updateProductData flag to cart recalculate action (827a392), closes #220
  • Cart: support anonymous checkout for me endpoint (a89f38c), closes #221
  • MeEndpoint: add get active cart request (e61d29d), closes #224
  • MyProfile: support customer profile on me endpoint (3cc0f73), closes #223
  • Orders: add support for orders at me endpoint (e776230), closes #222
  • Product: add image upload request (e8985bd), closes #146
  • Product: support product price selection (02026a7),(ebac224), closes #225
  • ProductSearch: add fuzzy level support (617a4ea), closes #217

v1.1.1

06 Jan 13:53
Compare
Choose a tag to compare

Bug Fixes

  • LocalizedEnumCollection: use correct type for LocalizedEnumCollection elements (9492a8c), closes #218

v1.1.0

06 Jan 13:53
Compare
Choose a tag to compare

Bug Fixes

  • JsonObject: fix JsonObject::hasField method to return if the field has a value set (c2eaed5), closes #173

Features

  • Cache: add support for PSR-6 cache adapter (e6cbd27), closes #194
  • Cart: support new cart tax modes (f6bfeeb), closes #207
  • Customer: support anonymous cart sign in mode for customer login (e94ac48), closes #212
  • Error: add DiscountCodeNonApplicable error (a42e90d), closes #198
  • Product: add changeMasterVariant update action (48d1a42), closes #204
  • Product: add getAllVariants helper method to product data (006e984), closes #213
  • Product: add image move to position update action (c24839b), closes #206
  • Product: add scopedPrice and scopePriceDiscounted to ProductVariant model (f7d25d8), closes #201
  • Product: add support to publish product on creation (ee71818), closes #203
  • Product: support availableQuantity for product variant availability (dbc4c48), closes #202
  • Product: support fuzzy query for product suggest (1d59870), closes #205
  • Query: add support for multiple where query parameters (591c926), closes #196
  • Request: support reference expansion for CRUD requests (0f29ea7), closes #199
  • Review: add review messages (f20c858)
  • UpdateRequest: add hasActions method to update requests (cb98ffd)

v1.0.1

06 Jan 13:53
Compare
Choose a tag to compare

Bug Fixes

  • Product: fix mapping for product variant availability (c0c461f)

v1.0.0-RC12

06 Jan 13:54
Compare
Choose a tag to compare

Bug Fixes

  • Cart: fix type of custom line-item slug (34367d5)
  • CustomLineItem: fix type of slug in custom line-item (d8d7d2a)

Features

  • Cart: add helper to calculate line item count (291bd05)
  • Client: add support for oauth password and refresh token flow (fe23c8b), closes #191
  • Error: add oauth error classes (92eec57)
  • Product: add support to use sku to identify a product variant in update action (7f1979b), closes #192
  • Reference: add constructor ofKey constructor to references (e6fafc3)

BREAKING CHANGES

  • removed Facet, Filter, FilterRange and FilterRangeCollection in namespace Commercetools\Core\Model\Product. Please use the classes found in namespace Commercetools\Core\Model\Product\Search instead.

v1.0.0

06 Jan 13:54
Compare
Choose a tag to compare

There had been no changes

v1.0.0-RC11.1

06 Jan 13:54
Compare
Choose a tag to compare

Bug Fixes

  • Product: change type of price collection (8cc1262)

Code Refactoring

  • Customer: adjust customer email verification request to API changes (2e3dd32)
  • Customer: adjust customer password change request to API changes (318e93f)

Features

  • Client: add support for oauth scopes (5545dfd)
  • Client: log response body and headers of api exceptions (f371979), closes #186
  • Product: add update action for stageable SKU (870a1f8)
  • Response: add getter for correlation id (6029a02), closes #69

BREAKING CHANGES

  • Product: renamed the ProductSetSKUAction to ProductSetSKUNotStageableAction

    Before:

    ProductSetSKUAction::ofVariantId()
    

    After:

    ProductSetSKUNotStageableAction::ofVariantId() // old behavior action
    ProductSetSkuAction::ofVariantId() // stageable action
    
  • Product: fix type of price collections

    Before:

    ProductAddVariantAction::of()->setPrices(PriceCollection::of()->add(Price::of()))
    

    After:

    ProductAddVariantAction::of()->setPrices(PriceDraftCollection::of()->add(PriceDraft::of()))
    
  • Customer: adjust customer email verification request to API changes

    Before:

    CustomerEmailConfirmRequest::ofIdVersionAndToken($id, $version, $token)
    

    After:

    CustomerEmailConfirmRequest::ofToken($token)
    
  • Customer: adjust customer password change request to API changes

    Before:

    CustomerPasswordResetRequest::ofIdVersionTokenAndPassword($id, $version, $token, $newPassword)
    

    After:

    CustomerPasswordResetRequest::ofTokenAndPassword($token, $newPassword)
    

v1.0.0-RC10

06 Jan 13:56
Compare
Choose a tag to compare

Bug Fixes

  • CartDiscount: fix cart discount target with correct type (220c1da)
  • Client: fix guzzle5 adapter to send user agent (3ae8748)
  • Collection: fix add function for collection (993cddd)
  • Collection: fix collection iterator for associative collections (2442677)
  • Customer: fix exception on getDefaultAddresses for empty customer address (7bd63a4)
  • DateDecorator: fix date overflow for date decorator on serialization (9009b8f)
  • Inventory: fix setSupplyChannel action for inventory update (f356179)
  • LocalizedString: use graceful flag for language property getter (621195d)
  • Payment: correct type mapping for transaction state (0c6f36d)
  • Reference: remove obj from serialized result if resource is embedded (79f8cba)
  • Review: fix locale serialization for review models (973129d)

Features

  • Category: add metaDescription, metaKeywords, metaTitle to Category and CategoryDraft model (5468676)
  • Customer: add update actions to set customer's firstName, middleName, lastName and title (b122225)
  • GraphQL: add request to query GraphQL endpoint (182641a)
  • LineItem: add helper function to calculate discounted price (961a493)
  • Payment: add change amount planned update action (2815f98)
  • Product: add product setCategoryOrderHint action (9f8de04)
  • Product: add set prices update action (a8c4206)
  • ProductSearch: support POST for filters and facets (caeb0a5)
  • ProductType: add change isSearchable update action (95395f9)
  • ProductType: add inputTip to attribute definition (09288a4)
  • ProductType: add key to product type (4e1d393)
  • Review: add by key requests (ebc4ece)
  • Review: add update by key request (710c89e)
  • Review: update Review requests and models to API changes (6634658)
  • ShippingMethod: add delete request for shipping methods (e5510f6)
  • State: add set, add and remove roles update action (7c9a28d)
  • Type: add by key delete requests (509616f)
  • Type: add type change key action (1c2ebf4)
  • Type: add type update by key request (72e4bd2)
  • Types: add delete type by key request (2450b7a)
  • Types: add request to get type by key (2b34ae9), closes #169

DEPRECATION NOTE

Facet, Filter, FilterRange and FilterRangeCollection in namespace Commercetools\Core\Model\Product have been marked as deprecated and will be removed in v1.0.0. Please use the classes found in namespace Commercetools\Core\Model\Product\Search instead.

BREAKING CHANGES

  • Changed named constructors for type update actions

    Before:

    TypeAddLocalizedEnumValueAction::ofEnum(...)
    TypeAddEnumValueAction::ofEnum(...)
    TypeChangeEnumValueOrderAction::ofEnums(...)
    TypeChangeLocalizedEnumValueOrderAction::ofEnums(...)
    TypeChangeLabelAction::ofLabel(...)
    

    After:

    TypeAddLocalizedEnumValueAction::ofNameAndEnum(...)
    TypeAddEnumValueAction::ofNameAndEnum(...)
    TypeChangeEnumValueOrderAction::ofNameAndEnums(...)
    TypeChangeLocalizedEnumValueOrderAction::ofNameAndEnums(...)
    TypeChangeLabelAction::ofNameAndLabel(...)
    

v1.0.0-RC9

06 Jan 13:57
Compare
Choose a tag to compare

Bug Fixes

  • Collection: fix serialization of collection with primitive types (0e1251f)
  • CustomField: fix custom field object draft to reflect API changes (90156aa)
  • CustomFields: fix custom type update actions to match changed API (26efdcf)
  • CustomObject: remove type for custom object value (b37c604), closes #163
  • Product: fix type of priceId (23c2de5)
  • ProductProjection: fix context of getAllVariants helper method (28526db)

Features

  • Cart: add fields to cart draft (8b2ab3b)
  • Category: add CategoryCreated and CategorySlugChanged messages (014dde2)
  • CategoryCollection: add getById to CategoryCollection (1a79cbc)
  • Channel: add custom field to channel (5e9601d)
  • Client: add config option for accept encoding (e.g. enabling gzip compression) (c57f2ee)
  • Client: add gzip as default acceptEncoding (2ddd99d)
  • CurrencyFormatter: change currencyFormatter to use fraction digits from intl extension (e8d058b)
  • Customer: add CustomerCreated message (12c9bff)
  • Customer: add getter for default shipping and billing address (7b776f9), closes #162
  • CustomFields: update custom field draft to API changes (dfae984)
  • CustomObject: add delete by id request (9eb8ba7)
  • Inventory: add SetSupplyChannel action (d453e5e)
  • Payment: add change transaction state, timestamp and interactionId actions (3eee823)
  • Payment: add PaymentTransactionChanged message (7c3e6d8)
  • Payment: add state and id to payment transaction (b7ee577)
  • Product: add price field to variant for price selection (ea8169e)
  • Product: add ProductCreated and ProductSlugChanged messages (dbb8a28)
  • Product: support resource identifier for product type at product creation (d7e1980)
  • ProductSearch: add matching variant to ProductVariant object (2e336df)
  • ProductSearch: add price select methods for search (ad8b4cd)
  • ProductSearch: add price select methods to ProductProjectionSearchRequest (51f889d)
  • ProductSearch: add price select parameters (f1717b8)
  • ProductType: add get, update and delete by key requests (0ad3973)
  • ProductType: add getByName and getById to ProductTypeCollection (2b2e005)
  • Request: add min and max for query limit (66947e6)

BREAKING CHANGES

  • CustomObject: CustomObjectCreateRequest expects CustomObjectDraft object

    Before:

    $request = CustomObjectCreateRequest::ofObject(CustomObject::of()->setContainer('test')->setKey('test-key')->setValue(json_encode($value)));
    

    After:

    $request = CustomObjectCreateRequest::ofObject(CustomObjectDraft::ofContainerKeyAndValue('test', 'test-key', $value));
    
  • CustomFields: the type reference had been changed at the API

    Before:

    $customFieldObjectDraft->setTypeId('type-12345');
    $customFieldObjectDraft->setTypeKey('type-key');
    

    After:

    $customFieldObjectDraft->setType(TypeReference::ofId('type-12345'));
    $customFieldObjectDraft->setType(TypeReference::ofKey('type-key'));