Files
YeePay/lib/Service/Account/Model/IndividualDTO.php

472 lines
10 KiB
PHP

<?php
/**
* IndividualDTO
*
* PHP version 5
*
* @category Class
* @package Yeepay\Yop\Sdk\
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* 账户
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 1.0
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.13
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use \ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* IndividualDTO Class Doc Comment
*
* @category Class
* @description 查询付款到个人信息详情
* @package Yeepay\Yop\Sdk\
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
class IndividualDTO implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'IndividualDTO';
/**
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerTypes = [
'merchantNo' => 'string',
'id' => 'int',
'name' => 'string',
'phone' => 'string',
'certificateType' => 'string',
'certificateNo' => 'string'
];
/**
* Array of property to format mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerFormats = [
'merchantNo' => null,
'id' => 'int64',
'name' => null,
'phone' => null,
'certificateType' => null,
'certificateNo' => null
];
/**
* Array of property to type mappings. Used for (de)serialization
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name
*
* @var string[]
*/
protected static $attributeMap = [
'merchantNo' => 'merchantNo',
'id' => 'id',
'name' => 'name',
'phone' => 'phone',
'certificateType' => 'certificateType',
'certificateNo' => 'certificateNo'
];
/**
* Array of attributes to setter functions (for deserialization of responses)
*
* @var string[]
*/
protected static $setters = [
'merchantNo' => 'setMerchantNo',
'id' => 'setId',
'name' => 'setName',
'phone' => 'setPhone',
'certificateType' => 'setCertificateType',
'certificateNo' => 'setCertificateNo'
];
/**
* Array of attributes to getter functions (for serialization of requests)
*
* @var string[]
*/
protected static $getters = [
'merchantNo' => 'getMerchantNo',
'id' => 'getId',
'name' => 'getName',
'phone' => 'getPhone',
'certificateType' => 'getCertificateType',
'certificateNo' => 'getCertificateNo'
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null;
$this->container['id'] = isset($data['id']) ? $data['id'] : null;
$this->container['name'] = isset($data['name']) ? $data['name'] : null;
$this->container['phone'] = isset($data['phone']) ? $data['phone'] : null;
$this->container['certificateType'] = isset($data['certificateType']) ? $data['certificateType'] : null;
$this->container['certificateNo'] = isset($data['certificateNo']) ? $data['certificateNo'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if ($this->container['merchantNo'] === null) {
$invalidProperties[] = "'merchantNo' can't be null";
}
if ($this->container['id'] === null) {
$invalidProperties[] = "'id' can't be null";
}
if ($this->container['name'] === null) {
$invalidProperties[] = "'name' can't be null";
}
if ($this->container['phone'] === null) {
$invalidProperties[] = "'phone' can't be null";
}
if ($this->container['certificateType'] === null) {
$invalidProperties[] = "'certificateType' can't be null";
}
if ($this->container['certificateNo'] === null) {
$invalidProperties[] = "'certificateNo' can't be null";
}
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed
*
* @return bool True if all properties are valid
*/
public function valid()
{
return count($this->listInvalidProperties()) === 0;
}
/**
* Gets merchantNo
*
* @return string
*/
public function getMerchantNo()
{
return $this->container['merchantNo'];
}
/**
* Sets merchantNo
*
* @param string $merchantNo <p>商户编号</p>
*
* @return $this
*/
public function setMerchantNo($merchantNo)
{
$this->container['merchantNo'] = $merchantNo;
return $this;
}
/**
* Gets id
*
* @return int
*/
public function getId()
{
return $this->container['id'];
}
/**
* Sets id
*
* @param int $id <p>收款方id</p>
*
* @return $this
*/
public function setId($id)
{
$this->container['id'] = $id;
return $this;
}
/**
* Gets name
*
* @return string
*/
public function getName()
{
return $this->container['name'];
}
/**
* Sets name
*
* @param string $name <pre>个人姓名</pre>
*
* @return $this
*/
public function setName($name)
{
$this->container['name'] = $name;
return $this;
}
/**
* Gets phone
*
* @return string
*/
public function getPhone()
{
return $this->container['phone'];
}
/**
* Sets phone
*
* @param string $phone <p>手机号</p>
*
* @return $this
*/
public function setPhone($phone)
{
$this->container['phone'] = $phone;
return $this;
}
/**
* Gets certificateType
*
* @return string
*/
public function getCertificateType()
{
return $this->container['certificateType'];
}
/**
* Sets certificateType
*
* @param string $certificateType <p>证件类型</p>
*
* @return $this
*/
public function setCertificateType($certificateType)
{
$this->container['certificateType'] = $certificateType;
return $this;
}
/**
* Gets certificateNo
*
* @return string
*/
public function getCertificateNo()
{
return $this->container['certificateNo'];
}
/**
* Sets certificateNo
*
* @param string $certificateNo <p>证件号</p>
*
* @return $this
*/
public function setCertificateNo($certificateNo)
{
$this->container['certificateNo'] = $certificateNo;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param integer $offset Offset
*
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param integer $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param integer $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param integer $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}