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

Commit

Permalink
fix(Money): fix fraction digits type
Browse files Browse the repository at this point in the history
Closes #429
  • Loading branch information
jenschude committed Oct 24, 2018
1 parent fa2b73b commit f870109
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion 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 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 f870109

Please # to comment.