Skip to content

Commit

Permalink
Allow usageQuantity to be a float
Browse files Browse the repository at this point in the history
  • Loading branch information
inserve-paul committed May 1, 2024
1 parent b4d6a10 commit 60b2ec8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Models/BillingData.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class BillingData
protected ?float $sellerCost = null;
protected int|float|null $customerCost = null;
protected ?float $margin = null;
protected ?int $usageQuantity = null;
protected int|float|null $usageQuantity = null;
protected ?string $currency = null;

/**
Expand Down Expand Up @@ -92,9 +92,9 @@ public function getMargin(): ?float
}

/**
* @return int|null
* @return int|float|null
*/
public function getUsageQuantity(): ?int
public function getUsageQuantity(): int|float|null
{
return $this->usageQuantity;
}
Expand Down Expand Up @@ -216,11 +216,11 @@ public function setMargin(?float $margin): self
}

/**
* @param int|null $usageQuantity
* @param int|float|null $usageQuantity
*
* @return $this
*/
public function setUsageQuantity(?int $usageQuantity): self
public function setUsageQuantity(int|float|null $usageQuantity): self
{
$this->usageQuantity = $usageQuantity;

Expand Down

0 comments on commit 60b2ec8

Please sign in to comment.