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

namespace MundiAPILib\Models;

use JsonSerializable;

/**
 * @todo Write general description for this model
 */
class GetSellersRequest implements JsonSerializable
{
    /**
     * @todo Write general description for this property
     * @required
     * @var string $name public property
     */
    public $name;

    /**
     * @todo Write general description for this property
     * @required
     * @var string $document public property
     */
    public $document;

    /**
     * @todo Write general description for this property
     * @required
     * @var string $code public property
     */
    public $code;

    /**
     * @todo Write general description for this property
     * @required
     * @var string $status public property
     */
    public $status;

    /**
     * @todo Write general description for this property
     * @required
     * @var string $type public property
     */
    public $type;

    /**
     * @todo Write general description for this property
     * @maps created_Since
     * @var string|null $createdSince public property
     */
    public $createdSince;

    /**
     * @todo Write general description for this property
     * @maps created_Until
     * @var string|null $createdUntil public property
     */
    public $createdUntil;

    /**
     * Constructor to set initial or default values of member properties
     * @param string $name         Initialization value for $this->name
     * @param string $document     Initialization value for $this->document
     * @param string $code         Initialization value for $this->code
     * @param string $status       Initialization value for $this->status
     * @param string $type         Initialization value for $this->type
     * @param string $createdSince Initialization value for $this->createdSince
     * @param string $createdUntil Initialization value for $this->createdUntil
     */
    public function __construct()
    {
        if (7 == func_num_args()) {
            $this->name         = func_get_arg(0);
            $this->document     = func_get_arg(1);
            $this->code         = func_get_arg(2);
            $this->status       = func_get_arg(3);
            $this->type         = func_get_arg(4);
            $this->createdSince = func_get_arg(5);
            $this->createdUntil = func_get_arg(6);
        }
    }


    /**
     * Encode this object to JSON
     */
    public function jsonSerialize()
    {
        $json = array();
        $json['name']          = $this->name;
        $json['document']      = $this->document;
        $json['code']          = $this->code;
        $json['status']        = $this->status;
        $json['type']          = $this->type;
        $json['created_Since'] = $this->createdSince;
        $json['created_Until'] = $this->createdUntil;

        return $json;
    }
}
