增加聚合支付托管下单

This commit is contained in:
2024-04-01 17:07:53 +08:00
parent 899d816bc3
commit f8299b36aa
1291 changed files with 220566 additions and 169 deletions

View File

@@ -0,0 +1,452 @@
<?php
/**
* FaceAuthFaceAuthResponseDTOResult
*
* PHP version 5
*
* @category Class
* @package Yeepay\Yop\Sdk\
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* 认证
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 1.0
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.13
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
namespace Yeepay\Yop\Sdk\Service\Auth\Model;
use \ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* FaceAuthFaceAuthResponseDTOResult Class Doc Comment
*
* @category Class
* @package Yeepay\Yop\Sdk\
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
class FaceAuthFaceAuthResponseDTOResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'FaceAuthFaceAuthResponseDTOResult';
/**
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerTypes = [
'code' => 'string',
'message' => 'string',
'requestNo' => 'string',
'orderNo' => 'string',
'status' => 'string',
'gatherFaceUrl' => 'string'
];
/**
* Array of property to format mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerFormats = [
'code' => null,
'message' => null,
'requestNo' => null,
'orderNo' => null,
'status' => null,
'gatherFaceUrl' => 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',
'message' => 'message',
'requestNo' => 'requestNo',
'orderNo' => 'orderNo',
'status' => 'status',
'gatherFaceUrl' => 'gatherFaceUrl'
];
/**
* Array of attributes to setter functions (for deserialization of responses)
*
* @var string[]
*/
protected static $setters = [
'code' => 'setCode',
'message' => 'setMessage',
'requestNo' => 'setRequestNo',
'orderNo' => 'setOrderNo',
'status' => 'setStatus',
'gatherFaceUrl' => 'setGatherFaceUrl'
];
/**
* Array of attributes to getter functions (for serialization of requests)
*
* @var string[]
*/
protected static $getters = [
'code' => 'getCode',
'message' => 'getMessage',
'requestNo' => 'getRequestNo',
'orderNo' => 'getOrderNo',
'status' => 'getStatus',
'gatherFaceUrl' => 'getGatherFaceUrl'
];
/**
* 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['message'] = isset($data['message']) ? $data['message'] : null;
$this->container['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : null;
$this->container['orderNo'] = isset($data['orderNo']) ? $data['orderNo'] : null;
$this->container['status'] = isset($data['status']) ? $data['status'] : null;
$this->container['gatherFaceUrl'] = isset($data['gatherFaceUrl']) ? $data['gatherFaceUrl'] : 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 message
*
* @return string
*/
public function getMessage()
{
return $this->container['message'];
}
/**
* Sets message
*
* @param string $message 错误信息
*
* @return $this
*/
public function setMessage($message)
{
$this->container['message'] = $message;
return $this;
}
/**
* Gets requestNo
*
* @return string
*/
public function getRequestNo()
{
return $this->container['requestNo'];
}
/**
* Sets requestNo
*
* @param string $requestNo 商户请求号
*
* @return $this
*/
public function setRequestNo($requestNo)
{
$this->container['requestNo'] = $requestNo;
return $this;
}
/**
* Gets orderNo
*
* @return string
*/
public function getOrderNo()
{
return $this->container['orderNo'];
}
/**
* Sets orderNo
*
* @param string $orderNo 易宝订单号
*
* @return $this
*/
public function setOrderNo($orderNo)
{
$this->container['orderNo'] = $orderNo;
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 gatherFaceUrl
*
* @return string
*/
public function getGatherFaceUrl()
{
return $this->container['gatherFaceUrl'];
}
/**
* Sets gatherFaceUrl
*
* @param string $gatherFaceUrl 人脸采集地址
*
* @return $this
*/
public function setGatherFaceUrl($gatherFaceUrl)
{
$this->container['gatherFaceUrl'] = $gatherFaceUrl;
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));
}
}

View File

@@ -0,0 +1,452 @@
<?php
/**
* FaceAuthKycFaceAuthResponseDTOResult
*
* PHP version 5
*
* @category Class
* @package Yeepay\Yop\Sdk\
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* 认证
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 1.0
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.13
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
namespace Yeepay\Yop\Sdk\Service\Auth\Model;
use \ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* FaceAuthKycFaceAuthResponseDTOResult Class Doc Comment
*
* @category Class
* @package Yeepay\Yop\Sdk\
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
class FaceAuthKycFaceAuthResponseDTOResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'FaceAuthKycFaceAuthResponseDTOResult';
/**
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerTypes = [
'code' => 'string',
'message' => 'string',
'requestNo' => 'string',
'orderNo' => 'string',
'status' => 'string',
'gatherFaceUrl' => 'string'
];
/**
* Array of property to format mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerFormats = [
'code' => null,
'message' => null,
'requestNo' => null,
'orderNo' => null,
'status' => null,
'gatherFaceUrl' => 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',
'message' => 'message',
'requestNo' => 'requestNo',
'orderNo' => 'orderNo',
'status' => 'status',
'gatherFaceUrl' => 'gatherFaceUrl'
];
/**
* Array of attributes to setter functions (for deserialization of responses)
*
* @var string[]
*/
protected static $setters = [
'code' => 'setCode',
'message' => 'setMessage',
'requestNo' => 'setRequestNo',
'orderNo' => 'setOrderNo',
'status' => 'setStatus',
'gatherFaceUrl' => 'setGatherFaceUrl'
];
/**
* Array of attributes to getter functions (for serialization of requests)
*
* @var string[]
*/
protected static $getters = [
'code' => 'getCode',
'message' => 'getMessage',
'requestNo' => 'getRequestNo',
'orderNo' => 'getOrderNo',
'status' => 'getStatus',
'gatherFaceUrl' => 'getGatherFaceUrl'
];
/**
* 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['message'] = isset($data['message']) ? $data['message'] : null;
$this->container['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : null;
$this->container['orderNo'] = isset($data['orderNo']) ? $data['orderNo'] : null;
$this->container['status'] = isset($data['status']) ? $data['status'] : null;
$this->container['gatherFaceUrl'] = isset($data['gatherFaceUrl']) ? $data['gatherFaceUrl'] : 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 message
*
* @return string
*/
public function getMessage()
{
return $this->container['message'];
}
/**
* Sets message
*
* @param string $message 错误信息
*
* @return $this
*/
public function setMessage($message)
{
$this->container['message'] = $message;
return $this;
}
/**
* Gets requestNo
*
* @return string
*/
public function getRequestNo()
{
return $this->container['requestNo'];
}
/**
* Sets requestNo
*
* @param string $requestNo 商户请求号
*
* @return $this
*/
public function setRequestNo($requestNo)
{
$this->container['requestNo'] = $requestNo;
return $this;
}
/**
* Gets orderNo
*
* @return string
*/
public function getOrderNo()
{
return $this->container['orderNo'];
}
/**
* Sets orderNo
*
* @param string $orderNo 易宝订单号
*
* @return $this
*/
public function setOrderNo($orderNo)
{
$this->container['orderNo'] = $orderNo;
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 gatherFaceUrl
*
* @return string
*/
public function getGatherFaceUrl()
{
return $this->container['gatherFaceUrl'];
}
/**
* Sets gatherFaceUrl
*
* @param string $gatherFaceUrl 人脸采集地址
*
* @return $this
*/
public function setGatherFaceUrl($gatherFaceUrl)
{
$this->container['gatherFaceUrl'] = $gatherFaceUrl;
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));
}
}

