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

Commit 791ccfb

Browse files
author
Jens Schulze
committed
Merge branch 'release/v1.0.0-RC3'
2 parents a1b17e8 + 6c59bb4 commit 791ccfb

File tree

439 files changed

+4203
-1131
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

439 files changed

+4203
-1131
lines changed

CHANGELOG.md

Lines changed: 50 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,52 @@
1+
<a name="1.0.0-RC3"></a>
2+
# [1.0.0-RC3](https://github.com/sphereio/commercetools-php-sdk/compare/v1.0.0-RC2...v1.0.0-RC3) (2015-09-10)
3+
4+
5+
### Bug Fixes
6+
7+
* **Comment:** delete comment endpoint functionality ([506644c](https://github.com/sphereio/commercetools-php-sdk/commit/506644c))
8+
* **OAuthManager:** don't expose api credentials through exception callstack ([f0caaa1](https://github.com/sphereio/commercetools-php-sdk/commit/f0caaa1))
9+
* **ProductDraft:** use ProductVariantDraftCollection for variants ([f252a2d](https://github.com/sphereio/commercetools-php-sdk/commit/f252a2d)), closes [#142](https://github.com/sphereio/commercetools-php-sdk/issues/142)
10+
11+
### Features
12+
13+
* **CustomFields:** add custom field models and mapping by type field definitions ([146ee40](https://github.com/sphereio/commercetools-php-sdk/commit/146ee40)) closes [#119](https://github.com/sphereio/commercetools-php-sdk/issues/119)
14+
* **Message:** add specific message objects ([353b5ab](https://github.com/sphereio/commercetools-php-sdk/commit/353b5ab)) closes [#128](https://github.com/sphereio/commercetools-php-sdk/issues/128)
15+
* **Orders:** add cart field to order ([922d812](https://github.com/sphereio/commercetools-php-sdk/commit/922d812)), closes [#132](https://github.com/sphereio/commercetools-php-sdk/issues/132) [#131](https://github.com/sphereio/commercetools-php-sdk/issues/131)
16+
* **ProductSearch:** add reference expansion to product search request ([c003de6](https://github.com/sphereio/commercetools-php-sdk/commit/c003de6)), closes [#144](https://github.com/sphereio/commercetools-php-sdk/issues/144)
17+
* **ProductVariant:** add helper methods to get variant by id ([f2ff1d4](https://github.com/sphereio/commercetools-php-sdk/commit/f2ff1d4))
18+
* **Products:** add getBySku method ([ab9a0b9](https://github.com/sphereio/commercetools-php-sdk/commit/ab9a0b9))
19+
* **Products:** add support to set EnumType and LocalizedEnumType attributes by key ([df88267](https://github.com/sphereio/commercetools-php-sdk/commit/df88267))
20+
* **Products:** add support to set EnumType and LocalizedEnumType attributes by key in all variants ([e07cad6](https://github.com/sphereio/commercetools-php-sdk/commit/e07cad6))
21+
* **QueryRequest:** add page request interface ([ecc5666](https://github.com/sphereio/commercetools-php-sdk/commit/ecc5666))
22+
* **QueryRequest:** add sort and query request interfaces ([d19c127](https://github.com/sphereio/commercetools-php-sdk/commit/d19c127))
23+
* **QueryRequest:** add with total request interface ([c1059ee](https://github.com/sphereio/commercetools-php-sdk/commit/c1059ee))
24+
* **RedisCacheAdapter:** unify life time ([7b73d30](https://github.com/sphereio/commercetools-php-sdk/commit/7b73d30))
25+
* **Reviews:** add review delete request ([2c6493e](https://github.com/sphereio/commercetools-php-sdk/commit/2c6493e)), closes [#134](https://github.com/sphereio/commercetools-php-sdk/issues/134)
26+
* **ShippingMethod:** add getByName and getById to ShippingMethodCollection ([2de7668](https://github.com/sphereio/commercetools-php-sdk/commit/2de7668))
27+
* **UpdateActions:** add limit to update actions ([3f728a5](https://github.com/sphereio/commercetools-php-sdk/commit/3f728a5))
28+
* **CategoryCollection:** add getByParent and getRoots to CategoryCollection ([ece9d87](https://github.com/sphereio/commercetools-php-sdk/commit/ece9d87))
29+
* **LocalizedString:** add support for locales to LocalizedString ([ea5e1c6](https://github.com/sphereio/commercetools-php-sdk/commit/ea5e1c6))
30+
* **Image:** return empty thumb image url if no url is set ([a4be01b](https://github.com/sphereio/commercetools-php-sdk/commit/a4be01b))
31+
32+
33+
### BREAKING CHANGES
34+
35+
* comments endpoint has been removed from the API
36+
37+
All models and request objects have been removed from the SDK
38+
39+
140
<a name"1.0.0-RC2"></a>
2-
### 1.0.0-RC2 (2015-08-03)
41+
# 1.0.0-RC2 (2015-08-03)
342

443

5-
#### Bug Fixes
44+
### Bug Fixes
645

746
* **ProductVariantDraft:** add images definition ([971cfbf4](https://github.com/sphereio/commercetools-php-sdk/commit/971cfbf4), closes [#135](https://github.com/sphereio/commercetools-php-sdk/issues/135))
847

948

10-
#### Breaking Changes
49+
### Breaking Changes
1150

1251
* SphereException and SphereServiceException have been renamed to ApiException and ApiServiceException
1352

@@ -52,17 +91,17 @@
5291

5392

5493
<a name"1.0.0-RC1"></a>
55-
### 1.0.0-RC1 (2015-07-27)
94+
# 1.0.0-RC1 (2015-07-27)
5695

5796

58-
#### Bug Fixes
97+
### Bug Fixes
5998

6099
* **CustomerCreateRequest:** set correct return object class ([d1c100c9](https://github.com/sphereio/sphere-php-sdk/commit/d1c100c9), closes [#109](https://github.com/sphereio/sphere-php-sdk/issues/109))
61100
* **Requests:** fix the usage of relative path by requests ([e32d0150](https://github.com/sphereio/sphere-php-sdk/commit/e32d0150))
62101
* **Order:** set correct return type for order discountCodes ([5bbf4f14](https://github.com/sphereio/sphere-php-sdk/commit/5bbf4f14))
63102

64103

65-
#### Features
104+
### Features
66105

67106
* **AnnotationGenerator:** add magic method getAt and current with correct type hint to collections ([324886db](https://github.com/sphereio/sphere-php-sdk/commit/324886db))
68107
* **Attribute:** add feature to set attribute type definitions to attributes ([37546b33](https://github.com/sphereio/sphere-php-sdk/commit/37546b33))
@@ -93,7 +132,7 @@
93132
* **Zones:** add update actions ([a74c3517](https://github.com/sphereio/sphere-php-sdk/commit/a74c3517))
94133

95134

96-
#### Breaking Changes
135+
### Breaking Changes
97136

98137
* QueryRequests renamed to singular form
99138

@@ -304,7 +343,7 @@
304343

305344
([d19a83c1](https://github.com/sphereio/sphere-php-sdk/commit/d19a83c1))
306345

307-
### 1.0.0-beta.2 (Milestone 3)
346+
# 1.0.0-beta.2 (Milestone 3)
308347
Major refactoring of the http client handling. Sphere client uses now PSR http messages for internal request and response representation and ships with a guzzle5 and guzzle6 http client adapter which will be automatically used. It's also possible to register new http client adapters implementing Sphere\Core\Client\Adapter\AdapterInterface
309348

310349
* switch composer to caret operator
@@ -354,7 +393,7 @@ Major refactoring of the http client handling. Sphere client uses now PSR http m
354393
* fix multi facet and filter params
355394
* fix type of TaxRate
356395

357-
### 1.0.0-beta.1 (Milestone 2)
396+
# 1.0.0-beta.1 (Milestone 2)
358397
* add unit tests for query, fetch and delete requests
359398
* add tests for order and product update actions
360399
* add customer, category and cart update action tests
@@ -388,7 +427,7 @@ Major refactoring of the http client handling. Sphere client uses now PSR http m
388427
* add limit of update action logging to update requests
389428
* add cache adapter for redis storage
390429

391-
### 1.0.0 Milestone 1
430+
# 1.0.0 Milestone 1
392431
* batch execution of requests
393432
* delete, update, fetchById and query requests for all endpoints
394433
* cart create and update requests
@@ -401,5 +440,5 @@ Major refactoring of the http client handling. Sphere client uses now PSR http m
401440
* custom object create request
402441
* api result to object mapping
403442

404-
### 1.0.0 Milestone 0
443+
# 1.0.0 Milestone 0
405444
* initial commit

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# <img src="build/theme/resources/CT_cube_200px.png" width="40" align="center"></img> commercetools PHP SDK
22

3-
> STATUS: Release Candidate 1. We have done all planned breaking changes and ask you to really use this API thoroughly now, especially the API design and object structure. Thank you very much!
3+
> STATUS: Release Candidate 3. We ask you to really use this API thoroughly now, especially the API design and object structure. Thank you very much!
44
>
55
> See the [Milestone Plan](https://github.com/sphereio/commercetools-php-sdk/milestones?direction=desc&sort=completeness&state=open) for details of what's planned in detail. We love feedback and [Issue reports](https://github.com/sphereio/commercetools-php-sdk/issues?q=is%3Aopen+is%3Aissue+sort%3Acreated-asc)!
66
> Up-to-Date planning status can be found on this [Waffle Board](https://waffle.io/sphereio/commercetools-php-sdk)
77
8-
[![Build Status](https://img.shields.io/travis/sphereio/commercetools-php-sdk/master.svg?style=flat-square)](https://travis-ci.org/sphereio/commercetools-php-sdk) [![Scrutinizer](https://img.shields.io/scrutinizer/g/sphereio/commercetools-php-sdk.svg?style=flat-square)](https://scrutinizer-ci.com/g/sphereio/commercetools-php-sdk/) [![Scrutinizer](https://img.shields.io/scrutinizer/coverage/g/sphereio/commercetools-php-sdk.svg?style=flat-square)](https://scrutinizer-ci.com/g/sphereio/commercetools-php-sdk/) [![Packagist](https://img.shields.io/packagist/v/sphere/php-sdk.svg?style=flat-square)](https://packagist.org/packages/sphere/php-sdk) [![Packagist](https://img.shields.io/packagist/dm/sphere/php-sdk.svg?style=flat-square)](https://packagist.org/packages/commercetools/php-sdk)
8+
[![Build Status](https://img.shields.io/travis/sphereio/commercetools-php-sdk/master.svg?style=flat-square)](https://travis-ci.org/sphereio/commercetools-php-sdk) [![Scrutinizer](https://img.shields.io/scrutinizer/g/sphereio/commercetools-php-sdk.svg?style=flat-square)](https://scrutinizer-ci.com/g/sphereio/commercetools-php-sdk/) [![Scrutinizer](https://img.shields.io/scrutinizer/coverage/g/sphereio/commercetools-php-sdk.svg?style=flat-square)](https://scrutinizer-ci.com/g/sphereio/commercetools-php-sdk/) [![Packagist](https://img.shields.io/packagist/v/commercetools/php-sdk.svg?style=flat-square)](https://packagist.org/packages/commercetools/php-sdk) [![Packagist](https://img.shields.io/packagist/dm/commercetools/php-sdk.svg?style=flat-square)](https://packagist.org/packages/commercetools/php-sdk)
99

1010
The PHP SDK allows developers to build applications on the commercetools platform (technically speaking against the SPHERE.IO REST API) using PHP native interfaces, models and helpers instead of manually using the HTTP and JSON API.
1111

@@ -34,7 +34,7 @@ curl -sS https://getcomposer.org/installer | php
3434
Next, run the Composer command to install the latest version of the SDK:
3535

3636
```bash
37-
composer require sphere/php-sdk dev-master
37+
composer require commercetools/php-sdk dev-master
3838
```
3939

4040
The SDK supports Guzzle6 as well as Guzzle5 as HTTP client. For Guzzle6:
@@ -60,7 +60,7 @@ If you don't use Composer, just [download a zip archive](https://github.com/sphe
6060

6161
Until the 1.0.0 release M0, M1 etc. milestone releases can contain incompatible changes. From 1.0.0 on, the project will follow the [semantic versioning](http://semver.org) guidelines, i.e. everything but major version changes are backwards-compatible. This matches composer's default behavior.
6262

63-
With composer just run `composer update sphere/php-sdk` to update to compatible versions. Edit your `composer.json` file to update to incompatible versions.
63+
With composer just run `composer update commercetools/php-sdk` to update to compatible versions. Edit your `composer.json` file to update to incompatible versions.
6464

6565
Please read the [Changelog](CHANGELOG.md) before updating in any case.
6666

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
"guzzlehttp/guzzle": "^5.0 || ^6.0",
3030
"guzzlehttp/psr7": "^1.1",
3131
"pimple/pimple": "^3.0",
32-
"ext-intl": "*"
32+
"ext-intl": "*",
33+
"ext-mbstring": "*"
3334
},
3435
"require-dev": {
3536
"guzzlehttp/guzzle": "^6.0",

features/bootstrap/ApiContext.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function iHaveAContextDraftWithValuesJson($context, PyStringNode $json)
7272
protected function forceTyping($object)
7373
{
7474
if ($object instanceof JsonObject) {
75-
$fields = $object->getFields();
75+
$fields = $object->fieldDefinitions();
7676
foreach ($fields as $field => $definition) {
7777
$dummy = $object->get($field);
7878
if ($dummy instanceof AbstractJsonDeserializeObject) {

features/request/Comment/CommentCreate.feature

Lines changed: 0 additions & 27 deletions
This file was deleted.

features/request/Comment/CommentQuery.feature

Lines changed: 0 additions & 43 deletions
This file was deleted.

features/request/Comment/CommentUpdate.feature

Lines changed: 0 additions & 89 deletions
This file was deleted.

0 commit comments

Comments
 (0)