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

namespace MundiAPILib\Models;

use JsonSerializable;

/**
 *Request for creating a Setup for a subscription. The setup is an order that will be created at the
 * subscription creation.
 */
class CreateSetupRequest implements JsonSerializable
{
    /**
     * Setup amount
     * @required
     * @var integer $amount public property
     */
    public $amount;

    /**
     * Description
     * @required
     * @var string $description public property
     */
    public $description;

    /**
     * Payment data
     * @required
     * @var \MundiAPILib\Models\CreatePaymentRequest $payment public property
     */
    public $payment;

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


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

        return $json;
    }
}
