增加聚合支付托管下单
This commit is contained in:
@@ -0,0 +1,723 @@
|
||||
<?php
|
||||
/**
|
||||
* RealnameAuthCommonInsurRequestDTOParam
|
||||
*
|
||||
* 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;
|
||||
|
||||
/**
|
||||
* RealnameAuthCommonInsurRequestDTOParam Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @description 方法签名第0个参数,请自行修改arg0等参数的名字
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class RealnameAuthCommonInsurRequestDTOParam implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'RealnameAuthCommonInsurRequestDTOParam';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'appkey' => 'string',
|
||||
'requestNo' => 'string',
|
||||
'customerNo' => 'string',
|
||||
'requestType' => 'string',
|
||||
'cardNo' => 'string',
|
||||
'payerIdCard' => 'string',
|
||||
'payerName' => 'string',
|
||||
'paymentNo' => 'string',
|
||||
'queryNo' => 'string',
|
||||
'taskNumbers' => 'string',
|
||||
'totalAmount' => 'string',
|
||||
'tradeNo' => 'string',
|
||||
'date' => 'string',
|
||||
'validateSequenceNo' => 'string',
|
||||
'tradingBackDataDTOS' => '\Yeepay\Yop\Sdk\Service\Insurance\Model\RealnameAuthTradingBackDataDTOParam[]'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'appkey' => null,
|
||||
'requestNo' => null,
|
||||
'customerNo' => null,
|
||||
'requestType' => null,
|
||||
'cardNo' => null,
|
||||
'payerIdCard' => null,
|
||||
'payerName' => null,
|
||||
'paymentNo' => null,
|
||||
'queryNo' => null,
|
||||
'taskNumbers' => null,
|
||||
'totalAmount' => null,
|
||||
'tradeNo' => null,
|
||||
'date' => null,
|
||||
'validateSequenceNo' => null,
|
||||
'tradingBackDataDTOS' => 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 = [
|
||||
'appkey' => 'appkey',
|
||||
'requestNo' => 'requestNo',
|
||||
'customerNo' => 'customerNo',
|
||||
'requestType' => 'requestType',
|
||||
'cardNo' => 'cardNo',
|
||||
'payerIdCard' => 'payerIdCard',
|
||||
'payerName' => 'payerName',
|
||||
'paymentNo' => 'paymentNo',
|
||||
'queryNo' => 'queryNo',
|
||||
'taskNumbers' => 'taskNumbers',
|
||||
'totalAmount' => 'totalAmount',
|
||||
'tradeNo' => 'tradeNo',
|
||||
'date' => 'date',
|
||||
'validateSequenceNo' => 'validateSequenceNo',
|
||||
'tradingBackDataDTOS' => 'tradingBackDataDTOS'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'appkey' => 'setAppkey',
|
||||
'requestNo' => 'setRequestNo',
|
||||
'customerNo' => 'setCustomerNo',
|
||||
'requestType' => 'setRequestType',
|
||||
'cardNo' => 'setCardNo',
|
||||
'payerIdCard' => 'setPayerIdCard',
|
||||
'payerName' => 'setPayerName',
|
||||
'paymentNo' => 'setPaymentNo',
|
||||
'queryNo' => 'setQueryNo',
|
||||
'taskNumbers' => 'setTaskNumbers',
|
||||
'totalAmount' => 'setTotalAmount',
|
||||
'tradeNo' => 'setTradeNo',
|
||||
'date' => 'setDate',
|
||||
'validateSequenceNo' => 'setValidateSequenceNo',
|
||||
'tradingBackDataDTOS' => 'setTradingBackDataDTOS'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'appkey' => 'getAppkey',
|
||||
'requestNo' => 'getRequestNo',
|
||||
'customerNo' => 'getCustomerNo',
|
||||
'requestType' => 'getRequestType',
|
||||
'cardNo' => 'getCardNo',
|
||||
'payerIdCard' => 'getPayerIdCard',
|
||||
'payerName' => 'getPayerName',
|
||||
'paymentNo' => 'getPaymentNo',
|
||||
'queryNo' => 'getQueryNo',
|
||||
'taskNumbers' => 'getTaskNumbers',
|
||||
'totalAmount' => 'getTotalAmount',
|
||||
'tradeNo' => 'getTradeNo',
|
||||
'date' => 'getDate',
|
||||
'validateSequenceNo' => 'getValidateSequenceNo',
|
||||
'tradingBackDataDTOS' => 'getTradingBackDataDTOS'
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['appkey'] = isset($data['appkey']) ? $data['appkey'] : null;
|
||||
$this->container['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : null;
|
||||
$this->container['customerNo'] = isset($data['customerNo']) ? $data['customerNo'] : null;
|
||||
$this->container['requestType'] = isset($data['requestType']) ? $data['requestType'] : null;
|
||||
$this->container['cardNo'] = isset($data['cardNo']) ? $data['cardNo'] : null;
|
||||
$this->container['payerIdCard'] = isset($data['payerIdCard']) ? $data['payerIdCard'] : null;
|
||||
$this->container['payerName'] = isset($data['payerName']) ? $data['payerName'] : null;
|
||||
$this->container['paymentNo'] = isset($data['paymentNo']) ? $data['paymentNo'] : null;
|
||||
$this->container['queryNo'] = isset($data['queryNo']) ? $data['queryNo'] : null;
|
||||
$this->container['taskNumbers'] = isset($data['taskNumbers']) ? $data['taskNumbers'] : null;
|
||||
$this->container['totalAmount'] = isset($data['totalAmount']) ? $data['totalAmount'] : null;
|
||||
$this->container['tradeNo'] = isset($data['tradeNo']) ? $data['tradeNo'] : null;
|
||||
$this->container['date'] = isset($data['date']) ? $data['date'] : null;
|
||||
$this->container['validateSequenceNo'] = isset($data['validateSequenceNo']) ? $data['validateSequenceNo'] : null;
|
||||
$this->container['tradingBackDataDTOS'] = isset($data['tradingBackDataDTOS']) ? $data['tradingBackDataDTOS'] : 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 appkey
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getAppkey()
|
||||
{
|
||||
return $this->container['appkey'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets appkey
|
||||
*
|
||||
* @param string $appkey appkey
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setAppkey($appkey)
|
||||
{
|
||||
$this->container['appkey'] = $appkey;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets requestNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRequestNo()
|
||||
{
|
||||
return $this->container['requestNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets requestNo
|
||||
*
|
||||
* @param string $requestNo requestNo
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setRequestNo($requestNo)
|
||||
{
|
||||
$this->container['requestNo'] = $requestNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* 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 requestType
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRequestType()
|
||||
{
|
||||
return $this->container['requestType'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets requestType
|
||||
*
|
||||
* @param string $requestType requestType
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setRequestType($requestType)
|
||||
{
|
||||
$this->container['requestType'] = $requestType;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets cardNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCardNo()
|
||||
{
|
||||
return $this->container['cardNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets cardNo
|
||||
*
|
||||
* @param string $cardNo cardNo
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setCardNo($cardNo)
|
||||
{
|
||||
$this->container['cardNo'] = $cardNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets payerIdCard
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getPayerIdCard()
|
||||
{
|
||||
return $this->container['payerIdCard'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets payerIdCard
|
||||
*
|
||||
* @param string $payerIdCard payerIdCard
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setPayerIdCard($payerIdCard)
|
||||
{
|
||||
$this->container['payerIdCard'] = $payerIdCard;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets payerName
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getPayerName()
|
||||
{
|
||||
return $this->container['payerName'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets payerName
|
||||
*
|
||||
* @param string $payerName payerName
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setPayerName($payerName)
|
||||
{
|
||||
$this->container['payerName'] = $payerName;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets paymentNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getPaymentNo()
|
||||
{
|
||||
return $this->container['paymentNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets paymentNo
|
||||
*
|
||||
* @param string $paymentNo paymentNo
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setPaymentNo($paymentNo)
|
||||
{
|
||||
$this->container['paymentNo'] = $paymentNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets queryNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getQueryNo()
|
||||
{
|
||||
return $this->container['queryNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets queryNo
|
||||
*
|
||||
* @param string $queryNo queryNo
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setQueryNo($queryNo)
|
||||
{
|
||||
$this->container['queryNo'] = $queryNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets taskNumbers
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getTaskNumbers()
|
||||
{
|
||||
return $this->container['taskNumbers'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets taskNumbers
|
||||
*
|
||||
* @param string $taskNumbers taskNumbers
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setTaskNumbers($taskNumbers)
|
||||
{
|
||||
$this->container['taskNumbers'] = $taskNumbers;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets totalAmount
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getTotalAmount()
|
||||
{
|
||||
return $this->container['totalAmount'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets totalAmount
|
||||
*
|
||||
* @param string $totalAmount totalAmount
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setTotalAmount($totalAmount)
|
||||
{
|
||||
$this->container['totalAmount'] = $totalAmount;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets tradeNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getTradeNo()
|
||||
{
|
||||
return $this->container['tradeNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets tradeNo
|
||||
*
|
||||
* @param string $tradeNo tradeNo
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setTradeNo($tradeNo)
|
||||
{
|
||||
$this->container['tradeNo'] = $tradeNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets date
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getDate()
|
||||
{
|
||||
return $this->container['date'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets date
|
||||
*
|
||||
* @param string $date date
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setDate($date)
|
||||
{
|
||||
$this->container['date'] = $date;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets validateSequenceNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getValidateSequenceNo()
|
||||
{
|
||||
return $this->container['validateSequenceNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets validateSequenceNo
|
||||
*
|
||||
* @param string $validateSequenceNo validateSequenceNo
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setValidateSequenceNo($validateSequenceNo)
|
||||
{
|
||||
$this->container['validateSequenceNo'] = $validateSequenceNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets tradingBackDataDTOS
|
||||
*
|
||||
* @return \Yeepay\Yop\Sdk\Service\Insurance\Model\RealnameAuthTradingBackDataDTOParam[]
|
||||
*/
|
||||
public function getTradingBackDataDTOS()
|
||||
{
|
||||
return $this->container['tradingBackDataDTOS'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets tradingBackDataDTOS
|
||||
*
|
||||
* @param \Yeepay\Yop\Sdk\Service\Insurance\Model\RealnameAuthTradingBackDataDTOParam[] $tradingBackDataDTOS tradingBackDataDTOS
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setTradingBackDataDTOS($tradingBackDataDTOS)
|
||||
{
|
||||
$this->container['tradingBackDataDTOS'] = $tradingBackDataDTOS;
|
||||
|
||||
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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,722 @@
|
||||
<?php
|
||||
/**
|
||||
* RealnameAuthCommonInsurResponseDTOResult
|
||||
*
|
||||
* 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;
|
||||
|
||||
/**
|
||||
* RealnameAuthCommonInsurResponseDTOResult Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class RealnameAuthCommonInsurResponseDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'RealnameAuthCommonInsurResponseDTOResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'code' => 'string',
|
||||
'msg' => 'string',
|
||||
'status' => 'string',
|
||||
'customerNo' => 'string',
|
||||
'merchantNo' => 'string',
|
||||
'queryNo' => 'string',
|
||||
'terminalNo' => 'string',
|
||||
'tradeNo' => 'string',
|
||||
'amount' => 'string',
|
||||
'validateSequenceNo' => 'string',
|
||||
'pealNamePaymentFlag' => 'string',
|
||||
'requestType' => 'string',
|
||||
'requestCode' => 'string',
|
||||
'transDate' => 'string',
|
||||
'customerDataDTOS' => '\Yeepay\Yop\Sdk\Service\Insurance\Model\RealnameAuthCustomerDataDTOResult[]'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'code' => null,
|
||||
'msg' => null,
|
||||
'status' => null,
|
||||
'customerNo' => null,
|
||||
'merchantNo' => null,
|
||||
'queryNo' => null,
|
||||
'terminalNo' => null,
|
||||
'tradeNo' => null,
|
||||
'amount' => null,
|
||||
'validateSequenceNo' => null,
|
||||
'pealNamePaymentFlag' => null,
|
||||
'requestType' => null,
|
||||
'requestCode' => null,
|
||||
'transDate' => null,
|
||||
'customerDataDTOS' => 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 = [
|
||||
'code' => 'code',
|
||||
'msg' => 'msg',
|
||||
'status' => 'status',
|
||||
'customerNo' => 'customerNo',
|
||||
'merchantNo' => 'merchantNo',
|
||||
'queryNo' => 'queryNo',
|
||||
'terminalNo' => 'terminalNo',
|
||||
'tradeNo' => 'tradeNo',
|
||||
'amount' => 'amount',
|
||||
'validateSequenceNo' => 'validateSequenceNo',
|
||||
'pealNamePaymentFlag' => 'pealNamePaymentFlag',
|
||||
'requestType' => 'requestType',
|
||||
'requestCode' => 'requestCode',
|
||||
'transDate' => 'transDate',
|
||||
'customerDataDTOS' => 'customerDataDTOS'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'code' => 'setCode',
|
||||
'msg' => 'setMsg',
|
||||
'status' => 'setStatus',
|
||||
'customerNo' => 'setCustomerNo',
|
||||
'merchantNo' => 'setMerchantNo',
|
||||
'queryNo' => 'setQueryNo',
|
||||
'terminalNo' => 'setTerminalNo',
|
||||
'tradeNo' => 'setTradeNo',
|
||||
'amount' => 'setAmount',
|
||||
'validateSequenceNo' => 'setValidateSequenceNo',
|
||||
'pealNamePaymentFlag' => 'setPealNamePaymentFlag',
|
||||
'requestType' => 'setRequestType',
|
||||
'requestCode' => 'setRequestCode',
|
||||
'transDate' => 'setTransDate',
|
||||
'customerDataDTOS' => 'setCustomerDataDTOS'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'code' => 'getCode',
|
||||
'msg' => 'getMsg',
|
||||
'status' => 'getStatus',
|
||||
'customerNo' => 'getCustomerNo',
|
||||
'merchantNo' => 'getMerchantNo',
|
||||
'queryNo' => 'getQueryNo',
|
||||
'terminalNo' => 'getTerminalNo',
|
||||
'tradeNo' => 'getTradeNo',
|
||||
'amount' => 'getAmount',
|
||||
'validateSequenceNo' => 'getValidateSequenceNo',
|
||||
'pealNamePaymentFlag' => 'getPealNamePaymentFlag',
|
||||
'requestType' => 'getRequestType',
|
||||
'requestCode' => 'getRequestCode',
|
||||
'transDate' => 'getTransDate',
|
||||
'customerDataDTOS' => 'getCustomerDataDTOS'
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['code'] = isset($data['code']) ? $data['code'] : null;
|
||||
$this->container['msg'] = isset($data['msg']) ? $data['msg'] : null;
|
||||
$this->container['status'] = isset($data['status']) ? $data['status'] : null;
|
||||
$this->container['customerNo'] = isset($data['customerNo']) ? $data['customerNo'] : null;
|
||||
$this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null;
|
||||
$this->container['queryNo'] = isset($data['queryNo']) ? $data['queryNo'] : null;
|
||||
$this->container['terminalNo'] = isset($data['terminalNo']) ? $data['terminalNo'] : null;
|
||||
$this->container['tradeNo'] = isset($data['tradeNo']) ? $data['tradeNo'] : null;
|
||||
$this->container['amount'] = isset($data['amount']) ? $data['amount'] : null;
|
||||
$this->container['validateSequenceNo'] = isset($data['validateSequenceNo']) ? $data['validateSequenceNo'] : null;
|
||||
$this->container['pealNamePaymentFlag'] = isset($data['pealNamePaymentFlag']) ? $data['pealNamePaymentFlag'] : null;
|
||||
$this->container['requestType'] = isset($data['requestType']) ? $data['requestType'] : null;
|
||||
$this->container['requestCode'] = isset($data['requestCode']) ? $data['requestCode'] : null;
|
||||
$this->container['transDate'] = isset($data['transDate']) ? $data['transDate'] : null;
|
||||
$this->container['customerDataDTOS'] = isset($data['customerDataDTOS']) ? $data['customerDataDTOS'] : 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 code
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCode()
|
||||
{
|
||||
return $this->container['code'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets code
|
||||
*
|
||||
* @param string $code 未命名
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setCode($code)
|
||||
{
|
||||
$this->container['code'] = $code;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets msg
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMsg()
|
||||
{
|
||||
return $this->container['msg'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets msg
|
||||
*
|
||||
* @param string $msg 未命名
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setMsg($msg)
|
||||
{
|
||||
$this->container['msg'] = $msg;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets status
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getStatus()
|
||||
{
|
||||
return $this->container['status'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets status
|
||||
*
|
||||
* @param string $status 状态
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setStatus($status)
|
||||
{
|
||||
$this->container['status'] = $status;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* 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 merchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantNo()
|
||||
{
|
||||
return $this->container['merchantNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantNo
|
||||
*
|
||||
* @param string $merchantNo 商户编号
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->container['merchantNo'] = $merchantNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets queryNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getQueryNo()
|
||||
{
|
||||
return $this->container['queryNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets queryNo
|
||||
*
|
||||
* @param string $queryNo 查询编号
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setQueryNo($queryNo)
|
||||
{
|
||||
$this->container['queryNo'] = $queryNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets terminalNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getTerminalNo()
|
||||
{
|
||||
return $this->container['terminalNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets terminalNo
|
||||
*
|
||||
* @param string $terminalNo 终端号
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setTerminalNo($terminalNo)
|
||||
{
|
||||
$this->container['terminalNo'] = $terminalNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets tradeNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getTradeNo()
|
||||
{
|
||||
return $this->container['tradeNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets tradeNo
|
||||
*
|
||||
* @param string $tradeNo 交易流水号
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setTradeNo($tradeNo)
|
||||
{
|
||||
$this->container['tradeNo'] = $tradeNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets amount
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getAmount()
|
||||
{
|
||||
return $this->container['amount'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets amount
|
||||
*
|
||||
* @param string $amount 金额
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setAmount($amount)
|
||||
{
|
||||
$this->container['amount'] = $amount;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets validateSequenceNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getValidateSequenceNo()
|
||||
{
|
||||
return $this->container['validateSequenceNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets validateSequenceNo
|
||||
*
|
||||
* @param string $validateSequenceNo 认证序列号
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setValidateSequenceNo($validateSequenceNo)
|
||||
{
|
||||
$this->container['validateSequenceNo'] = $validateSequenceNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets pealNamePaymentFlag
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getPealNamePaymentFlag()
|
||||
{
|
||||
return $this->container['pealNamePaymentFlag'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets pealNamePaymentFlag
|
||||
*
|
||||
* @param string $pealNamePaymentFlag 实名缴费标识
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setPealNamePaymentFlag($pealNamePaymentFlag)
|
||||
{
|
||||
$this->container['pealNamePaymentFlag'] = $pealNamePaymentFlag;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets requestType
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRequestType()
|
||||
{
|
||||
return $this->container['requestType'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets requestType
|
||||
*
|
||||
* @param string $requestType 请求类型
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setRequestType($requestType)
|
||||
{
|
||||
$this->container['requestType'] = $requestType;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets requestCode
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRequestCode()
|
||||
{
|
||||
return $this->container['requestCode'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets requestCode
|
||||
*
|
||||
* @param string $requestCode 请求编码
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setRequestCode($requestCode)
|
||||
{
|
||||
$this->container['requestCode'] = $requestCode;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets transDate
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getTransDate()
|
||||
{
|
||||
return $this->container['transDate'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets transDate
|
||||
*
|
||||
* @param string $transDate 业务交易完成时间
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setTransDate($transDate)
|
||||
{
|
||||
$this->container['transDate'] = $transDate;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets customerDataDTOS
|
||||
*
|
||||
* @return \Yeepay\Yop\Sdk\Service\Insurance\Model\RealnameAuthCustomerDataDTOResult[]
|
||||
*/
|
||||
public function getCustomerDataDTOS()
|
||||
{
|
||||
return $this->container['customerDataDTOS'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets customerDataDTOS
|
||||
*
|
||||
* @param \Yeepay\Yop\Sdk\Service\Insurance\Model\RealnameAuthCustomerDataDTOResult[] $customerDataDTOS 客户信息集合
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setCustomerDataDTOS($customerDataDTOS)
|
||||
{
|
||||
$this->container['customerDataDTOS'] = $customerDataDTOS;
|
||||
|
||||
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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,422 @@
|
||||
<?php
|
||||
/**
|
||||
* RealnameAuthCustomerDataDTOResult
|
||||
*
|
||||
* 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;
|
||||
|
||||
/**
|
||||
* 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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
42
lib/Service/Insurance/Model/RealnameAuthRequest.php
Normal file
42
lib/Service/Insurance/Model/RealnameAuthRequest.php
Normal file
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Insurance\Model;
|
||||
|
||||
|
||||
class RealnameAuthRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var
|
||||
*/
|
||||
private $body;
|
||||
|
||||
/**
|
||||
* Gets body
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public function getBody()
|
||||
{
|
||||
return $this->body;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets body
|
||||
*
|
||||
* @param $body
|
||||
* @return RealnameAuthRequest
|
||||
*/
|
||||
public function setBody($body)
|
||||
{
|
||||
$this->body = $body;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'realnameAuth';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Insurance\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Http\Headers;
|
||||
use Yeepay\Yop\Sdk\Internal\DefaultRequest;
|
||||
use Yeepay\Yop\Sdk\Internal\Request;
|
||||
use Yeepay\Yop\Sdk\Model\Transform\RequestMarshaller;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
use Yeepay\Yop\Sdk\Utils\UUIDUtils;
|
||||
|
||||
class RealnameAuthRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var RealnameAuthRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new RealnameAuthRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return RealnameAuthRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Insurance';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/insurance/realname/auth';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/json';
|
||||
|
||||
|
||||
/**
|
||||
* @param RealnameAuthRequest $request
|
||||
* @return Request
|
||||
*/
|
||||
public function marshal($request)
|
||||
{
|
||||
$internalRequest = new DefaultRequest($this->serviceName);
|
||||
$internalRequest->setResourcePath($this->resourcePath);
|
||||
$internalRequest->setHttpMethod($this->httpMethod);
|
||||
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
|
||||
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
|
||||
$internalRequest->addHeader($name, $value);
|
||||
}
|
||||
}
|
||||
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
|
||||
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
|
||||
}
|
||||
$content = (string)$request->getBody();
|
||||
$internalRequest->setContent($content);
|
||||
$internalRequest->addHeader(Headers::CONTENT_LENGTH, strlen($content));
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
RealnameAuthRequestMarshaller::__init();
|
||||
34
lib/Service/Insurance/Model/RealnameAuthResponse.php
Normal file
34
lib/Service/Insurance/Model/RealnameAuthResponse.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Insurance\Model;
|
||||
|
||||
|
||||
class RealnameAuthResponse extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var RealnameAuthCommonInsurResponseDTOResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Insurance\Model\RealnameAuthCommonInsurResponseDTOResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param RealnameAuthCommonInsurResponseDTOResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return RealnameAuthCommonInsurResponseDTOResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Insurance\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class RealnameAuthResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var RealnameAuthResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new RealnameAuthResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return RealnameAuthResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return RealnameAuthResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new RealnameAuthResponse();
|
||||
}
|
||||
}
|
||||
|
||||
RealnameAuthResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,392 @@
|
||||
<?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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,452 @@
|
||||
<?php
|
||||
/**
|
||||
* RealnameNotifyCommonNoticeResponseDTOResult
|
||||
*
|
||||
* 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;
|
||||
|
||||
/**
|
||||
* RealnameNotifyCommonNoticeResponseDTOResult Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class RealnameNotifyCommonNoticeResponseDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'RealnameNotifyCommonNoticeResponseDTOResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'code' => 'string',
|
||||
'msg' => 'string',
|
||||
'status' => 'string',
|
||||
'queryNo' => 'string',
|
||||
'amount' => 'string',
|
||||
'tradeNo' => 'string'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'code' => null,
|
||||
'msg' => null,
|
||||
'status' => null,
|
||||
'queryNo' => null,
|
||||
'amount' => null,
|
||||
'tradeNo' => 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 = [
|
||||
'code' => 'code',
|
||||
'msg' => 'msg',
|
||||
'status' => 'status',
|
||||
'queryNo' => 'queryNo',
|
||||
'amount' => 'amount',
|
||||
'tradeNo' => 'tradeNo'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'code' => 'setCode',
|
||||
'msg' => 'setMsg',
|
||||
'status' => 'setStatus',
|
||||
'queryNo' => 'setQueryNo',
|
||||
'amount' => 'setAmount',
|
||||
'tradeNo' => 'setTradeNo'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'code' => 'getCode',
|
||||
'msg' => 'getMsg',
|
||||
'status' => 'getStatus',
|
||||
'queryNo' => 'getQueryNo',
|
||||
'amount' => 'getAmount',
|
||||
'tradeNo' => 'getTradeNo'
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['code'] = isset($data['code']) ? $data['code'] : null;
|
||||
$this->container['msg'] = isset($data['msg']) ? $data['msg'] : null;
|
||||
$this->container['status'] = isset($data['status']) ? $data['status'] : null;
|
||||
$this->container['queryNo'] = isset($data['queryNo']) ? $data['queryNo'] : null;
|
||||
$this->container['amount'] = isset($data['amount']) ? $data['amount'] : null;
|
||||
$this->container['tradeNo'] = isset($data['tradeNo']) ? $data['tradeNo'] : 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 code
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCode()
|
||||
{
|
||||
return $this->container['code'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets code
|
||||
*
|
||||
* @param string $code 未命名
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setCode($code)
|
||||
{
|
||||
$this->container['code'] = $code;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets msg
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMsg()
|
||||
{
|
||||
return $this->container['msg'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets msg
|
||||
*
|
||||
* @param string $msg 未命名
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setMsg($msg)
|
||||
{
|
||||
$this->container['msg'] = $msg;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets status
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getStatus()
|
||||
{
|
||||
return $this->container['status'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets status
|
||||
*
|
||||
* @param string $status 返回状态
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setStatus($status)
|
||||
{
|
||||
$this->container['status'] = $status;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets queryNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getQueryNo()
|
||||
{
|
||||
return $this->container['queryNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets queryNo
|
||||
*
|
||||
* @param string $queryNo 查询请求号
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setQueryNo($queryNo)
|
||||
{
|
||||
$this->container['queryNo'] = $queryNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets amount
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getAmount()
|
||||
{
|
||||
return $this->container['amount'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets amount
|
||||
*
|
||||
* @param string $amount 金额
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setAmount($amount)
|
||||
{
|
||||
$this->container['amount'] = $amount;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets tradeNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getTradeNo()
|
||||
{
|
||||
return $this->container['tradeNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets tradeNo
|
||||
*
|
||||
* @param string $tradeNo 交易流水号
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setTradeNo($tradeNo)
|
||||
{
|
||||
$this->container['tradeNo'] = $tradeNo;
|
||||
|
||||
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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
617
lib/Service/Insurance/Model/RealnameNotifyRequest.php
Normal file
617
lib/Service/Insurance/Model/RealnameNotifyRequest.php
Normal file
@@ -0,0 +1,617 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Insurance\Model;
|
||||
|
||||
|
||||
class RealnameNotifyRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $requestNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $queryNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $customrNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $code;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $amount;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $cardNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $tradeNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $date;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $systemNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $terminalNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $paNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $validateSequenceNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $requestType;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $warrantBank;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $aesKey;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $user;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $password;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $prodId;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $reqType;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $sysId;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $requestUrl;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $macKey;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $environment;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $tpdu;
|
||||
|
||||
/**
|
||||
* Gets requestNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRequestNo()
|
||||
{
|
||||
return $this->requestNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets requestNo
|
||||
*
|
||||
* @param string $requestNo
|
||||
* @return RealnameNotifyRequest
|
||||
*/
|
||||
public function setRequestNo($requestNo)
|
||||
{
|
||||
$this->requestNo = $requestNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets queryNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getQueryNo()
|
||||
{
|
||||
return $this->queryNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets queryNo
|
||||
*
|
||||
* @param string $queryNo
|
||||
* @return RealnameNotifyRequest
|
||||
*/
|
||||
public function setQueryNo($queryNo)
|
||||
{
|
||||
$this->queryNo = $queryNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets customrNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCustomrNo()
|
||||
{
|
||||
return $this->customrNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets customrNo
|
||||
*
|
||||
* @param string $customrNo
|
||||
* @return RealnameNotifyRequest
|
||||
*/
|
||||
public function setCustomrNo($customrNo)
|
||||
{
|
||||
$this->customrNo = $customrNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets code
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCode()
|
||||
{
|
||||
return $this->code;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets code
|
||||
*
|
||||
* @param string $code
|
||||
* @return RealnameNotifyRequest
|
||||
*/
|
||||
public function setCode($code)
|
||||
{
|
||||
$this->code = $code;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets amount
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getAmount()
|
||||
{
|
||||
return $this->amount;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets amount
|
||||
*
|
||||
* @param string $amount
|
||||
* @return RealnameNotifyRequest
|
||||
*/
|
||||
public function setAmount($amount)
|
||||
{
|
||||
$this->amount = $amount;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets cardNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCardNo()
|
||||
{
|
||||
return $this->cardNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets cardNo
|
||||
*
|
||||
* @param string $cardNo
|
||||
* @return RealnameNotifyRequest
|
||||
*/
|
||||
public function setCardNo($cardNo)
|
||||
{
|
||||
$this->cardNo = $cardNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets tradeNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getTradeNo()
|
||||
{
|
||||
return $this->tradeNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets tradeNo
|
||||
*
|
||||
* @param string $tradeNo
|
||||
* @return RealnameNotifyRequest
|
||||
*/
|
||||
public function setTradeNo($tradeNo)
|
||||
{
|
||||
$this->tradeNo = $tradeNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets date
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getDate()
|
||||
{
|
||||
return $this->date;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets date
|
||||
*
|
||||
* @param string $date
|
||||
* @return RealnameNotifyRequest
|
||||
*/
|
||||
public function setDate($date)
|
||||
{
|
||||
$this->date = $date;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets systemNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getSystemNo()
|
||||
{
|
||||
return $this->systemNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets systemNo
|
||||
*
|
||||
* @param string $systemNo
|
||||
* @return RealnameNotifyRequest
|
||||
*/
|
||||
public function setSystemNo($systemNo)
|
||||
{
|
||||
$this->systemNo = $systemNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets terminalNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getTerminalNo()
|
||||
{
|
||||
return $this->terminalNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets terminalNo
|
||||
*
|
||||
* @param string $terminalNo
|
||||
* @return RealnameNotifyRequest
|
||||
*/
|
||||
public function setTerminalNo($terminalNo)
|
||||
{
|
||||
$this->terminalNo = $terminalNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets paNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getPaNo()
|
||||
{
|
||||
return $this->paNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets paNo
|
||||
*
|
||||
* @param string $paNo
|
||||
* @return RealnameNotifyRequest
|
||||
*/
|
||||
public function setPaNo($paNo)
|
||||
{
|
||||
$this->paNo = $paNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets validateSequenceNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getValidateSequenceNo()
|
||||
{
|
||||
return $this->validateSequenceNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets validateSequenceNo
|
||||
*
|
||||
* @param string $validateSequenceNo
|
||||
* @return RealnameNotifyRequest
|
||||
*/
|
||||
public function setValidateSequenceNo($validateSequenceNo)
|
||||
{
|
||||
$this->validateSequenceNo = $validateSequenceNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets requestType
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRequestType()
|
||||
{
|
||||
return $this->requestType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets requestType
|
||||
*
|
||||
* @param string $requestType
|
||||
* @return RealnameNotifyRequest
|
||||
*/
|
||||
public function setRequestType($requestType)
|
||||
{
|
||||
$this->requestType = $requestType;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets warrantBank
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getWarrantBank()
|
||||
{
|
||||
return $this->warrantBank;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets warrantBank
|
||||
*
|
||||
* @param string $warrantBank
|
||||
* @return RealnameNotifyRequest
|
||||
*/
|
||||
public function setWarrantBank($warrantBank)
|
||||
{
|
||||
$this->warrantBank = $warrantBank;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets aesKey
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getAesKey()
|
||||
{
|
||||
return $this->aesKey;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets aesKey
|
||||
*
|
||||
* @param string $aesKey
|
||||
* @return RealnameNotifyRequest
|
||||
*/
|
||||
public function setAesKey($aesKey)
|
||||
{
|
||||
$this->aesKey = $aesKey;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets user
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getUser()
|
||||
{
|
||||
return $this->user;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets user
|
||||
*
|
||||
* @param string $user
|
||||
* @return RealnameNotifyRequest
|
||||
*/
|
||||
public function setUser($user)
|
||||
{
|
||||
$this->user = $user;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets password
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getPassword()
|
||||
{
|
||||
return $this->password;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets password
|
||||
*
|
||||
* @param string $password
|
||||
* @return RealnameNotifyRequest
|
||||
*/
|
||||
public function setPassword($password)
|
||||
{
|
||||
$this->password = $password;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets prodId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getProdId()
|
||||
{
|
||||
return $this->prodId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets prodId
|
||||
*
|
||||
* @param string $prodId
|
||||
* @return RealnameNotifyRequest
|
||||
*/
|
||||
public function setProdId($prodId)
|
||||
{
|
||||
$this->prodId = $prodId;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets reqType
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getReqType()
|
||||
{
|
||||
return $this->reqType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets reqType
|
||||
*
|
||||
* @param string $reqType
|
||||
* @return RealnameNotifyRequest
|
||||
*/
|
||||
public function setReqType($reqType)
|
||||
{
|
||||
$this->reqType = $reqType;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets sysId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getSysId()
|
||||
{
|
||||
return $this->sysId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets sysId
|
||||
*
|
||||
* @param string $sysId
|
||||
* @return RealnameNotifyRequest
|
||||
*/
|
||||
public function setSysId($sysId)
|
||||
{
|
||||
$this->sysId = $sysId;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets requestUrl
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRequestUrl()
|
||||
{
|
||||
return $this->requestUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets requestUrl
|
||||
*
|
||||
* @param string $requestUrl
|
||||
* @return RealnameNotifyRequest
|
||||
*/
|
||||
public function setRequestUrl($requestUrl)
|
||||
{
|
||||
$this->requestUrl = $requestUrl;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets macKey
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMacKey()
|
||||
{
|
||||
return $this->macKey;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets macKey
|
||||
*
|
||||
* @param string $macKey
|
||||
* @return RealnameNotifyRequest
|
||||
*/
|
||||
public function setMacKey($macKey)
|
||||
{
|
||||
$this->macKey = $macKey;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets environment
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getEnvironment()
|
||||
{
|
||||
return $this->environment;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets environment
|
||||
*
|
||||
* @param string $environment
|
||||
* @return RealnameNotifyRequest
|
||||
*/
|
||||
public function setEnvironment($environment)
|
||||
{
|
||||
$this->environment = $environment;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets tpdu
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getTpdu()
|
||||
{
|
||||
return $this->tpdu;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets tpdu
|
||||
*
|
||||
* @param string $tpdu
|
||||
* @return RealnameNotifyRequest
|
||||
*/
|
||||
public function setTpdu($tpdu)
|
||||
{
|
||||
$this->tpdu = $tpdu;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'realnameNotify';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
149
lib/Service/Insurance/Model/RealnameNotifyRequestMarshaller.php
Normal file
149
lib/Service/Insurance/Model/RealnameNotifyRequestMarshaller.php
Normal file
@@ -0,0 +1,149 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Insurance\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Http\Headers;
|
||||
use Yeepay\Yop\Sdk\Internal\DefaultRequest;
|
||||
use Yeepay\Yop\Sdk\Internal\Request;
|
||||
use Yeepay\Yop\Sdk\Model\Transform\RequestMarshaller;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
use Yeepay\Yop\Sdk\Utils\UUIDUtils;
|
||||
|
||||
class RealnameNotifyRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var RealnameNotifyRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new RealnameNotifyRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return RealnameNotifyRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Insurance';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/insurance/realname/notify';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param RealnameNotifyRequest $request
|
||||
* @return Request
|
||||
*/
|
||||
public function marshal($request)
|
||||
{
|
||||
$internalRequest = new DefaultRequest($this->serviceName);
|
||||
$internalRequest->setResourcePath($this->resourcePath);
|
||||
$internalRequest->setHttpMethod($this->httpMethod);
|
||||
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
|
||||
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
|
||||
$internalRequest->addHeader($name, $value);
|
||||
}
|
||||
}
|
||||
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
|
||||
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
|
||||
}
|
||||
if($request->getRequestNo() != null){
|
||||
$internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string'));
|
||||
}
|
||||
if($request->getQueryNo() != null){
|
||||
$internalRequest->addParameter('queryNo', ObjectSerializer::sanitizeForSerialization($request->getQueryNo(), 'string'));
|
||||
}
|
||||
if($request->getCustomrNo() != null){
|
||||
$internalRequest->addParameter('customrNo', ObjectSerializer::sanitizeForSerialization($request->getCustomrNo(), 'string'));
|
||||
}
|
||||
if($request->getCode() != null){
|
||||
$internalRequest->addParameter('code', ObjectSerializer::sanitizeForSerialization($request->getCode(), 'string'));
|
||||
}
|
||||
if($request->getAmount() != null){
|
||||
$internalRequest->addParameter('amount', ObjectSerializer::sanitizeForSerialization($request->getAmount(), 'string'));
|
||||
}
|
||||
if($request->getCardNo() != null){
|
||||
$internalRequest->addParameter('cardNo', ObjectSerializer::sanitizeForSerialization($request->getCardNo(), 'string'));
|
||||
}
|
||||
if($request->getTradeNo() != null){
|
||||
$internalRequest->addParameter('tradeNo', ObjectSerializer::sanitizeForSerialization($request->getTradeNo(), 'string'));
|
||||
}
|
||||
if($request->getDate() != null){
|
||||
$internalRequest->addParameter('date', ObjectSerializer::sanitizeForSerialization($request->getDate(), 'string'));
|
||||
}
|
||||
if($request->getSystemNo() != null){
|
||||
$internalRequest->addParameter('systemNo', ObjectSerializer::sanitizeForSerialization($request->getSystemNo(), 'string'));
|
||||
}
|
||||
if($request->getTerminalNo() != null){
|
||||
$internalRequest->addParameter('terminalNo', ObjectSerializer::sanitizeForSerialization($request->getTerminalNo(), 'string'));
|
||||
}
|
||||
if($request->getPaNo() != null){
|
||||
$internalRequest->addParameter('paNo', ObjectSerializer::sanitizeForSerialization($request->getPaNo(), 'string'));
|
||||
}
|
||||
if($request->getValidateSequenceNo() != null){
|
||||
$internalRequest->addParameter('validateSequenceNo', ObjectSerializer::sanitizeForSerialization($request->getValidateSequenceNo(), 'string'));
|
||||
}
|
||||
if($request->getRequestType() != null){
|
||||
$internalRequest->addParameter('requestType', ObjectSerializer::sanitizeForSerialization($request->getRequestType(), 'string'));
|
||||
}
|
||||
if($request->getWarrantBank() != null){
|
||||
$internalRequest->addParameter('warrantBank', ObjectSerializer::sanitizeForSerialization($request->getWarrantBank(), 'string'));
|
||||
}
|
||||
if($request->getAesKey() != null){
|
||||
$internalRequest->addParameter('aesKey', ObjectSerializer::sanitizeForSerialization($request->getAesKey(), 'string'));
|
||||
}
|
||||
if($request->getUser() != null){
|
||||
$internalRequest->addParameter('user', ObjectSerializer::sanitizeForSerialization($request->getUser(), 'string'));
|
||||
}
|
||||
if($request->getPassword() != null){
|
||||
$internalRequest->addParameter('password', ObjectSerializer::sanitizeForSerialization($request->getPassword(), 'string'));
|
||||
}
|
||||
if($request->getProdId() != null){
|
||||
$internalRequest->addParameter('prodId', ObjectSerializer::sanitizeForSerialization($request->getProdId(), 'string'));
|
||||
}
|
||||
if($request->getReqType() != null){
|
||||
$internalRequest->addParameter('reqType', ObjectSerializer::sanitizeForSerialization($request->getReqType(), 'string'));
|
||||
}
|
||||
if($request->getSysId() != null){
|
||||
$internalRequest->addParameter('sysId', ObjectSerializer::sanitizeForSerialization($request->getSysId(), 'string'));
|
||||
}
|
||||
if($request->getRequestUrl() != null){
|
||||
$internalRequest->addParameter('requestUrl', ObjectSerializer::sanitizeForSerialization($request->getRequestUrl(), 'string'));
|
||||
}
|
||||
if($request->getMacKey() != null){
|
||||
$internalRequest->addParameter('macKey', ObjectSerializer::sanitizeForSerialization($request->getMacKey(), 'string'));
|
||||
}
|
||||
if($request->getEnvironment() != null){
|
||||
$internalRequest->addParameter('environment', ObjectSerializer::sanitizeForSerialization($request->getEnvironment(), 'string'));
|
||||
}
|
||||
if($request->getTpdu() != null){
|
||||
$internalRequest->addParameter('tpdu', ObjectSerializer::sanitizeForSerialization($request->getTpdu(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
RealnameNotifyRequestMarshaller::__init();
|
||||
34
lib/Service/Insurance/Model/RealnameNotifyResponse.php
Normal file
34
lib/Service/Insurance/Model/RealnameNotifyResponse.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Insurance\Model;
|
||||
|
||||
|
||||
class RealnameNotifyResponse extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var RealnameNotifyCommonNoticeResponseDTOResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Insurance\Model\RealnameNotifyCommonNoticeResponseDTOResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param RealnameNotifyCommonNoticeResponseDTOResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return RealnameNotifyCommonNoticeResponseDTOResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Insurance\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class RealnameNotifyResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var RealnameNotifyResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new RealnameNotifyResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return RealnameNotifyResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return RealnameNotifyResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new RealnameNotifyResponse();
|
||||
}
|
||||
}
|
||||
|
||||
RealnameNotifyResponseUnMarshaller::__init();
|
||||
Reference in New Issue
Block a user