diff --git a/src/Entity/Payment.php b/src/Entity/Payment.php index 7f0bfd6..76dac2c 100644 --- a/src/Entity/Payment.php +++ b/src/Entity/Payment.php @@ -43,7 +43,7 @@ public static function of( ): self { $p = new static(); - $p->price = $money->multipliedBy(100, RoundingMode::UNNECESSARY)->getAmount()->toInt(); + $p->price = $money->multipliedBy(100, RoundingMode::Unnecessary)->getAmount()->toInt(); $p->curr = $money->getCurrency()->getCurrencyCode(); $p->label = $label; $p->refId = $refId; diff --git a/src/Entity/RecurringPayment.php b/src/Entity/RecurringPayment.php index cf4f0fc..7e59385 100644 --- a/src/Entity/RecurringPayment.php +++ b/src/Entity/RecurringPayment.php @@ -28,7 +28,7 @@ public static function of( { $p = new static(); $p->initRecurringId = $initRecurringId; - $p->price = $money->multipliedBy(100, RoundingMode::UNNECESSARY)->getAmount()->toInt(); + $p->price = $money->multipliedBy(100, RoundingMode::Unnecessary)->getAmount()->toInt(); $p->curr = $money->getCurrency()->getCurrencyCode(); $p->label = $label; $p->refId = $refId; diff --git a/src/Entity/Refund.php b/src/Entity/Refund.php index 7245812..632127d 100644 --- a/src/Entity/Refund.php +++ b/src/Entity/Refund.php @@ -29,7 +29,7 @@ public static function of( ): self { $p = new static(); - $p->amount = $money->multipliedBy(100, RoundingMode::UNNECESSARY)->getAmount()->toInt(); + $p->amount = $money->multipliedBy(100, RoundingMode::Unnecessary)->getAmount()->toInt(); $p->curr = $money->getCurrency()->getCurrencyCode(); $p->transId = $transId; $p->refId = $refId;