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

namespace MundiAPILib\Models;

use JsonSerializable;

/**
 *Response object for getting a cash transaction
 *
 * @discriminator transaction_type
 * @discriminatorType cash
 */
class GetCashTransactionResponse extends GetTransactionResponse implements JsonSerializable
{
    /**
     * Description
     * @required
     * @var string $description public property
     */
    public $description;

    /**
     * Constructor to set initial or default values of member properties
     * @param string $description Initialization value for $this->description
     */
    public function __construct()
    {
        if (1 == func_num_args()) {
            $this->description = func_get_arg(0);
        }
    }


    /**
     * Encode this object to JSON
     */
    public function jsonSerialize()
    {
        $json = array();
        $json['description'] = $this->description;
        $json = array_merge($json, parent::jsonSerialize());

        return $json;
    }
}
