Skip to content

Commit

Permalink
Merge pull request #48 from payrexx/task/PP-9570
Browse files Browse the repository at this point in the history
task/PP-9570: PHP SDK: Payout Amount Wrong Data Type
  • Loading branch information
LLimani authored Jun 7, 2024
2 parents 4a396bc + 92c443d commit 16b16d2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions lib/Payrexx/Models/Request/Payout.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Payout extends Base
{
protected string $currency;

protected float $amount;
protected int $amount;

protected int $pspId;

Expand All @@ -31,17 +31,17 @@ public function setCurrency(string $currency): void
}

/**
* @return float
* @return int
*/
public function getAmount(): float
public function getAmount(): int
{
return $this->amount;
}

/**
* @param float $amount
* @param int $amount
*/
public function setAmount(float $amount): void
public function setAmount(int $amount): void
{
$this->amount = $amount;
}
Expand Down
4 changes: 2 additions & 2 deletions lib/Payrexx/Models/Response/Payout.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ class Payout extends \Payrexx\Models\Request\Payout
/** @var string */
protected string $object = '';

/** @var float */
protected float $amount = 0;
/** @var int */
protected int $amount = 0;

/** @var float */
protected float $totalFees = 0;
Expand Down

0 comments on commit 16b16d2

Please sign in to comment.