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

Commit 9c37c74

Browse files
author
Jens Schulze
committed
Merge branch 'hotfix/v1.0.1'
2 parents fa9a11c + 9c0b505 commit 9c37c74

File tree

6 files changed

+18
-8
lines changed

6 files changed

+18
-8
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
<a name="1.0.1"></a>
2+
## [1.0.1](https://github.com/sphereio/commercetools-php-sdk/compare/v1.0.0...v1.0.1) (2016-05-17)
3+
4+
5+
### Bug Fixes
6+
7+
* **Product:** fix mapping for product variant availability ([c0c461f](https://github.com/sphereio/commercetools-php-sdk/commit/c0c461f))
8+
9+
10+
111
<a name="1.0.0"></a>
212
# [1.0.0](https://github.com/sphereio/commercetools-php-sdk/compare/v1.0.0-RC12...v1.0.0) (2016-05-02)
313

src/AbstractHttpClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*/
1515
abstract class AbstractHttpClient
1616
{
17-
const VERSION = '1.0.0';
17+
const VERSION = '1.0.1';
1818

1919
/**
2020
* @var AdapterInterface

src/Error/InvalidTokenError.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
* @package Commercetools\Core\Error
1010
*
1111
* @method string getCode()
12-
* @method AccessDeniedError setCode(string $code = null)
12+
* @method InvalidTokenError setCode(string $code = null)
1313
* @method string getMessage()
14-
* @method AccessDeniedError setMessage(string $message = null)
14+
* @method InvalidTokenError setMessage(string $message = null)
1515
*/
1616
class InvalidTokenError extends ApiError
1717
{

src/Model/Product/ProductVariant.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
* @method ProductVariant setAttributes(AttributeCollection $attributes = null)
2626
* @method ImageCollection getImages()
2727
* @method ProductVariant setImages(ImageCollection $images = null)
28-
* @method LocalizedString getAvailability()
29-
* @method ProductVariant setAvailability(LocalizedString $availability = null)
28+
* @method ProductVariantAvailability getAvailability()
29+
* @method ProductVariant setAvailability(ProductVariantAvailability $availability = null)
3030
* @method Price getPrice()
3131
* @method ProductVariant setPrice(Price $price = null)
3232
* @method bool getIsMatchingVariant()
@@ -43,7 +43,7 @@ public function fieldDefinitions()
4343
'price' => [static::TYPE => '\Commercetools\Core\Model\Common\Price'],
4444
'attributes' => [static::TYPE => '\Commercetools\Core\Model\Common\AttributeCollection'],
4545
'images' => [static::TYPE => '\Commercetools\Core\Model\Common\ImageCollection'],
46-
'availability' => [static::TYPE => '\Commercetools\Core\Model\Common\LocalizedString'],
46+
'availability' => [static::TYPE => '\Commercetools\Core\Model\Product\ProductVariantAvailability'],
4747
'isMatchingVariant' => [static::TYPE => 'bool']
4848
];
4949
}

src/Request/Carts/Command/CartAddLineItemAction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function fieldDefinitions()
4545

4646
/**
4747
* @param string $productId
48-
* @param string $variantId
48+
* @param int $variantId
4949
* @param Context|callable $context
5050
* @param int $quantity
5151
* @return CartAddLineItemAction

tools/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "commercetools-php-sdk-changelog",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "commercetools PHP SDK changelog generator package description",
55
"homepage": "https://github.com/sphereio/commercetools-php-sdk",
66
"bugs": "https://github.com/sphereio/commercetools-php-sdk/issues",

0 commit comments

Comments
 (0)