View File

@@ -0,0 +1,482 @@
<?php
/**
* FaceAuthKycQueryFaceAuthResultQueryResponseDTOResult
*
* PHP version 5
*
* @category Class
* @package Yeepay\Yop\Sdk\
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* 认证
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 1.0
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.13
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
namespace Yeepay\Yop\Sdk\Service\Auth\Model;
use \ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* FaceAuthKycQueryFaceAuthResultQueryResponseDTOResult Class Doc Comment
*
* @category Class
* @package Yeepay\Yop\Sdk\
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
class FaceAuthKycQueryFaceAuthResultQueryResponseDTOResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'FaceAuthKycQueryFaceAuthResultQueryResponseDTOResult';
/**
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerTypes = [
'requestNo' => 'string',
'orderNo' => 'string',
'status' => 'string',
'extraData' => 'string',
'riskTag' => 'string',
'code' => 'string',
'message' => 'string'
];
/**
* Array of property to format mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerFormats = [
'requestNo' => null,
'orderNo' => null,
'status' => null,
'extraData' => null,
'riskTag' => null,
'code' => 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 = [
'requestNo' => 'requestNo',
'orderNo' => 'orderNo',
'status' => 'status',
'extraData' => 'extraData',
'riskTag' => 'riskTag',
'code' => 'code',
'message' => 'message'
];
/**
* Array of attributes to setter functions (for deserialization of responses)
*
* @var string[]
*/
protected static $setters = [
'requestNo' => 'setRequestNo',
'orderNo' => 'setOrderNo',
'status' => 'setStatus',
'extraData' => 'setExtraData',
'riskTag' => 'setRiskTag',
'code' => 'setCode',
'message' => 'setMessage'
];
/**
* Array of attributes to getter functions (for serialization of requests)
*
* @var string[]
*/
protected static $getters = [
'requestNo' => 'getRequestNo',
'orderNo' => 'getOrderNo',
'status' => 'getStatus',
'extraData' => 'getExtraData',
'riskTag' => 'getRiskTag',
'code' => 'getCode',
'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['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : null;
$this->container['orderNo'] = isset($data['orderNo']) ? $data['orderNo'] : null;
$this->container['status'] = isset($data['status']) ? $data['status'] : null;
$this->container['extraData'] = isset($data['extraData']) ? $data['extraData'] : null;
$this->container['riskTag'] = isset($data['riskTag']) ? $data['riskTag'] : null;
$this->container['code'] = isset($data['code']) ? $data['code'] : 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 requestNo
*
* @return string
*/
public function getRequestNo()
{
return $this->container['requestNo'];
}
/**
* Sets requestNo
*
* @param string $requestNo 商户请求流水号
*
* @return $this
*/
public function setRequestNo($requestNo)
{
$this->container['requestNo'] = $requestNo;
return $this;
}
/**
* Gets orderNo
*
* @return string
*/
public function getOrderNo()
{
return $this->container['orderNo'];
}
/**
* Sets orderNo
*
* @param string $orderNo 易宝订单号
*
* @return $this
*/
public function setOrderNo($orderNo)
{
$this->container['orderNo'] = $orderNo;
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 extraData
*
* @return string
*/
public function getExtraData()
{
return $this->container['extraData'];
}
/**
* Sets extraData
*
* @param string $extraData 额外数据
*
* @return $this
*/
public function setExtraData($extraData)
{
$this->container['extraData'] = $extraData;
return $this;
}
/**
* Gets riskTag
*
* @return string
*/
public function getRiskTag()
{
return $this->container['riskTag'];
}
/**
* Sets riskTag
*
* @param string $riskTag 风险类别
*
* @return $this
*/
public function setRiskTag($riskTag)
{
$this->container['riskTag'] = $riskTag;
return $this;
}
/**
* 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 message
*
* @return string
*/
public function getMessage()
{
return $this->container['message'];
}
/**
* Sets message
*
* @param string $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));
}
}

View File

@@ -0,0 +1,92 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Auth\Model;
class FaceAuthKycQueryRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
{
/**
* @var string
*/
private $requestNo;
/**
* @var string
*/
private $parentMerchantNo;
/**
* @var string
*/
private $merchantNo;
/**
* Gets requestNo
*
* @return string
*/
public function getRequestNo()
{
return $this->requestNo;
}
/**
* Sets requestNo
*
* @param string $requestNo
* @return FaceAuthKycQueryRequest
*/
public function setRequestNo($requestNo)
{
$this->requestNo = $requestNo;
return $this;
}
/**
* Gets parentMerchantNo
*
* @return string
*/
public function getParentMerchantNo()
{
return $this->parentMerchantNo;
}
/**
* Sets parentMerchantNo
*
* @param string $parentMerchantNo
* @return FaceAuthKycQueryRequest
*/
public function setParentMerchantNo($parentMerchantNo)
{
$this->parentMerchantNo = $parentMerchantNo;
return $this;
}
/**
* Gets merchantNo
*
* @return string
*/
public function getMerchantNo()
{
return $this->merchantNo;
}
/**
* Sets merchantNo
*
* @param string $merchantNo
* @return FaceAuthKycQueryRequest
*/
public function setMerchantNo($merchantNo)
{
$this->merchantNo = $merchantNo;
return $this;
}
public static function getOperationId()
{
return 'faceAuthKycQuery';
}
}

View File

@@ -0,0 +1,86 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Auth\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 FaceAuthKycQueryRequestMarshaller implements RequestMarshaller
{
/**
* @var FaceAuthKycQueryRequestMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new FaceAuthKycQueryRequestMarshaller();
}
/**
* @return FaceAuthKycQueryRequestMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @var string
*/
private $serviceName = 'Auth';
/**
* @var string
*/
private $httpMethod = 'GET';
/**
* @var string
*/
private $resourcePath = '/rest/v1.0/auth/face-auth-kyc-query';
/**
* @var string
*/
private $contentType = 'application/x-www-form-urlencoded';
/**
* @param FaceAuthKycQueryRequest $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->getParentMerchantNo() != null){
$internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string'));
}
if($request->getMerchantNo() != null){
$internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string'));
}
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
return $internalRequest;
}
}
FaceAuthKycQueryRequestMarshaller::__init();

View File

@@ -0,0 +1,34 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Auth\Model;
class FaceAuthKycQueryResponse extends \Yeepay\Yop\Sdk\Model\BaseResponse
{
/**
* @var FaceAuthKycQueryFaceAuthResultQueryResponseDTOResult
*/
private $result;
function getResultClass()
{
return '\Yeepay\Yop\Sdk\Service\Auth\Model\FaceAuthKycQueryFaceAuthResultQueryResponseDTOResult';
}
/**
* @param FaceAuthKycQueryFaceAuthResultQueryResponseDTOResult $result
*/
function setResult($result)
{
$this->result = $result;
}
/**
* @return FaceAuthKycQueryFaceAuthResultQueryResponseDTOResult
*/
function getResult()
{
return $this->result;
}
}

View File

@@ -0,0 +1,39 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Auth\Model;
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
class FaceAuthKycQueryResponseUnMarshaller extends BaseResponseUnMarshaller
{
/**
* @var FaceAuthKycQueryResponseUnMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new FaceAuthKycQueryResponseUnMarshaller();
}
/**
* @return FaceAuthKycQueryResponseUnMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @return FaceAuthKycQueryResponse
*/
protected function getResponseInstance()
{
return new FaceAuthKycQueryResponse();
}
}
FaceAuthKycQueryResponseUnMarshaller::__init();

View File

@@ -0,0 +1,242 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Auth\Model;
class FaceAuthKycRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
{
/**
* @var string
*/
private $requestNo;
/**
* @var string
*/
private $parentMerchantNo;
/**
* @var string
*/
private $merchantNo;
/**
* @var string
*/
private $name;
/**
* @var string
*/
private $cardNo;
/**
* @var string
*/
private $cardType;
/**
* @var string
*/
private $returnUrl;
/**
* @var string
*/
private $notifyUrl;
/**
* @var string
*/
private $extraData;
/**
* Gets requestNo
*
* @return string
*/
public function getRequestNo()
{
return $this->requestNo;
}
/**
* Sets requestNo
*
* @param string $requestNo
* @return FaceAuthKycRequest
*/
public function setRequestNo($requestNo)
{
$this->requestNo = $requestNo;
return $this;
}
/**
* Gets parentMerchantNo
*
* @return string
*/
public function getParentMerchantNo()
{
return $this->parentMerchantNo;
}
/**
* Sets parentMerchantNo
*
* @param string $parentMerchantNo
* @return FaceAuthKycRequest
*/
public function setParentMerchantNo($parentMerchantNo)
{
$this->parentMerchantNo = $parentMerchantNo;
return $this;
}
/**
* Gets merchantNo
*
* @return string
*/
public function getMerchantNo()
{
return $this->merchantNo;
}
/**
* Sets merchantNo
*
* @param string $merchantNo
* @return FaceAuthKycRequest
*/
public function setMerchantNo($merchantNo)
{
$this->merchantNo = $merchantNo;
return $this;
}
/**
* Gets name
*
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Sets name
*
* @param string $name
* @return FaceAuthKycRequest
*/
public function setName($name)
{
$this->name = $name;
return $this;
}
/**
* Gets cardNo
*
* @return string
*/
public function getCardNo()
{
return $this->cardNo;
}
/**
* Sets cardNo
*
* @param string $cardNo
* @return FaceAuthKycRequest
*/
public function setCardNo($cardNo)
{
$this->cardNo = $cardNo;
return $this;
}
/**
* Gets cardType
*
* @return string
*/
public function getCardType()
{
return $this->cardType;
}
/**
* Sets cardType
*
* @param string $cardType
* @return FaceAuthKycRequest
*/
public function setCardType($cardType)
{
$this->cardType = $cardType;
return $this;
}
/**
* Gets returnUrl
*
* @return string
*/
public function getReturnUrl()
{
return $this->returnUrl;
}
/**
* Sets returnUrl
*
* @param string $returnUrl
* @return FaceAuthKycRequest
*/
public function setReturnUrl($returnUrl)
{
$this->returnUrl = $returnUrl;
return $this;
}
/**
* Gets notifyUrl
*
* @return string
*/
public function getNotifyUrl()
{
return $this->notifyUrl;
}
/**
* Sets notifyUrl
*
* @param string $notifyUrl
* @return FaceAuthKycRequest
*/
public function setNotifyUrl($notifyUrl)
{
$this->notifyUrl = $notifyUrl;
return $this;
}
/**
* Gets extraData
*
* @return string
*/
public function getExtraData()
{
return $this->extraData;
}
/**
* Sets extraData
*
* @param string $extraData
* @return FaceAuthKycRequest
*/
public function setExtraData($extraData)
{
$this->extraData = $extraData;
return $this;
}
public static function getOperationId()
{
return 'faceAuthKyc';
}
}

View File

@@ -0,0 +1,104 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Auth\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 FaceAuthKycRequestMarshaller implements RequestMarshaller
{
/**
* @var FaceAuthKycRequestMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new FaceAuthKycRequestMarshaller();
}
/**
* @return FaceAuthKycRequestMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @var string
*/
private $serviceName = 'Auth';
/**
* @var string
*/
private $httpMethod = 'POST';
/**
* @var string
*/
private $resourcePath = '/rest/v1.0/auth/face-auth-kyc';
/**
* @var string
*/
private $contentType = 'application/x-www-form-urlencoded';
/**
* @param FaceAuthKycRequest $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->getParentMerchantNo() != null){
$internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string'));
}
if($request->getMerchantNo() != null){
$internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string'));
}
if($request->getName() != null){
$internalRequest->addParameter('name', ObjectSerializer::sanitizeForSerialization($request->getName(), 'string'));
}
if($request->getCardNo() != null){
$internalRequest->addParameter('cardNo', ObjectSerializer::sanitizeForSerialization($request->getCardNo(), 'string'));
}
if($request->getCardType() != null){
$internalRequest->addParameter('cardType', ObjectSerializer::sanitizeForSerialization($request->getCardType(), 'string'));
}
if($request->getReturnUrl() != null){
$internalRequest->addParameter('returnUrl', ObjectSerializer::sanitizeForSerialization($request->getReturnUrl(), 'string'));
}
if($request->getNotifyUrl() != null){
$internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string'));
}
if($request->getExtraData() != null){
$internalRequest->addParameter('extraData', ObjectSerializer::sanitizeForSerialization($request->getExtraData(), 'string'));
}
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
return $internalRequest;
}
}
FaceAuthKycRequestMarshaller::__init();

View File

@@ -0,0 +1,34 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Auth\Model;
class FaceAuthKycResponse extends \Yeepay\Yop\Sdk\Model\BaseResponse
{
/**
* @var FaceAuthKycFaceAuthResponseDTOResult
*/
private $result;
function getResultClass()
{
return '\Yeepay\Yop\Sdk\Service\Auth\Model\FaceAuthKycFaceAuthResponseDTOResult';
}
/**
* @param FaceAuthKycFaceAuthResponseDTOResult $result
*/
function setResult($result)
{
$this->result = $result;
}
/**
* @return FaceAuthKycFaceAuthResponseDTOResult
*/
function getResult()
{
return $this->result;
}
}

View File

@@ -0,0 +1,39 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Auth\Model;
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
class FaceAuthKycResponseUnMarshaller extends BaseResponseUnMarshaller
{
/**
* @var FaceAuthKycResponseUnMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new FaceAuthKycResponseUnMarshaller();
}
/**
* @return FaceAuthKycResponseUnMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @return FaceAuthKycResponse
*/
protected function getResponseInstance()
{
return new FaceAuthKycResponse();
}
}
FaceAuthKycResponseUnMarshaller::__init();

View File

@@ -0,0 +1,242 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Auth\Model;
class FaceAuthRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
{
/**
* @var string
*/
private $requestNo;
/**
* @var string
*/
private $parentMerchantNo;
/**
* @var string
*/
private $merchantNo;
/**
* @var string
*/
private $name;
/**
* @var string
*/
private $cardNo;
/**
* @var string
*/
private $cardType;
/**
* @var string
*/
private $returnUrl;
/**
* @var string
*/
private $notifyUrl;
/**
* @var string
*/
private $extraData;
/**
* Gets requestNo
*
* @return string
*/
public function getRequestNo()
{
return $this->requestNo;
}
/**
* Sets requestNo
*
* @param string $requestNo
* @return FaceAuthRequest
*/
public function setRequestNo($requestNo)
{
$this->requestNo = $requestNo;
return $this;
}
/**
* Gets parentMerchantNo
*
* @return string
*/
public function getParentMerchantNo()
{
return $this->parentMerchantNo;
}
/**
* Sets parentMerchantNo
*
* @param string $parentMerchantNo
* @return FaceAuthRequest
*/
public function setParentMerchantNo($parentMerchantNo)
{
$this->parentMerchantNo = $parentMerchantNo;
return $this;
}
/**
* Gets merchantNo
*
* @return string
*/
public function getMerchantNo()
{
return $this->merchantNo;
}
/**
* Sets merchantNo
*
* @param string $merchantNo
* @return FaceAuthRequest
*/
public function setMerchantNo($merchantNo)
{
$this->merchantNo = $merchantNo;
return $this;
}
/**
* Gets name
*
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Sets name
*
* @param string $name
* @return FaceAuthRequest
*/
public function setName($name)
{
$this->name = $name;
return $this;
}
/**
* Gets cardNo
*
* @return string
*/
public function getCardNo()
{
return $this->cardNo;
}
/**
* Sets cardNo
*
* @param string $cardNo
* @return FaceAuthRequest
*/
public function setCardNo($cardNo)
{
$this->cardNo = $cardNo;
return $this;
}
/**
* Gets cardType
*
* @return string
*/
public function getCardType()
{
return $this->cardType;
}
/**
* Sets cardType
*
* @param string $cardType
* @return FaceAuthRequest
*/
public function setCardType($cardType)
{
$this->cardType = $cardType;
return $this;
}
/**
* Gets returnUrl
*
* @return string
*/
public function getReturnUrl()
{
return $this->returnUrl;
}
/**
* Sets returnUrl
*
* @param string $returnUrl
* @return FaceAuthRequest
*/
public function setReturnUrl($returnUrl)
{
$this->returnUrl = $returnUrl;
return $this;
}
/**
* Gets notifyUrl
*
* @return string
*/
public function getNotifyUrl()
{
return $this->notifyUrl;
}
/**
* Sets notifyUrl
*
* @param string $notifyUrl
* @return FaceAuthRequest
*/
public function setNotifyUrl($notifyUrl)
{
$this->notifyUrl = $notifyUrl;
return $this;
}
/**
* Gets extraData
*
* @return string
*/
public function getExtraData()
{
return $this->extraData;
}
/**
* Sets extraData
*
* @param string $extraData
* @return FaceAuthRequest
*/
public function setExtraData($extraData)
{
$this->extraData = $extraData;
return $this;
}
public static function getOperationId()
{
return 'faceAuth';
}
}

View File

@@ -0,0 +1,104 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Auth\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 FaceAuthRequestMarshaller implements RequestMarshaller
{
/**
* @var FaceAuthRequestMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new FaceAuthRequestMarshaller();
}
/**
* @return FaceAuthRequestMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @var string
*/
private $serviceName = 'Auth';
/**
* @var string
*/
private $httpMethod = 'POST';
/**
* @var string
*/
private $resourcePath = '/rest/v1.0/auth/face-auth';
/**
* @var string
*/
private $contentType = 'application/x-www-form-urlencoded';
/**
* @param FaceAuthRequest $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->getParentMerchantNo() != null){
$internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string'));
}
if($request->getMerchantNo() != null){
$internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string'));
}
if($request->getName() != null){
$internalRequest->addParameter('name', ObjectSerializer::sanitizeForSerialization($request->getName(), 'string'));
}
if($request->getCardNo() != null){
$internalRequest->addParameter('cardNo', ObjectSerializer::sanitizeForSerialization($request->getCardNo(), 'string'));
}
if($request->getCardType() != null){
$internalRequest->addParameter('cardType', ObjectSerializer::sanitizeForSerialization($request->getCardType(), 'string'));
}
if($request->getReturnUrl() != null){
$internalRequest->addParameter('returnUrl', ObjectSerializer::sanitizeForSerialization($request->getReturnUrl(), 'string'));
}
if($request->getNotifyUrl() != null){
$internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string'));
}
if($request->getExtraData() != null){
$internalRequest->addParameter('extraData', ObjectSerializer::sanitizeForSerialization($request->getExtraData(), 'string'));
}
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
return $internalRequest;
}
}
FaceAuthRequestMarshaller::__init();

View File

@@ -0,0 +1,34 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Auth\Model;
class FaceAuthResponse extends \Yeepay\Yop\Sdk\Model\BaseResponse
{
/**
* @var FaceAuthFaceAuthResponseDTOResult
*/
private $result;
function getResultClass()
{
return '\Yeepay\Yop\Sdk\Service\Auth\Model\FaceAuthFaceAuthResponseDTOResult';
}
/**
* @param FaceAuthFaceAuthResponseDTOResult $result
*/
function setResult($result)
{
$this->result = $result;
}
/**
* @return FaceAuthFaceAuthResponseDTOResult
*/
function getResult()
{
return $this->result;
}
}

View File

@@ -0,0 +1,39 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Auth\Model;
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
class FaceAuthResponseUnMarshaller extends BaseResponseUnMarshaller
{
/**
* @var FaceAuthResponseUnMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new FaceAuthResponseUnMarshaller();
}
/**
* @return FaceAuthResponseUnMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @return FaceAuthResponse
*/
protected function getResponseInstance()
{
return new FaceAuthResponse();
}
}
FaceAuthResponseUnMarshaller::__init();

View File

@@ -0,0 +1,452 @@
<?php
/**
* FaceAuthResultQueryFaceAuthResultQueryResponseDTOResult
*
* PHP version 5
*
* @category Class
* @package Yeepay\Yop\Sdk\
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* 认证
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 1.0
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.13
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
namespace Yeepay\Yop\Sdk\Service\Auth\Model;
use \ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* FaceAuthResultQueryFaceAuthResultQueryResponseDTOResult Class Doc Comment
*
* @category Class
* @package Yeepay\Yop\Sdk\
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
class FaceAuthResultQueryFaceAuthResultQueryResponseDTOResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'FaceAuthResultQueryFaceAuthResultQueryResponseDTOResult';
/**
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerTypes = [
'requestNo' => 'string',
'orderNo' => 'string',
'status' => 'string',
'extraData' => 'string',
'code' => 'string',
'message' => 'string'
];
/**
* Array of property to format mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerFormats = [
'requestNo' => null,
'orderNo' => null,
'status' => null,
'extraData' => null,
'code' => 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 = [
'requestNo' => 'requestNo',
'orderNo' => 'orderNo',
'status' => 'status',
'extraData' => 'extraData',
'code' => 'code',
'message' => 'message'
];
/**
* Array of attributes to setter functions (for deserialization of responses)
*
* @var string[]
*/
protected static $setters = [
'requestNo' => 'setRequestNo',
'orderNo' => 'setOrderNo',
'status' => 'setStatus',
'extraData' => 'setExtraData',
'code' => 'setCode',
'message' => 'setMessage'
];
/**
* Array of attributes to getter functions (for serialization of requests)
*
* @var string[]
*/
protected static $getters = [
'requestNo' => 'getRequestNo',
'orderNo' => 'getOrderNo',
'status' => 'getStatus',
'extraData' => 'getExtraData',
'code' => 'getCode',
'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['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : null;
$this->container['orderNo'] = isset($data['orderNo']) ? $data['orderNo'] : null;
$this->container['status'] = isset($data['status']) ? $data['status'] : null;
$this->container['extraData'] = isset($data['extraData']) ? $data['extraData'] : null;
$this->container['code'] = isset($data['code']) ? $data['code'] : 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 requestNo
*
* @return string
*/
public function getRequestNo()
{
return $this->container['requestNo'];
}
/**
* Sets requestNo
*
* @param string $requestNo 商户请求流水号
*
* @return $this
*/
public function setRequestNo($requestNo)
{
$this->container['requestNo'] = $requestNo;
return $this;
}
/**
* Gets orderNo
*
* @return string
*/
public function getOrderNo()
{
return $this->container['orderNo'];
}
/**
* Sets orderNo
*
* @param string $orderNo 易宝订单号
*
* @return $this
*/
public function setOrderNo($orderNo)
{
$this->container['orderNo'] = $orderNo;
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 extraData
*
* @return string
*/
public function getExtraData()
{
return $this->container['extraData'];
}
/**
* Sets extraData
*
* @param string $extraData 额外数据
*
* @return $this
*/
public function setExtraData($extraData)
{
$this->container['extraData'] = $extraData;
return $this;
}
/**
* 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 message
*
* @return string
*/
public function getMessage()
{
return $this->container['message'];
}
/**
* Sets message
*
* @param string $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));
}
}

View File

@@ -0,0 +1,92 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Auth\Model;
class FaceAuthResultQueryRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
{
/**
* @var string
*/
private $requestNo;
/**
* @var string
*/
private $parentMerchantNo;
/**
* @var string
*/
private $merchantNo;
/**
* Gets requestNo
*
* @return string
*/
public function getRequestNo()
{
return $this->requestNo;
}
/**
* Sets requestNo
*
* @param string $requestNo
* @return FaceAuthResultQueryRequest
*/
public function setRequestNo($requestNo)
{
$this->requestNo = $requestNo;
return $this;
}
/**
* Gets parentMerchantNo
*
* @return string
*/
public function getParentMerchantNo()
{
return $this->parentMerchantNo;
}
/**
* Sets parentMerchantNo
*
* @param string $parentMerchantNo
* @return FaceAuthResultQueryRequest
*/
public function setParentMerchantNo($parentMerchantNo)
{
$this->parentMerchantNo = $parentMerchantNo;
return $this;
}
/**
* Gets merchantNo
*
* @return string
*/
public function getMerchantNo()
{
return $this->merchantNo;
}
/**
* Sets merchantNo
*
* @param string $merchantNo
* @return FaceAuthResultQueryRequest
*/
public function setMerchantNo($merchantNo)
{
$this->merchantNo = $merchantNo;
return $this;
}
public static function getOperationId()
{
return 'faceAuthResultQuery';
}
}

View File

@@ -0,0 +1,86 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Auth\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 FaceAuthResultQueryRequestMarshaller implements RequestMarshaller
{
/**
* @var FaceAuthResultQueryRequestMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new FaceAuthResultQueryRequestMarshaller();
}
/**
* @return FaceAuthResultQueryRequestMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @var string
*/
private $serviceName = 'Auth';
/**
* @var string
*/
private $httpMethod = 'GET';
/**
* @var string
*/
private $resourcePath = '/rest/v1.0/auth/face-auth-result-query';
/**
* @var string
*/
private $contentType = 'application/x-www-form-urlencoded';
/**
* @param FaceAuthResultQueryRequest $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->getParentMerchantNo() != null){
$internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string'));
}
if($request->getMerchantNo() != null){
$internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string'));
}
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
return $internalRequest;
}
}
FaceAuthResultQueryRequestMarshaller::__init();

View File

@@ -0,0 +1,34 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Auth\Model;
class FaceAuthResultQueryResponse extends \Yeepay\Yop\Sdk\Model\BaseResponse
{
/**
* @var FaceAuthResultQueryFaceAuthResultQueryResponseDTOResult
*/
private $result;
function getResultClass()
{
return '\Yeepay\Yop\Sdk\Service\Auth\Model\FaceAuthResultQueryFaceAuthResultQueryResponseDTOResult';
}
/**
* @param FaceAuthResultQueryFaceAuthResultQueryResponseDTOResult $result
*/
function setResult($result)
{
$this->result = $result;
}
/**
* @return FaceAuthResultQueryFaceAuthResultQueryResponseDTOResult
*/
function getResult()
{
return $this->result;
}
}

View File

@@ -0,0 +1,39 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Auth\Model;
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
class FaceAuthResultQueryResponseUnMarshaller extends BaseResponseUnMarshaller
{
/**
* @var FaceAuthResultQueryResponseUnMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new FaceAuthResultQueryResponseUnMarshaller();
}
/**
* @return FaceAuthResultQueryResponseUnMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @return FaceAuthResultQueryResponse
*/
protected function getResponseInstance()
{
return new FaceAuthResultQueryResponse();
}
}
FaceAuthResultQueryResponseUnMarshaller::__init();

View File

@@ -0,0 +1,482 @@
<?php
/**
* MultipleAuthAuthResponseDTOResult
*
* PHP version 5
*
* @category Class
* @package Yeepay\Yop\Sdk\
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* 认证
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 1.0
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.13
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
namespace Yeepay\Yop\Sdk\Service\Auth\Model;
use \ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* MultipleAuthAuthResponseDTOResult Class Doc Comment
*
* @category Class
* @package Yeepay\Yop\Sdk\
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
class MultipleAuthAuthResponseDTOResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'MultipleAuthAuthResponseDTOResult';
/**
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerTypes = [
'status' => 'string',
'merchantNo' => 'string',
'code' => 'string',
'message' => 'string',
'requestNo' => 'string',
'authType' => 'string',
'ybOrderId' => 'string'
];
/**
* Array of property to format mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerFormats = [
'status' => null,
'merchantNo' => null,
'code' => null,
'message' => null,
'requestNo' => null,
'authType' => null,
'ybOrderId' => 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 = [
'status' => 'status',
'merchantNo' => 'merchantNo',
'code' => 'code',
'message' => 'message',
'requestNo' => 'requestNo',
'authType' => 'authType',
'ybOrderId' => 'ybOrderId'
];
/**
* Array of attributes to setter functions (for deserialization of responses)
*
* @var string[]
*/
protected static $setters = [
'status' => 'setStatus',
'merchantNo' => 'setMerchantNo',
'code' => 'setCode',
'message' => 'setMessage',
'requestNo' => 'setRequestNo',
'authType' => 'setAuthType',
'ybOrderId' => 'setYbOrderId'
];
/**
* Array of attributes to getter functions (for serialization of requests)
*
* @var string[]
*/
protected static $getters = [
'status' => 'getStatus',
'merchantNo' => 'getMerchantNo',
'code' => 'getCode',
'message' => 'getMessage',
'requestNo' => 'getRequestNo',
'authType' => 'getAuthType',
'ybOrderId' => 'getYbOrderId'
];
/**
* 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['status'] = isset($data['status']) ? $data['status'] : null;
$this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null;
$this->container['code'] = isset($data['code']) ? $data['code'] : null;
$this->container['message'] = isset($data['message']) ? $data['message'] : null;
$this->container['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : null;
$this->container['authType'] = isset($data['authType']) ? $data['authType'] : null;
$this->container['ybOrderId'] = isset($data['ybOrderId']) ? $data['ybOrderId'] : 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 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 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 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 message
*
* @return string
*/
public function getMessage()
{
return $this->container['message'];
}
/**
* Sets message
*
* @param string $message 错误信息
*
* @return $this
*/
public function setMessage($message)
{
$this->container['message'] = $message;
return $this;
}
/**
* Gets requestNo
*
* @return string
*/
public function getRequestNo()
{
return $this->container['requestNo'];
}
/**
* Sets requestNo
*
* @param string $requestNo 商户请求号
*
* @return $this
*/
public function setRequestNo($requestNo)
{
$this->container['requestNo'] = $requestNo;
return $this;
}
/**
* Gets authType
*
* @return string
*/
public function getAuthType()
{
return $this->container['authType'];
}
/**
* Sets authType
*
* @param string $authType 认证类型
*
* @return $this
*/
public function setAuthType($authType)
{
$this->container['authType'] = $authType;
return $this;
}
/**
* Gets ybOrderId
*
* @return string
*/
public function getYbOrderId()
{
return $this->container['ybOrderId'];
}
/**
* Sets ybOrderId
*
* @param string $ybOrderId 易宝流水号
*
* @return $this
*/
public function setYbOrderId($ybOrderId)
{
$this->container['ybOrderId'] = $ybOrderId;
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));
}
}

