Skip to content

Commit

Permalink
Update ManagesUsageBilling.php
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell authored Aug 13, 2024
1 parent 8cd1845 commit cfb6fd5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Concerns/ManagesUsageBilling.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
trait ManagesUsageBilling
{
/**
* List all the billing meters.
* Get all of the defined billing meters.
*
* @param array $options
* @param array $requestOptions
Expand All @@ -20,7 +20,7 @@ public function meters(array $options = [], array $requestOptions = []): Collect
}

/**
* Report usage for a metered product using Event Meters API.
* Report usage for a metered product.
*
* @param string $meter
* @param int $quantity
Expand Down Expand Up @@ -48,7 +48,7 @@ public function reportMeterEvent(
}

/**
* Get the usage records for a meter using its ID (not name).
* Get the usage records for a meter using its ID.
*
* @param string $meterId
* @param array $options
Expand All @@ -60,6 +60,7 @@ public function meterEventSummaries(string $meterId, array $options = [], array
$this->assertCustomerExists();

$startTime = $options['start_time'] ?? $this->created_at->timestamp;

$endTime = $options['end_time'] ?? time();

unset($options['start_time'], $options['end_time']);
Expand Down

0 comments on commit cfb6fd5

Please sign in to comment.