diff --git a/MangoPay/InstantConversion.php b/MangoPay/InstantConversion.php index 781b78c2..9848270f 100644 --- a/MangoPay/InstantConversion.php +++ b/MangoPay/InstantConversion.php @@ -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; } diff --git a/tests/Cases/InstantConversionTest.php b/tests/Cases/InstantConversionTest.php index 78638a95..f59c9903 100644 --- a/tests/Cases/InstantConversionTest.php +++ b/tests/Cases/InstantConversionTest.php @@ -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);