public function setUp()
 {
     parent::setUp();
     $obj = (object) ["FiatWithdrawalRequestGuid" => "2e9ad56c-1954-4b0f-b3d8-2ade7fad93ff", "AccountGuid" => "eda82a84-57fe-4ce6-9ee5-45a41063ee23", "Status" => "Pending", "CreatedTimestampUtc" => "2014-12-18T14:08:47.4032405Z", "TotalWithdrawalAmount" => 50.0, "FeeAmount" => 20.0, "Currency" => "Usd"];
     $this->withdrawal = FiatWithdrawal::createFromObject($obj);
 }
 /**
  * Creates a withdrawal request for a Fiat currency withdrawal from your Independent Reserve
  * account to an external bank account.
  *
  * Withdrawals to Australian bank accounts will be converted into AUD by Independent Reserve at
  * a competitive exchange rate. International withdrawals will be transmitted in USD, and
  * converted into the appropriate currency by the receiving bank. Minimum withdrawal amount is
  * USD 50.00, except where the available balance is less than this amount. In all cases, the
  * withdrawal amount must be greater than the withdrawal fee (only applies to international
  * withdrawals). Withdrawals are manually approved. Please allow 2-3 business days for the funds
  * to arrive in your bank account. Withdrawals to Australian accounts are usually faster.
  * Independent Reserve can only process withdrawals to bank accounts that match the name of the
  * Independent Reserve account holder.
  *
  * @param string $secondaryCurrencyCode The Independent Reserve fiat currency account to
  *        withdraw from (currently only USD accounts are supported).
  * @param double $withdrawalAmount Amount of fiat currency to withdraw.
  * @param string $withdrawalBankAccountName A pre-configured bank account you've already linked
  *        to your Independent Reserve account.
  * @return FiatWithdrawal
  */
 public function requestFiatWithdrawal($secondaryCurrencyCode, $withdrawalAmount, $withdrawalBankAccountName)
 {
     $result = json_decode($this->getPrivateEndpoint('GetBitcoinDepositAddress', ['secondaryCurrencyCode' => $secondaryCurrencyCode, 'withdrawalAmount' => $withdrawalAmount, 'withdrawalBankAccountName' => $withdrawalBankAccountName]));
     return FiatWithdrawal::createFromObject($result);
 }