Files
YeePay/lib/Service/Insurance/Model/RealnameAuthCustomerDataDTOResult.php

423 lines
9.4 KiB
PHP

<?php
/**
* RealnameAuthCustomerDataDTOResult
*
* PHP version 5
*
* @category Class
* @package Yeepay\Yop\Sdk\
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* 保险
*
* <p>根据银保监会的文件要求,保险行业财产险公司的车险业务,用户在投保缴费(微信&amp;支付宝&amp;银行卡)之前,必须要完成支付人的实名验证,确保支付人与投保人一致才能缴费。目前实名认证存在四种模式,分别为:中保信模式、上海模式、深圳模式和江苏模式,其中中保信模式和上海模式要求支付机构与实名平台专线对接(已有专线),深圳和江苏是公网对接。因实名平台的接口仅支持有支付牌照的收单机构对接,所以部署一套单独的保险实名认证服务在易宝中台,支撑保险商户业务的正常进行。</p>
*
* 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\Insurance\Model;
use \ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* RealnameAuthCustomerDataDTOResult Class Doc Comment
*
* @category Class
* @package Yeepay\Yop\Sdk\
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
class RealnameAuthCustomerDataDTOResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'RealnameAuthCustomerDataDTOResult';
/**
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerTypes = [
'customerNo' => 'string',
'name' => 'string',
'critType' => 'string',
'critCode' => 'string',
'mobile' => 'string'
];
/**
* Array of property to format mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerFormats = [
'customerNo' => null,
'name' => null,
'critType' => null,
'critCode' => null,
'mobile' => 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 = [
'customerNo' => 'customerNo',
'name' => 'name',
'critType' => 'critType',
'critCode' => 'critCode',
'mobile' => 'mobile'
];
/**
* Array of attributes to setter functions (for deserialization of responses)
*
* @var string[]
*/
protected static $setters = [
'customerNo' => 'setCustomerNo',
'name' => 'setName',
'critType' => 'setCritType',
'critCode' => 'setCritCode',
'mobile' => 'setMobile'
];
/**
* Array of attributes to getter functions (for serialization of requests)
*
* @var string[]
*/
protected static $getters = [
'customerNo' => 'getCustomerNo',
'name' => 'getName',
'critType' => 'getCritType',
'critCode' => 'getCritCode',
'mobile' => 'getMobile'
];
/**
* 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['customerNo'] = isset($data['customerNo']) ? $data['customerNo'] : null;
$this->container['name'] = isset($data['name']) ? $data['name'] : null;
$this->container['critType'] = isset($data['critType']) ? $data['critType'] : null;
$this->container['critCode'] = isset($data['critCode']) ? $data['critCode'] : null;
$this->container['mobile'] = isset($data['mobile']) ? $data['mobile'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
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 customerNo
*
* @return string
*/
public function getCustomerNo()
{
return $this->container['customerNo'];
}
/**
* Sets customerNo
*
* @param string $customerNo 客户编号
*
* @return $this
*/
public function setCustomerNo($customerNo)
{
$this->container['customerNo'] = $customerNo;
return $this;
}
/**
* Gets name
*
* @return string
*/
public function getName()
{
return $this->container['name'];
}
/**
* Sets name
*
* @param string $name 姓名
*
* @return $this
*/
public function setName($name)
{
$this->container['name'] = $name;
return $this;
}
/**
* Gets critType
*
* @return string
*/
public function getCritType()
{
return $this->container['critType'];
}
/**
* Sets critType
*
* @param string $critType 证件类型
*
* @return $this
*/
public function setCritType($critType)
{
$this->container['critType'] = $critType;
return $this;
}
/**
* Gets critCode
*
* @return string
*/
public function getCritCode()
{
return $this->container['critCode'];
}
/**
* Sets critCode
*
* @param string $critCode 证件号码
*
* @return $this
*/
public function setCritCode($critCode)
{
$this->container['critCode'] = $critCode;
return $this;
}
/**
* Gets mobile
*
* @return string
*/
public function getMobile()
{
return $this->container['mobile'];
}
/**
* Sets mobile
*
* @param string $mobile 联系电话
*
* @return $this
*/
public function setMobile($mobile)
{
$this->container['mobile'] = $mobile;
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));
}
}