Skip to content

Commit

Permalink
add fees param to instant conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
mihaimoiseanu committed Feb 21, 2024
1 parent c2500b8 commit 830e34e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions MangoPay/InstantConversion.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,11 @@ class InstantConversion extends Libraries\EntityBase
* @var int
*/
public $ExecutionDate;

/**
* Information about the fees taken by the platform for
* this transaction (and hence transferred to the Fees Wallet).
* @var Money
*/
public $Fees;
}
5 changes: 5 additions & 0 deletions tests/Cases/InstantConversionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ private function createInstantConversion()
$debitedFunds->Amount = 79;
$instantConversion->DebitedFunds = $debitedFunds;

$fees = new Money();
$fees->Currency = 'EUR';
$fees->Amount = 9;
$instantConversion->Fees = $fees;

$instantConversion->Tag = "create instant conversion";

return $this->_api->InstantConversion->CreateInstantConversion($instantConversion);
Expand Down

0 comments on commit 830e34e

Please sign in to comment.