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

namespace MundiAPILib\Models;

use JsonSerializable;

/**
 *Options for card installment
 */
class CreateCheckoutCardInstallmentOptionRequest implements JsonSerializable
{
    /**
     * Installment quantity
     * @required
     * @var integer $number public property
     */
    public $number;

    /**
     * Total amount
     * @required
     * @var integer $total public property
     */
    public $total;

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


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

        return $json;
    }
}