View File

@@ -0,0 +1,292 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Auth\Model;
class MultipleAuthRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
{
/**
* @var string
*/
private $merchantNo;
/**
* @var string
*/
private $authType;
/**
* @var string
*/
private $requestNo;
/**
* @var string
*/
private $idCardNo;
/**
* @var string
*/
private $username;
/**
* @var string
*/
private $bankCardNo;
/**
* @var string
*/
private $remark;
/**
* @var string
*/
private $mobile;
/**
* @var string
*/
private $idCardType;
/**
* @var string
*/
private $clientSource;
/**
* @var string
*/
private $extMap;
/**
* Gets merchantNo
*
* @return string
*/
public function getMerchantNo()
{
return $this->merchantNo;
}
/**
* Sets merchantNo
*
* @param string $merchantNo
* @return MultipleAuthRequest
*/
public function setMerchantNo($merchantNo)
{
$this->merchantNo = $merchantNo;
return $this;
}
/**
* Gets authType
*
* @return string
*/
public function getAuthType()
{
return $this->authType;
}
/**
* Sets authType
*
* @param string $authType
* @return MultipleAuthRequest
*/
public function setAuthType($authType)
{
$this->authType = $authType;
return $this;
}
/**
* Gets requestNo
*
* @return string
*/
public function getRequestNo()
{
return $this->requestNo;
}
/**
* Sets requestNo
*
* @param string $requestNo
* @return MultipleAuthRequest
*/
public function setRequestNo($requestNo)
{
$this->requestNo = $requestNo;
return $this;
}
/**
* Gets idCardNo
*
* @return string
*/
public function getIdCardNo()
{
return $this->idCardNo;
}
/**
* Sets idCardNo
*
* @param string $idCardNo
* @return MultipleAuthRequest
*/
public function setIdCardNo($idCardNo)
{
$this->idCardNo = $idCardNo;
return $this;
}
/**
* Gets username
*
* @return string
*/
public function getUsername()
{
return $this->username;
}
/**
* Sets username
*
* @param string $username
* @return MultipleAuthRequest
*/
public function setUsername($username)
{
$this->username = $username;
return $this;
}
/**
* Gets bankCardNo
*
* @return string
*/
public function getBankCardNo()
{
return $this->bankCardNo;
}
/**
* Sets bankCardNo
*
* @param string $bankCardNo
* @return MultipleAuthRequest
*/
public function setBankCardNo($bankCardNo)
{
$this->bankCardNo = $bankCardNo;
return $this;
}
/**
* Gets remark
*
* @return string
*/
public function getRemark()
{
return $this->remark;
}
/**
* Sets remark
*
* @param string $remark
* @return MultipleAuthRequest
*/
public function setRemark($remark)
{
$this->remark = $remark;
return $this;
}
/**
* Gets mobile
*
* @return string
*/
public function getMobile()
{
return $this->mobile;
}
/**
* Sets mobile
*
* @param string $mobile
* @return MultipleAuthRequest
*/
public function setMobile($mobile)
{
$this->mobile = $mobile;
return $this;
}
/**
* Gets idCardType
*
* @return string
*/
public function getIdCardType()
{
return $this->idCardType;
}
/**
* Sets idCardType
*
* @param string $idCardType
* @return MultipleAuthRequest
*/
public function setIdCardType($idCardType)
{
$this->idCardType = $idCardType;
return $this;
}
/**
* Gets clientSource
*
* @return string
*/
public function getClientSource()
{
return $this->clientSource;
}
/**
* Sets clientSource
*
* @param string $clientSource
* @return MultipleAuthRequest
*/
public function setClientSource($clientSource)
{
$this->clientSource = $clientSource;
return $this;
}
/**
* Gets extMap
*
* @return string
*/
public function getExtMap()
{
return $this->extMap;
}
/**
* Sets extMap
*
* @param string $extMap
* @return MultipleAuthRequest
*/
public function setExtMap($extMap)
{
$this->extMap = $extMap;
return $this;
}
public static function getOperationId()
{
return 'multipleAuth';
}
}

