Skip to content

Commit

Permalink
Merge pull request #630 from Mangopay/feature/add_fees_param
Browse files Browse the repository at this point in the history
Add fees param to instant conversion
  • Loading branch information
mihaimoiseanu authored Mar 7, 2024
2 parents 6e53c58 + 830e34e commit 85b2262
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 85b2262

Please sign in to comment.