393 lines
9.0 KiB
PHP
393 lines
9.0 KiB
PHP
<?php
|
|
/**
|
|
* RealnameAuthTradingBackDataDTOParam
|
|
*
|
|
* PHP version 5
|
|
*
|
|
* @category Class
|
|
* @package Yeepay\Yop\Sdk\
|
|
* @author Swagger Codegen team
|
|
* @link https://github.com/swagger-api/swagger-codegen
|
|
*/
|
|
|
|
/**
|
|
* 保险
|
|
*
|
|
* <p>根据银保监会的文件要求,保险行业财产险公司的车险业务,用户在投保缴费(微信&支付宝&银行卡)之前,必须要完成支付人的实名验证,确保支付人与投保人一致才能缴费。目前实名认证存在四种模式,分别为:中保信模式、上海模式、深圳模式和江苏模式,其中中保信模式和上海模式要求支付机构与实名平台专线对接(已有专线),深圳和江苏是公网对接。因实名平台的接口仅支持有支付牌照的收单机构对接,所以部署一套单独的保险实名认证服务在易宝中台,支撑保险商户业务的正常进行。</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;
|
|
|
|
/**
|
|
* RealnameAuthTradingBackDataDTOParam Class Doc Comment
|
|
*
|
|
* @category Class
|
|
* @package Yeepay\Yop\Sdk\
|
|
* @author Swagger Codegen team
|
|
* @link https://github.com/swagger-api/swagger-codegen
|
|
*/
|
|
class RealnameAuthTradingBackDataDTOParam implements ModelInterface, ArrayAccess
|
|
{
|
|
const DISCRIMINATOR = null;
|
|
|
|
/**
|
|
* The original name of the model.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected static $swaggerModelName = 'RealnameAuthTradingBackDataDTOParam';
|
|
|
|
/**
|
|
* Array of property to type mappings. Used for (de)serialization
|
|
*
|
|
* @var string[]
|
|
*/
|
|
protected static $swaggerTypes = [
|
|
'customerNo' => 'string',
|
|
'validateResult' => 'string',
|
|
'messageCode' => 'string',
|
|
'message' => 'string'
|
|
];
|
|
|
|
/**
|
|
* Array of property to format mappings. Used for (de)serialization
|
|
*
|
|
* @var string[]
|
|
*/
|
|
protected static $swaggerFormats = [
|
|
'customerNo' => null,
|
|
'validateResult' => null,
|
|
'messageCode' => null,
|
|
'message' => 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',
|
|
'validateResult' => 'validateResult',
|
|
'messageCode' => 'messageCode',
|
|
'message' => 'message'
|
|
];
|
|
|
|
/**
|
|
* Array of attributes to setter functions (for deserialization of responses)
|
|
*
|
|
* @var string[]
|
|
*/
|
|
protected static $setters = [
|
|
'customerNo' => 'setCustomerNo',
|
|
'validateResult' => 'setValidateResult',
|
|
'messageCode' => 'setMessageCode',
|
|
'message' => 'setMessage'
|
|
];
|
|
|
|
/**
|
|
* Array of attributes to getter functions (for serialization of requests)
|
|
*
|
|
* @var string[]
|
|
*/
|
|
protected static $getters = [
|
|
'customerNo' => 'getCustomerNo',
|
|
'validateResult' => 'getValidateResult',
|
|
'messageCode' => 'getMessageCode',
|
|
'message' => 'getMessage'
|
|
];
|
|
|
|
/**
|
|
* 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['validateResult'] = isset($data['validateResult']) ? $data['validateResult'] : null;
|
|
$this->container['messageCode'] = isset($data['messageCode']) ? $data['messageCode'] : null;
|
|
$this->container['message'] = isset($data['message']) ? $data['message'] : 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 customerNo
|
|
*
|
|
* @return $this
|
|
*/
|
|
public function setCustomerNo($customerNo)
|
|
{
|
|
$this->container['customerNo'] = $customerNo;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets validateResult
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getValidateResult()
|
|
{
|
|
return $this->container['validateResult'];
|
|
}
|
|
|
|
/**
|
|
* Sets validateResult
|
|
*
|
|
* @param string $validateResult validateResult
|
|
*
|
|
* @return $this
|
|
*/
|
|
public function setValidateResult($validateResult)
|
|
{
|
|
$this->container['validateResult'] = $validateResult;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets messageCode
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getMessageCode()
|
|
{
|
|
return $this->container['messageCode'];
|
|
}
|
|
|
|
/**
|
|
* Sets messageCode
|
|
*
|
|
* @param string $messageCode messageCode
|
|
*
|
|
* @return $this
|
|
*/
|
|
public function setMessageCode($messageCode)
|
|
{
|
|
$this->container['messageCode'] = $messageCode;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets message
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getMessage()
|
|
{
|
|
return $this->container['message'];
|
|
}
|
|
|
|
/**
|
|
* Sets message
|
|
*
|
|
* @param string $message message
|
|
*
|
|
* @return $this
|
|
*/
|
|
public function setMessage($message)
|
|
{
|
|
$this->container['message'] = $message;
|
|
|
|
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));
|
|
}
|
|
}
|
|
|
|
|