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

Commit f870109

Browse files
committed
fix(Money): fix fraction digits type
Closes #429
1 parent fa2b73b commit f870109

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"cache/filesystem-adapter": "^1.0",
5555
"cache/void-adapter": "^1.0",
5656
"incenteev/composer-parameter-handler": "^2.1",
57-
"commercetools/commercetools-api-reference": "dev-master"
57+
"commercetools/commercetools-api-reference": "dev-master#646973bdc9a5da9216fa8ae774ed51110186e3fa"
5858
},
5959
"replaces": {
6060
"commercetools/commons": "*"

src/Core/Model/Common/CentPrecisionMoney.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
* @method CentPrecisionMoney setCentAmount(int $centAmount = null)
1414
* @method string getType()
1515
* @method CentPrecisionMoney setType(string $type = null)
16-
* @method string getFractionDigits()
17-
* @method CentPrecisionMoney setFractionDigits(string $fractionDigits = null)
16+
* @method int getFractionDigits()
17+
* @method CentPrecisionMoney setFractionDigits(int $fractionDigits = null)
1818
*/
1919
class CentPrecisionMoney extends Money
2020
{
@@ -33,7 +33,7 @@ public function fieldDefinitions()
3333
static::CURRENCY_CODE => [self::TYPE => 'string'],
3434
static::CENT_AMOUNT => [self::TYPE => 'int'],
3535
static::TYPE => [self::TYPE => 'string'],
36-
static::FRACTION_DIGITS => [self::TYPE => 'string']
36+
static::FRACTION_DIGITS => [self::TYPE => 'int']
3737
];
3838
}
3939

src/Core/Model/Common/HighPrecisionMoney.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
* @method HighPrecisionMoney setCentAmount(int $centAmount = null)
1414
* @method string getType()
1515
* @method HighPrecisionMoney setType(string $type = null)
16-
* @method string getFractionDigits()
17-
* @method HighPrecisionMoney setFractionDigits(string $fractionDigits = null)
16+
* @method int getFractionDigits()
17+
* @method HighPrecisionMoney setFractionDigits(int $fractionDigits = null)
1818
* @method int getPreciseAmount()
1919
* @method HighPrecisionMoney setPreciseAmount(int $preciseAmount = null)
2020
* @method string getHighPrecision()
@@ -39,7 +39,7 @@ public function fieldDefinitions()
3939
static::CURRENCY_CODE => [self::TYPE => 'string'],
4040
static::CENT_AMOUNT => [self::TYPE => 'int'],
4141
static::TYPE => [self::TYPE => 'string'],
42-
static::FRACTION_DIGITS => [self::TYPE => 'string'],
42+
static::FRACTION_DIGITS => [self::TYPE => 'int'],
4343
static::PRECISE_AMOUNT => [self::TYPE => 'int'],
4444
];
4545
}

0 commit comments

Comments
 (0)