<?php
/*
 * MundiAPILib
 *
 * This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
 */

namespace MundiAPILib\Models;

use JsonSerializable;

/**
 *Balance
 */
class GetBalanceResponse implements JsonSerializable
{
    /**
     * Currency
     * @required
     * @var string $currency public property
     */
    public $currency;

    /**
     * Amount available for transferring
     * @required
     * @maps available_amount
     * @var integer $availableAmount public property
     */
    public $availableAmount;

    /**
     * Recipient
     * @var \MundiAPILib\Models\GetRecipientResponse|null $recipient public property
     */
    public $recipient;

    /**
     * @todo Write general description for this property
     * @required
     * @maps waiting_funds_amount
     * @var integer $waitingFundsAmount public property
     */
    public $waitingFundsAmount;

    /**
     * @todo Write general description for this property
     * @required
     * @maps transferred_amount
     * @var integer $transferredAmount public property
     */
    public $transferredAmount;

    /**
     * Constructor to set initial or default values of member properties
     * @param string               $currency           Initialization value for $this->currency
     * @param integer              $availableAmount    Initialization value for $this->availableAmount
     * @param GetRecipientResponse $recipient          Initialization value for $this->recipient
     * @param integer              $waitingFundsAmount Initialization value for $this->waitingFundsAmount
     * @param integer              $transferredAmount  Initialization value for $this->transferredAmount
     */
    public function __construct()
    {
        if (5 == func_num_args()) {
            $this->currency           = func_get_arg(0);
            $this->availableAmount    = func_get_arg(1);
            $this->recipient          = func_get_arg(2);
            $this->waitingFundsAmount = func_get_arg(3);
            $this->transferredAmount  = func_get_arg(4);
        }
    }


    /**
     * Encode this object to JSON
     */
    public function jsonSerialize()
    {
        $json = array();
        $json['currency']             = $this->currency;
        $json['available_amount']     = $this->availableAmount;
        $json['recipient']            = $this->recipient;
        $json['waiting_funds_amount'] = $this->waitingFundsAmount;
        $json['transferred_amount']   = $this->transferredAmount;

        return $json;
    }
}