View File

@@ -0,0 +1,110 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Auth\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 MultipleAuthRequestMarshaller implements RequestMarshaller
{
/**
* @var MultipleAuthRequestMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new MultipleAuthRequestMarshaller();
}
/**
* @return MultipleAuthRequestMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @var string
*/
private $serviceName = 'Auth';
/**
* @var string
*/
private $httpMethod = 'POST';
/**
* @var string
*/
private $resourcePath = '/rest/v1.0/auth/multiple-auth';
/**
* @var string
*/
private $contentType = 'application/x-www-form-urlencoded';
/**
* @param MultipleAuthRequest $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->getMerchantNo() != null){
$internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string'));
}
if($request->getAuthType() != null){
$internalRequest->addParameter('authType', ObjectSerializer::sanitizeForSerialization($request->getAuthType(), 'string'));
}
if($request->getRequestNo() != null){
$internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string'));
}
if($request->getIdCardNo() != null){
$internalRequest->addParameter('idCardNo', ObjectSerializer::sanitizeForSerialization($request->getIdCardNo(), 'string'));
}
if($request->getUsername() != null){
$internalRequest->addParameter('username', ObjectSerializer::sanitizeForSerialization($request->getUsername(), 'string'));
}
if($request->getBankCardNo() != null){
$internalRequest->addParameter('bankCardNo', ObjectSerializer::sanitizeForSerialization($request->getBankCardNo(), 'string'));
}
if($request->getRemark() != null){
$internalRequest->addParameter('remark', ObjectSerializer::sanitizeForSerialization($request->getRemark(), 'string'));
}
if($request->getMobile() != null){
$internalRequest->addParameter('mobile', ObjectSerializer::sanitizeForSerialization($request->getMobile(), 'string'));
}
if($request->getIdCardType() != null){
$internalRequest->addParameter('idCardType', ObjectSerializer::sanitizeForSerialization($request->getIdCardType(), 'string'));
}
if($request->getClientSource() != null){
$internalRequest->addParameter('clientSource', ObjectSerializer::sanitizeForSerialization($request->getClientSource(), 'string'));
}
if($request->getExtMap() != null){
$internalRequest->addParameter('extMap', ObjectSerializer::sanitizeForSerialization($request->getExtMap(), 'string'));
}
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
return $internalRequest;
}
}
MultipleAuthRequestMarshaller::__init();

View File

@@ -0,0 +1,34 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Auth\Model;
class MultipleAuthResponse extends \Yeepay\Yop\Sdk\Model\BaseResponse
{
/**
* @var MultipleAuthAuthResponseDTOResult
*/
private $result;
function getResultClass()
{
return '\Yeepay\Yop\Sdk\Service\Auth\Model\MultipleAuthAuthResponseDTOResult';
}
/**
* @param MultipleAuthAuthResponseDTOResult $result
*/
function setResult($result)
{
$this->result = $result;
}
/**
* @return MultipleAuthAuthResponseDTOResult
*/
function getResult()
{
return $this->result;
}
}

View File

@@ -0,0 +1,39 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Auth\Model;
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
class MultipleAuthResponseUnMarshaller extends BaseResponseUnMarshaller
{
/**
* @var MultipleAuthResponseUnMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new MultipleAuthResponseUnMarshaller();
}
/**
* @return MultipleAuthResponseUnMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @return MultipleAuthResponse
*/
protected function getResponseInstance()
{
return new MultipleAuthResponse();
}
}
MultipleAuthResponseUnMarshaller::__init();