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

Commit

Permalink
Merge branch 'hotfix/fraction-digit-fix'
Browse files Browse the repository at this point in the history
  • Loading branch information
jenschude committed Oct 24, 2018
2 parents fa2b73b + 5bdc493 commit 0d508af
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 15 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
<a name="2.5.1"></a>
## [2.5.1](https://github.com/commercetools/commercetools-php-sdk/compare/v2.5.0...v2.5.1) (2018-10-24)


### Bug Fixes

* **Money:** fix fraction digits type ([f870109](https://github.com/commercetools/commercetools-php-sdk/commit/f870109)), closes [#429](https://github.com/commercetools/commercetools-php-sdk/issues/429)



<a name="2.5.0"></a>
# [2.5.0](https://github.com/commercetools/commercetools-php-sdk/compare/v2.4.0...v2.5.0) (2018-08-16)

Expand Down
10 changes: 5 additions & 5 deletions bin/ctp-tlscheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@

class Tls12Checker
{
const API_URI = 'api-tls12.commercetools.com';
const API_URI = 'api.commercetools.com';

const URIS = [
'auth-tls12.commercetools.com',
'api-tls12.commercetools.com',
'auth-tls12.commercetools.co',
'api-tls12.commercetools.co',
'auth.commercetools.com',
'api.commercetools.com',
'auth.commercetools.co',
'api.commercetools.co',
'api.sphere.io',
'api.commercetools.co',
];
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"cache/filesystem-adapter": "^1.0",
"cache/void-adapter": "^1.0",
"incenteev/composer-parameter-handler": "^2.1",
"commercetools/commercetools-api-reference": "dev-master"
"commercetools/commercetools-api-reference": "dev-master#646973bdc9a5da9216fa8ae774ed51110186e3fa"
},
"replaces": {
"commercetools/commons": "*"
Expand All @@ -75,7 +75,7 @@
},
"extra": {
"branch-alias": {
"dev-develop": "2.3-dev"
"dev-develop": "2.6-dev"
},
"incenteev-parameters": [
{
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "commercetools-php-sdk-changelog",
"version": "2.6.0",
"version": "2.5.1",
"description": "commercetools PHP SDK changelog generator package description",
"homepage": "https://github.com/commercetools/commercetools-php-sdk",
"bugs": "https://github.com/commercetools/commercetools-php-sdk/issues",
Expand Down
2 changes: 1 addition & 1 deletion src/Core/AbstractHttpClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*/
abstract class AbstractHttpClient
{
const VERSION = '2.5.0';
const VERSION = '2.5.1';

/**
* @var AdapterInterface
Expand Down
6 changes: 3 additions & 3 deletions src/Core/Model/Common/CentPrecisionMoney.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
* @method CentPrecisionMoney setCentAmount(int $centAmount = null)
* @method string getType()
* @method CentPrecisionMoney setType(string $type = null)
* @method string getFractionDigits()
* @method CentPrecisionMoney setFractionDigits(string $fractionDigits = null)
* @method int getFractionDigits()
* @method CentPrecisionMoney setFractionDigits(int $fractionDigits = null)
*/
class CentPrecisionMoney extends Money
{
Expand All @@ -33,7 +33,7 @@ public function fieldDefinitions()
static::CURRENCY_CODE => [self::TYPE => 'string'],
static::CENT_AMOUNT => [self::TYPE => 'int'],
static::TYPE => [self::TYPE => 'string'],
static::FRACTION_DIGITS => [self::TYPE => 'string']
static::FRACTION_DIGITS => [self::TYPE => 'int']
];
}

Expand Down
6 changes: 3 additions & 3 deletions src/Core/Model/Common/HighPrecisionMoney.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
* @method HighPrecisionMoney setCentAmount(int $centAmount = null)
* @method string getType()
* @method HighPrecisionMoney setType(string $type = null)
* @method string getFractionDigits()
* @method HighPrecisionMoney setFractionDigits(string $fractionDigits = null)
* @method int getFractionDigits()
* @method HighPrecisionMoney setFractionDigits(int $fractionDigits = null)
* @method int getPreciseAmount()
* @method HighPrecisionMoney setPreciseAmount(int $preciseAmount = null)
* @method string getHighPrecision()
Expand All @@ -39,7 +39,7 @@ public function fieldDefinitions()
static::CURRENCY_CODE => [self::TYPE => 'string'],
static::CENT_AMOUNT => [self::TYPE => 'int'],
static::TYPE => [self::TYPE => 'string'],
static::FRACTION_DIGITS => [self::TYPE => 'string'],
static::FRACTION_DIGITS => [self::TYPE => 'int'],
static::PRECISE_AMOUNT => [self::TYPE => 'int'],
];
}
Expand Down

0 comments on commit 0d508af

Please sign in to comment.