Skip to content

Commit

Permalink
[Billing] Modify Price for usage pricing changes
Browse files Browse the repository at this point in the history
  • Loading branch information
that-guy-iain committed Aug 17, 2024
1 parent 92aeacf commit f78a616
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Parthenon/Billing/Entity/Price.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@ public function setIncludingTax(bool $includingTax): void

public function getAsMoney(): Money
{
if (!$this->amount) {
return Money::zero(Currency::of($this->currency));
}

return Money::ofMinor($this->amount, Currency::of($this->currency));
}

Expand Down

0 comments on commit f78a616

Please sign in to comment.