增加聚合支付托管下单
This commit is contained in:
423
lib/Service/Mer/Model/AuthStateQueryV2IdentityAuthDtoResult.php
Normal file
423
lib/Service/Mer/Model/AuthStateQueryV2IdentityAuthDtoResult.php
Normal file
@@ -0,0 +1,423 @@
|
||||
<?php
|
||||
/**
|
||||
* AuthStateQueryV2IdentityAuthDtoResult
|
||||
*
|
||||
* 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\Mer\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* AuthStateQueryV2IdentityAuthDtoResult Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @description
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class AuthStateQueryV2IdentityAuthDtoResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'AuthStateQueryV2IdentityAuthDtoResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'reportMerchantNo' => 'string',
|
||||
'feeType' => 'string',
|
||||
'authorizeState' => 'string',
|
||||
'returnCode' => 'string',
|
||||
'returnMsg' => 'string'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'reportMerchantNo' => null,
|
||||
'feeType' => null,
|
||||
'authorizeState' => null,
|
||||
'returnCode' => null,
|
||||
'returnMsg' => 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 = [
|
||||
'reportMerchantNo' => 'reportMerchantNo',
|
||||
'feeType' => 'feeType',
|
||||
'authorizeState' => 'authorizeState',
|
||||
'returnCode' => 'returnCode',
|
||||
'returnMsg' => 'returnMsg'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'reportMerchantNo' => 'setReportMerchantNo',
|
||||
'feeType' => 'setFeeType',
|
||||
'authorizeState' => 'setAuthorizeState',
|
||||
'returnCode' => 'setReturnCode',
|
||||
'returnMsg' => 'setReturnMsg'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'reportMerchantNo' => 'getReportMerchantNo',
|
||||
'feeType' => 'getFeeType',
|
||||
'authorizeState' => 'getAuthorizeState',
|
||||
'returnCode' => 'getReturnCode',
|
||||
'returnMsg' => 'getReturnMsg'
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['reportMerchantNo'] = isset($data['reportMerchantNo']) ? $data['reportMerchantNo'] : null;
|
||||
$this->container['feeType'] = isset($data['feeType']) ? $data['feeType'] : null;
|
||||
$this->container['authorizeState'] = isset($data['authorizeState']) ? $data['authorizeState'] : null;
|
||||
$this->container['returnCode'] = isset($data['returnCode']) ? $data['returnCode'] : null;
|
||||
$this->container['returnMsg'] = isset($data['returnMsg']) ? $data['returnMsg'] : 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 reportMerchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getReportMerchantNo()
|
||||
{
|
||||
return $this->container['reportMerchantNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets reportMerchantNo
|
||||
*
|
||||
* @param string $reportMerchantNo 报备商户号
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setReportMerchantNo($reportMerchantNo)
|
||||
{
|
||||
$this->container['reportMerchantNo'] = $reportMerchantNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets feeType
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getFeeType()
|
||||
{
|
||||
return $this->container['feeType'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets feeType
|
||||
*
|
||||
* @param string $feeType 报备费率
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setFeeType($feeType)
|
||||
{
|
||||
$this->container['feeType'] = $feeType;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets authorizeState
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getAuthorizeState()
|
||||
{
|
||||
return $this->container['authorizeState'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets authorizeState
|
||||
*
|
||||
* @param string $authorizeState 授权状态
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setAuthorizeState($authorizeState)
|
||||
{
|
||||
$this->container['authorizeState'] = $authorizeState;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets returnCode
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getReturnCode()
|
||||
{
|
||||
return $this->container['returnCode'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets returnCode
|
||||
*
|
||||
* @param string $returnCode 返回码
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setReturnCode($returnCode)
|
||||
{
|
||||
$this->container['returnCode'] = $returnCode;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets returnMsg
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getReturnMsg()
|
||||
{
|
||||
return $this->container['returnMsg'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets returnMsg
|
||||
*
|
||||
* @param string $returnMsg 返回信息
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setReturnMsg($returnMsg)
|
||||
{
|
||||
$this->container['returnMsg'] = $returnMsg;
|
||||
|
||||
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,362 @@
|
||||
<?php
|
||||
/**
|
||||
* AuthStateQueryV2IdentityAuthStateResDtoResult
|
||||
*
|
||||
* 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\Mer\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* AuthStateQueryV2IdentityAuthStateResDtoResult Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class AuthStateQueryV2IdentityAuthStateResDtoResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'AuthStateQueryV2IdentityAuthStateResDtoResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'returnCode' => 'string',
|
||||
'returnMsg' => 'string',
|
||||
'identityAuthDtos' => '\Yeepay\Yop\Sdk\Service\Mer\Model\AuthStateQueryV2IdentityAuthDtoResult[]'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'returnCode' => null,
|
||||
'returnMsg' => null,
|
||||
'identityAuthDtos' => 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 = [
|
||||
'returnCode' => 'returnCode',
|
||||
'returnMsg' => 'returnMsg',
|
||||
'identityAuthDtos' => 'identityAuthDtos'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'returnCode' => 'setReturnCode',
|
||||
'returnMsg' => 'setReturnMsg',
|
||||
'identityAuthDtos' => 'setIdentityAuthDtos'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'returnCode' => 'getReturnCode',
|
||||
'returnMsg' => 'getReturnMsg',
|
||||
'identityAuthDtos' => 'getIdentityAuthDtos'
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['returnCode'] = isset($data['returnCode']) ? $data['returnCode'] : null;
|
||||
$this->container['returnMsg'] = isset($data['returnMsg']) ? $data['returnMsg'] : null;
|
||||
$this->container['identityAuthDtos'] = isset($data['identityAuthDtos']) ? $data['identityAuthDtos'] : 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 returnCode
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getReturnCode()
|
||||
{
|
||||
return $this->container['returnCode'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets returnCode
|
||||
*
|
||||
* @param string $returnCode 返回码
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setReturnCode($returnCode)
|
||||
{
|
||||
$this->container['returnCode'] = $returnCode;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets returnMsg
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getReturnMsg()
|
||||
{
|
||||
return $this->container['returnMsg'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets returnMsg
|
||||
*
|
||||
* @param string $returnMsg 返回信息。未知状态代表商户未报备
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setReturnMsg($returnMsg)
|
||||
{
|
||||
$this->container['returnMsg'] = $returnMsg;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets identityAuthDtos
|
||||
*
|
||||
* @return \Yeepay\Yop\Sdk\Service\Mer\Model\AuthStateQueryV2IdentityAuthDtoResult[]
|
||||
*/
|
||||
public function getIdentityAuthDtos()
|
||||
{
|
||||
return $this->container['identityAuthDtos'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets identityAuthDtos
|
||||
*
|
||||
* @param \Yeepay\Yop\Sdk\Service\Mer\Model\AuthStateQueryV2IdentityAuthDtoResult[] $identityAuthDtos 认证信息
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setIdentityAuthDtos($identityAuthDtos)
|
||||
{
|
||||
$this->container['identityAuthDtos'] = $identityAuthDtos;
|
||||
|
||||
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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
92
lib/Service/Mer/Model/AuthStateQueryV2Request.php
Normal file
92
lib/Service/Mer/Model/AuthStateQueryV2Request.php
Normal file
@@ -0,0 +1,92 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Mer\Model;
|
||||
|
||||
|
||||
class AuthStateQueryV2Request extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $reportMerchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $feeType;
|
||||
|
||||
/**
|
||||
* Gets merchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantNo()
|
||||
{
|
||||
return $this->merchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantNo
|
||||
*
|
||||
* @param string $merchantNo
|
||||
* @return AuthStateQueryV2Request
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->merchantNo = $merchantNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets reportMerchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getReportMerchantNo()
|
||||
{
|
||||
return $this->reportMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets reportMerchantNo
|
||||
*
|
||||
* @param string $reportMerchantNo
|
||||
* @return AuthStateQueryV2Request
|
||||
*/
|
||||
public function setReportMerchantNo($reportMerchantNo)
|
||||
{
|
||||
$this->reportMerchantNo = $reportMerchantNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets feeType
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getFeeType()
|
||||
{
|
||||
return $this->feeType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets feeType
|
||||
*
|
||||
* @param string $feeType
|
||||
* @return AuthStateQueryV2Request
|
||||
*/
|
||||
public function setFeeType($feeType)
|
||||
{
|
||||
$this->feeType = $feeType;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'authStateQueryV2';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
86
lib/Service/Mer/Model/AuthStateQueryV2RequestMarshaller.php
Normal file
86
lib/Service/Mer/Model/AuthStateQueryV2RequestMarshaller.php
Normal file
@@ -0,0 +1,86 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Mer\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 AuthStateQueryV2RequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var AuthStateQueryV2RequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AuthStateQueryV2RequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AuthStateQueryV2RequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Mer';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'GET';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v2.0/mer/auth/state/query';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param AuthStateQueryV2Request $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->getReportMerchantNo() != null){
|
||||
$internalRequest->addParameter('reportMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getReportMerchantNo(), 'string'));
|
||||
}
|
||||
if($request->getFeeType() != null){
|
||||
$internalRequest->addParameter('feeType', ObjectSerializer::sanitizeForSerialization($request->getFeeType(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
AuthStateQueryV2RequestMarshaller::__init();
|
||||
34
lib/Service/Mer/Model/AuthStateQueryV2Response.php
Normal file
34
lib/Service/Mer/Model/AuthStateQueryV2Response.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Mer\Model;
|
||||
|
||||
|
||||
class AuthStateQueryV2Response extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var AuthStateQueryV2IdentityAuthStateResDtoResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Mer\Model\AuthStateQueryV2IdentityAuthStateResDtoResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param AuthStateQueryV2IdentityAuthStateResDtoResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AuthStateQueryV2IdentityAuthStateResDtoResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Mer\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class AuthStateQueryV2ResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var AuthStateQueryV2ResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AuthStateQueryV2ResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AuthStateQueryV2ResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AuthStateQueryV2Response
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new AuthStateQueryV2Response();
|
||||
}
|
||||
}
|
||||
|
||||
AuthStateQueryV2ResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,392 @@
|
||||
<?php
|
||||
/**
|
||||
* MerchantInfoModifyMerchantInfoModifyRespDTOResult
|
||||
*
|
||||
* 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\Mer\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* MerchantInfoModifyMerchantInfoModifyRespDTOResult Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class MerchantInfoModifyMerchantInfoModifyRespDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'MerchantInfoModifyMerchantInfoModifyRespDTOResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'returnCode' => 'string',
|
||||
'returnMsg' => 'string',
|
||||
'applicationNo' => 'string',
|
||||
'applicationStatus' => 'string'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'returnCode' => null,
|
||||
'returnMsg' => null,
|
||||
'applicationNo' => null,
|
||||
'applicationStatus' => 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 = [
|
||||
'returnCode' => 'returnCode',
|
||||
'returnMsg' => 'returnMsg',
|
||||
'applicationNo' => 'applicationNo',
|
||||
'applicationStatus' => 'applicationStatus'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'returnCode' => 'setReturnCode',
|
||||
'returnMsg' => 'setReturnMsg',
|
||||
'applicationNo' => 'setApplicationNo',
|
||||
'applicationStatus' => 'setApplicationStatus'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'returnCode' => 'getReturnCode',
|
||||
'returnMsg' => 'getReturnMsg',
|
||||
'applicationNo' => 'getApplicationNo',
|
||||
'applicationStatus' => 'getApplicationStatus'
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['returnCode'] = isset($data['returnCode']) ? $data['returnCode'] : null;
|
||||
$this->container['returnMsg'] = isset($data['returnMsg']) ? $data['returnMsg'] : null;
|
||||
$this->container['applicationNo'] = isset($data['applicationNo']) ? $data['applicationNo'] : null;
|
||||
$this->container['applicationStatus'] = isset($data['applicationStatus']) ? $data['applicationStatus'] : 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 returnCode
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getReturnCode()
|
||||
{
|
||||
return $this->container['returnCode'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets returnCode
|
||||
*
|
||||
* @param string $returnCode 响应编码
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setReturnCode($returnCode)
|
||||
{
|
||||
$this->container['returnCode'] = $returnCode;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets returnMsg
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getReturnMsg()
|
||||
{
|
||||
return $this->container['returnMsg'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets returnMsg
|
||||
*
|
||||
* @param string $returnMsg 响应描述
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setReturnMsg($returnMsg)
|
||||
{
|
||||
$this->container['returnMsg'] = $returnMsg;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets applicationNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getApplicationNo()
|
||||
{
|
||||
return $this->container['applicationNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets applicationNo
|
||||
*
|
||||
* @param string $applicationNo 工单号
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setApplicationNo($applicationNo)
|
||||
{
|
||||
$this->container['applicationNo'] = $applicationNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets applicationStatus
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getApplicationStatus()
|
||||
{
|
||||
return $this->container['applicationStatus'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets applicationStatus
|
||||
*
|
||||
* @param string $applicationStatus 工单状态
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setApplicationStatus($applicationStatus)
|
||||
{
|
||||
$this->container['applicationStatus'] = $applicationStatus;
|
||||
|
||||
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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
267
lib/Service/Mer/Model/MerchantInfoModifyRequest.php
Normal file
267
lib/Service/Mer/Model/MerchantInfoModifyRequest.php
Normal file
@@ -0,0 +1,267 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Mer\Model;
|
||||
|
||||
|
||||
class MerchantInfoModifyRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $requestNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $notifyUrl;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantSubjectInfo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantCorporationInfo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantContactInfo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $industryCategoryInfo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $businessAddressInfo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $accountInfo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $bankToken;
|
||||
|
||||
/**
|
||||
* Gets requestNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRequestNo()
|
||||
{
|
||||
return $this->requestNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets requestNo
|
||||
*
|
||||
* @param string $requestNo
|
||||
* @return MerchantInfoModifyRequest
|
||||
*/
|
||||
public function setRequestNo($requestNo)
|
||||
{
|
||||
$this->requestNo = $requestNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets merchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantNo()
|
||||
{
|
||||
return $this->merchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantNo
|
||||
*
|
||||
* @param string $merchantNo
|
||||
* @return MerchantInfoModifyRequest
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->merchantNo = $merchantNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets notifyUrl
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getNotifyUrl()
|
||||
{
|
||||
return $this->notifyUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets notifyUrl
|
||||
*
|
||||
* @param string $notifyUrl
|
||||
* @return MerchantInfoModifyRequest
|
||||
*/
|
||||
public function setNotifyUrl($notifyUrl)
|
||||
{
|
||||
$this->notifyUrl = $notifyUrl;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets merchantSubjectInfo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantSubjectInfo()
|
||||
{
|
||||
return $this->merchantSubjectInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantSubjectInfo
|
||||
*
|
||||
* @param string $merchantSubjectInfo
|
||||
* @return MerchantInfoModifyRequest
|
||||
*/
|
||||
public function setMerchantSubjectInfo($merchantSubjectInfo)
|
||||
{
|
||||
$this->merchantSubjectInfo = $merchantSubjectInfo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets merchantCorporationInfo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantCorporationInfo()
|
||||
{
|
||||
return $this->merchantCorporationInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantCorporationInfo
|
||||
*
|
||||
* @param string $merchantCorporationInfo
|
||||
* @return MerchantInfoModifyRequest
|
||||
*/
|
||||
public function setMerchantCorporationInfo($merchantCorporationInfo)
|
||||
{
|
||||
$this->merchantCorporationInfo = $merchantCorporationInfo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets merchantContactInfo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantContactInfo()
|
||||
{
|
||||
return $this->merchantContactInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantContactInfo
|
||||
*
|
||||
* @param string $merchantContactInfo
|
||||
* @return MerchantInfoModifyRequest
|
||||
*/
|
||||
public function setMerchantContactInfo($merchantContactInfo)
|
||||
{
|
||||
$this->merchantContactInfo = $merchantContactInfo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets industryCategoryInfo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getIndustryCategoryInfo()
|
||||
{
|
||||
return $this->industryCategoryInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets industryCategoryInfo
|
||||
*
|
||||
* @param string $industryCategoryInfo
|
||||
* @return MerchantInfoModifyRequest
|
||||
*/
|
||||
public function setIndustryCategoryInfo($industryCategoryInfo)
|
||||
{
|
||||
$this->industryCategoryInfo = $industryCategoryInfo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets businessAddressInfo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getBusinessAddressInfo()
|
||||
{
|
||||
return $this->businessAddressInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets businessAddressInfo
|
||||
*
|
||||
* @param string $businessAddressInfo
|
||||
* @return MerchantInfoModifyRequest
|
||||
*/
|
||||
public function setBusinessAddressInfo($businessAddressInfo)
|
||||
{
|
||||
$this->businessAddressInfo = $businessAddressInfo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets accountInfo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getAccountInfo()
|
||||
{
|
||||
return $this->accountInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets accountInfo
|
||||
*
|
||||
* @param string $accountInfo
|
||||
* @return MerchantInfoModifyRequest
|
||||
*/
|
||||
public function setAccountInfo($accountInfo)
|
||||
{
|
||||
$this->accountInfo = $accountInfo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets bankToken
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getBankToken()
|
||||
{
|
||||
return $this->bankToken;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bankToken
|
||||
*
|
||||
* @param string $bankToken
|
||||
* @return MerchantInfoModifyRequest
|
||||
*/
|
||||
public function setBankToken($bankToken)
|
||||
{
|
||||
$this->bankToken = $bankToken;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'merchantInfoModify';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
107
lib/Service/Mer/Model/MerchantInfoModifyRequestMarshaller.php
Normal file
107
lib/Service/Mer/Model/MerchantInfoModifyRequestMarshaller.php
Normal file
@@ -0,0 +1,107 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Mer\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 MerchantInfoModifyRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var MerchantInfoModifyRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new MerchantInfoModifyRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return MerchantInfoModifyRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Mer';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/mer/merchant/info/modify';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param MerchantInfoModifyRequest $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->getMerchantNo() != null){
|
||||
$internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string'));
|
||||
}
|
||||
if($request->getNotifyUrl() != null){
|
||||
$internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string', 'url'));
|
||||
}
|
||||
if($request->getMerchantSubjectInfo() != null){
|
||||
$internalRequest->addParameter('merchantSubjectInfo', ObjectSerializer::sanitizeForSerialization($request->getMerchantSubjectInfo(), 'string'));
|
||||
}
|
||||
if($request->getMerchantCorporationInfo() != null){
|
||||
$internalRequest->addParameter('merchantCorporationInfo', ObjectSerializer::sanitizeForSerialization($request->getMerchantCorporationInfo(), 'string'));
|
||||
}
|
||||
if($request->getMerchantContactInfo() != null){
|
||||
$internalRequest->addParameter('merchantContactInfo', ObjectSerializer::sanitizeForSerialization($request->getMerchantContactInfo(), 'string'));
|
||||
}
|
||||
if($request->getIndustryCategoryInfo() != null){
|
||||
$internalRequest->addParameter('industryCategoryInfo', ObjectSerializer::sanitizeForSerialization($request->getIndustryCategoryInfo(), 'string'));
|
||||
}
|
||||
if($request->getBusinessAddressInfo() != null){
|
||||
$internalRequest->addParameter('businessAddressInfo', ObjectSerializer::sanitizeForSerialization($request->getBusinessAddressInfo(), 'string'));
|
||||
}
|
||||
if($request->getAccountInfo() != null){
|
||||
$internalRequest->addParameter('accountInfo', ObjectSerializer::sanitizeForSerialization($request->getAccountInfo(), 'string'));
|
||||
}
|
||||
if($request->getBankToken() != null){
|
||||
$internalRequest->addParameter('bankToken', ObjectSerializer::sanitizeForSerialization($request->getBankToken(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
MerchantInfoModifyRequestMarshaller::__init();
|
||||
34
lib/Service/Mer/Model/MerchantInfoModifyResponse.php
Normal file
34
lib/Service/Mer/Model/MerchantInfoModifyResponse.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Mer\Model;
|
||||
|
||||
|
||||
class MerchantInfoModifyResponse extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var MerchantInfoModifyMerchantInfoModifyRespDTOResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Mer\Model\MerchantInfoModifyMerchantInfoModifyRespDTOResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param MerchantInfoModifyMerchantInfoModifyRespDTOResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return MerchantInfoModifyMerchantInfoModifyRespDTOResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Mer\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class MerchantInfoModifyResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var MerchantInfoModifyResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new MerchantInfoModifyResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return MerchantInfoModifyResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return MerchantInfoModifyResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new MerchantInfoModifyResponse();
|
||||
}
|
||||
}
|
||||
|
||||
MerchantInfoModifyResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,362 @@
|
||||
<?php
|
||||
/**
|
||||
* MerchantSupplementQualificationQueryQueryMopQuaInfoRespDTOResult
|
||||
*
|
||||
* 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\Mer\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* MerchantSupplementQualificationQueryQueryMopQuaInfoRespDTOResult Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class MerchantSupplementQualificationQueryQueryMopQuaInfoRespDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'MerchantSupplementQualificationQueryQueryMopQuaInfoRespDTOResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'returnCode' => 'string',
|
||||
'returnMsg' => 'string',
|
||||
'qualifications' => 'string'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'returnCode' => null,
|
||||
'returnMsg' => null,
|
||||
'qualifications' => 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 = [
|
||||
'returnCode' => 'returnCode',
|
||||
'returnMsg' => 'returnMsg',
|
||||
'qualifications' => 'qualifications'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'returnCode' => 'setReturnCode',
|
||||
'returnMsg' => 'setReturnMsg',
|
||||
'qualifications' => 'setQualifications'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'returnCode' => 'getReturnCode',
|
||||
'returnMsg' => 'getReturnMsg',
|
||||
'qualifications' => 'getQualifications'
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['returnCode'] = isset($data['returnCode']) ? $data['returnCode'] : null;
|
||||
$this->container['returnMsg'] = isset($data['returnMsg']) ? $data['returnMsg'] : null;
|
||||
$this->container['qualifications'] = isset($data['qualifications']) ? $data['qualifications'] : 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 returnCode
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getReturnCode()
|
||||
{
|
||||
return $this->container['returnCode'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets returnCode
|
||||
*
|
||||
* @param string $returnCode 响应编码
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setReturnCode($returnCode)
|
||||
{
|
||||
$this->container['returnCode'] = $returnCode;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets returnMsg
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getReturnMsg()
|
||||
{
|
||||
return $this->container['returnMsg'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets returnMsg
|
||||
*
|
||||
* @param string $returnMsg 响应描述
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setReturnMsg($returnMsg)
|
||||
{
|
||||
$this->container['returnMsg'] = $returnMsg;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets qualifications
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getQualifications()
|
||||
{
|
||||
return $this->container['qualifications'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets qualifications
|
||||
*
|
||||
* @param string $qualifications 后补资质类型
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setQualifications($qualifications)
|
||||
{
|
||||
$this->container['qualifications'] = $qualifications;
|
||||
|
||||
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,42 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Mer\Model;
|
||||
|
||||
|
||||
class MerchantSupplementQualificationQueryRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
|
||||
/**
|
||||
* Gets merchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantNo()
|
||||
{
|
||||
return $this->merchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantNo
|
||||
*
|
||||
* @param string $merchantNo
|
||||
* @return MerchantSupplementQualificationQueryRequest
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->merchantNo = $merchantNo;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'merchantSupplementQualificationQuery';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Mer\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 MerchantSupplementQualificationQueryRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var MerchantSupplementQualificationQueryRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new MerchantSupplementQualificationQueryRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return MerchantSupplementQualificationQueryRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Mer';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'GET';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/mer/merchant/supplement/qualification/query';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param MerchantSupplementQualificationQueryRequest $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'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
MerchantSupplementQualificationQueryRequestMarshaller::__init();
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Mer\Model;
|
||||
|
||||
|
||||
class MerchantSupplementQualificationQueryResponse extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var MerchantSupplementQualificationQueryQueryMopQuaInfoRespDTOResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Mer\Model\MerchantSupplementQualificationQueryQueryMopQuaInfoRespDTOResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param MerchantSupplementQualificationQueryQueryMopQuaInfoRespDTOResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return MerchantSupplementQualificationQueryQueryMopQuaInfoRespDTOResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Mer\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class MerchantSupplementQualificationQueryResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var MerchantSupplementQualificationQueryResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new MerchantSupplementQualificationQueryResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return MerchantSupplementQualificationQueryResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return MerchantSupplementQualificationQueryResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new MerchantSupplementQualificationQueryResponse();
|
||||
}
|
||||
}
|
||||
|
||||
MerchantSupplementQualificationQueryResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,67 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Mer\Model;
|
||||
|
||||
|
||||
class MerchantSupplementQualificationSubmitRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $qualifications;
|
||||
|
||||
/**
|
||||
* Gets merchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantNo()
|
||||
{
|
||||
return $this->merchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantNo
|
||||
*
|
||||
* @param string $merchantNo
|
||||
* @return MerchantSupplementQualificationSubmitRequest
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->merchantNo = $merchantNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets qualifications
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getQualifications()
|
||||
{
|
||||
return $this->qualifications;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets qualifications
|
||||
*
|
||||
* @param string $qualifications
|
||||
* @return MerchantSupplementQualificationSubmitRequest
|
||||
*/
|
||||
public function setQualifications($qualifications)
|
||||
{
|
||||
$this->qualifications = $qualifications;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'merchantSupplementQualificationSubmit';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,83 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Mer\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 MerchantSupplementQualificationSubmitRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var MerchantSupplementQualificationSubmitRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new MerchantSupplementQualificationSubmitRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return MerchantSupplementQualificationSubmitRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Mer';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/mer/merchant/supplement/qualification/submit';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param MerchantSupplementQualificationSubmitRequest $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->getQualifications() != null){
|
||||
$internalRequest->addParameter('qualifications', ObjectSerializer::sanitizeForSerialization($request->getQualifications(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
MerchantSupplementQualificationSubmitRequestMarshaller::__init();
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Mer\Model;
|
||||
|
||||
|
||||
class MerchantSupplementQualificationSubmitResponse extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var MerchantSupplementQualificationSubmitSubmitMopQuaInfoRespDTOResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Mer\Model\MerchantSupplementQualificationSubmitSubmitMopQuaInfoRespDTOResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param MerchantSupplementQualificationSubmitSubmitMopQuaInfoRespDTOResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return MerchantSupplementQualificationSubmitSubmitMopQuaInfoRespDTOResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Mer\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class MerchantSupplementQualificationSubmitResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var MerchantSupplementQualificationSubmitResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new MerchantSupplementQualificationSubmitResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return MerchantSupplementQualificationSubmitResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return MerchantSupplementQualificationSubmitResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new MerchantSupplementQualificationSubmitResponse();
|
||||
}
|
||||
}
|
||||
|
||||
MerchantSupplementQualificationSubmitResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,332 @@
|
||||
<?php
|
||||
/**
|
||||
* MerchantSupplementQualificationSubmitSubmitMopQuaInfoRespDTOResult
|
||||
*
|
||||
* 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\Mer\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* MerchantSupplementQualificationSubmitSubmitMopQuaInfoRespDTOResult Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class MerchantSupplementQualificationSubmitSubmitMopQuaInfoRespDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'MerchantSupplementQualificationSubmitSubmitMopQuaInfoRespDTOResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'returnCode' => 'string',
|
||||
'returnMsg' => 'string'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'returnCode' => null,
|
||||
'returnMsg' => 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 = [
|
||||
'returnCode' => 'returnCode',
|
||||
'returnMsg' => 'returnMsg'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'returnCode' => 'setReturnCode',
|
||||
'returnMsg' => 'setReturnMsg'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'returnCode' => 'getReturnCode',
|
||||
'returnMsg' => 'getReturnMsg'
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['returnCode'] = isset($data['returnCode']) ? $data['returnCode'] : null;
|
||||
$this->container['returnMsg'] = isset($data['returnMsg']) ? $data['returnMsg'] : 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 returnCode
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getReturnCode()
|
||||
{
|
||||
return $this->container['returnCode'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets returnCode
|
||||
*
|
||||
* @param string $returnCode 响应编码
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setReturnCode($returnCode)
|
||||
{
|
||||
$this->container['returnCode'] = $returnCode;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets returnMsg
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getReturnMsg()
|
||||
{
|
||||
return $this->container['returnMsg'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets returnMsg
|
||||
*
|
||||
* @param string $returnMsg 响应描述
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setReturnMsg($returnMsg)
|
||||
{
|
||||
$this->container['returnMsg'] = $returnMsg;
|
||||
|
||||
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,392 @@
|
||||
<?php
|
||||
/**
|
||||
* NotifyRepeatV2MerchantNetInRepeatNotifyRespDtoResult
|
||||
*
|
||||
* 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\Mer\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* NotifyRepeatV2MerchantNetInRepeatNotifyRespDtoResult Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class NotifyRepeatV2MerchantNetInRepeatNotifyRespDtoResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'NotifyRepeatV2MerchantNetInRepeatNotifyRespDtoResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'returnCode' => 'string',
|
||||
'returnMsg' => 'string',
|
||||
'requestNo' => 'string',
|
||||
'applicationNo' => 'string'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'returnCode' => null,
|
||||
'returnMsg' => null,
|
||||
'requestNo' => null,
|
||||
'applicationNo' => 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 = [
|
||||
'returnCode' => 'returnCode',
|
||||
'returnMsg' => 'returnMsg',
|
||||
'requestNo' => 'requestNo',
|
||||
'applicationNo' => 'applicationNo'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'returnCode' => 'setReturnCode',
|
||||
'returnMsg' => 'setReturnMsg',
|
||||
'requestNo' => 'setRequestNo',
|
||||
'applicationNo' => 'setApplicationNo'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'returnCode' => 'getReturnCode',
|
||||
'returnMsg' => 'getReturnMsg',
|
||||
'requestNo' => 'getRequestNo',
|
||||
'applicationNo' => 'getApplicationNo'
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['returnCode'] = isset($data['returnCode']) ? $data['returnCode'] : null;
|
||||
$this->container['returnMsg'] = isset($data['returnMsg']) ? $data['returnMsg'] : null;
|
||||
$this->container['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : null;
|
||||
$this->container['applicationNo'] = isset($data['applicationNo']) ? $data['applicationNo'] : 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 returnCode
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getReturnCode()
|
||||
{
|
||||
return $this->container['returnCode'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets returnCode
|
||||
*
|
||||
* @param string $returnCode 响应编码
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setReturnCode($returnCode)
|
||||
{
|
||||
$this->container['returnCode'] = $returnCode;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets returnMsg
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getReturnMsg()
|
||||
{
|
||||
return $this->container['returnMsg'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets returnMsg
|
||||
*
|
||||
* @param string $returnMsg 响应描述
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setReturnMsg($returnMsg)
|
||||
{
|
||||
$this->container['returnMsg'] = $returnMsg;
|
||||
|
||||
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 applicationNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getApplicationNo()
|
||||
{
|
||||
return $this->container['applicationNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets applicationNo
|
||||
*
|
||||
* @param string $applicationNo 申请单编号:易宝内部商户入网申请单编号
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setApplicationNo($applicationNo)
|
||||
{
|
||||
$this->container['applicationNo'] = $applicationNo;
|
||||
|
||||
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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
92
lib/Service/Mer/Model/NotifyRepeatV2Request.php
Normal file
92
lib/Service/Mer/Model/NotifyRepeatV2Request.php
Normal file
@@ -0,0 +1,92 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Mer\Model;
|
||||
|
||||
|
||||
class NotifyRepeatV2Request extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $requestNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $applicationNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $type;
|
||||
|
||||
/**
|
||||
* Gets requestNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRequestNo()
|
||||
{
|
||||
return $this->requestNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets requestNo
|
||||
*
|
||||
* @param string $requestNo
|
||||
* @return NotifyRepeatV2Request
|
||||
*/
|
||||
public function setRequestNo($requestNo)
|
||||
{
|
||||
$this->requestNo = $requestNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets applicationNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getApplicationNo()
|
||||
{
|
||||
return $this->applicationNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets applicationNo
|
||||
*
|
||||
* @param string $applicationNo
|
||||
* @return NotifyRepeatV2Request
|
||||
*/
|
||||
public function setApplicationNo($applicationNo)
|
||||
{
|
||||
$this->applicationNo = $applicationNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets type
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getType()
|
||||
{
|
||||
return $this->type;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets type
|
||||
*
|
||||
* @param string $type
|
||||
* @return NotifyRepeatV2Request
|
||||
*/
|
||||
public function setType($type)
|
||||
{
|
||||
$this->type = $type;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'notifyRepeatV2';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
86
lib/Service/Mer/Model/NotifyRepeatV2RequestMarshaller.php
Normal file
86
lib/Service/Mer/Model/NotifyRepeatV2RequestMarshaller.php
Normal file
@@ -0,0 +1,86 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Mer\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 NotifyRepeatV2RequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var NotifyRepeatV2RequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new NotifyRepeatV2RequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return NotifyRepeatV2RequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Mer';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v2.0/mer/notify/repeat';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param NotifyRepeatV2Request $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->getApplicationNo() != null){
|
||||
$internalRequest->addParameter('applicationNo', ObjectSerializer::sanitizeForSerialization($request->getApplicationNo(), 'string'));
|
||||
}
|
||||
if($request->getType() != null){
|
||||
$internalRequest->addParameter('type', ObjectSerializer::sanitizeForSerialization($request->getType(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
NotifyRepeatV2RequestMarshaller::__init();
|
||||
34
lib/Service/Mer/Model/NotifyRepeatV2Response.php
Normal file
34
lib/Service/Mer/Model/NotifyRepeatV2Response.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Mer\Model;
|
||||
|
||||
|
||||
class NotifyRepeatV2Response extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var NotifyRepeatV2MerchantNetInRepeatNotifyRespDtoResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Mer\Model\NotifyRepeatV2MerchantNetInRepeatNotifyRespDtoResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param NotifyRepeatV2MerchantNetInRepeatNotifyRespDtoResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return NotifyRepeatV2MerchantNetInRepeatNotifyRespDtoResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
39
lib/Service/Mer/Model/NotifyRepeatV2ResponseUnMarshaller.php
Normal file
39
lib/Service/Mer/Model/NotifyRepeatV2ResponseUnMarshaller.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Mer\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class NotifyRepeatV2ResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var NotifyRepeatV2ResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new NotifyRepeatV2ResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return NotifyRepeatV2ResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return NotifyRepeatV2Response
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new NotifyRepeatV2Response();
|
||||
}
|
||||
}
|
||||
|
||||
NotifyRepeatV2ResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,452 @@
|
||||
<?php
|
||||
/**
|
||||
* ProductFeeModifyV2ModifyProductFeeRespDtoResult
|
||||
*
|
||||
* 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\Mer\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* ProductFeeModifyV2ModifyProductFeeRespDtoResult Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class ProductFeeModifyV2ModifyProductFeeRespDtoResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'ProductFeeModifyV2ModifyProductFeeRespDtoResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'returnCode' => 'string',
|
||||
'returnMsg' => 'string',
|
||||
'requestNo' => 'string',
|
||||
'applicationNo' => 'string',
|
||||
'applicationStatus' => 'string',
|
||||
'merchantNo' => 'string'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'returnCode' => null,
|
||||
'returnMsg' => null,
|
||||
'requestNo' => null,
|
||||
'applicationNo' => null,
|
||||
'applicationStatus' => null,
|
||||
'merchantNo' => 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 = [
|
||||
'returnCode' => 'returnCode',
|
||||
'returnMsg' => 'returnMsg',
|
||||
'requestNo' => 'requestNo',
|
||||
'applicationNo' => 'applicationNo',
|
||||
'applicationStatus' => 'applicationStatus',
|
||||
'merchantNo' => 'merchantNo'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'returnCode' => 'setReturnCode',
|
||||
'returnMsg' => 'setReturnMsg',
|
||||
'requestNo' => 'setRequestNo',
|
||||
'applicationNo' => 'setApplicationNo',
|
||||
'applicationStatus' => 'setApplicationStatus',
|
||||
'merchantNo' => 'setMerchantNo'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'returnCode' => 'getReturnCode',
|
||||
'returnMsg' => 'getReturnMsg',
|
||||
'requestNo' => 'getRequestNo',
|
||||
'applicationNo' => 'getApplicationNo',
|
||||
'applicationStatus' => 'getApplicationStatus',
|
||||
'merchantNo' => 'getMerchantNo'
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['returnCode'] = isset($data['returnCode']) ? $data['returnCode'] : null;
|
||||
$this->container['returnMsg'] = isset($data['returnMsg']) ? $data['returnMsg'] : null;
|
||||
$this->container['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : null;
|
||||
$this->container['applicationNo'] = isset($data['applicationNo']) ? $data['applicationNo'] : null;
|
||||
$this->container['applicationStatus'] = isset($data['applicationStatus']) ? $data['applicationStatus'] : null;
|
||||
$this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : 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 returnCode
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getReturnCode()
|
||||
{
|
||||
return $this->container['returnCode'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets returnCode
|
||||
*
|
||||
* @param string $returnCode 响应编码
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setReturnCode($returnCode)
|
||||
{
|
||||
$this->container['returnCode'] = $returnCode;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets returnMsg
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getReturnMsg()
|
||||
{
|
||||
return $this->container['returnMsg'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets returnMsg
|
||||
*
|
||||
* @param string $returnMsg 响应描述
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setReturnMsg($returnMsg)
|
||||
{
|
||||
$this->container['returnMsg'] = $returnMsg;
|
||||
|
||||
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 applicationNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getApplicationNo()
|
||||
{
|
||||
return $this->container['applicationNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets applicationNo
|
||||
*
|
||||
* @param string $applicationNo 申请单编号
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setApplicationNo($applicationNo)
|
||||
{
|
||||
$this->container['applicationNo'] = $applicationNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets applicationStatus
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getApplicationStatus()
|
||||
{
|
||||
return $this->container['applicationStatus'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets applicationStatus
|
||||
*
|
||||
* @param string $applicationStatus 申请状态
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setApplicationStatus($applicationStatus)
|
||||
{
|
||||
$this->container['applicationStatus'] = $applicationStatus;
|
||||
|
||||
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;
|
||||
}
|
||||
/**
|
||||
* 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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
242
lib/Service/Mer/Model/ProductFeeModifyV2Request.php
Normal file
242
lib/Service/Mer/Model/ProductFeeModifyV2Request.php
Normal file
@@ -0,0 +1,242 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Mer\Model;
|
||||
|
||||
|
||||
class ProductFeeModifyV2Request extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $requestNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $notifyUrl;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $productInfo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $productQualificationInfo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $settlementAccountInfo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $functionService;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $functionServiceQualificationInfo;
|
||||
|
||||
/**
|
||||
* Gets requestNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRequestNo()
|
||||
{
|
||||
return $this->requestNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets requestNo
|
||||
*
|
||||
* @param string $requestNo
|
||||
* @return ProductFeeModifyV2Request
|
||||
*/
|
||||
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 ProductFeeModifyV2Request
|
||||
*/
|
||||
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 ProductFeeModifyV2Request
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->merchantNo = $merchantNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets notifyUrl
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getNotifyUrl()
|
||||
{
|
||||
return $this->notifyUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets notifyUrl
|
||||
*
|
||||
* @param string $notifyUrl
|
||||
* @return ProductFeeModifyV2Request
|
||||
*/
|
||||
public function setNotifyUrl($notifyUrl)
|
||||
{
|
||||
$this->notifyUrl = $notifyUrl;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets productInfo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getProductInfo()
|
||||
{
|
||||
return $this->productInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets productInfo
|
||||
*
|
||||
* @param string $productInfo
|
||||
* @return ProductFeeModifyV2Request
|
||||
*/
|
||||
public function setProductInfo($productInfo)
|
||||
{
|
||||
$this->productInfo = $productInfo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets productQualificationInfo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getProductQualificationInfo()
|
||||
{
|
||||
return $this->productQualificationInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets productQualificationInfo
|
||||
*
|
||||
* @param string $productQualificationInfo
|
||||
* @return ProductFeeModifyV2Request
|
||||
*/
|
||||
public function setProductQualificationInfo($productQualificationInfo)
|
||||
{
|
||||
$this->productQualificationInfo = $productQualificationInfo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets settlementAccountInfo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getSettlementAccountInfo()
|
||||
{
|
||||
return $this->settlementAccountInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets settlementAccountInfo
|
||||
*
|
||||
* @param string $settlementAccountInfo
|
||||
* @return ProductFeeModifyV2Request
|
||||
*/
|
||||
public function setSettlementAccountInfo($settlementAccountInfo)
|
||||
{
|
||||
$this->settlementAccountInfo = $settlementAccountInfo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets functionService
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getFunctionService()
|
||||
{
|
||||
return $this->functionService;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets functionService
|
||||
*
|
||||
* @param string $functionService
|
||||
* @return ProductFeeModifyV2Request
|
||||
*/
|
||||
public function setFunctionService($functionService)
|
||||
{
|
||||
$this->functionService = $functionService;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets functionServiceQualificationInfo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getFunctionServiceQualificationInfo()
|
||||
{
|
||||
return $this->functionServiceQualificationInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets functionServiceQualificationInfo
|
||||
*
|
||||
* @param string $functionServiceQualificationInfo
|
||||
* @return ProductFeeModifyV2Request
|
||||
*/
|
||||
public function setFunctionServiceQualificationInfo($functionServiceQualificationInfo)
|
||||
{
|
||||
$this->functionServiceQualificationInfo = $functionServiceQualificationInfo;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'productFeeModifyV2';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
104
lib/Service/Mer/Model/ProductFeeModifyV2RequestMarshaller.php
Normal file
104
lib/Service/Mer/Model/ProductFeeModifyV2RequestMarshaller.php
Normal file
@@ -0,0 +1,104 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Mer\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 ProductFeeModifyV2RequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var ProductFeeModifyV2RequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new ProductFeeModifyV2RequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ProductFeeModifyV2RequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Mer';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v2.0/mer/product/fee/modify';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param ProductFeeModifyV2Request $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->getNotifyUrl() != null){
|
||||
$internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string'));
|
||||
}
|
||||
if($request->getProductInfo() != null){
|
||||
$internalRequest->addParameter('productInfo', ObjectSerializer::sanitizeForSerialization($request->getProductInfo(), 'string'));
|
||||
}
|
||||
if($request->getProductQualificationInfo() != null){
|
||||
$internalRequest->addParameter('productQualificationInfo', ObjectSerializer::sanitizeForSerialization($request->getProductQualificationInfo(), 'string'));
|
||||
}
|
||||
if($request->getSettlementAccountInfo() != null){
|
||||
$internalRequest->addParameter('settlementAccountInfo', ObjectSerializer::sanitizeForSerialization($request->getSettlementAccountInfo(), 'string'));
|
||||
}
|
||||
if($request->getFunctionService() != null){
|
||||
$internalRequest->addParameter('functionService', ObjectSerializer::sanitizeForSerialization($request->getFunctionService(), 'string'));
|
||||
}
|
||||
if($request->getFunctionServiceQualificationInfo() != null){
|
||||
$internalRequest->addParameter('functionServiceQualificationInfo', ObjectSerializer::sanitizeForSerialization($request->getFunctionServiceQualificationInfo(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
ProductFeeModifyV2RequestMarshaller::__init();
|
||||
34
lib/Service/Mer/Model/ProductFeeModifyV2Response.php
Normal file
34
lib/Service/Mer/Model/ProductFeeModifyV2Response.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Mer\Model;
|
||||
|
||||
|
||||
class ProductFeeModifyV2Response extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var ProductFeeModifyV2ModifyProductFeeRespDtoResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Mer\Model\ProductFeeModifyV2ModifyProductFeeRespDtoResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ProductFeeModifyV2ModifyProductFeeRespDtoResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ProductFeeModifyV2ModifyProductFeeRespDtoResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Mer\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class ProductFeeModifyV2ResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var ProductFeeModifyV2ResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new ProductFeeModifyV2ResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ProductFeeModifyV2ResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ProductFeeModifyV2Response
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new ProductFeeModifyV2Response();
|
||||
}
|
||||
}
|
||||
|
||||
ProductFeeModifyV2ResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,362 @@
|
||||
<?php
|
||||
/**
|
||||
* ProductFeeQueryV2QueryProductFeeRespDtoResult
|
||||
*
|
||||
* 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\Mer\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* ProductFeeQueryV2QueryProductFeeRespDtoResult Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class ProductFeeQueryV2QueryProductFeeRespDtoResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'ProductFeeQueryV2QueryProductFeeRespDtoResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'returnCode' => 'string',
|
||||
'returnMsg' => 'string',
|
||||
'productInfo' => 'string'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'returnCode' => null,
|
||||
'returnMsg' => null,
|
||||
'productInfo' => 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 = [
|
||||
'returnCode' => 'returnCode',
|
||||
'returnMsg' => 'returnMsg',
|
||||
'productInfo' => 'productInfo'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'returnCode' => 'setReturnCode',
|
||||
'returnMsg' => 'setReturnMsg',
|
||||
'productInfo' => 'setProductInfo'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'returnCode' => 'getReturnCode',
|
||||
'returnMsg' => 'getReturnMsg',
|
||||
'productInfo' => 'getProductInfo'
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['returnCode'] = isset($data['returnCode']) ? $data['returnCode'] : null;
|
||||
$this->container['returnMsg'] = isset($data['returnMsg']) ? $data['returnMsg'] : null;
|
||||
$this->container['productInfo'] = isset($data['productInfo']) ? $data['productInfo'] : 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 returnCode
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getReturnCode()
|
||||
{
|
||||
return $this->container['returnCode'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets returnCode
|
||||
*
|
||||
* @param string $returnCode 响应编码
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setReturnCode($returnCode)
|
||||
{
|
||||
$this->container['returnCode'] = $returnCode;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets returnMsg
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getReturnMsg()
|
||||
{
|
||||
return $this->container['returnMsg'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets returnMsg
|
||||
*
|
||||
* @param string $returnMsg 响应描述
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setReturnMsg($returnMsg)
|
||||
{
|
||||
$this->container['returnMsg'] = $returnMsg;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets productInfo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getProductInfo()
|
||||
{
|
||||
return $this->container['productInfo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets productInfo
|
||||
*
|
||||
* @param string $productInfo 产品费率数据
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setProductInfo($productInfo)
|
||||
{
|
||||
$this->container['productInfo'] = $productInfo;
|
||||
|
||||
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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
92
lib/Service/Mer/Model/ProductFeeQueryV2Request.php
Normal file
92
lib/Service/Mer/Model/ProductFeeQueryV2Request.php
Normal file
@@ -0,0 +1,92 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Mer\Model;
|
||||
|
||||
|
||||
class ProductFeeQueryV2Request extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $productCode;
|
||||
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->parentMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
*
|
||||
* @param string $parentMerchantNo
|
||||
* @return ProductFeeQueryV2Request
|
||||
*/
|
||||
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 ProductFeeQueryV2Request
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->merchantNo = $merchantNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets productCode
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getProductCode()
|
||||
{
|
||||
return $this->productCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets productCode
|
||||
*
|
||||
* @param string $productCode
|
||||
* @return ProductFeeQueryV2Request
|
||||
*/
|
||||
public function setProductCode($productCode)
|
||||
{
|
||||
$this->productCode = $productCode;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'productFeeQueryV2';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
86
lib/Service/Mer/Model/ProductFeeQueryV2RequestMarshaller.php
Normal file
86
lib/Service/Mer/Model/ProductFeeQueryV2RequestMarshaller.php
Normal file
@@ -0,0 +1,86 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Mer\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 ProductFeeQueryV2RequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var ProductFeeQueryV2RequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new ProductFeeQueryV2RequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ProductFeeQueryV2RequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Mer';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'GET';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v2.0/mer/product/fee/query';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param ProductFeeQueryV2Request $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->getParentMerchantNo() != null){
|
||||
$internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string'));
|
||||
}
|
||||
if($request->getMerchantNo() != null){
|
||||
$internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string'));
|
||||
}
|
||||
if($request->getProductCode() != null){
|
||||
$internalRequest->addParameter('productCode', ObjectSerializer::sanitizeForSerialization($request->getProductCode(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
ProductFeeQueryV2RequestMarshaller::__init();
|
||||
34
lib/Service/Mer/Model/ProductFeeQueryV2Response.php
Normal file
34
lib/Service/Mer/Model/ProductFeeQueryV2Response.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Mer\Model;
|
||||
|
||||
|
||||
class ProductFeeQueryV2Response extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var ProductFeeQueryV2QueryProductFeeRespDtoResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Mer\Model\ProductFeeQueryV2QueryProductFeeRespDtoResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ProductFeeQueryV2QueryProductFeeRespDtoResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ProductFeeQueryV2QueryProductFeeRespDtoResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Mer\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class ProductFeeQueryV2ResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var ProductFeeQueryV2ResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new ProductFeeQueryV2ResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ProductFeeQueryV2ResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ProductFeeQueryV2Response
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new ProductFeeQueryV2Response();
|
||||
}
|
||||
}
|
||||
|
||||
ProductFeeQueryV2ResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,422 @@
|
||||
<?php
|
||||
/**
|
||||
* ProductIncrementSettleOpenV2AddIncrementSettleProductRespDtoResult
|
||||
*
|
||||
* 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\Mer\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* ProductIncrementSettleOpenV2AddIncrementSettleProductRespDtoResult Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class ProductIncrementSettleOpenV2AddIncrementSettleProductRespDtoResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'ProductIncrementSettleOpenV2AddIncrementSettleProductRespDtoResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'returnCode' => 'string',
|
||||
'returnMsg' => 'string',
|
||||
'requestNo' => 'string',
|
||||
'applicationNo' => 'string',
|
||||
'applicationStatus' => 'string'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'returnCode' => null,
|
||||
'returnMsg' => null,
|
||||
'requestNo' => null,
|
||||
'applicationNo' => null,
|
||||
'applicationStatus' => 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 = [
|
||||
'returnCode' => 'returnCode',
|
||||
'returnMsg' => 'returnMsg',
|
||||
'requestNo' => 'requestNo',
|
||||
'applicationNo' => 'applicationNo',
|
||||
'applicationStatus' => 'applicationStatus'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'returnCode' => 'setReturnCode',
|
||||
'returnMsg' => 'setReturnMsg',
|
||||
'requestNo' => 'setRequestNo',
|
||||
'applicationNo' => 'setApplicationNo',
|
||||
'applicationStatus' => 'setApplicationStatus'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'returnCode' => 'getReturnCode',
|
||||
'returnMsg' => 'getReturnMsg',
|
||||
'requestNo' => 'getRequestNo',
|
||||
'applicationNo' => 'getApplicationNo',
|
||||
'applicationStatus' => 'getApplicationStatus'
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['returnCode'] = isset($data['returnCode']) ? $data['returnCode'] : null;
|
||||
$this->container['returnMsg'] = isset($data['returnMsg']) ? $data['returnMsg'] : null;
|
||||
$this->container['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : null;
|
||||
$this->container['applicationNo'] = isset($data['applicationNo']) ? $data['applicationNo'] : null;
|
||||
$this->container['applicationStatus'] = isset($data['applicationStatus']) ? $data['applicationStatus'] : 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 returnCode
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getReturnCode()
|
||||
{
|
||||
return $this->container['returnCode'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets returnCode
|
||||
*
|
||||
* @param string $returnCode 响应编码
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setReturnCode($returnCode)
|
||||
{
|
||||
$this->container['returnCode'] = $returnCode;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets returnMsg
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getReturnMsg()
|
||||
{
|
||||
return $this->container['returnMsg'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets returnMsg
|
||||
*
|
||||
* @param string $returnMsg 响应描述
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setReturnMsg($returnMsg)
|
||||
{
|
||||
$this->container['returnMsg'] = $returnMsg;
|
||||
|
||||
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 applicationNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getApplicationNo()
|
||||
{
|
||||
return $this->container['applicationNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets applicationNo
|
||||
*
|
||||
* @param string $applicationNo 申请单编号
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setApplicationNo($applicationNo)
|
||||
{
|
||||
$this->container['applicationNo'] = $applicationNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets applicationStatus
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getApplicationStatus()
|
||||
{
|
||||
return $this->container['applicationStatus'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets applicationStatus
|
||||
*
|
||||
* @param string $applicationStatus 申请状态
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setApplicationStatus($applicationStatus)
|
||||
{
|
||||
$this->container['applicationStatus'] = $applicationStatus;
|
||||
|
||||
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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
117
lib/Service/Mer/Model/ProductIncrementSettleOpenV2Request.php
Normal file
117
lib/Service/Mer/Model/ProductIncrementSettleOpenV2Request.php
Normal file
@@ -0,0 +1,117 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Mer\Model;
|
||||
|
||||
|
||||
class ProductIncrementSettleOpenV2Request extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $requestNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $productInfo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $notifyUrl;
|
||||
|
||||
/**
|
||||
* Gets requestNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRequestNo()
|
||||
{
|
||||
return $this->requestNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets requestNo
|
||||
*
|
||||
* @param string $requestNo
|
||||
* @return ProductIncrementSettleOpenV2Request
|
||||
*/
|
||||
public function setRequestNo($requestNo)
|
||||
{
|
||||
$this->requestNo = $requestNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets merchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantNo()
|
||||
{
|
||||
return $this->merchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantNo
|
||||
*
|
||||
* @param string $merchantNo
|
||||
* @return ProductIncrementSettleOpenV2Request
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->merchantNo = $merchantNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets productInfo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getProductInfo()
|
||||
{
|
||||
return $this->productInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets productInfo
|
||||
*
|
||||
* @param string $productInfo
|
||||
* @return ProductIncrementSettleOpenV2Request
|
||||
*/
|
||||
public function setProductInfo($productInfo)
|
||||
{
|
||||
$this->productInfo = $productInfo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets notifyUrl
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getNotifyUrl()
|
||||
{
|
||||
return $this->notifyUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets notifyUrl
|
||||
*
|
||||
* @param string $notifyUrl
|
||||
* @return ProductIncrementSettleOpenV2Request
|
||||
*/
|
||||
public function setNotifyUrl($notifyUrl)
|
||||
{
|
||||
$this->notifyUrl = $notifyUrl;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'productIncrementSettleOpenV2';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,89 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Mer\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 ProductIncrementSettleOpenV2RequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var ProductIncrementSettleOpenV2RequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new ProductIncrementSettleOpenV2RequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ProductIncrementSettleOpenV2RequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Mer';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v2.0/mer/product/increment-settle/open';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param ProductIncrementSettleOpenV2Request $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->getMerchantNo() != null){
|
||||
$internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string'));
|
||||
}
|
||||
if($request->getProductInfo() != null){
|
||||
$internalRequest->addParameter('productInfo', ObjectSerializer::sanitizeForSerialization($request->getProductInfo(), 'string'));
|
||||
}
|
||||
if($request->getNotifyUrl() != null){
|
||||
$internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
ProductIncrementSettleOpenV2RequestMarshaller::__init();
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Mer\Model;
|
||||
|
||||
|
||||
class ProductIncrementSettleOpenV2Response extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var ProductIncrementSettleOpenV2AddIncrementSettleProductRespDtoResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Mer\Model\ProductIncrementSettleOpenV2AddIncrementSettleProductRespDtoResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ProductIncrementSettleOpenV2AddIncrementSettleProductRespDtoResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ProductIncrementSettleOpenV2AddIncrementSettleProductRespDtoResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Mer\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class ProductIncrementSettleOpenV2ResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var ProductIncrementSettleOpenV2ResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new ProductIncrementSettleOpenV2ResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ProductIncrementSettleOpenV2ResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ProductIncrementSettleOpenV2Response
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new ProductIncrementSettleOpenV2Response();
|
||||
}
|
||||
}
|
||||
|
||||
ProductIncrementSettleOpenV2ResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,512 @@
|
||||
<?php
|
||||
/**
|
||||
* ProductModifyQueryV2ProductModifyProgressQueryRespDtoResult
|
||||
*
|
||||
* 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\Mer\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* ProductModifyQueryV2ProductModifyProgressQueryRespDtoResult Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class ProductModifyQueryV2ProductModifyProgressQueryRespDtoResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'ProductModifyQueryV2ProductModifyProgressQueryRespDtoResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'returnCode' => 'string',
|
||||
'returnMsg' => 'string',
|
||||
'requestNo' => 'string',
|
||||
'applicationNo' => 'string',
|
||||
'merchantNo' => 'string',
|
||||
'applicationStatus' => 'string',
|
||||
'auditOpinion' => 'string',
|
||||
'progressDescription' => 'string'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'returnCode' => null,
|
||||
'returnMsg' => null,
|
||||
'requestNo' => null,
|
||||
'applicationNo' => null,
|
||||
'merchantNo' => null,
|
||||
'applicationStatus' => null,
|
||||
'auditOpinion' => null,
|
||||
'progressDescription' => 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 = [
|
||||
'returnCode' => 'returnCode',
|
||||
'returnMsg' => 'returnMsg',
|
||||
'requestNo' => 'requestNo',
|
||||
'applicationNo' => 'applicationNo',
|
||||
'merchantNo' => 'merchantNo',
|
||||
'applicationStatus' => 'applicationStatus',
|
||||
'auditOpinion' => 'auditOpinion',
|
||||
'progressDescription' => 'progressDescription'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'returnCode' => 'setReturnCode',
|
||||
'returnMsg' => 'setReturnMsg',
|
||||
'requestNo' => 'setRequestNo',
|
||||
'applicationNo' => 'setApplicationNo',
|
||||
'merchantNo' => 'setMerchantNo',
|
||||
'applicationStatus' => 'setApplicationStatus',
|
||||
'auditOpinion' => 'setAuditOpinion',
|
||||
'progressDescription' => 'setProgressDescription'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'returnCode' => 'getReturnCode',
|
||||
'returnMsg' => 'getReturnMsg',
|
||||
'requestNo' => 'getRequestNo',
|
||||
'applicationNo' => 'getApplicationNo',
|
||||
'merchantNo' => 'getMerchantNo',
|
||||
'applicationStatus' => 'getApplicationStatus',
|
||||
'auditOpinion' => 'getAuditOpinion',
|
||||
'progressDescription' => 'getProgressDescription'
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['returnCode'] = isset($data['returnCode']) ? $data['returnCode'] : null;
|
||||
$this->container['returnMsg'] = isset($data['returnMsg']) ? $data['returnMsg'] : null;
|
||||
$this->container['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : null;
|
||||
$this->container['applicationNo'] = isset($data['applicationNo']) ? $data['applicationNo'] : null;
|
||||
$this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null;
|
||||
$this->container['applicationStatus'] = isset($data['applicationStatus']) ? $data['applicationStatus'] : null;
|
||||
$this->container['auditOpinion'] = isset($data['auditOpinion']) ? $data['auditOpinion'] : null;
|
||||
$this->container['progressDescription'] = isset($data['progressDescription']) ? $data['progressDescription'] : 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 returnCode
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getReturnCode()
|
||||
{
|
||||
return $this->container['returnCode'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets returnCode
|
||||
*
|
||||
* @param string $returnCode 响应编码
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setReturnCode($returnCode)
|
||||
{
|
||||
$this->container['returnCode'] = $returnCode;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets returnMsg
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getReturnMsg()
|
||||
{
|
||||
return $this->container['returnMsg'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets returnMsg
|
||||
*
|
||||
* @param string $returnMsg 响应描述
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setReturnMsg($returnMsg)
|
||||
{
|
||||
$this->container['returnMsg'] = $returnMsg;
|
||||
|
||||
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 applicationNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getApplicationNo()
|
||||
{
|
||||
return $this->container['applicationNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets applicationNo
|
||||
*
|
||||
* @param string $applicationNo 申请单编号
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setApplicationNo($applicationNo)
|
||||
{
|
||||
$this->container['applicationNo'] = $applicationNo;
|
||||
|
||||
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 applicationStatus
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getApplicationStatus()
|
||||
{
|
||||
return $this->container['applicationStatus'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets applicationStatus
|
||||
*
|
||||
* @param string $applicationStatus 申请状态
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setApplicationStatus($applicationStatus)
|
||||
{
|
||||
$this->container['applicationStatus'] = $applicationStatus;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets auditOpinion
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getAuditOpinion()
|
||||
{
|
||||
return $this->container['auditOpinion'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets auditOpinion
|
||||
*
|
||||
* @param string $auditOpinion 审核意见
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setAuditOpinion($auditOpinion)
|
||||
{
|
||||
$this->container['auditOpinion'] = $auditOpinion;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets progressDescription
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getProgressDescription()
|
||||
{
|
||||
return $this->container['progressDescription'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets progressDescription
|
||||
*
|
||||
* @param string $progressDescription 产品变更进度说明
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setProgressDescription($progressDescription)
|
||||
{
|
||||
$this->container['progressDescription'] = $progressDescription;
|
||||
|
||||
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/Mer/Model/ProductModifyQueryV2Request.php
Normal file
42
lib/Service/Mer/Model/ProductModifyQueryV2Request.php
Normal file
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Mer\Model;
|
||||
|
||||
|
||||
class ProductModifyQueryV2Request extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $requestNo;
|
||||
|
||||
/**
|
||||
* Gets requestNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRequestNo()
|
||||
{
|
||||
return $this->requestNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets requestNo
|
||||
*
|
||||
* @param string $requestNo
|
||||
* @return ProductModifyQueryV2Request
|
||||
*/
|
||||
public function setRequestNo($requestNo)
|
||||
{
|
||||
$this->requestNo = $requestNo;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'productModifyQueryV2';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Mer\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 ProductModifyQueryV2RequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var ProductModifyQueryV2RequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new ProductModifyQueryV2RequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ProductModifyQueryV2RequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Mer';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'GET';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v2.0/mer/product/modify/query';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param ProductModifyQueryV2Request $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'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
ProductModifyQueryV2RequestMarshaller::__init();
|
||||
34
lib/Service/Mer/Model/ProductModifyQueryV2Response.php
Normal file
34
lib/Service/Mer/Model/ProductModifyQueryV2Response.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Mer\Model;
|
||||
|
||||
|
||||
class ProductModifyQueryV2Response extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var ProductModifyQueryV2ProductModifyProgressQueryRespDtoResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Mer\Model\ProductModifyQueryV2ProductModifyProgressQueryRespDtoResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ProductModifyQueryV2ProductModifyProgressQueryRespDtoResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ProductModifyQueryV2ProductModifyProgressQueryRespDtoResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Mer\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class ProductModifyQueryV2ResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var ProductModifyQueryV2ResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new ProductModifyQueryV2ResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ProductModifyQueryV2ResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ProductModifyQueryV2Response
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new ProductModifyQueryV2Response();
|
||||
}
|
||||
}
|
||||
|
||||
ProductModifyQueryV2ResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,512 @@
|
||||
<?php
|
||||
/**
|
||||
* RegisterQueryV2NetInProgressQueryRespDtoResult
|
||||
*
|
||||
* 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\Mer\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* RegisterQueryV2NetInProgressQueryRespDtoResult Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class RegisterQueryV2NetInProgressQueryRespDtoResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'RegisterQueryV2NetInProgressQueryRespDtoResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'returnCode' => 'string',
|
||||
'returnMsg' => 'string',
|
||||
'requestNo' => 'string',
|
||||
'applicationNo' => 'string',
|
||||
'merchantNo' => 'string',
|
||||
'applicationStatus' => 'string',
|
||||
'auditOpinion' => 'string',
|
||||
'progressDescription' => 'string'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'returnCode' => null,
|
||||
'returnMsg' => null,
|
||||
'requestNo' => null,
|
||||
'applicationNo' => null,
|
||||
'merchantNo' => null,
|
||||
'applicationStatus' => null,
|
||||
'auditOpinion' => null,
|
||||
'progressDescription' => 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 = [
|
||||
'returnCode' => 'returnCode',
|
||||
'returnMsg' => 'returnMsg',
|
||||
'requestNo' => 'requestNo',
|
||||
'applicationNo' => 'applicationNo',
|
||||
'merchantNo' => 'merchantNo',
|
||||
'applicationStatus' => 'applicationStatus',
|
||||
'auditOpinion' => 'auditOpinion',
|
||||
'progressDescription' => 'progressDescription'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'returnCode' => 'setReturnCode',
|
||||
'returnMsg' => 'setReturnMsg',
|
||||
'requestNo' => 'setRequestNo',
|
||||
'applicationNo' => 'setApplicationNo',
|
||||
'merchantNo' => 'setMerchantNo',
|
||||
'applicationStatus' => 'setApplicationStatus',
|
||||
'auditOpinion' => 'setAuditOpinion',
|
||||
'progressDescription' => 'setProgressDescription'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'returnCode' => 'getReturnCode',
|
||||
'returnMsg' => 'getReturnMsg',
|
||||
'requestNo' => 'getRequestNo',
|
||||
'applicationNo' => 'getApplicationNo',
|
||||
'merchantNo' => 'getMerchantNo',
|
||||
'applicationStatus' => 'getApplicationStatus',
|
||||
'auditOpinion' => 'getAuditOpinion',
|
||||
'progressDescription' => 'getProgressDescription'
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['returnCode'] = isset($data['returnCode']) ? $data['returnCode'] : null;
|
||||
$this->container['returnMsg'] = isset($data['returnMsg']) ? $data['returnMsg'] : null;
|
||||
$this->container['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : null;
|
||||
$this->container['applicationNo'] = isset($data['applicationNo']) ? $data['applicationNo'] : null;
|
||||
$this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null;
|
||||
$this->container['applicationStatus'] = isset($data['applicationStatus']) ? $data['applicationStatus'] : null;
|
||||
$this->container['auditOpinion'] = isset($data['auditOpinion']) ? $data['auditOpinion'] : null;
|
||||
$this->container['progressDescription'] = isset($data['progressDescription']) ? $data['progressDescription'] : 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 returnCode
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getReturnCode()
|
||||
{
|
||||
return $this->container['returnCode'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets returnCode
|
||||
*
|
||||
* @param string $returnCode 响应编码
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setReturnCode($returnCode)
|
||||
{
|
||||
$this->container['returnCode'] = $returnCode;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets returnMsg
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getReturnMsg()
|
||||
{
|
||||
return $this->container['returnMsg'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets returnMsg
|
||||
*
|
||||
* @param string $returnMsg 响应描述
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setReturnMsg($returnMsg)
|
||||
{
|
||||
$this->container['returnMsg'] = $returnMsg;
|
||||
|
||||
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 applicationNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getApplicationNo()
|
||||
{
|
||||
return $this->container['applicationNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets applicationNo
|
||||
*
|
||||
* @param string $applicationNo 申请单编号
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setApplicationNo($applicationNo)
|
||||
{
|
||||
$this->container['applicationNo'] = $applicationNo;
|
||||
|
||||
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 applicationStatus
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getApplicationStatus()
|
||||
{
|
||||
return $this->container['applicationStatus'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets applicationStatus
|
||||
*
|
||||
* @param string $applicationStatus 申请状态
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setApplicationStatus($applicationStatus)
|
||||
{
|
||||
$this->container['applicationStatus'] = $applicationStatus;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets auditOpinion
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getAuditOpinion()
|
||||
{
|
||||
return $this->container['auditOpinion'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets auditOpinion
|
||||
*
|
||||
* @param string $auditOpinion 审核意见
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setAuditOpinion($auditOpinion)
|
||||
{
|
||||
$this->container['auditOpinion'] = $auditOpinion;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets progressDescription
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getProgressDescription()
|
||||
{
|
||||
return $this->container['progressDescription'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets progressDescription
|
||||
*
|
||||
* @param string $progressDescription 入网进度说明
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setProgressDescription($progressDescription)
|
||||
{
|
||||
$this->container['progressDescription'] = $progressDescription;
|
||||
|
||||
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/Mer/Model/RegisterQueryV2Request.php
Normal file
42
lib/Service/Mer/Model/RegisterQueryV2Request.php
Normal file
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Mer\Model;
|
||||
|
||||
|
||||
class RegisterQueryV2Request extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $requestNo;
|
||||
|
||||
/**
|
||||
* Gets requestNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRequestNo()
|
||||
{
|
||||
return $this->requestNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets requestNo
|
||||
*
|
||||
* @param string $requestNo
|
||||
* @return RegisterQueryV2Request
|
||||
*/
|
||||
public function setRequestNo($requestNo)
|
||||
{
|
||||
$this->requestNo = $requestNo;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'registerQueryV2';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
80
lib/Service/Mer/Model/RegisterQueryV2RequestMarshaller.php
Normal file
80
lib/Service/Mer/Model/RegisterQueryV2RequestMarshaller.php
Normal file
@@ -0,0 +1,80 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Mer\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 RegisterQueryV2RequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var RegisterQueryV2RequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new RegisterQueryV2RequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return RegisterQueryV2RequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Mer';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'GET';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v2.0/mer/register/query';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param RegisterQueryV2Request $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'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
RegisterQueryV2RequestMarshaller::__init();
|
||||
34
lib/Service/Mer/Model/RegisterQueryV2Response.php
Normal file
34
lib/Service/Mer/Model/RegisterQueryV2Response.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Mer\Model;
|
||||
|
||||
|
||||
class RegisterQueryV2Response extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var RegisterQueryV2NetInProgressQueryRespDtoResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Mer\Model\RegisterQueryV2NetInProgressQueryRespDtoResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param RegisterQueryV2NetInProgressQueryRespDtoResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return RegisterQueryV2NetInProgressQueryRespDtoResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Mer\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class RegisterQueryV2ResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var RegisterQueryV2ResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new RegisterQueryV2ResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return RegisterQueryV2ResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return RegisterQueryV2Response
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new RegisterQueryV2Response();
|
||||
}
|
||||
}
|
||||
|
||||
RegisterQueryV2ResponseUnMarshaller::__init();
|
||||
217
lib/Service/Mer/Model/RegisterSaasIndexV2Request.php
Normal file
217
lib/Service/Mer/Model/RegisterSaasIndexV2Request.php
Normal file
@@ -0,0 +1,217 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Mer\Model;
|
||||
|
||||
|
||||
class RegisterSaasIndexV2Request extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $requestNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $notifyUrl;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $returnUrl;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $mobile;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $name;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $idCardNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $walletUserNo;
|
||||
|
||||
/**
|
||||
* Gets requestNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRequestNo()
|
||||
{
|
||||
return $this->requestNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets requestNo
|
||||
*
|
||||
* @param string $requestNo
|
||||
* @return RegisterSaasIndexV2Request
|
||||
*/
|
||||
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 RegisterSaasIndexV2Request
|
||||
*/
|
||||
public function setParentMerchantNo($parentMerchantNo)
|
||||
{
|
||||
$this->parentMerchantNo = $parentMerchantNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets notifyUrl
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getNotifyUrl()
|
||||
{
|
||||
return $this->notifyUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets notifyUrl
|
||||
*
|
||||
* @param string $notifyUrl
|
||||
* @return RegisterSaasIndexV2Request
|
||||
*/
|
||||
public function setNotifyUrl($notifyUrl)
|
||||
{
|
||||
$this->notifyUrl = $notifyUrl;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets returnUrl
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getReturnUrl()
|
||||
{
|
||||
return $this->returnUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets returnUrl
|
||||
*
|
||||
* @param string $returnUrl
|
||||
* @return RegisterSaasIndexV2Request
|
||||
*/
|
||||
public function setReturnUrl($returnUrl)
|
||||
{
|
||||
$this->returnUrl = $returnUrl;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets mobile
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMobile()
|
||||
{
|
||||
return $this->mobile;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets mobile
|
||||
*
|
||||
* @param string $mobile
|
||||
* @return RegisterSaasIndexV2Request
|
||||
*/
|
||||
public function setMobile($mobile)
|
||||
{
|
||||
$this->mobile = $mobile;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets name
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets name
|
||||
*
|
||||
* @param string $name
|
||||
* @return RegisterSaasIndexV2Request
|
||||
*/
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets idCardNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getIdCardNo()
|
||||
{
|
||||
return $this->idCardNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets idCardNo
|
||||
*
|
||||
* @param string $idCardNo
|
||||
* @return RegisterSaasIndexV2Request
|
||||
*/
|
||||
public function setIdCardNo($idCardNo)
|
||||
{
|
||||
$this->idCardNo = $idCardNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets walletUserNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getWalletUserNo()
|
||||
{
|
||||
return $this->walletUserNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets walletUserNo
|
||||
*
|
||||
* @param string $walletUserNo
|
||||
* @return RegisterSaasIndexV2Request
|
||||
*/
|
||||
public function setWalletUserNo($walletUserNo)
|
||||
{
|
||||
$this->walletUserNo = $walletUserNo;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'registerSaasIndexV2';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
101
lib/Service/Mer/Model/RegisterSaasIndexV2RequestMarshaller.php
Normal file
101
lib/Service/Mer/Model/RegisterSaasIndexV2RequestMarshaller.php
Normal file
@@ -0,0 +1,101 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Mer\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 RegisterSaasIndexV2RequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var RegisterSaasIndexV2RequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new RegisterSaasIndexV2RequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return RegisterSaasIndexV2RequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Mer';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v2.0/mer/register/saas/index';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param RegisterSaasIndexV2Request $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->getNotifyUrl() != null){
|
||||
$internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string'));
|
||||
}
|
||||
if($request->getReturnUrl() != null){
|
||||
$internalRequest->addParameter('returnUrl', ObjectSerializer::sanitizeForSerialization($request->getReturnUrl(), 'string'));
|
||||
}
|
||||
if($request->getMobile() != null){
|
||||
$internalRequest->addParameter('mobile', ObjectSerializer::sanitizeForSerialization($request->getMobile(), 'string', 'mobile'));
|
||||
}
|
||||
if($request->getName() != null){
|
||||
$internalRequest->addParameter('name', ObjectSerializer::sanitizeForSerialization($request->getName(), 'string'));
|
||||
}
|
||||
if($request->getIdCardNo() != null){
|
||||
$internalRequest->addParameter('idCardNo', ObjectSerializer::sanitizeForSerialization($request->getIdCardNo(), 'string'));
|
||||
}
|
||||
if($request->getWalletUserNo() != null){
|
||||
$internalRequest->addParameter('walletUserNo', ObjectSerializer::sanitizeForSerialization($request->getWalletUserNo(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
RegisterSaasIndexV2RequestMarshaller::__init();
|
||||
34
lib/Service/Mer/Model/RegisterSaasIndexV2Response.php
Normal file
34
lib/Service/Mer/Model/RegisterSaasIndexV2Response.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Mer\Model;
|
||||
|
||||
|
||||
class RegisterSaasIndexV2Response extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var RegisterSaasIndexV2UserPreRegisterRespDtoResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Mer\Model\RegisterSaasIndexV2UserPreRegisterRespDtoResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param RegisterSaasIndexV2UserPreRegisterRespDtoResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return RegisterSaasIndexV2UserPreRegisterRespDtoResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Mer\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class RegisterSaasIndexV2ResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var RegisterSaasIndexV2ResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new RegisterSaasIndexV2ResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return RegisterSaasIndexV2ResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return RegisterSaasIndexV2Response
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new RegisterSaasIndexV2Response();
|
||||
}
|
||||
}
|
||||
|
||||
RegisterSaasIndexV2ResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,362 @@
|
||||
<?php
|
||||
/**
|
||||
* RegisterSaasIndexV2UserPreRegisterRespDtoResult
|
||||
*
|
||||
* 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\Mer\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* RegisterSaasIndexV2UserPreRegisterRespDtoResult Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class RegisterSaasIndexV2UserPreRegisterRespDtoResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'RegisterSaasIndexV2UserPreRegisterRespDtoResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'code' => 'string',
|
||||
'msg' => 'string',
|
||||
'url' => 'string'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'code' => null,
|
||||
'msg' => null,
|
||||
'url' => 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',
|
||||
'url' => 'url'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'code' => 'setCode',
|
||||
'msg' => 'setMsg',
|
||||
'url' => 'setUrl'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'code' => 'getCode',
|
||||
'msg' => 'getMsg',
|
||||
'url' => 'getUrl'
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['url'] = isset($data['url']) ? $data['url'] : 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 url
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getUrl()
|
||||
{
|
||||
return $this->container['url'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets url
|
||||
*
|
||||
* @param string $url 访问小微商户入网的注册页面地址
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setUrl($url)
|
||||
{
|
||||
$this->container['url'] = $url;
|
||||
|
||||
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
|
||||
/**
|
||||
* RegisterSaasMerchantV2ContributeMerchantNetInRespDtoResult
|
||||
*
|
||||
* 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\Mer\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* RegisterSaasMerchantV2ContributeMerchantNetInRespDtoResult Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class RegisterSaasMerchantV2ContributeMerchantNetInRespDtoResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'RegisterSaasMerchantV2ContributeMerchantNetInRespDtoResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'returnCode' => 'string',
|
||||
'returnMsg' => 'string',
|
||||
'requestNo' => 'string',
|
||||
'applicationNo' => 'string',
|
||||
'applicationStatus' => 'string',
|
||||
'merchantNo' => 'string'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'returnCode' => null,
|
||||
'returnMsg' => null,
|
||||
'requestNo' => null,
|
||||
'applicationNo' => null,
|
||||
'applicationStatus' => null,
|
||||
'merchantNo' => 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 = [
|
||||
'returnCode' => 'returnCode',
|
||||
'returnMsg' => 'returnMsg',
|
||||
'requestNo' => 'requestNo',
|
||||
'applicationNo' => 'applicationNo',
|
||||
'applicationStatus' => 'applicationStatus',
|
||||
'merchantNo' => 'merchantNo'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'returnCode' => 'setReturnCode',
|
||||
'returnMsg' => 'setReturnMsg',
|
||||
'requestNo' => 'setRequestNo',
|
||||
'applicationNo' => 'setApplicationNo',
|
||||
'applicationStatus' => 'setApplicationStatus',
|
||||
'merchantNo' => 'setMerchantNo'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'returnCode' => 'getReturnCode',
|
||||
'returnMsg' => 'getReturnMsg',
|
||||
'requestNo' => 'getRequestNo',
|
||||
'applicationNo' => 'getApplicationNo',
|
||||
'applicationStatus' => 'getApplicationStatus',
|
||||
'merchantNo' => 'getMerchantNo'
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['returnCode'] = isset($data['returnCode']) ? $data['returnCode'] : null;
|
||||
$this->container['returnMsg'] = isset($data['returnMsg']) ? $data['returnMsg'] : null;
|
||||
$this->container['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : null;
|
||||
$this->container['applicationNo'] = isset($data['applicationNo']) ? $data['applicationNo'] : null;
|
||||
$this->container['applicationStatus'] = isset($data['applicationStatus']) ? $data['applicationStatus'] : null;
|
||||
$this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : 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 returnCode
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getReturnCode()
|
||||
{
|
||||
return $this->container['returnCode'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets returnCode
|
||||
*
|
||||
* @param string $returnCode 响应编码
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setReturnCode($returnCode)
|
||||
{
|
||||
$this->container['returnCode'] = $returnCode;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets returnMsg
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getReturnMsg()
|
||||
{
|
||||
return $this->container['returnMsg'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets returnMsg
|
||||
*
|
||||
* @param string $returnMsg 响应描述
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setReturnMsg($returnMsg)
|
||||
{
|
||||
$this->container['returnMsg'] = $returnMsg;
|
||||
|
||||
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 applicationNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getApplicationNo()
|
||||
{
|
||||
return $this->container['applicationNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets applicationNo
|
||||
*
|
||||
* @param string $applicationNo 申请单编号
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setApplicationNo($applicationNo)
|
||||
{
|
||||
$this->container['applicationNo'] = $applicationNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets applicationStatus
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getApplicationStatus()
|
||||
{
|
||||
return $this->container['applicationStatus'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets applicationStatus
|
||||
*
|
||||
* @param string $applicationStatus 申请状态
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setApplicationStatus($applicationStatus)
|
||||
{
|
||||
$this->container['applicationStatus'] = $applicationStatus;
|
||||
|
||||
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;
|
||||
}
|
||||
/**
|
||||
* 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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
367
lib/Service/Mer/Model/RegisterSaasMerchantV2Request.php
Normal file
367
lib/Service/Mer/Model/RegisterSaasMerchantV2Request.php
Normal file
@@ -0,0 +1,367 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Mer\Model;
|
||||
|
||||
|
||||
class RegisterSaasMerchantV2Request extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $requestNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $businessRole;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantSubjectInfo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantCorporationInfo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantContactInfo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $industryCategoryInfo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $businessAddressInfo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $settlementAccountInfo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $notifyUrl;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $productInfo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $productQualificationInfo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $functionService;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $functionServiceQualificationInfo;
|
||||
|
||||
/**
|
||||
* Gets requestNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRequestNo()
|
||||
{
|
||||
return $this->requestNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets requestNo
|
||||
*
|
||||
* @param string $requestNo
|
||||
* @return RegisterSaasMerchantV2Request
|
||||
*/
|
||||
public function setRequestNo($requestNo)
|
||||
{
|
||||
$this->requestNo = $requestNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets businessRole
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getBusinessRole()
|
||||
{
|
||||
return $this->businessRole;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets businessRole
|
||||
*
|
||||
* @param string $businessRole
|
||||
* @return RegisterSaasMerchantV2Request
|
||||
*/
|
||||
public function setBusinessRole($businessRole)
|
||||
{
|
||||
$this->businessRole = $businessRole;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->parentMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
*
|
||||
* @param string $parentMerchantNo
|
||||
* @return RegisterSaasMerchantV2Request
|
||||
*/
|
||||
public function setParentMerchantNo($parentMerchantNo)
|
||||
{
|
||||
$this->parentMerchantNo = $parentMerchantNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets merchantSubjectInfo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantSubjectInfo()
|
||||
{
|
||||
return $this->merchantSubjectInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantSubjectInfo
|
||||
*
|
||||
* @param string $merchantSubjectInfo
|
||||
* @return RegisterSaasMerchantV2Request
|
||||
*/
|
||||
public function setMerchantSubjectInfo($merchantSubjectInfo)
|
||||
{
|
||||
$this->merchantSubjectInfo = $merchantSubjectInfo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets merchantCorporationInfo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantCorporationInfo()
|
||||
{
|
||||
return $this->merchantCorporationInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantCorporationInfo
|
||||
*
|
||||
* @param string $merchantCorporationInfo
|
||||
* @return RegisterSaasMerchantV2Request
|
||||
*/
|
||||
public function setMerchantCorporationInfo($merchantCorporationInfo)
|
||||
{
|
||||
$this->merchantCorporationInfo = $merchantCorporationInfo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets merchantContactInfo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantContactInfo()
|
||||
{
|
||||
return $this->merchantContactInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantContactInfo
|
||||
*
|
||||
* @param string $merchantContactInfo
|
||||
* @return RegisterSaasMerchantV2Request
|
||||
*/
|
||||
public function setMerchantContactInfo($merchantContactInfo)
|
||||
{
|
||||
$this->merchantContactInfo = $merchantContactInfo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets industryCategoryInfo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getIndustryCategoryInfo()
|
||||
{
|
||||
return $this->industryCategoryInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets industryCategoryInfo
|
||||
*
|
||||
* @param string $industryCategoryInfo
|
||||
* @return RegisterSaasMerchantV2Request
|
||||
*/
|
||||
public function setIndustryCategoryInfo($industryCategoryInfo)
|
||||
{
|
||||
$this->industryCategoryInfo = $industryCategoryInfo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets businessAddressInfo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getBusinessAddressInfo()
|
||||
{
|
||||
return $this->businessAddressInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets businessAddressInfo
|
||||
*
|
||||
* @param string $businessAddressInfo
|
||||
* @return RegisterSaasMerchantV2Request
|
||||
*/
|
||||
public function setBusinessAddressInfo($businessAddressInfo)
|
||||
{
|
||||
$this->businessAddressInfo = $businessAddressInfo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets settlementAccountInfo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getSettlementAccountInfo()
|
||||
{
|
||||
return $this->settlementAccountInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets settlementAccountInfo
|
||||
*
|
||||
* @param string $settlementAccountInfo
|
||||
* @return RegisterSaasMerchantV2Request
|
||||
*/
|
||||
public function setSettlementAccountInfo($settlementAccountInfo)
|
||||
{
|
||||
$this->settlementAccountInfo = $settlementAccountInfo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets notifyUrl
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getNotifyUrl()
|
||||
{
|
||||
return $this->notifyUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets notifyUrl
|
||||
*
|
||||
* @param string $notifyUrl
|
||||
* @return RegisterSaasMerchantV2Request
|
||||
*/
|
||||
public function setNotifyUrl($notifyUrl)
|
||||
{
|
||||
$this->notifyUrl = $notifyUrl;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets productInfo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getProductInfo()
|
||||
{
|
||||
return $this->productInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets productInfo
|
||||
*
|
||||
* @param string $productInfo
|
||||
* @return RegisterSaasMerchantV2Request
|
||||
*/
|
||||
public function setProductInfo($productInfo)
|
||||
{
|
||||
$this->productInfo = $productInfo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets productQualificationInfo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getProductQualificationInfo()
|
||||
{
|
||||
return $this->productQualificationInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets productQualificationInfo
|
||||
*
|
||||
* @param string $productQualificationInfo
|
||||
* @return RegisterSaasMerchantV2Request
|
||||
*/
|
||||
public function setProductQualificationInfo($productQualificationInfo)
|
||||
{
|
||||
$this->productQualificationInfo = $productQualificationInfo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets functionService
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getFunctionService()
|
||||
{
|
||||
return $this->functionService;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets functionService
|
||||
*
|
||||
* @param string $functionService
|
||||
* @return RegisterSaasMerchantV2Request
|
||||
*/
|
||||
public function setFunctionService($functionService)
|
||||
{
|
||||
$this->functionService = $functionService;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets functionServiceQualificationInfo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getFunctionServiceQualificationInfo()
|
||||
{
|
||||
return $this->functionServiceQualificationInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets functionServiceQualificationInfo
|
||||
*
|
||||
* @param string $functionServiceQualificationInfo
|
||||
* @return RegisterSaasMerchantV2Request
|
||||
*/
|
||||
public function setFunctionServiceQualificationInfo($functionServiceQualificationInfo)
|
||||
{
|
||||
$this->functionServiceQualificationInfo = $functionServiceQualificationInfo;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'registerSaasMerchantV2';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,119 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Mer\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 RegisterSaasMerchantV2RequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var RegisterSaasMerchantV2RequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new RegisterSaasMerchantV2RequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return RegisterSaasMerchantV2RequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Mer';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v2.0/mer/register/saas/merchant';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param RegisterSaasMerchantV2Request $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->getBusinessRole() != null){
|
||||
$internalRequest->addParameter('businessRole', ObjectSerializer::sanitizeForSerialization($request->getBusinessRole(), 'string'));
|
||||
}
|
||||
if($request->getParentMerchantNo() != null){
|
||||
$internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string'));
|
||||
}
|
||||
if($request->getMerchantSubjectInfo() != null){
|
||||
$internalRequest->addParameter('merchantSubjectInfo', ObjectSerializer::sanitizeForSerialization($request->getMerchantSubjectInfo(), 'string'));
|
||||
}
|
||||
if($request->getMerchantCorporationInfo() != null){
|
||||
$internalRequest->addParameter('merchantCorporationInfo', ObjectSerializer::sanitizeForSerialization($request->getMerchantCorporationInfo(), 'string'));
|
||||
}
|
||||
if($request->getMerchantContactInfo() != null){
|
||||
$internalRequest->addParameter('merchantContactInfo', ObjectSerializer::sanitizeForSerialization($request->getMerchantContactInfo(), 'string'));
|
||||
}
|
||||
if($request->getIndustryCategoryInfo() != null){
|
||||
$internalRequest->addParameter('industryCategoryInfo', ObjectSerializer::sanitizeForSerialization($request->getIndustryCategoryInfo(), 'string'));
|
||||
}
|
||||
if($request->getBusinessAddressInfo() != null){
|
||||
$internalRequest->addParameter('businessAddressInfo', ObjectSerializer::sanitizeForSerialization($request->getBusinessAddressInfo(), 'string'));
|
||||
}
|
||||
if($request->getSettlementAccountInfo() != null){
|
||||
$internalRequest->addParameter('settlementAccountInfo', ObjectSerializer::sanitizeForSerialization($request->getSettlementAccountInfo(), 'string'));
|
||||
}
|
||||
if($request->getNotifyUrl() != null){
|
||||
$internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string'));
|
||||
}
|
||||
if($request->getProductInfo() != null){
|
||||
$internalRequest->addParameter('productInfo', ObjectSerializer::sanitizeForSerialization($request->getProductInfo(), 'string'));
|
||||
}
|
||||
if($request->getProductQualificationInfo() != null){
|
||||
$internalRequest->addParameter('productQualificationInfo', ObjectSerializer::sanitizeForSerialization($request->getProductQualificationInfo(), 'string'));
|
||||
}
|
||||
if($request->getFunctionService() != null){
|
||||
$internalRequest->addParameter('functionService', ObjectSerializer::sanitizeForSerialization($request->getFunctionService(), 'string'));
|
||||
}
|
||||
if($request->getFunctionServiceQualificationInfo() != null){
|
||||
$internalRequest->addParameter('functionServiceQualificationInfo', ObjectSerializer::sanitizeForSerialization($request->getFunctionServiceQualificationInfo(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
RegisterSaasMerchantV2RequestMarshaller::__init();
|
||||
34
lib/Service/Mer/Model/RegisterSaasMerchantV2Response.php
Normal file
34
lib/Service/Mer/Model/RegisterSaasMerchantV2Response.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Mer\Model;
|
||||
|
||||
|
||||
class RegisterSaasMerchantV2Response extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var RegisterSaasMerchantV2ContributeMerchantNetInRespDtoResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Mer\Model\RegisterSaasMerchantV2ContributeMerchantNetInRespDtoResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param RegisterSaasMerchantV2ContributeMerchantNetInRespDtoResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return RegisterSaasMerchantV2ContributeMerchantNetInRespDtoResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Mer\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class RegisterSaasMerchantV2ResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var RegisterSaasMerchantV2ResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new RegisterSaasMerchantV2ResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return RegisterSaasMerchantV2ResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return RegisterSaasMerchantV2Response
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new RegisterSaasMerchantV2Response();
|
||||
}
|
||||
}
|
||||
|
||||
RegisterSaasMerchantV2ResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,452 @@
|
||||
<?php
|
||||
/**
|
||||
* RegisterSaasMicroV2ContributeMicroMerchantNetInRespDtoResult
|
||||
*
|
||||
* 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\Mer\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* RegisterSaasMicroV2ContributeMicroMerchantNetInRespDtoResult Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class RegisterSaasMicroV2ContributeMicroMerchantNetInRespDtoResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'RegisterSaasMicroV2ContributeMicroMerchantNetInRespDtoResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'returnCode' => 'string',
|
||||
'returnMsg' => 'string',
|
||||
'requestNo' => 'string',
|
||||
'applicationNo' => 'string',
|
||||
'applicationStatus' => 'string',
|
||||
'merchantNo' => 'string'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'returnCode' => null,
|
||||
'returnMsg' => null,
|
||||
'requestNo' => null,
|
||||
'applicationNo' => null,
|
||||
'applicationStatus' => null,
|
||||
'merchantNo' => 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 = [
|
||||
'returnCode' => 'returnCode',
|
||||
'returnMsg' => 'returnMsg',
|
||||
'requestNo' => 'requestNo',
|
||||
'applicationNo' => 'applicationNo',
|
||||
'applicationStatus' => 'applicationStatus',
|
||||
'merchantNo' => 'merchantNo'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'returnCode' => 'setReturnCode',
|
||||
'returnMsg' => 'setReturnMsg',
|
||||
'requestNo' => 'setRequestNo',
|
||||
'applicationNo' => 'setApplicationNo',
|
||||
'applicationStatus' => 'setApplicationStatus',
|
||||
'merchantNo' => 'setMerchantNo'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'returnCode' => 'getReturnCode',
|
||||
'returnMsg' => 'getReturnMsg',
|
||||
'requestNo' => 'getRequestNo',
|
||||
'applicationNo' => 'getApplicationNo',
|
||||
'applicationStatus' => 'getApplicationStatus',
|
||||
'merchantNo' => 'getMerchantNo'
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['returnCode'] = isset($data['returnCode']) ? $data['returnCode'] : null;
|
||||
$this->container['returnMsg'] = isset($data['returnMsg']) ? $data['returnMsg'] : null;
|
||||
$this->container['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : null;
|
||||
$this->container['applicationNo'] = isset($data['applicationNo']) ? $data['applicationNo'] : null;
|
||||
$this->container['applicationStatus'] = isset($data['applicationStatus']) ? $data['applicationStatus'] : null;
|
||||
$this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : 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 returnCode
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getReturnCode()
|
||||
{
|
||||
return $this->container['returnCode'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets returnCode
|
||||
*
|
||||
* @param string $returnCode 响应编码
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setReturnCode($returnCode)
|
||||
{
|
||||
$this->container['returnCode'] = $returnCode;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets returnMsg
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getReturnMsg()
|
||||
{
|
||||
return $this->container['returnMsg'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets returnMsg
|
||||
*
|
||||
* @param string $returnMsg 响应描述
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setReturnMsg($returnMsg)
|
||||
{
|
||||
$this->container['returnMsg'] = $returnMsg;
|
||||
|
||||
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 applicationNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getApplicationNo()
|
||||
{
|
||||
return $this->container['applicationNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets applicationNo
|
||||
*
|
||||
* @param string $applicationNo 申请单编号
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setApplicationNo($applicationNo)
|
||||
{
|
||||
$this->container['applicationNo'] = $applicationNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets applicationStatus
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getApplicationStatus()
|
||||
{
|
||||
return $this->container['applicationStatus'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets applicationStatus
|
||||
*
|
||||
* @param string $applicationStatus 申请状态
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setApplicationStatus($applicationStatus)
|
||||
{
|
||||
$this->container['applicationStatus'] = $applicationStatus;
|
||||
|
||||
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;
|
||||
}
|
||||
/**
|
||||
* 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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
317
lib/Service/Mer/Model/RegisterSaasMicroV2Request.php
Normal file
317
lib/Service/Mer/Model/RegisterSaasMicroV2Request.php
Normal file
@@ -0,0 +1,317 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Mer\Model;
|
||||
|
||||
|
||||
class RegisterSaasMicroV2Request extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $requestNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $businessRole;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantSubjectInfo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $businessAddressInfo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantCorporationInfo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $accountInfo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $notifyUrl;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $productInfo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $productQualificationInfo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $functionService;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $functionServiceQualificationInfo;
|
||||
|
||||
/**
|
||||
* Gets requestNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRequestNo()
|
||||
{
|
||||
return $this->requestNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets requestNo
|
||||
*
|
||||
* @param string $requestNo
|
||||
* @return RegisterSaasMicroV2Request
|
||||
*/
|
||||
public function setRequestNo($requestNo)
|
||||
{
|
||||
$this->requestNo = $requestNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets businessRole
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getBusinessRole()
|
||||
{
|
||||
return $this->businessRole;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets businessRole
|
||||
*
|
||||
* @param string $businessRole
|
||||
* @return RegisterSaasMicroV2Request
|
||||
*/
|
||||
public function setBusinessRole($businessRole)
|
||||
{
|
||||
$this->businessRole = $businessRole;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->parentMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
*
|
||||
* @param string $parentMerchantNo
|
||||
* @return RegisterSaasMicroV2Request
|
||||
*/
|
||||
public function setParentMerchantNo($parentMerchantNo)
|
||||
{
|
||||
$this->parentMerchantNo = $parentMerchantNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets merchantSubjectInfo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantSubjectInfo()
|
||||
{
|
||||
return $this->merchantSubjectInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantSubjectInfo
|
||||
*
|
||||
* @param string $merchantSubjectInfo
|
||||
* @return RegisterSaasMicroV2Request
|
||||
*/
|
||||
public function setMerchantSubjectInfo($merchantSubjectInfo)
|
||||
{
|
||||
$this->merchantSubjectInfo = $merchantSubjectInfo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets businessAddressInfo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getBusinessAddressInfo()
|
||||
{
|
||||
return $this->businessAddressInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets businessAddressInfo
|
||||
*
|
||||
* @param string $businessAddressInfo
|
||||
* @return RegisterSaasMicroV2Request
|
||||
*/
|
||||
public function setBusinessAddressInfo($businessAddressInfo)
|
||||
{
|
||||
$this->businessAddressInfo = $businessAddressInfo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets merchantCorporationInfo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantCorporationInfo()
|
||||
{
|
||||
return $this->merchantCorporationInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantCorporationInfo
|
||||
*
|
||||
* @param string $merchantCorporationInfo
|
||||
* @return RegisterSaasMicroV2Request
|
||||
*/
|
||||
public function setMerchantCorporationInfo($merchantCorporationInfo)
|
||||
{
|
||||
$this->merchantCorporationInfo = $merchantCorporationInfo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets accountInfo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getAccountInfo()
|
||||
{
|
||||
return $this->accountInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets accountInfo
|
||||
*
|
||||
* @param string $accountInfo
|
||||
* @return RegisterSaasMicroV2Request
|
||||
*/
|
||||
public function setAccountInfo($accountInfo)
|
||||
{
|
||||
$this->accountInfo = $accountInfo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets notifyUrl
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getNotifyUrl()
|
||||
{
|
||||
return $this->notifyUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets notifyUrl
|
||||
*
|
||||
* @param string $notifyUrl
|
||||
* @return RegisterSaasMicroV2Request
|
||||
*/
|
||||
public function setNotifyUrl($notifyUrl)
|
||||
{
|
||||
$this->notifyUrl = $notifyUrl;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets productInfo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getProductInfo()
|
||||
{
|
||||
return $this->productInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets productInfo
|
||||
*
|
||||
* @param string $productInfo
|
||||
* @return RegisterSaasMicroV2Request
|
||||
*/
|
||||
public function setProductInfo($productInfo)
|
||||
{
|
||||
$this->productInfo = $productInfo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets productQualificationInfo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getProductQualificationInfo()
|
||||
{
|
||||
return $this->productQualificationInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets productQualificationInfo
|
||||
*
|
||||
* @param string $productQualificationInfo
|
||||
* @return RegisterSaasMicroV2Request
|
||||
*/
|
||||
public function setProductQualificationInfo($productQualificationInfo)
|
||||
{
|
||||
$this->productQualificationInfo = $productQualificationInfo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets functionService
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getFunctionService()
|
||||
{
|
||||
return $this->functionService;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets functionService
|
||||
*
|
||||
* @param string $functionService
|
||||
* @return RegisterSaasMicroV2Request
|
||||
*/
|
||||
public function setFunctionService($functionService)
|
||||
{
|
||||
$this->functionService = $functionService;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets functionServiceQualificationInfo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getFunctionServiceQualificationInfo()
|
||||
{
|
||||
return $this->functionServiceQualificationInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets functionServiceQualificationInfo
|
||||
*
|
||||
* @param string $functionServiceQualificationInfo
|
||||
* @return RegisterSaasMicroV2Request
|
||||
*/
|
||||
public function setFunctionServiceQualificationInfo($functionServiceQualificationInfo)
|
||||
{
|
||||
$this->functionServiceQualificationInfo = $functionServiceQualificationInfo;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'registerSaasMicroV2';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
113
lib/Service/Mer/Model/RegisterSaasMicroV2RequestMarshaller.php
Normal file
113
lib/Service/Mer/Model/RegisterSaasMicroV2RequestMarshaller.php
Normal file
@@ -0,0 +1,113 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Mer\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 RegisterSaasMicroV2RequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var RegisterSaasMicroV2RequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new RegisterSaasMicroV2RequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return RegisterSaasMicroV2RequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Mer';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v2.0/mer/register/saas/micro';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param RegisterSaasMicroV2Request $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->getBusinessRole() != null){
|
||||
$internalRequest->addParameter('businessRole', ObjectSerializer::sanitizeForSerialization($request->getBusinessRole(), 'string'));
|
||||
}
|
||||
if($request->getParentMerchantNo() != null){
|
||||
$internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string'));
|
||||
}
|
||||
if($request->getMerchantSubjectInfo() != null){
|
||||
$internalRequest->addParameter('merchantSubjectInfo', ObjectSerializer::sanitizeForSerialization($request->getMerchantSubjectInfo(), 'string'));
|
||||
}
|
||||
if($request->getBusinessAddressInfo() != null){
|
||||
$internalRequest->addParameter('businessAddressInfo', ObjectSerializer::sanitizeForSerialization($request->getBusinessAddressInfo(), 'string'));
|
||||
}
|
||||
if($request->getMerchantCorporationInfo() != null){
|
||||
$internalRequest->addParameter('merchantCorporationInfo', ObjectSerializer::sanitizeForSerialization($request->getMerchantCorporationInfo(), 'string'));
|
||||
}
|
||||
if($request->getAccountInfo() != null){
|
||||
$internalRequest->addParameter('accountInfo', ObjectSerializer::sanitizeForSerialization($request->getAccountInfo(), 'string'));
|
||||
}
|
||||
if($request->getNotifyUrl() != null){
|
||||
$internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string'));
|
||||
}
|
||||
if($request->getProductInfo() != null){
|
||||
$internalRequest->addParameter('productInfo', ObjectSerializer::sanitizeForSerialization($request->getProductInfo(), 'string'));
|
||||
}
|
||||
if($request->getProductQualificationInfo() != null){
|
||||
$internalRequest->addParameter('productQualificationInfo', ObjectSerializer::sanitizeForSerialization($request->getProductQualificationInfo(), 'string'));
|
||||
}
|
||||
if($request->getFunctionService() != null){
|
||||
$internalRequest->addParameter('functionService', ObjectSerializer::sanitizeForSerialization($request->getFunctionService(), 'string'));
|
||||
}
|
||||
if($request->getFunctionServiceQualificationInfo() != null){
|
||||
$internalRequest->addParameter('functionServiceQualificationInfo', ObjectSerializer::sanitizeForSerialization($request->getFunctionServiceQualificationInfo(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
RegisterSaasMicroV2RequestMarshaller::__init();
|
||||
34
lib/Service/Mer/Model/RegisterSaasMicroV2Response.php
Normal file
34
lib/Service/Mer/Model/RegisterSaasMicroV2Response.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Mer\Model;
|
||||
|
||||
|
||||
class RegisterSaasMicroV2Response extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var RegisterSaasMicroV2ContributeMicroMerchantNetInRespDtoResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Mer\Model\RegisterSaasMicroV2ContributeMicroMerchantNetInRespDtoResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param RegisterSaasMicroV2ContributeMicroMerchantNetInRespDtoResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return RegisterSaasMicroV2ContributeMicroMerchantNetInRespDtoResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Mer\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class RegisterSaasMicroV2ResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var RegisterSaasMicroV2ResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new RegisterSaasMicroV2ResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return RegisterSaasMicroV2ResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return RegisterSaasMicroV2Response
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new RegisterSaasMicroV2Response();
|
||||
}
|
||||
}
|
||||
|
||||
RegisterSaasMicroV2ResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,362 @@
|
||||
<?php
|
||||
/**
|
||||
* RegisterSaasWebIndexV2CreateNetInUrlRespDTOResult
|
||||
*
|
||||
* 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\Mer\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* RegisterSaasWebIndexV2CreateNetInUrlRespDTOResult Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class RegisterSaasWebIndexV2CreateNetInUrlRespDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'RegisterSaasWebIndexV2CreateNetInUrlRespDTOResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'code' => 'string',
|
||||
'msg' => 'string',
|
||||
'url' => 'string'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'code' => null,
|
||||
'msg' => null,
|
||||
'url' => 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',
|
||||
'url' => 'url'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'code' => 'setCode',
|
||||
'msg' => 'setMsg',
|
||||
'url' => 'setUrl'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'code' => 'getCode',
|
||||
'msg' => 'getMsg',
|
||||
'url' => 'getUrl'
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['url'] = isset($data['url']) ? $data['url'] : 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 url
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getUrl()
|
||||
{
|
||||
return $this->container['url'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets url
|
||||
*
|
||||
* @param string $url 入网页面首页地址
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setUrl($url)
|
||||
{
|
||||
$this->container['url'] = $url;
|
||||
|
||||
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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
267
lib/Service/Mer/Model/RegisterSaasWebIndexV2Request.php
Normal file
267
lib/Service/Mer/Model/RegisterSaasWebIndexV2Request.php
Normal file
@@ -0,0 +1,267 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Mer\Model;
|
||||
|
||||
|
||||
class RegisterSaasWebIndexV2Request extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $requestNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $signType;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $notifyUrl;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $returnUrl;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $productTemplateNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantBaseInfo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $corporationInfo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contactInfo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $businessAddressInfo;
|
||||
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->parentMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
*
|
||||
* @param string $parentMerchantNo
|
||||
* @return RegisterSaasWebIndexV2Request
|
||||
*/
|
||||
public function setParentMerchantNo($parentMerchantNo)
|
||||
{
|
||||
$this->parentMerchantNo = $parentMerchantNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets requestNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRequestNo()
|
||||
{
|
||||
return $this->requestNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets requestNo
|
||||
*
|
||||
* @param string $requestNo
|
||||
* @return RegisterSaasWebIndexV2Request
|
||||
*/
|
||||
public function setRequestNo($requestNo)
|
||||
{
|
||||
$this->requestNo = $requestNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets signType
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getSignType()
|
||||
{
|
||||
return $this->signType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets signType
|
||||
*
|
||||
* @param string $signType
|
||||
* @return RegisterSaasWebIndexV2Request
|
||||
*/
|
||||
public function setSignType($signType)
|
||||
{
|
||||
$this->signType = $signType;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets notifyUrl
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getNotifyUrl()
|
||||
{
|
||||
return $this->notifyUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets notifyUrl
|
||||
*
|
||||
* @param string $notifyUrl
|
||||
* @return RegisterSaasWebIndexV2Request
|
||||
*/
|
||||
public function setNotifyUrl($notifyUrl)
|
||||
{
|
||||
$this->notifyUrl = $notifyUrl;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets returnUrl
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getReturnUrl()
|
||||
{
|
||||
return $this->returnUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets returnUrl
|
||||
*
|
||||
* @param string $returnUrl
|
||||
* @return RegisterSaasWebIndexV2Request
|
||||
*/
|
||||
public function setReturnUrl($returnUrl)
|
||||
{
|
||||
$this->returnUrl = $returnUrl;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets productTemplateNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getProductTemplateNo()
|
||||
{
|
||||
return $this->productTemplateNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets productTemplateNo
|
||||
*
|
||||
* @param string $productTemplateNo
|
||||
* @return RegisterSaasWebIndexV2Request
|
||||
*/
|
||||
public function setProductTemplateNo($productTemplateNo)
|
||||
{
|
||||
$this->productTemplateNo = $productTemplateNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets merchantBaseInfo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantBaseInfo()
|
||||
{
|
||||
return $this->merchantBaseInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantBaseInfo
|
||||
*
|
||||
* @param string $merchantBaseInfo
|
||||
* @return RegisterSaasWebIndexV2Request
|
||||
*/
|
||||
public function setMerchantBaseInfo($merchantBaseInfo)
|
||||
{
|
||||
$this->merchantBaseInfo = $merchantBaseInfo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets corporationInfo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCorporationInfo()
|
||||
{
|
||||
return $this->corporationInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets corporationInfo
|
||||
*
|
||||
* @param string $corporationInfo
|
||||
* @return RegisterSaasWebIndexV2Request
|
||||
*/
|
||||
public function setCorporationInfo($corporationInfo)
|
||||
{
|
||||
$this->corporationInfo = $corporationInfo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets contactInfo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getContactInfo()
|
||||
{
|
||||
return $this->contactInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets contactInfo
|
||||
*
|
||||
* @param string $contactInfo
|
||||
* @return RegisterSaasWebIndexV2Request
|
||||
*/
|
||||
public function setContactInfo($contactInfo)
|
||||
{
|
||||
$this->contactInfo = $contactInfo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets businessAddressInfo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getBusinessAddressInfo()
|
||||
{
|
||||
return $this->businessAddressInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets businessAddressInfo
|
||||
*
|
||||
* @param string $businessAddressInfo
|
||||
* @return RegisterSaasWebIndexV2Request
|
||||
*/
|
||||
public function setBusinessAddressInfo($businessAddressInfo)
|
||||
{
|
||||
$this->businessAddressInfo = $businessAddressInfo;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'registerSaasWebIndexV2';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,107 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Mer\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 RegisterSaasWebIndexV2RequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var RegisterSaasWebIndexV2RequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new RegisterSaasWebIndexV2RequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return RegisterSaasWebIndexV2RequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Mer';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v2.0/mer/register/saas/web/index';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param RegisterSaasWebIndexV2Request $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->getParentMerchantNo() != null){
|
||||
$internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string'));
|
||||
}
|
||||
if($request->getRequestNo() != null){
|
||||
$internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string'));
|
||||
}
|
||||
if($request->getSignType() != null){
|
||||
$internalRequest->addParameter('signType', ObjectSerializer::sanitizeForSerialization($request->getSignType(), 'string'));
|
||||
}
|
||||
if($request->getNotifyUrl() != null){
|
||||
$internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string', 'url'));
|
||||
}
|
||||
if($request->getReturnUrl() != null){
|
||||
$internalRequest->addParameter('returnUrl', ObjectSerializer::sanitizeForSerialization($request->getReturnUrl(), 'string', 'url'));
|
||||
}
|
||||
if($request->getProductTemplateNo() != null){
|
||||
$internalRequest->addParameter('productTemplateNo', ObjectSerializer::sanitizeForSerialization($request->getProductTemplateNo(), 'string'));
|
||||
}
|
||||
if($request->getMerchantBaseInfo() != null){
|
||||
$internalRequest->addParameter('merchantBaseInfo', ObjectSerializer::sanitizeForSerialization($request->getMerchantBaseInfo(), 'string'));
|
||||
}
|
||||
if($request->getCorporationInfo() != null){
|
||||
$internalRequest->addParameter('corporationInfo', ObjectSerializer::sanitizeForSerialization($request->getCorporationInfo(), 'string'));
|
||||
}
|
||||
if($request->getContactInfo() != null){
|
||||
$internalRequest->addParameter('contactInfo', ObjectSerializer::sanitizeForSerialization($request->getContactInfo(), 'string'));
|
||||
}
|
||||
if($request->getBusinessAddressInfo() != null){
|
||||
$internalRequest->addParameter('businessAddressInfo', ObjectSerializer::sanitizeForSerialization($request->getBusinessAddressInfo(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
RegisterSaasWebIndexV2RequestMarshaller::__init();
|
||||
34
lib/Service/Mer/Model/RegisterSaasWebIndexV2Response.php
Normal file
34
lib/Service/Mer/Model/RegisterSaasWebIndexV2Response.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Mer\Model;
|
||||
|
||||
|
||||
class RegisterSaasWebIndexV2Response extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var RegisterSaasWebIndexV2CreateNetInUrlRespDTOResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Mer\Model\RegisterSaasWebIndexV2CreateNetInUrlRespDTOResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param RegisterSaasWebIndexV2CreateNetInUrlRespDTOResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return RegisterSaasWebIndexV2CreateNetInUrlRespDTOResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Mer\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class RegisterSaasWebIndexV2ResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var RegisterSaasWebIndexV2ResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new RegisterSaasWebIndexV2ResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return RegisterSaasWebIndexV2ResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return RegisterSaasWebIndexV2Response
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new RegisterSaasWebIndexV2Response();
|
||||
}
|
||||
}
|
||||
|
||||
RegisterSaasWebIndexV2ResponseUnMarshaller::__init();
|
||||
Reference in New Issue
Block a user