Skip to content

Commit

Permalink
Fix setup fee must be float
Browse files Browse the repository at this point in the history
  • Loading branch information
8ctopus committed May 23, 2024
1 parent 5f9b844 commit d487cd1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Plans/PaymentPreferences.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class PaymentPreferences
{
private readonly bool $autoBillOutstanding;
private readonly string $currency;
private readonly int $setupFee;
private readonly float $setupFee;
private readonly SetupFeeFailure $setupFeeFailure;
private readonly int $paymentFailureThreshold;

Expand All @@ -19,11 +19,11 @@ class PaymentPreferences
*
* @param bool $autoBillOutstanding
* @param string $currency
* @param int $setupFee
* @param float $setupFee
* @param SetupFeeFailure $setupFeeFailure
* @param int $paymentFailureThreshold
*/
public function __construct(bool $autoBillOutstanding, string $currency, int $setupFee, SetupFeeFailure $setupFeeFailure, int $paymentFailureThreshold)
public function __construct(bool $autoBillOutstanding, string $currency, float $setupFee, SetupFeeFailure $setupFeeFailure, int $paymentFailureThreshold)
{
$this->autoBillOutstanding = $autoBillOutstanding;
$this->currency = $currency;
Expand Down

0 comments on commit d487cd1

Please sign in to comment.