增加聚合支付托管下单
This commit is contained in:
@@ -18,6 +18,7 @@ class AggpayClient
|
||||
|
||||
/**
|
||||
* AggpayClient constructor.
|
||||
*
|
||||
* @param ClientParams $clientParams
|
||||
*/
|
||||
function __construct(ClientParams $clientParams)
|
||||
@@ -57,6 +58,22 @@ class AggpayClient
|
||||
return $this->clientHandler->execute($clientExecutionParams);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Model\TutelagePrePayRequest $request
|
||||
* @return Model\TutelagePrePayResponse
|
||||
* @throws YopClientException
|
||||
*/
|
||||
public function tutelagePrePay(Model\TutelagePrePayRequest $request)
|
||||
{
|
||||
if ($request == null) {
|
||||
throw new YopClientException("request is required.");
|
||||
}
|
||||
$clientExecutionParams = new ClientExecutionParams($request,
|
||||
Model\TutelagePrePayRequestMarshaller::getInstance(),
|
||||
Model\TutelagePrePayResponseUnMarshaller::getInstance());
|
||||
return $this->clientHandler->execute($clientExecutionParams);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Model\ViolationWechatChannelRequest $request
|
||||
* @return Model\ViolationWechatChannelResponse
|
||||
@@ -116,7 +133,6 @@ class AggpayClient
|
||||
$clientExecutionParams = new ClientExecutionParams($request,
|
||||
Model\WechatConfigAdd0RequestMarshaller::getInstance(),
|
||||
Model\WechatConfigAdd0ResponseUnMarshaller::getInstance());
|
||||
|
||||
return $this->clientHandler->execute($clientExecutionParams);
|
||||
}
|
||||
|
||||
|
||||
@@ -27,6 +27,8 @@ class AggpayClientBuilder
|
||||
AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256'));
|
||||
self::$authorizationReqRegistry->register('prePay',
|
||||
AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256'));
|
||||
self::$authorizationReqRegistry->register('tutelagePrePay',
|
||||
AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256'));
|
||||
self::$authorizationReqRegistry->register('violationWechatChannel',
|
||||
AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256'));
|
||||
self::$authorizationReqRegistry->register('wechatConfigAdd',
|
||||
@@ -46,6 +48,7 @@ class AggpayClientBuilder
|
||||
|
||||
/**
|
||||
* AggpayClientBuilder constructor.
|
||||
*
|
||||
* @param ClientParams $clientParams
|
||||
*/
|
||||
public function __construct(ClientParams $clientParams)
|
||||
|
||||
42
lib/Service/Aggpay/Model/ComplaintWechatDetailsRequest.php
Normal file
42
lib/Service/Aggpay/Model/ComplaintWechatDetailsRequest.php
Normal file
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
|
||||
class ComplaintWechatDetailsRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $complaintNo;
|
||||
|
||||
/**
|
||||
* Gets complaintNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getComplaintNo()
|
||||
{
|
||||
return $this->complaintNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets complaintNo
|
||||
*
|
||||
* @param string $complaintNo
|
||||
* @return ComplaintWechatDetailsRequest
|
||||
*/
|
||||
public function setComplaintNo($complaintNo)
|
||||
{
|
||||
$this->complaintNo = $complaintNo;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'complaintWechatDetails';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\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 ComplaintWechatDetailsRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var ComplaintWechatDetailsRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new ComplaintWechatDetailsRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ComplaintWechatDetailsRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Aggpay';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'GET';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/aggpay/complaint/wechat/details';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param ComplaintWechatDetailsRequest $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->getComplaintNo() != null){
|
||||
$internalRequest->addParameter('complaintNo', ObjectSerializer::sanitizeForSerialization($request->getComplaintNo(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
ComplaintWechatDetailsRequestMarshaller::__init();
|
||||
34
lib/Service/Aggpay/Model/ComplaintWechatDetailsResponse.php
Normal file
34
lib/Service/Aggpay/Model/ComplaintWechatDetailsResponse.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
|
||||
class ComplaintWechatDetailsResponse extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var ComplaintWechatDetailsWechatComplaintInfoFlatResponseDTOResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Aggpay\Model\ComplaintWechatDetailsWechatComplaintInfoFlatResponseDTOResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ComplaintWechatDetailsWechatComplaintInfoFlatResponseDTOResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ComplaintWechatDetailsWechatComplaintInfoFlatResponseDTOResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class ComplaintWechatDetailsResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var ComplaintWechatDetailsResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new ComplaintWechatDetailsResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ComplaintWechatDetailsResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ComplaintWechatDetailsResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new ComplaintWechatDetailsResponse();
|
||||
}
|
||||
}
|
||||
|
||||
ComplaintWechatDetailsResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,842 @@
|
||||
<?php
|
||||
/**
|
||||
* ComplaintWechatDetailsWechatComplaintInfoFlatResponseDTOResult
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 聚合支付
|
||||
*
|
||||
* <p>提供聚合支付相关服务(支付下单、公众号配置等功能</p>
|
||||
*
|
||||
* OpenAPI spec version: 1.0
|
||||
*
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 3.0.13
|
||||
*/
|
||||
|
||||
/**
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* ComplaintWechatDetailsWechatComplaintInfoFlatResponseDTOResult Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class ComplaintWechatDetailsWechatComplaintInfoFlatResponseDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'ComplaintWechatDetailsWechatComplaintInfoFlatResponseDTOResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'code' => 'string',
|
||||
'message' => 'string',
|
||||
'complaintNo' => 'string',
|
||||
'complaintTime' => 'string',
|
||||
'complaintDetail' => 'string',
|
||||
'complaintState' => 'string',
|
||||
'complaintOpenId' => 'string',
|
||||
'complaintContact' => 'string',
|
||||
'complaintCount' => 'int',
|
||||
'wechatMerchantNo' => 'string',
|
||||
'merchantNo' => 'string',
|
||||
'isResponse' => 'bool',
|
||||
'wechatOrderNo' => 'string',
|
||||
'merchantOrderNo' => 'string',
|
||||
'amount' => 'string',
|
||||
'bankOrderNo' => 'string',
|
||||
'isFullRefunded' => 'bool',
|
||||
'tradeTime' => 'string',
|
||||
'complaintMediaDTOList' => 'string'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'code' => null,
|
||||
'message' => null,
|
||||
'complaintNo' => null,
|
||||
'complaintTime' => null,
|
||||
'complaintDetail' => null,
|
||||
'complaintState' => null,
|
||||
'complaintOpenId' => null,
|
||||
'complaintContact' => null,
|
||||
'complaintCount' => 'int32',
|
||||
'wechatMerchantNo' => null,
|
||||
'merchantNo' => null,
|
||||
'isResponse' => null,
|
||||
'wechatOrderNo' => null,
|
||||
'merchantOrderNo' => null,
|
||||
'amount' => null,
|
||||
'bankOrderNo' => null,
|
||||
'isFullRefunded' => null,
|
||||
'tradeTime' => null,
|
||||
'complaintMediaDTOList' => null
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerTypes()
|
||||
{
|
||||
return self::$swaggerTypes;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerFormats()
|
||||
{
|
||||
return self::$swaggerFormats;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $attributeMap = [
|
||||
'code' => 'code',
|
||||
'message' => 'message',
|
||||
'complaintNo' => 'complaintNo',
|
||||
'complaintTime' => 'complaintTime',
|
||||
'complaintDetail' => 'complaintDetail',
|
||||
'complaintState' => 'complaintState',
|
||||
'complaintOpenId' => 'complaintOpenId',
|
||||
'complaintContact' => 'complaintContact',
|
||||
'complaintCount' => 'complaintCount',
|
||||
'wechatMerchantNo' => 'wechatMerchantNo',
|
||||
'merchantNo' => 'merchantNo',
|
||||
'isResponse' => 'isResponse',
|
||||
'wechatOrderNo' => 'wechatOrderNo',
|
||||
'merchantOrderNo' => 'merchantOrderNo',
|
||||
'amount' => 'amount',
|
||||
'bankOrderNo' => 'bankOrderNo',
|
||||
'isFullRefunded' => 'isFullRefunded',
|
||||
'tradeTime' => 'tradeTime',
|
||||
'complaintMediaDTOList' => 'complaintMediaDTOList'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'code' => 'setCode',
|
||||
'message' => 'setMessage',
|
||||
'complaintNo' => 'setComplaintNo',
|
||||
'complaintTime' => 'setComplaintTime',
|
||||
'complaintDetail' => 'setComplaintDetail',
|
||||
'complaintState' => 'setComplaintState',
|
||||
'complaintOpenId' => 'setComplaintOpenId',
|
||||
'complaintContact' => 'setComplaintContact',
|
||||
'complaintCount' => 'setComplaintCount',
|
||||
'wechatMerchantNo' => 'setWechatMerchantNo',
|
||||
'merchantNo' => 'setMerchantNo',
|
||||
'isResponse' => 'setIsResponse',
|
||||
'wechatOrderNo' => 'setWechatOrderNo',
|
||||
'merchantOrderNo' => 'setMerchantOrderNo',
|
||||
'amount' => 'setAmount',
|
||||
'bankOrderNo' => 'setBankOrderNo',
|
||||
'isFullRefunded' => 'setIsFullRefunded',
|
||||
'tradeTime' => 'setTradeTime',
|
||||
'complaintMediaDTOList' => 'setComplaintMediaDTOList'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'code' => 'getCode',
|
||||
'message' => 'getMessage',
|
||||
'complaintNo' => 'getComplaintNo',
|
||||
'complaintTime' => 'getComplaintTime',
|
||||
'complaintDetail' => 'getComplaintDetail',
|
||||
'complaintState' => 'getComplaintState',
|
||||
'complaintOpenId' => 'getComplaintOpenId',
|
||||
'complaintContact' => 'getComplaintContact',
|
||||
'complaintCount' => 'getComplaintCount',
|
||||
'wechatMerchantNo' => 'getWechatMerchantNo',
|
||||
'merchantNo' => 'getMerchantNo',
|
||||
'isResponse' => 'getIsResponse',
|
||||
'wechatOrderNo' => 'getWechatOrderNo',
|
||||
'merchantOrderNo' => 'getMerchantOrderNo',
|
||||
'amount' => 'getAmount',
|
||||
'bankOrderNo' => 'getBankOrderNo',
|
||||
'isFullRefunded' => 'getIsFullRefunded',
|
||||
'tradeTime' => 'getTradeTime',
|
||||
'complaintMediaDTOList' => 'getComplaintMediaDTOList'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function attributeMap()
|
||||
{
|
||||
return self::$attributeMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function setters()
|
||||
{
|
||||
return self::$setters;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function getters()
|
||||
{
|
||||
return self::$getters;
|
||||
}
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getModelName()
|
||||
{
|
||||
return self::$swaggerModelName;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Associative array for storing property values
|
||||
*
|
||||
* @var mixed[]
|
||||
*/
|
||||
protected $container = [];
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param mixed[] $data Associated array of property values
|
||||
* initializing the model
|
||||
*/
|
||||
public function __construct(array $data = null)
|
||||
{
|
||||
$this->container['code'] = isset($data['code']) ? $data['code'] : null;
|
||||
$this->container['message'] = isset($data['message']) ? $data['message'] : null;
|
||||
$this->container['complaintNo'] = isset($data['complaintNo']) ? $data['complaintNo'] : null;
|
||||
$this->container['complaintTime'] = isset($data['complaintTime']) ? $data['complaintTime'] : null;
|
||||
$this->container['complaintDetail'] = isset($data['complaintDetail']) ? $data['complaintDetail'] : null;
|
||||
$this->container['complaintState'] = isset($data['complaintState']) ? $data['complaintState'] : null;
|
||||
$this->container['complaintOpenId'] = isset($data['complaintOpenId']) ? $data['complaintOpenId'] : null;
|
||||
$this->container['complaintContact'] = isset($data['complaintContact']) ? $data['complaintContact'] : null;
|
||||
$this->container['complaintCount'] = isset($data['complaintCount']) ? $data['complaintCount'] : null;
|
||||
$this->container['wechatMerchantNo'] = isset($data['wechatMerchantNo']) ? $data['wechatMerchantNo'] : null;
|
||||
$this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null;
|
||||
$this->container['isResponse'] = isset($data['isResponse']) ? $data['isResponse'] : null;
|
||||
$this->container['wechatOrderNo'] = isset($data['wechatOrderNo']) ? $data['wechatOrderNo'] : null;
|
||||
$this->container['merchantOrderNo'] = isset($data['merchantOrderNo']) ? $data['merchantOrderNo'] : null;
|
||||
$this->container['amount'] = isset($data['amount']) ? $data['amount'] : null;
|
||||
$this->container['bankOrderNo'] = isset($data['bankOrderNo']) ? $data['bankOrderNo'] : null;
|
||||
$this->container['isFullRefunded'] = isset($data['isFullRefunded']) ? $data['isFullRefunded'] : null;
|
||||
$this->container['tradeTime'] = isset($data['tradeTime']) ? $data['tradeTime'] : null;
|
||||
$this->container['complaintMediaDTOList'] = isset($data['complaintMediaDTOList']) ? $data['complaintMediaDTOList'] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Show all the invalid properties with reasons.
|
||||
*
|
||||
* @return array invalid properties with reasons
|
||||
*/
|
||||
public function listInvalidProperties()
|
||||
{
|
||||
$invalidProperties = [];
|
||||
|
||||
return $invalidProperties;
|
||||
}
|
||||
|
||||
/**
|
||||
* Validate all the properties in the model
|
||||
* return true if all passed
|
||||
*
|
||||
* @return bool True if all properties are valid
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets code
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCode()
|
||||
{
|
||||
return $this->container['code'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets code
|
||||
*
|
||||
* @param string $code 返回码
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setCode($code)
|
||||
{
|
||||
$this->container['code'] = $code;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets message
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMessage()
|
||||
{
|
||||
return $this->container['message'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets message
|
||||
*
|
||||
* @param string $message 返回消息
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setMessage($message)
|
||||
{
|
||||
$this->container['message'] = $message;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets complaintNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getComplaintNo()
|
||||
{
|
||||
return $this->container['complaintNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets complaintNo
|
||||
*
|
||||
* @param string $complaintNo 投诉单号
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setComplaintNo($complaintNo)
|
||||
{
|
||||
$this->container['complaintNo'] = $complaintNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets complaintTime
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getComplaintTime()
|
||||
{
|
||||
return $this->container['complaintTime'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets complaintTime
|
||||
*
|
||||
* @param string $complaintTime 投诉时间
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setComplaintTime($complaintTime)
|
||||
{
|
||||
$this->container['complaintTime'] = $complaintTime;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets complaintDetail
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getComplaintDetail()
|
||||
{
|
||||
return $this->container['complaintDetail'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets complaintDetail
|
||||
*
|
||||
* @param string $complaintDetail 投诉详情
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setComplaintDetail($complaintDetail)
|
||||
{
|
||||
$this->container['complaintDetail'] = $complaintDetail;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets complaintState
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getComplaintState()
|
||||
{
|
||||
return $this->container['complaintState'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets complaintState
|
||||
*
|
||||
* @param string $complaintState 投诉单状态
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setComplaintState($complaintState)
|
||||
{
|
||||
$this->container['complaintState'] = $complaintState;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets complaintOpenId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getComplaintOpenId()
|
||||
{
|
||||
return $this->container['complaintOpenId'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets complaintOpenId
|
||||
*
|
||||
* @param string $complaintOpenId 投诉人openid
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setComplaintOpenId($complaintOpenId)
|
||||
{
|
||||
$this->container['complaintOpenId'] = $complaintOpenId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets complaintContact
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getComplaintContact()
|
||||
{
|
||||
return $this->container['complaintContact'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets complaintContact
|
||||
*
|
||||
* @param string $complaintContact 投诉人联系方式
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setComplaintContact($complaintContact)
|
||||
{
|
||||
$this->container['complaintContact'] = $complaintContact;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets complaintCount
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getComplaintCount()
|
||||
{
|
||||
return $this->container['complaintCount'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets complaintCount
|
||||
*
|
||||
* @param int $complaintCount 用户投诉次数
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setComplaintCount($complaintCount)
|
||||
{
|
||||
$this->container['complaintCount'] = $complaintCount;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets wechatMerchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getWechatMerchantNo()
|
||||
{
|
||||
return $this->container['wechatMerchantNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets wechatMerchantNo
|
||||
*
|
||||
* @param string $wechatMerchantNo 微信商户号
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setWechatMerchantNo($wechatMerchantNo)
|
||||
{
|
||||
$this->container['wechatMerchantNo'] = $wechatMerchantNo;
|
||||
|
||||
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 isResponse
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function getIsResponse()
|
||||
{
|
||||
return $this->container['isResponse'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets isResponse
|
||||
*
|
||||
* @param bool $isResponse 是否有待回复留言
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setIsResponse($isResponse)
|
||||
{
|
||||
$this->container['isResponse'] = $isResponse;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets wechatOrderNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getWechatOrderNo()
|
||||
{
|
||||
return $this->container['wechatOrderNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets wechatOrderNo
|
||||
*
|
||||
* @param string $wechatOrderNo 微信订单号
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setWechatOrderNo($wechatOrderNo)
|
||||
{
|
||||
$this->container['wechatOrderNo'] = $wechatOrderNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets merchantOrderNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantOrderNo()
|
||||
{
|
||||
return $this->container['merchantOrderNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantOrderNo
|
||||
*
|
||||
* @param string $merchantOrderNo 易宝商户订单号
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setMerchantOrderNo($merchantOrderNo)
|
||||
{
|
||||
$this->container['merchantOrderNo'] = $merchantOrderNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets amount
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getAmount()
|
||||
{
|
||||
return $this->container['amount'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets amount
|
||||
*
|
||||
* @param string $amount 订单金额
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setAmount($amount)
|
||||
{
|
||||
$this->container['amount'] = $amount;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets bankOrderNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getBankOrderNo()
|
||||
{
|
||||
return $this->container['bankOrderNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bankOrderNo
|
||||
*
|
||||
* @param string $bankOrderNo 银行订单号
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setBankOrderNo($bankOrderNo)
|
||||
{
|
||||
$this->container['bankOrderNo'] = $bankOrderNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets isFullRefunded
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function getIsFullRefunded()
|
||||
{
|
||||
return $this->container['isFullRefunded'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets isFullRefunded
|
||||
*
|
||||
* @param bool $isFullRefunded 投诉单是否已全额退款
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setIsFullRefunded($isFullRefunded)
|
||||
{
|
||||
$this->container['isFullRefunded'] = $isFullRefunded;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets tradeTime
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getTradeTime()
|
||||
{
|
||||
return $this->container['tradeTime'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets tradeTime
|
||||
*
|
||||
* @param string $tradeTime 交易时间
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setTradeTime($tradeTime)
|
||||
{
|
||||
$this->container['tradeTime'] = $tradeTime;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets complaintMediaDTOList
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getComplaintMediaDTOList()
|
||||
{
|
||||
return $this->container['complaintMediaDTOList'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets complaintMediaDTOList
|
||||
*
|
||||
* @param string $complaintMediaDTOList 用户上传的投诉相关资料
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setComplaintMediaDTOList($complaintMediaDTOList)
|
||||
{
|
||||
$this->container['complaintMediaDTOList'] = $complaintMediaDTOList;
|
||||
|
||||
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,92 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
|
||||
class ComplaintWechatDownloadPicRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $complaintNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $fileType;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $pictureUrl;
|
||||
|
||||
/**
|
||||
* Gets complaintNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getComplaintNo()
|
||||
{
|
||||
return $this->complaintNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets complaintNo
|
||||
*
|
||||
* @param string $complaintNo
|
||||
* @return ComplaintWechatDownloadPicRequest
|
||||
*/
|
||||
public function setComplaintNo($complaintNo)
|
||||
{
|
||||
$this->complaintNo = $complaintNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets fileType
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getFileType()
|
||||
{
|
||||
return $this->fileType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets fileType
|
||||
*
|
||||
* @param string $fileType
|
||||
* @return ComplaintWechatDownloadPicRequest
|
||||
*/
|
||||
public function setFileType($fileType)
|
||||
{
|
||||
$this->fileType = $fileType;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets pictureUrl
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getPictureUrl()
|
||||
{
|
||||
return $this->pictureUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets pictureUrl
|
||||
*
|
||||
* @param string $pictureUrl
|
||||
* @return ComplaintWechatDownloadPicRequest
|
||||
*/
|
||||
public function setPictureUrl($pictureUrl)
|
||||
{
|
||||
$this->pictureUrl = $pictureUrl;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'complaintWechatDownloadPic';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\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 ComplaintWechatDownloadPicRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var ComplaintWechatDownloadPicRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new ComplaintWechatDownloadPicRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ComplaintWechatDownloadPicRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Aggpay';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'GET';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/yos/v1.0/aggpay/complaint/wechat/download-pic';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param ComplaintWechatDownloadPicRequest $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->getComplaintNo() != null){
|
||||
$internalRequest->addParameter('complaintNo', ObjectSerializer::sanitizeForSerialization($request->getComplaintNo(), 'string'));
|
||||
}
|
||||
if($request->getFileType() != null){
|
||||
$internalRequest->addParameter('fileType', ObjectSerializer::sanitizeForSerialization($request->getFileType(), 'string'));
|
||||
}
|
||||
if($request->getPictureUrl() != null){
|
||||
$internalRequest->addParameter('pictureUrl', ObjectSerializer::sanitizeForSerialization($request->getPictureUrl(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
ComplaintWechatDownloadPicRequestMarshaller::__init();
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
|
||||
class ComplaintWechatDownloadPicResponse extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var ComplaintWechatDownloadPicWechatComplaintDownloadPicResponseDTOResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Aggpay\Model\ComplaintWechatDownloadPicWechatComplaintDownloadPicResponseDTOResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ComplaintWechatDownloadPicWechatComplaintDownloadPicResponseDTOResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ComplaintWechatDownloadPicWechatComplaintDownloadPicResponseDTOResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class ComplaintWechatDownloadPicResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var ComplaintWechatDownloadPicResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new ComplaintWechatDownloadPicResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ComplaintWechatDownloadPicResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ComplaintWechatDownloadPicResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new ComplaintWechatDownloadPicResponse();
|
||||
}
|
||||
}
|
||||
|
||||
ComplaintWechatDownloadPicResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,392 @@
|
||||
<?php
|
||||
/**
|
||||
* ComplaintWechatDownloadPicWechatComplaintDownloadPicResponseDTOResult
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 聚合支付
|
||||
*
|
||||
* <p>提供聚合支付相关服务(支付下单、公众号配置等功能</p>
|
||||
*
|
||||
* OpenAPI spec version: 1.0
|
||||
*
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 3.0.13
|
||||
*/
|
||||
|
||||
/**
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* ComplaintWechatDownloadPicWechatComplaintDownloadPicResponseDTOResult Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class ComplaintWechatDownloadPicWechatComplaintDownloadPicResponseDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'ComplaintWechatDownloadPicWechatComplaintDownloadPicResponseDTOResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'code' => 'string',
|
||||
'message' => 'string',
|
||||
'picture' => 'string',
|
||||
'pictureType' => 'string'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'code' => null,
|
||||
'message' => null,
|
||||
'picture' => null,
|
||||
'pictureType' => null
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerTypes()
|
||||
{
|
||||
return self::$swaggerTypes;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerFormats()
|
||||
{
|
||||
return self::$swaggerFormats;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $attributeMap = [
|
||||
'code' => 'code',
|
||||
'message' => 'message',
|
||||
'picture' => 'picture',
|
||||
'pictureType' => 'pictureType'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'code' => 'setCode',
|
||||
'message' => 'setMessage',
|
||||
'picture' => 'setPicture',
|
||||
'pictureType' => 'setPictureType'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'code' => 'getCode',
|
||||
'message' => 'getMessage',
|
||||
'picture' => 'getPicture',
|
||||
'pictureType' => 'getPictureType'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function attributeMap()
|
||||
{
|
||||
return self::$attributeMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function setters()
|
||||
{
|
||||
return self::$setters;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function getters()
|
||||
{
|
||||
return self::$getters;
|
||||
}
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getModelName()
|
||||
{
|
||||
return self::$swaggerModelName;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Associative array for storing property values
|
||||
*
|
||||
* @var mixed[]
|
||||
*/
|
||||
protected $container = [];
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param mixed[] $data Associated array of property values
|
||||
* initializing the model
|
||||
*/
|
||||
public function __construct(array $data = null)
|
||||
{
|
||||
$this->container['code'] = isset($data['code']) ? $data['code'] : null;
|
||||
$this->container['message'] = isset($data['message']) ? $data['message'] : null;
|
||||
$this->container['picture'] = isset($data['picture']) ? $data['picture'] : null;
|
||||
$this->container['pictureType'] = isset($data['pictureType']) ? $data['pictureType'] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Show all the invalid properties with reasons.
|
||||
*
|
||||
* @return array invalid properties with reasons
|
||||
*/
|
||||
public function listInvalidProperties()
|
||||
{
|
||||
$invalidProperties = [];
|
||||
|
||||
return $invalidProperties;
|
||||
}
|
||||
|
||||
/**
|
||||
* Validate all the properties in the model
|
||||
* return true if all passed
|
||||
*
|
||||
* @return bool True if all properties are valid
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets code
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCode()
|
||||
{
|
||||
return $this->container['code'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets code
|
||||
*
|
||||
* @param string $code 返回码
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setCode($code)
|
||||
{
|
||||
$this->container['code'] = $code;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets message
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMessage()
|
||||
{
|
||||
return $this->container['message'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets message
|
||||
*
|
||||
* @param string $message 返回信息
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setMessage($message)
|
||||
{
|
||||
$this->container['message'] = $message;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets picture
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getPicture()
|
||||
{
|
||||
return $this->container['picture'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets picture
|
||||
*
|
||||
* @param string $picture 图片
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setPicture($picture)
|
||||
{
|
||||
$this->container['picture'] = $picture;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets pictureType
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getPictureType()
|
||||
{
|
||||
return $this->container['pictureType'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets pictureType
|
||||
*
|
||||
* @param string $pictureType 图片类型
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setPictureType($pictureType)
|
||||
{
|
||||
$this->container['pictureType'] = $pictureType;
|
||||
|
||||
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,332 @@
|
||||
<?php
|
||||
/**
|
||||
* ComplaintWechatFeedbackBaseResponseDTOResult
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 聚合支付
|
||||
*
|
||||
* <p>提供聚合支付相关服务(支付下单、公众号配置等功能</p>
|
||||
*
|
||||
* OpenAPI spec version: 1.0
|
||||
*
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 3.0.13
|
||||
*/
|
||||
|
||||
/**
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* ComplaintWechatFeedbackBaseResponseDTOResult Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class ComplaintWechatFeedbackBaseResponseDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'ComplaintWechatFeedbackBaseResponseDTOResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'code' => 'string',
|
||||
'message' => 'string'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'code' => null,
|
||||
'message' => null
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerTypes()
|
||||
{
|
||||
return self::$swaggerTypes;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerFormats()
|
||||
{
|
||||
return self::$swaggerFormats;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $attributeMap = [
|
||||
'code' => 'code',
|
||||
'message' => 'message'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'code' => 'setCode',
|
||||
'message' => 'setMessage'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'code' => 'getCode',
|
||||
'message' => 'getMessage'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function attributeMap()
|
||||
{
|
||||
return self::$attributeMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function setters()
|
||||
{
|
||||
return self::$setters;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function getters()
|
||||
{
|
||||
return self::$getters;
|
||||
}
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getModelName()
|
||||
{
|
||||
return self::$swaggerModelName;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Associative array for storing property values
|
||||
*
|
||||
* @var mixed[]
|
||||
*/
|
||||
protected $container = [];
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param mixed[] $data Associated array of property values
|
||||
* initializing the model
|
||||
*/
|
||||
public function __construct(array $data = null)
|
||||
{
|
||||
$this->container['code'] = isset($data['code']) ? $data['code'] : null;
|
||||
$this->container['message'] = isset($data['message']) ? $data['message'] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Show all the invalid properties with reasons.
|
||||
*
|
||||
* @return array invalid properties with reasons
|
||||
*/
|
||||
public function listInvalidProperties()
|
||||
{
|
||||
$invalidProperties = [];
|
||||
|
||||
return $invalidProperties;
|
||||
}
|
||||
|
||||
/**
|
||||
* Validate all the properties in the model
|
||||
* return true if all passed
|
||||
*
|
||||
* @return bool True if all properties are valid
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets code
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCode()
|
||||
{
|
||||
return $this->container['code'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets code
|
||||
*
|
||||
* @param string $code 返回码
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setCode($code)
|
||||
{
|
||||
$this->container['code'] = $code;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets message
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMessage()
|
||||
{
|
||||
return $this->container['message'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets message
|
||||
*
|
||||
* @param string $message 返回信息
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setMessage($message)
|
||||
{
|
||||
$this->container['message'] = $message;
|
||||
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Returns true if offset exists. False otherwise.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function offsetExists($offset)
|
||||
{
|
||||
return isset($this->container[$offset]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function offsetGet($offset)
|
||||
{
|
||||
return isset($this->container[$offset]) ? $this->container[$offset] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets value based on offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
* @param mixed $value Value to be set
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function offsetSet($offset, $value)
|
||||
{
|
||||
if (is_null($offset)) {
|
||||
$this->container[] = $value;
|
||||
} else {
|
||||
$this->container[$offset] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Unsets offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function offsetUnset($offset)
|
||||
{
|
||||
unset($this->container[$offset]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the string presentation of the object
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
|
||||
return json_encode(
|
||||
ObjectSerializer::sanitizeForSerialization($this),
|
||||
JSON_PRETTY_PRINT
|
||||
);
|
||||
}
|
||||
|
||||
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
117
lib/Service/Aggpay/Model/ComplaintWechatFeedbackRequest.php
Normal file
117
lib/Service/Aggpay/Model/ComplaintWechatFeedbackRequest.php
Normal file
@@ -0,0 +1,117 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
|
||||
class ComplaintWechatFeedbackRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $complaintNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $feedbackContent;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $imageList;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $feedbackType;
|
||||
|
||||
/**
|
||||
* Gets complaintNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getComplaintNo()
|
||||
{
|
||||
return $this->complaintNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets complaintNo
|
||||
*
|
||||
* @param string $complaintNo
|
||||
* @return ComplaintWechatFeedbackRequest
|
||||
*/
|
||||
public function setComplaintNo($complaintNo)
|
||||
{
|
||||
$this->complaintNo = $complaintNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets feedbackContent
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getFeedbackContent()
|
||||
{
|
||||
return $this->feedbackContent;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets feedbackContent
|
||||
*
|
||||
* @param string $feedbackContent
|
||||
* @return ComplaintWechatFeedbackRequest
|
||||
*/
|
||||
public function setFeedbackContent($feedbackContent)
|
||||
{
|
||||
$this->feedbackContent = $feedbackContent;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets imageList
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getImageList()
|
||||
{
|
||||
return $this->imageList;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets imageList
|
||||
*
|
||||
* @param string $imageList
|
||||
* @return ComplaintWechatFeedbackRequest
|
||||
*/
|
||||
public function setImageList($imageList)
|
||||
{
|
||||
$this->imageList = $imageList;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets feedbackType
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getFeedbackType()
|
||||
{
|
||||
return $this->feedbackType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets feedbackType
|
||||
*
|
||||
* @param string $feedbackType
|
||||
* @return ComplaintWechatFeedbackRequest
|
||||
*/
|
||||
public function setFeedbackType($feedbackType)
|
||||
{
|
||||
$this->feedbackType = $feedbackType;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'complaintWechatFeedback';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,89 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\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 ComplaintWechatFeedbackRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var ComplaintWechatFeedbackRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new ComplaintWechatFeedbackRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ComplaintWechatFeedbackRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Aggpay';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/aggpay/complaint/wechat/feedback';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param ComplaintWechatFeedbackRequest $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->getComplaintNo() != null){
|
||||
$internalRequest->addParameter('complaintNo', ObjectSerializer::sanitizeForSerialization($request->getComplaintNo(), 'string'));
|
||||
}
|
||||
if($request->getFeedbackContent() != null){
|
||||
$internalRequest->addParameter('feedbackContent', ObjectSerializer::sanitizeForSerialization($request->getFeedbackContent(), 'string'));
|
||||
}
|
||||
if($request->getImageList() != null){
|
||||
$internalRequest->addParameter('imageList', ObjectSerializer::sanitizeForSerialization($request->getImageList(), 'string'));
|
||||
}
|
||||
if($request->getFeedbackType() != null){
|
||||
$internalRequest->addParameter('feedbackType', ObjectSerializer::sanitizeForSerialization($request->getFeedbackType(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
ComplaintWechatFeedbackRequestMarshaller::__init();
|
||||
34
lib/Service/Aggpay/Model/ComplaintWechatFeedbackResponse.php
Normal file
34
lib/Service/Aggpay/Model/ComplaintWechatFeedbackResponse.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
|
||||
class ComplaintWechatFeedbackResponse extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var ComplaintWechatFeedbackBaseResponseDTOResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Aggpay\Model\ComplaintWechatFeedbackBaseResponseDTOResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ComplaintWechatFeedbackBaseResponseDTOResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ComplaintWechatFeedbackBaseResponseDTOResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class ComplaintWechatFeedbackResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var ComplaintWechatFeedbackResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new ComplaintWechatFeedbackResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ComplaintWechatFeedbackResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ComplaintWechatFeedbackResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new ComplaintWechatFeedbackResponse();
|
||||
}
|
||||
}
|
||||
|
||||
ComplaintWechatFeedbackResponseUnMarshaller::__init();
|
||||
192
lib/Service/Aggpay/Model/ComplaintWechatListRequest.php
Normal file
192
lib/Service/Aggpay/Model/ComplaintWechatListRequest.php
Normal file
@@ -0,0 +1,192 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
|
||||
class ComplaintWechatListRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $startTime;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $endTime;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantOrderNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $wechatOrderNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
private $page;
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
private $limit;
|
||||
|
||||
/**
|
||||
* Gets startTime
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getStartTime()
|
||||
{
|
||||
return $this->startTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets startTime
|
||||
*
|
||||
* @param string $startTime
|
||||
* @return ComplaintWechatListRequest
|
||||
*/
|
||||
public function setStartTime($startTime)
|
||||
{
|
||||
$this->startTime = $startTime;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets endTime
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getEndTime()
|
||||
{
|
||||
return $this->endTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets endTime
|
||||
*
|
||||
* @param string $endTime
|
||||
* @return ComplaintWechatListRequest
|
||||
*/
|
||||
public function setEndTime($endTime)
|
||||
{
|
||||
$this->endTime = $endTime;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets merchantOrderNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantOrderNo()
|
||||
{
|
||||
return $this->merchantOrderNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantOrderNo
|
||||
*
|
||||
* @param string $merchantOrderNo
|
||||
* @return ComplaintWechatListRequest
|
||||
*/
|
||||
public function setMerchantOrderNo($merchantOrderNo)
|
||||
{
|
||||
$this->merchantOrderNo = $merchantOrderNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets wechatOrderNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getWechatOrderNo()
|
||||
{
|
||||
return $this->wechatOrderNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets wechatOrderNo
|
||||
*
|
||||
* @param string $wechatOrderNo
|
||||
* @return ComplaintWechatListRequest
|
||||
*/
|
||||
public function setWechatOrderNo($wechatOrderNo)
|
||||
{
|
||||
$this->wechatOrderNo = $wechatOrderNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets merchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantNo()
|
||||
{
|
||||
return $this->merchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantNo
|
||||
*
|
||||
* @param string $merchantNo
|
||||
* @return ComplaintWechatListRequest
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->merchantNo = $merchantNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets page
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getPage()
|
||||
{
|
||||
return $this->page;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets page
|
||||
*
|
||||
* @param int $page
|
||||
* @return ComplaintWechatListRequest
|
||||
*/
|
||||
public function setPage($page)
|
||||
{
|
||||
$this->page = $page;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets limit
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getLimit()
|
||||
{
|
||||
return $this->limit;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets limit
|
||||
*
|
||||
* @param int $limit
|
||||
* @return ComplaintWechatListRequest
|
||||
*/
|
||||
public function setLimit($limit)
|
||||
{
|
||||
$this->limit = $limit;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'complaintWechatList';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\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 ComplaintWechatListRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var ComplaintWechatListRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new ComplaintWechatListRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ComplaintWechatListRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Aggpay';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'GET';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/aggpay/complaint/wechat/list';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param ComplaintWechatListRequest $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->getStartTime() != null){
|
||||
$internalRequest->addParameter('startTime', ObjectSerializer::sanitizeForSerialization($request->getStartTime(), 'string'));
|
||||
}
|
||||
if($request->getEndTime() != null){
|
||||
$internalRequest->addParameter('endTime', ObjectSerializer::sanitizeForSerialization($request->getEndTime(), 'string'));
|
||||
}
|
||||
if($request->getMerchantOrderNo() != null){
|
||||
$internalRequest->addParameter('merchantOrderNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantOrderNo(), 'string'));
|
||||
}
|
||||
if($request->getWechatOrderNo() != null){
|
||||
$internalRequest->addParameter('wechatOrderNo', ObjectSerializer::sanitizeForSerialization($request->getWechatOrderNo(), 'string'));
|
||||
}
|
||||
if($request->getMerchantNo() != null){
|
||||
$internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string'));
|
||||
}
|
||||
if($request->getPage() != null){
|
||||
$internalRequest->addParameter('page', ObjectSerializer::sanitizeForSerialization($request->getPage(), 'int', 'int32'));
|
||||
}
|
||||
if($request->getLimit() != null){
|
||||
$internalRequest->addParameter('limit', ObjectSerializer::sanitizeForSerialization($request->getLimit(), 'int', 'int32'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
ComplaintWechatListRequestMarshaller::__init();
|
||||
34
lib/Service/Aggpay/Model/ComplaintWechatListResponse.php
Normal file
34
lib/Service/Aggpay/Model/ComplaintWechatListResponse.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
|
||||
class ComplaintWechatListResponse extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var ComplaintWechatListWechatComplaintListFlatResponseDTOResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Aggpay\Model\ComplaintWechatListWechatComplaintListFlatResponseDTOResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ComplaintWechatListWechatComplaintListFlatResponseDTOResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ComplaintWechatListWechatComplaintListFlatResponseDTOResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class ComplaintWechatListResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var ComplaintWechatListResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new ComplaintWechatListResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ComplaintWechatListResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ComplaintWechatListResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new ComplaintWechatListResponse();
|
||||
}
|
||||
}
|
||||
|
||||
ComplaintWechatListResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,392 @@
|
||||
<?php
|
||||
/**
|
||||
* ComplaintWechatListWechatComplaintListFlatResponseDTOResult
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 聚合支付
|
||||
*
|
||||
* <p>提供聚合支付相关服务(支付下单、公众号配置等功能</p>
|
||||
*
|
||||
* OpenAPI spec version: 1.0
|
||||
*
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 3.0.13
|
||||
*/
|
||||
|
||||
/**
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* ComplaintWechatListWechatComplaintListFlatResponseDTOResult Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class ComplaintWechatListWechatComplaintListFlatResponseDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'ComplaintWechatListWechatComplaintListFlatResponseDTOResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'code' => 'string',
|
||||
'message' => 'string',
|
||||
'list' => 'string',
|
||||
'count' => 'int'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'code' => null,
|
||||
'message' => null,
|
||||
'list' => null,
|
||||
'count' => 'int32'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerTypes()
|
||||
{
|
||||
return self::$swaggerTypes;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerFormats()
|
||||
{
|
||||
return self::$swaggerFormats;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $attributeMap = [
|
||||
'code' => 'code',
|
||||
'message' => 'message',
|
||||
'list' => 'list',
|
||||
'count' => 'count'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'code' => 'setCode',
|
||||
'message' => 'setMessage',
|
||||
'list' => 'setList',
|
||||
'count' => 'setCount'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'code' => 'getCode',
|
||||
'message' => 'getMessage',
|
||||
'list' => 'getList',
|
||||
'count' => 'getCount'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function attributeMap()
|
||||
{
|
||||
return self::$attributeMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function setters()
|
||||
{
|
||||
return self::$setters;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function getters()
|
||||
{
|
||||
return self::$getters;
|
||||
}
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getModelName()
|
||||
{
|
||||
return self::$swaggerModelName;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Associative array for storing property values
|
||||
*
|
||||
* @var mixed[]
|
||||
*/
|
||||
protected $container = [];
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param mixed[] $data Associated array of property values
|
||||
* initializing the model
|
||||
*/
|
||||
public function __construct(array $data = null)
|
||||
{
|
||||
$this->container['code'] = isset($data['code']) ? $data['code'] : null;
|
||||
$this->container['message'] = isset($data['message']) ? $data['message'] : null;
|
||||
$this->container['list'] = isset($data['list']) ? $data['list'] : null;
|
||||
$this->container['count'] = isset($data['count']) ? $data['count'] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Show all the invalid properties with reasons.
|
||||
*
|
||||
* @return array invalid properties with reasons
|
||||
*/
|
||||
public function listInvalidProperties()
|
||||
{
|
||||
$invalidProperties = [];
|
||||
|
||||
return $invalidProperties;
|
||||
}
|
||||
|
||||
/**
|
||||
* Validate all the properties in the model
|
||||
* return true if all passed
|
||||
*
|
||||
* @return bool True if all properties are valid
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets code
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCode()
|
||||
{
|
||||
return $this->container['code'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets code
|
||||
*
|
||||
* @param string $code 返回码
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setCode($code)
|
||||
{
|
||||
$this->container['code'] = $code;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets message
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMessage()
|
||||
{
|
||||
return $this->container['message'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets message
|
||||
*
|
||||
* @param string $message 返回信息
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setMessage($message)
|
||||
{
|
||||
$this->container['message'] = $message;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets list
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getList()
|
||||
{
|
||||
return $this->container['list'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets list
|
||||
*
|
||||
* @param string $list 投诉订单列表
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setList($list)
|
||||
{
|
||||
$this->container['list'] = $list;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets count
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getCount()
|
||||
{
|
||||
return $this->container['count'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets count
|
||||
*
|
||||
* @param int $count 查询总数
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setCount($count)
|
||||
{
|
||||
$this->container['count'] = $count;
|
||||
|
||||
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\Aggpay\Model;
|
||||
|
||||
|
||||
class ComplaintWechatNegotiationHistoryRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $complaintNo;
|
||||
|
||||
/**
|
||||
* Gets complaintNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getComplaintNo()
|
||||
{
|
||||
return $this->complaintNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets complaintNo
|
||||
*
|
||||
* @param string $complaintNo
|
||||
* @return ComplaintWechatNegotiationHistoryRequest
|
||||
*/
|
||||
public function setComplaintNo($complaintNo)
|
||||
{
|
||||
$this->complaintNo = $complaintNo;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'complaintWechatNegotiationHistory';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\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 ComplaintWechatNegotiationHistoryRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var ComplaintWechatNegotiationHistoryRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new ComplaintWechatNegotiationHistoryRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ComplaintWechatNegotiationHistoryRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Aggpay';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'GET';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/aggpay/complaint/wechat/negotiation-history';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param ComplaintWechatNegotiationHistoryRequest $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->getComplaintNo() != null){
|
||||
$internalRequest->addParameter('complaintNo', ObjectSerializer::sanitizeForSerialization($request->getComplaintNo(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
ComplaintWechatNegotiationHistoryRequestMarshaller::__init();
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
|
||||
class ComplaintWechatNegotiationHistoryResponse extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var ComplaintWechatNegotiationHistoryWechatComplaintNegotiationHistoryFlatResponseDTOResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Aggpay\Model\ComplaintWechatNegotiationHistoryWechatComplaintNegotiationHistoryFlatResponseDTOResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ComplaintWechatNegotiationHistoryWechatComplaintNegotiationHistoryFlatResponseDTOResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ComplaintWechatNegotiationHistoryWechatComplaintNegotiationHistoryFlatResponseDTOResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class ComplaintWechatNegotiationHistoryResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var ComplaintWechatNegotiationHistoryResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new ComplaintWechatNegotiationHistoryResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ComplaintWechatNegotiationHistoryResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ComplaintWechatNegotiationHistoryResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new ComplaintWechatNegotiationHistoryResponse();
|
||||
}
|
||||
}
|
||||
|
||||
ComplaintWechatNegotiationHistoryResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,362 @@
|
||||
<?php
|
||||
/**
|
||||
* ComplaintWechatNegotiationHistoryWechatComplaintNegotiationHistoryFlatResponseDTOResult
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 聚合支付
|
||||
*
|
||||
* <p>提供聚合支付相关服务(支付下单、公众号配置等功能</p>
|
||||
*
|
||||
* OpenAPI spec version: 1.0
|
||||
*
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 3.0.13
|
||||
*/
|
||||
|
||||
/**
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* ComplaintWechatNegotiationHistoryWechatComplaintNegotiationHistoryFlatResponseDTOResult Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class ComplaintWechatNegotiationHistoryWechatComplaintNegotiationHistoryFlatResponseDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'ComplaintWechatNegotiationHistoryWechatComplaintNegotiationHistoryFlatResponseDTOResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'code' => 'string',
|
||||
'message' => 'string',
|
||||
'list' => 'string'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'code' => null,
|
||||
'message' => null,
|
||||
'list' => null
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerTypes()
|
||||
{
|
||||
return self::$swaggerTypes;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerFormats()
|
||||
{
|
||||
return self::$swaggerFormats;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $attributeMap = [
|
||||
'code' => 'code',
|
||||
'message' => 'message',
|
||||
'list' => 'list'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'code' => 'setCode',
|
||||
'message' => 'setMessage',
|
||||
'list' => 'setList'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'code' => 'getCode',
|
||||
'message' => 'getMessage',
|
||||
'list' => 'getList'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function attributeMap()
|
||||
{
|
||||
return self::$attributeMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function setters()
|
||||
{
|
||||
return self::$setters;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function getters()
|
||||
{
|
||||
return self::$getters;
|
||||
}
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getModelName()
|
||||
{
|
||||
return self::$swaggerModelName;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Associative array for storing property values
|
||||
*
|
||||
* @var mixed[]
|
||||
*/
|
||||
protected $container = [];
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param mixed[] $data Associated array of property values
|
||||
* initializing the model
|
||||
*/
|
||||
public function __construct(array $data = null)
|
||||
{
|
||||
$this->container['code'] = isset($data['code']) ? $data['code'] : null;
|
||||
$this->container['message'] = isset($data['message']) ? $data['message'] : null;
|
||||
$this->container['list'] = isset($data['list']) ? $data['list'] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Show all the invalid properties with reasons.
|
||||
*
|
||||
* @return array invalid properties with reasons
|
||||
*/
|
||||
public function listInvalidProperties()
|
||||
{
|
||||
$invalidProperties = [];
|
||||
|
||||
return $invalidProperties;
|
||||
}
|
||||
|
||||
/**
|
||||
* Validate all the properties in the model
|
||||
* return true if all passed
|
||||
*
|
||||
* @return bool True if all properties are valid
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets code
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCode()
|
||||
{
|
||||
return $this->container['code'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets code
|
||||
*
|
||||
* @param string $code 返回码
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setCode($code)
|
||||
{
|
||||
$this->container['code'] = $code;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets message
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMessage()
|
||||
{
|
||||
return $this->container['message'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets message
|
||||
*
|
||||
* @param string $message 返回信息
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setMessage($message)
|
||||
{
|
||||
$this->container['message'] = $message;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets list
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getList()
|
||||
{
|
||||
return $this->container['list'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets list
|
||||
*
|
||||
* @param string $list 协商历史列表
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setList($list)
|
||||
{
|
||||
$this->container['list'] = $list;
|
||||
|
||||
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,332 @@
|
||||
<?php
|
||||
/**
|
||||
* ComplaintWechatSuccessBaseResponseDTOResult
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 聚合支付
|
||||
*
|
||||
* <p>提供聚合支付相关服务(支付下单、公众号配置等功能</p>
|
||||
*
|
||||
* OpenAPI spec version: 1.0
|
||||
*
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 3.0.13
|
||||
*/
|
||||
|
||||
/**
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* ComplaintWechatSuccessBaseResponseDTOResult Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class ComplaintWechatSuccessBaseResponseDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'ComplaintWechatSuccessBaseResponseDTOResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'code' => 'string',
|
||||
'message' => 'string'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'code' => null,
|
||||
'message' => null
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerTypes()
|
||||
{
|
||||
return self::$swaggerTypes;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerFormats()
|
||||
{
|
||||
return self::$swaggerFormats;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $attributeMap = [
|
||||
'code' => 'code',
|
||||
'message' => 'message'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'code' => 'setCode',
|
||||
'message' => 'setMessage'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'code' => 'getCode',
|
||||
'message' => 'getMessage'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function attributeMap()
|
||||
{
|
||||
return self::$attributeMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function setters()
|
||||
{
|
||||
return self::$setters;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function getters()
|
||||
{
|
||||
return self::$getters;
|
||||
}
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getModelName()
|
||||
{
|
||||
return self::$swaggerModelName;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Associative array for storing property values
|
||||
*
|
||||
* @var mixed[]
|
||||
*/
|
||||
protected $container = [];
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param mixed[] $data Associated array of property values
|
||||
* initializing the model
|
||||
*/
|
||||
public function __construct(array $data = null)
|
||||
{
|
||||
$this->container['code'] = isset($data['code']) ? $data['code'] : null;
|
||||
$this->container['message'] = isset($data['message']) ? $data['message'] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Show all the invalid properties with reasons.
|
||||
*
|
||||
* @return array invalid properties with reasons
|
||||
*/
|
||||
public function listInvalidProperties()
|
||||
{
|
||||
$invalidProperties = [];
|
||||
|
||||
return $invalidProperties;
|
||||
}
|
||||
|
||||
/**
|
||||
* Validate all the properties in the model
|
||||
* return true if all passed
|
||||
*
|
||||
* @return bool True if all properties are valid
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets code
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCode()
|
||||
{
|
||||
return $this->container['code'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets code
|
||||
*
|
||||
* @param string $code 返回码
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setCode($code)
|
||||
{
|
||||
$this->container['code'] = $code;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets message
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMessage()
|
||||
{
|
||||
return $this->container['message'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets message
|
||||
*
|
||||
* @param string $message 返回信息
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setMessage($message)
|
||||
{
|
||||
$this->container['message'] = $message;
|
||||
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Returns true if offset exists. False otherwise.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function offsetExists($offset)
|
||||
{
|
||||
return isset($this->container[$offset]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function offsetGet($offset)
|
||||
{
|
||||
return isset($this->container[$offset]) ? $this->container[$offset] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets value based on offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
* @param mixed $value Value to be set
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function offsetSet($offset, $value)
|
||||
{
|
||||
if (is_null($offset)) {
|
||||
$this->container[] = $value;
|
||||
} else {
|
||||
$this->container[$offset] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Unsets offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function offsetUnset($offset)
|
||||
{
|
||||
unset($this->container[$offset]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the string presentation of the object
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
|
||||
return json_encode(
|
||||
ObjectSerializer::sanitizeForSerialization($this),
|
||||
JSON_PRETTY_PRINT
|
||||
);
|
||||
}
|
||||
|
||||
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
42
lib/Service/Aggpay/Model/ComplaintWechatSuccessRequest.php
Normal file
42
lib/Service/Aggpay/Model/ComplaintWechatSuccessRequest.php
Normal file
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
|
||||
class ComplaintWechatSuccessRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $complaintNo;
|
||||
|
||||
/**
|
||||
* Gets complaintNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getComplaintNo()
|
||||
{
|
||||
return $this->complaintNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets complaintNo
|
||||
*
|
||||
* @param string $complaintNo
|
||||
* @return ComplaintWechatSuccessRequest
|
||||
*/
|
||||
public function setComplaintNo($complaintNo)
|
||||
{
|
||||
$this->complaintNo = $complaintNo;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'complaintWechatSuccess';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\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 ComplaintWechatSuccessRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var ComplaintWechatSuccessRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new ComplaintWechatSuccessRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ComplaintWechatSuccessRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Aggpay';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/aggpay/complaint/wechat/success';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param ComplaintWechatSuccessRequest $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->getComplaintNo() != null){
|
||||
$internalRequest->addParameter('complaintNo', ObjectSerializer::sanitizeForSerialization($request->getComplaintNo(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
ComplaintWechatSuccessRequestMarshaller::__init();
|
||||
34
lib/Service/Aggpay/Model/ComplaintWechatSuccessResponse.php
Normal file
34
lib/Service/Aggpay/Model/ComplaintWechatSuccessResponse.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
|
||||
class ComplaintWechatSuccessResponse extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var ComplaintWechatSuccessBaseResponseDTOResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Aggpay\Model\ComplaintWechatSuccessBaseResponseDTOResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ComplaintWechatSuccessBaseResponseDTOResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ComplaintWechatSuccessBaseResponseDTOResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class ComplaintWechatSuccessResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var ComplaintWechatSuccessResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new ComplaintWechatSuccessResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ComplaintWechatSuccessResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ComplaintWechatSuccessResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new ComplaintWechatSuccessResponse();
|
||||
}
|
||||
}
|
||||
|
||||
ComplaintWechatSuccessResponseUnMarshaller::__init();
|
||||
482
lib/Service/Aggpay/Model/PayLinkOrderCodeResponseDTOResult.php
Normal file
482
lib/Service/Aggpay/Model/PayLinkOrderCodeResponseDTOResult.php
Normal file
@@ -0,0 +1,482 @@
|
||||
<?php
|
||||
/**
|
||||
* PayLinkOrderCodeResponseDTOResult
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 聚合支付
|
||||
*
|
||||
* <p>提供聚合支付相关服务(支付下单、公众号配置等功能</p>
|
||||
*
|
||||
* OpenAPI spec version: 1.0
|
||||
*
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 3.0.13
|
||||
*/
|
||||
|
||||
/**
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* PayLinkOrderCodeResponseDTOResult Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class PayLinkOrderCodeResponseDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'PayLinkOrderCodeResponseDTOResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'code' => 'string',
|
||||
'message' => 'string',
|
||||
'parentMerchantNo' => 'string',
|
||||
'merchantNo' => 'string',
|
||||
'orderId' => 'string',
|
||||
'qrCodeUrl' => 'string',
|
||||
'uniqueOrderNo' => 'string'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'code' => null,
|
||||
'message' => null,
|
||||
'parentMerchantNo' => null,
|
||||
'merchantNo' => null,
|
||||
'orderId' => null,
|
||||
'qrCodeUrl' => null,
|
||||
'uniqueOrderNo' => null
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerTypes()
|
||||
{
|
||||
return self::$swaggerTypes;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerFormats()
|
||||
{
|
||||
return self::$swaggerFormats;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $attributeMap = [
|
||||
'code' => 'code',
|
||||
'message' => 'message',
|
||||
'parentMerchantNo' => 'parentMerchantNo',
|
||||
'merchantNo' => 'merchantNo',
|
||||
'orderId' => 'orderId',
|
||||
'qrCodeUrl' => 'qrCodeUrl',
|
||||
'uniqueOrderNo' => 'uniqueOrderNo'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'code' => 'setCode',
|
||||
'message' => 'setMessage',
|
||||
'parentMerchantNo' => 'setParentMerchantNo',
|
||||
'merchantNo' => 'setMerchantNo',
|
||||
'orderId' => 'setOrderId',
|
||||
'qrCodeUrl' => 'setQrCodeUrl',
|
||||
'uniqueOrderNo' => 'setUniqueOrderNo'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'code' => 'getCode',
|
||||
'message' => 'getMessage',
|
||||
'parentMerchantNo' => 'getParentMerchantNo',
|
||||
'merchantNo' => 'getMerchantNo',
|
||||
'orderId' => 'getOrderId',
|
||||
'qrCodeUrl' => 'getQrCodeUrl',
|
||||
'uniqueOrderNo' => 'getUniqueOrderNo'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function attributeMap()
|
||||
{
|
||||
return self::$attributeMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function setters()
|
||||
{
|
||||
return self::$setters;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function getters()
|
||||
{
|
||||
return self::$getters;
|
||||
}
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getModelName()
|
||||
{
|
||||
return self::$swaggerModelName;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Associative array for storing property values
|
||||
*
|
||||
* @var mixed[]
|
||||
*/
|
||||
protected $container = [];
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param mixed[] $data Associated array of property values
|
||||
* initializing the model
|
||||
*/
|
||||
public function __construct(array $data = null)
|
||||
{
|
||||
$this->container['code'] = isset($data['code']) ? $data['code'] : null;
|
||||
$this->container['message'] = isset($data['message']) ? $data['message'] : null;
|
||||
$this->container['parentMerchantNo'] = isset($data['parentMerchantNo']) ? $data['parentMerchantNo'] : null;
|
||||
$this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null;
|
||||
$this->container['orderId'] = isset($data['orderId']) ? $data['orderId'] : null;
|
||||
$this->container['qrCodeUrl'] = isset($data['qrCodeUrl']) ? $data['qrCodeUrl'] : null;
|
||||
$this->container['uniqueOrderNo'] = isset($data['uniqueOrderNo']) ? $data['uniqueOrderNo'] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Show all the invalid properties with reasons.
|
||||
*
|
||||
* @return array invalid properties with reasons
|
||||
*/
|
||||
public function listInvalidProperties()
|
||||
{
|
||||
$invalidProperties = [];
|
||||
|
||||
return $invalidProperties;
|
||||
}
|
||||
|
||||
/**
|
||||
* Validate all the properties in the model
|
||||
* return true if all passed
|
||||
*
|
||||
* @return bool True if all properties are valid
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets code
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCode()
|
||||
{
|
||||
return $this->container['code'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets code
|
||||
*
|
||||
* @param string $code 接口返回码
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setCode($code)
|
||||
{
|
||||
$this->container['code'] = $code;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets message
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMessage()
|
||||
{
|
||||
return $this->container['message'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets message
|
||||
*
|
||||
* @param string $message 返回信息
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setMessage($message)
|
||||
{
|
||||
$this->container['message'] = $message;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->container['parentMerchantNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
*
|
||||
* @param string $parentMerchantNo 发起方商编
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setParentMerchantNo($parentMerchantNo)
|
||||
{
|
||||
$this->container['parentMerchantNo'] = $parentMerchantNo;
|
||||
|
||||
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 orderId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getOrderId()
|
||||
{
|
||||
return $this->container['orderId'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets orderId
|
||||
*
|
||||
* @param string $orderId 商户订单号
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setOrderId($orderId)
|
||||
{
|
||||
$this->container['orderId'] = $orderId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets qrCodeUrl
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getQrCodeUrl()
|
||||
{
|
||||
return $this->container['qrCodeUrl'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets qrCodeUrl
|
||||
*
|
||||
* @param string $qrCodeUrl 订单二维码地址
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setQrCodeUrl($qrCodeUrl)
|
||||
{
|
||||
$this->container['qrCodeUrl'] = $qrCodeUrl;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets uniqueOrderNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getUniqueOrderNo()
|
||||
{
|
||||
return $this->container['uniqueOrderNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets uniqueOrderNo
|
||||
*
|
||||
* @param string $uniqueOrderNo 易宝收款订单号
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setUniqueOrderNo($uniqueOrderNo)
|
||||
{
|
||||
$this->container['uniqueOrderNo'] = $uniqueOrderNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Returns true if offset exists. False otherwise.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function offsetExists($offset)
|
||||
{
|
||||
return isset($this->container[$offset]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function offsetGet($offset)
|
||||
{
|
||||
return isset($this->container[$offset]) ? $this->container[$offset] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets value based on offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
* @param mixed $value Value to be set
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function offsetSet($offset, $value)
|
||||
{
|
||||
if (is_null($offset)) {
|
||||
$this->container[] = $value;
|
||||
} else {
|
||||
$this->container[$offset] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Unsets offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function offsetUnset($offset)
|
||||
{
|
||||
unset($this->container[$offset]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the string presentation of the object
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
|
||||
return json_encode(
|
||||
ObjectSerializer::sanitizeForSerialization($this),
|
||||
JSON_PRETTY_PRINT
|
||||
);
|
||||
}
|
||||
|
||||
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
617
lib/Service/Aggpay/Model/PayLinkRequest.php
Normal file
617
lib/Service/Aggpay/Model/PayLinkRequest.php
Normal file
@@ -0,0 +1,617 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
|
||||
class PayLinkRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $orderId;
|
||||
/**
|
||||
* @var float
|
||||
*/
|
||||
private $orderAmount;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $expiredTime;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $notifyUrl;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $memo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $goodsName;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $fundProcessType;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $scene;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $appId;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $channelSpecifiedInfo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $channelPromotionInfo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $identityInfo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $limitCredit;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $csUrl;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $ypPromotionInfo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $businessInfo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $token;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $ypAccountBookNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $productInfo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $divideDetail;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $divideNotifyUrl;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $feeSubsidyInfo;
|
||||
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->parentMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
*
|
||||
* @param string $parentMerchantNo
|
||||
* @return PayLinkRequest
|
||||
*/
|
||||
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 PayLinkRequest
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->merchantNo = $merchantNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets orderId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getOrderId()
|
||||
{
|
||||
return $this->orderId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets orderId
|
||||
*
|
||||
* @param string $orderId
|
||||
* @return PayLinkRequest
|
||||
*/
|
||||
public function setOrderId($orderId)
|
||||
{
|
||||
$this->orderId = $orderId;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets orderAmount
|
||||
*
|
||||
* @return float
|
||||
*/
|
||||
public function getOrderAmount()
|
||||
{
|
||||
return $this->orderAmount;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets orderAmount
|
||||
*
|
||||
* @param float $orderAmount
|
||||
* @return PayLinkRequest
|
||||
*/
|
||||
public function setOrderAmount($orderAmount)
|
||||
{
|
||||
$this->orderAmount = $orderAmount;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets expiredTime
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getExpiredTime()
|
||||
{
|
||||
return $this->expiredTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets expiredTime
|
||||
*
|
||||
* @param string $expiredTime
|
||||
* @return PayLinkRequest
|
||||
*/
|
||||
public function setExpiredTime($expiredTime)
|
||||
{
|
||||
$this->expiredTime = $expiredTime;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets notifyUrl
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getNotifyUrl()
|
||||
{
|
||||
return $this->notifyUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets notifyUrl
|
||||
*
|
||||
* @param string $notifyUrl
|
||||
* @return PayLinkRequest
|
||||
*/
|
||||
public function setNotifyUrl($notifyUrl)
|
||||
{
|
||||
$this->notifyUrl = $notifyUrl;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets memo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMemo()
|
||||
{
|
||||
return $this->memo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets memo
|
||||
*
|
||||
* @param string $memo
|
||||
* @return PayLinkRequest
|
||||
*/
|
||||
public function setMemo($memo)
|
||||
{
|
||||
$this->memo = $memo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets goodsName
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getGoodsName()
|
||||
{
|
||||
return $this->goodsName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets goodsName
|
||||
*
|
||||
* @param string $goodsName
|
||||
* @return PayLinkRequest
|
||||
*/
|
||||
public function setGoodsName($goodsName)
|
||||
{
|
||||
$this->goodsName = $goodsName;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets fundProcessType
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getFundProcessType()
|
||||
{
|
||||
return $this->fundProcessType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets fundProcessType
|
||||
*
|
||||
* @param string $fundProcessType
|
||||
* @return PayLinkRequest
|
||||
*/
|
||||
public function setFundProcessType($fundProcessType)
|
||||
{
|
||||
$this->fundProcessType = $fundProcessType;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets scene
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getScene()
|
||||
{
|
||||
return $this->scene;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets scene
|
||||
*
|
||||
* @param string $scene
|
||||
* @return PayLinkRequest
|
||||
*/
|
||||
public function setScene($scene)
|
||||
{
|
||||
$this->scene = $scene;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets appId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getAppId()
|
||||
{
|
||||
return $this->appId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets appId
|
||||
*
|
||||
* @param string $appId
|
||||
* @return PayLinkRequest
|
||||
*/
|
||||
public function setAppId($appId)
|
||||
{
|
||||
$this->appId = $appId;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets channelSpecifiedInfo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getChannelSpecifiedInfo()
|
||||
{
|
||||
return $this->channelSpecifiedInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets channelSpecifiedInfo
|
||||
*
|
||||
* @param string $channelSpecifiedInfo
|
||||
* @return PayLinkRequest
|
||||
*/
|
||||
public function setChannelSpecifiedInfo($channelSpecifiedInfo)
|
||||
{
|
||||
$this->channelSpecifiedInfo = $channelSpecifiedInfo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets channelPromotionInfo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getChannelPromotionInfo()
|
||||
{
|
||||
return $this->channelPromotionInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets channelPromotionInfo
|
||||
*
|
||||
* @param string $channelPromotionInfo
|
||||
* @return PayLinkRequest
|
||||
*/
|
||||
public function setChannelPromotionInfo($channelPromotionInfo)
|
||||
{
|
||||
$this->channelPromotionInfo = $channelPromotionInfo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets identityInfo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getIdentityInfo()
|
||||
{
|
||||
return $this->identityInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets identityInfo
|
||||
*
|
||||
* @param string $identityInfo
|
||||
* @return PayLinkRequest
|
||||
*/
|
||||
public function setIdentityInfo($identityInfo)
|
||||
{
|
||||
$this->identityInfo = $identityInfo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets limitCredit
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getLimitCredit()
|
||||
{
|
||||
return $this->limitCredit;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets limitCredit
|
||||
*
|
||||
* @param string $limitCredit
|
||||
* @return PayLinkRequest
|
||||
*/
|
||||
public function setLimitCredit($limitCredit)
|
||||
{
|
||||
$this->limitCredit = $limitCredit;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets csUrl
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCsUrl()
|
||||
{
|
||||
return $this->csUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets csUrl
|
||||
*
|
||||
* @param string $csUrl
|
||||
* @return PayLinkRequest
|
||||
*/
|
||||
public function setCsUrl($csUrl)
|
||||
{
|
||||
$this->csUrl = $csUrl;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets ypPromotionInfo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getYpPromotionInfo()
|
||||
{
|
||||
return $this->ypPromotionInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets ypPromotionInfo
|
||||
*
|
||||
* @param string $ypPromotionInfo
|
||||
* @return PayLinkRequest
|
||||
*/
|
||||
public function setYpPromotionInfo($ypPromotionInfo)
|
||||
{
|
||||
$this->ypPromotionInfo = $ypPromotionInfo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets businessInfo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getBusinessInfo()
|
||||
{
|
||||
return $this->businessInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets businessInfo
|
||||
*
|
||||
* @param string $businessInfo
|
||||
* @return PayLinkRequest
|
||||
*/
|
||||
public function setBusinessInfo($businessInfo)
|
||||
{
|
||||
$this->businessInfo = $businessInfo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets token
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getToken()
|
||||
{
|
||||
return $this->token;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets token
|
||||
*
|
||||
* @param string $token
|
||||
* @return PayLinkRequest
|
||||
*/
|
||||
public function setToken($token)
|
||||
{
|
||||
$this->token = $token;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets ypAccountBookNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getYpAccountBookNo()
|
||||
{
|
||||
return $this->ypAccountBookNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets ypAccountBookNo
|
||||
*
|
||||
* @param string $ypAccountBookNo
|
||||
* @return PayLinkRequest
|
||||
*/
|
||||
public function setYpAccountBookNo($ypAccountBookNo)
|
||||
{
|
||||
$this->ypAccountBookNo = $ypAccountBookNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets productInfo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getProductInfo()
|
||||
{
|
||||
return $this->productInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets productInfo
|
||||
*
|
||||
* @param string $productInfo
|
||||
* @return PayLinkRequest
|
||||
*/
|
||||
public function setProductInfo($productInfo)
|
||||
{
|
||||
$this->productInfo = $productInfo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets divideDetail
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getDivideDetail()
|
||||
{
|
||||
return $this->divideDetail;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets divideDetail
|
||||
*
|
||||
* @param string $divideDetail
|
||||
* @return PayLinkRequest
|
||||
*/
|
||||
public function setDivideDetail($divideDetail)
|
||||
{
|
||||
$this->divideDetail = $divideDetail;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets divideNotifyUrl
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getDivideNotifyUrl()
|
||||
{
|
||||
return $this->divideNotifyUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets divideNotifyUrl
|
||||
*
|
||||
* @param string $divideNotifyUrl
|
||||
* @return PayLinkRequest
|
||||
*/
|
||||
public function setDivideNotifyUrl($divideNotifyUrl)
|
||||
{
|
||||
$this->divideNotifyUrl = $divideNotifyUrl;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets feeSubsidyInfo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getFeeSubsidyInfo()
|
||||
{
|
||||
return $this->feeSubsidyInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets feeSubsidyInfo
|
||||
*
|
||||
* @param string $feeSubsidyInfo
|
||||
* @return PayLinkRequest
|
||||
*/
|
||||
public function setFeeSubsidyInfo($feeSubsidyInfo)
|
||||
{
|
||||
$this->feeSubsidyInfo = $feeSubsidyInfo;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'payLink';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
149
lib/Service/Aggpay/Model/PayLinkRequestMarshaller.php
Normal file
149
lib/Service/Aggpay/Model/PayLinkRequestMarshaller.php
Normal file
@@ -0,0 +1,149 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\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 PayLinkRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var PayLinkRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new PayLinkRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return PayLinkRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Aggpay';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/aggpay/pay-link';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param PayLinkRequest $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->getOrderId() != null){
|
||||
$internalRequest->addParameter('orderId', ObjectSerializer::sanitizeForSerialization($request->getOrderId(), 'string'));
|
||||
}
|
||||
if($request->getOrderAmount() != null){
|
||||
$internalRequest->addParameter('orderAmount', ObjectSerializer::sanitizeForSerialization($request->getOrderAmount(), 'float'));
|
||||
}
|
||||
if($request->getExpiredTime() != null){
|
||||
$internalRequest->addParameter('expiredTime', ObjectSerializer::sanitizeForSerialization($request->getExpiredTime(), 'string', 'date-time'));
|
||||
}
|
||||
if($request->getNotifyUrl() != null){
|
||||
$internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string', 'url'));
|
||||
}
|
||||
if($request->getMemo() != null){
|
||||
$internalRequest->addParameter('memo', ObjectSerializer::sanitizeForSerialization($request->getMemo(), 'string'));
|
||||
}
|
||||
if($request->getGoodsName() != null){
|
||||
$internalRequest->addParameter('goodsName', ObjectSerializer::sanitizeForSerialization($request->getGoodsName(), 'string'));
|
||||
}
|
||||
if($request->getFundProcessType() != null){
|
||||
$internalRequest->addParameter('fundProcessType', ObjectSerializer::sanitizeForSerialization($request->getFundProcessType(), 'string'));
|
||||
}
|
||||
if($request->getScene() != null){
|
||||
$internalRequest->addParameter('scene', ObjectSerializer::sanitizeForSerialization($request->getScene(), 'string'));
|
||||
}
|
||||
if($request->getAppId() != null){
|
||||
$internalRequest->addParameter('appId', ObjectSerializer::sanitizeForSerialization($request->getAppId(), 'string'));
|
||||
}
|
||||
if($request->getChannelSpecifiedInfo() != null){
|
||||
$internalRequest->addParameter('channelSpecifiedInfo', ObjectSerializer::sanitizeForSerialization($request->getChannelSpecifiedInfo(), 'string'));
|
||||
}
|
||||
if($request->getChannelPromotionInfo() != null){
|
||||
$internalRequest->addParameter('channelPromotionInfo', ObjectSerializer::sanitizeForSerialization($request->getChannelPromotionInfo(), 'string'));
|
||||
}
|
||||
if($request->getIdentityInfo() != null){
|
||||
$internalRequest->addParameter('identityInfo', ObjectSerializer::sanitizeForSerialization($request->getIdentityInfo(), 'string'));
|
||||
}
|
||||
if($request->getLimitCredit() != null){
|
||||
$internalRequest->addParameter('limitCredit', ObjectSerializer::sanitizeForSerialization($request->getLimitCredit(), 'string'));
|
||||
}
|
||||
if($request->getCsUrl() != null){
|
||||
$internalRequest->addParameter('csUrl', ObjectSerializer::sanitizeForSerialization($request->getCsUrl(), 'string'));
|
||||
}
|
||||
if($request->getYpPromotionInfo() != null){
|
||||
$internalRequest->addParameter('ypPromotionInfo', ObjectSerializer::sanitizeForSerialization($request->getYpPromotionInfo(), 'string'));
|
||||
}
|
||||
if($request->getBusinessInfo() != null){
|
||||
$internalRequest->addParameter('businessInfo', ObjectSerializer::sanitizeForSerialization($request->getBusinessInfo(), 'string'));
|
||||
}
|
||||
if($request->getToken() != null){
|
||||
$internalRequest->addParameter('token', ObjectSerializer::sanitizeForSerialization($request->getToken(), 'string'));
|
||||
}
|
||||
if($request->getYpAccountBookNo() != null){
|
||||
$internalRequest->addParameter('ypAccountBookNo', ObjectSerializer::sanitizeForSerialization($request->getYpAccountBookNo(), 'string'));
|
||||
}
|
||||
if($request->getProductInfo() != null){
|
||||
$internalRequest->addParameter('productInfo', ObjectSerializer::sanitizeForSerialization($request->getProductInfo(), 'string'));
|
||||
}
|
||||
if($request->getDivideDetail() != null){
|
||||
$internalRequest->addParameter('divideDetail', ObjectSerializer::sanitizeForSerialization($request->getDivideDetail(), 'string'));
|
||||
}
|
||||
if($request->getDivideNotifyUrl() != null){
|
||||
$internalRequest->addParameter('divideNotifyUrl', ObjectSerializer::sanitizeForSerialization($request->getDivideNotifyUrl(), 'string'));
|
||||
}
|
||||
if($request->getFeeSubsidyInfo() != null){
|
||||
$internalRequest->addParameter('feeSubsidyInfo', ObjectSerializer::sanitizeForSerialization($request->getFeeSubsidyInfo(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
PayLinkRequestMarshaller::__init();
|
||||
34
lib/Service/Aggpay/Model/PayLinkResponse.php
Normal file
34
lib/Service/Aggpay/Model/PayLinkResponse.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
|
||||
class PayLinkResponse extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var PayLinkOrderCodeResponseDTOResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Aggpay\Model\PayLinkOrderCodeResponseDTOResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param PayLinkOrderCodeResponseDTOResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return PayLinkOrderCodeResponseDTOResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
39
lib/Service/Aggpay/Model/PayLinkResponseUnMarshaller.php
Normal file
39
lib/Service/Aggpay/Model/PayLinkResponseUnMarshaller.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class PayLinkResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var PayLinkResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new PayLinkResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return PayLinkResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return PayLinkResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new PayLinkResponse();
|
||||
}
|
||||
}
|
||||
|
||||
PayLinkResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,392 @@
|
||||
<?php
|
||||
/**
|
||||
* QueryUseridPassiveGetUserIdResponseDTOResult
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 聚合支付
|
||||
*
|
||||
* <p>提供聚合支付相关服务(支付下单、公众号配置等功能</p>
|
||||
*
|
||||
* OpenAPI spec version: 1.0
|
||||
*
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 3.0.13
|
||||
*/
|
||||
|
||||
/**
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* QueryUseridPassiveGetUserIdResponseDTOResult Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class QueryUseridPassiveGetUserIdResponseDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'QueryUseridPassiveGetUserIdResponseDTOResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'code' => 'string',
|
||||
'message' => 'string',
|
||||
'appId' => 'string',
|
||||
'userId' => 'string'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'code' => null,
|
||||
'message' => null,
|
||||
'appId' => null,
|
||||
'userId' => null
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerTypes()
|
||||
{
|
||||
return self::$swaggerTypes;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerFormats()
|
||||
{
|
||||
return self::$swaggerFormats;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $attributeMap = [
|
||||
'code' => 'code',
|
||||
'message' => 'message',
|
||||
'appId' => 'appId',
|
||||
'userId' => 'userId'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'code' => 'setCode',
|
||||
'message' => 'setMessage',
|
||||
'appId' => 'setAppId',
|
||||
'userId' => 'setUserId'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'code' => 'getCode',
|
||||
'message' => 'getMessage',
|
||||
'appId' => 'getAppId',
|
||||
'userId' => 'getUserId'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function attributeMap()
|
||||
{
|
||||
return self::$attributeMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function setters()
|
||||
{
|
||||
return self::$setters;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function getters()
|
||||
{
|
||||
return self::$getters;
|
||||
}
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getModelName()
|
||||
{
|
||||
return self::$swaggerModelName;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Associative array for storing property values
|
||||
*
|
||||
* @var mixed[]
|
||||
*/
|
||||
protected $container = [];
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param mixed[] $data Associated array of property values
|
||||
* initializing the model
|
||||
*/
|
||||
public function __construct(array $data = null)
|
||||
{
|
||||
$this->container['code'] = isset($data['code']) ? $data['code'] : null;
|
||||
$this->container['message'] = isset($data['message']) ? $data['message'] : null;
|
||||
$this->container['appId'] = isset($data['appId']) ? $data['appId'] : null;
|
||||
$this->container['userId'] = isset($data['userId']) ? $data['userId'] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Show all the invalid properties with reasons.
|
||||
*
|
||||
* @return array invalid properties with reasons
|
||||
*/
|
||||
public function listInvalidProperties()
|
||||
{
|
||||
$invalidProperties = [];
|
||||
|
||||
return $invalidProperties;
|
||||
}
|
||||
|
||||
/**
|
||||
* Validate all the properties in the model
|
||||
* return true if all passed
|
||||
*
|
||||
* @return bool True if all properties are valid
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets code
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCode()
|
||||
{
|
||||
return $this->container['code'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets code
|
||||
*
|
||||
* @param string $code 返回码
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setCode($code)
|
||||
{
|
||||
$this->container['code'] = $code;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets message
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMessage()
|
||||
{
|
||||
return $this->container['message'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets message
|
||||
*
|
||||
* @param string $message 返回信息
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setMessage($message)
|
||||
{
|
||||
$this->container['message'] = $message;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets appId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getAppId()
|
||||
{
|
||||
return $this->container['appId'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets appId
|
||||
*
|
||||
* @param string $appId 微信公众号ID
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setAppId($appId)
|
||||
{
|
||||
$this->container['appId'] = $appId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets userId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getUserId()
|
||||
{
|
||||
return $this->container['userId'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets userId
|
||||
*
|
||||
* @param string $userId 用户ID
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setUserId($userId)
|
||||
{
|
||||
$this->container['userId'] = $userId;
|
||||
|
||||
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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
142
lib/Service/Aggpay/Model/QueryUseridRequest.php
Normal file
142
lib/Service/Aggpay/Model/QueryUseridRequest.php
Normal file
@@ -0,0 +1,142 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
|
||||
class QueryUseridRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $appId;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $authCode;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $channel;
|
||||
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->parentMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
*
|
||||
* @param string $parentMerchantNo
|
||||
* @return QueryUseridRequest
|
||||
*/
|
||||
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 QueryUseridRequest
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->merchantNo = $merchantNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets appId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getAppId()
|
||||
{
|
||||
return $this->appId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets appId
|
||||
*
|
||||
* @param string $appId
|
||||
* @return QueryUseridRequest
|
||||
*/
|
||||
public function setAppId($appId)
|
||||
{
|
||||
$this->appId = $appId;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets authCode
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getAuthCode()
|
||||
{
|
||||
return $this->authCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets authCode
|
||||
*
|
||||
* @param string $authCode
|
||||
* @return QueryUseridRequest
|
||||
*/
|
||||
public function setAuthCode($authCode)
|
||||
{
|
||||
$this->authCode = $authCode;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets channel
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getChannel()
|
||||
{
|
||||
return $this->channel;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets channel
|
||||
*
|
||||
* @param string $channel
|
||||
* @return QueryUseridRequest
|
||||
*/
|
||||
public function setChannel($channel)
|
||||
{
|
||||
$this->channel = $channel;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'queryUserid';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
92
lib/Service/Aggpay/Model/QueryUseridRequestMarshaller.php
Normal file
92
lib/Service/Aggpay/Model/QueryUseridRequestMarshaller.php
Normal file
@@ -0,0 +1,92 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\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 QueryUseridRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var QueryUseridRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new QueryUseridRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return QueryUseridRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Aggpay';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/aggpay/query-userid';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param QueryUseridRequest $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->getAppId() != null){
|
||||
$internalRequest->addParameter('appId', ObjectSerializer::sanitizeForSerialization($request->getAppId(), 'string'));
|
||||
}
|
||||
if($request->getAuthCode() != null){
|
||||
$internalRequest->addParameter('authCode', ObjectSerializer::sanitizeForSerialization($request->getAuthCode(), 'string'));
|
||||
}
|
||||
if($request->getChannel() != null){
|
||||
$internalRequest->addParameter('channel', ObjectSerializer::sanitizeForSerialization($request->getChannel(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
QueryUseridRequestMarshaller::__init();
|
||||
34
lib/Service/Aggpay/Model/QueryUseridResponse.php
Normal file
34
lib/Service/Aggpay/Model/QueryUseridResponse.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
|
||||
class QueryUseridResponse extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var QueryUseridPassiveGetUserIdResponseDTOResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Aggpay\Model\QueryUseridPassiveGetUserIdResponseDTOResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param QueryUseridPassiveGetUserIdResponseDTOResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return QueryUseridPassiveGetUserIdResponseDTOResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
39
lib/Service/Aggpay/Model/QueryUseridResponseUnMarshaller.php
Normal file
39
lib/Service/Aggpay/Model/QueryUseridResponseUnMarshaller.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class QueryUseridResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var QueryUseridResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new QueryUseridResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return QueryUseridResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return QueryUseridResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new QueryUseridResponse();
|
||||
}
|
||||
}
|
||||
|
||||
QueryUseridResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,602 @@
|
||||
<?php
|
||||
/**
|
||||
* ShareTokenGenerateAliShareTokenResponseDTOResult
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 聚合支付
|
||||
*
|
||||
* <p>提供聚合支付相关服务(支付下单、公众号配置等功能</p>
|
||||
*
|
||||
* OpenAPI spec version: 1.0
|
||||
*
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 3.0.13
|
||||
*/
|
||||
|
||||
/**
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* ShareTokenGenerateAliShareTokenResponseDTOResult Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class ShareTokenGenerateAliShareTokenResponseDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'ShareTokenGenerateAliShareTokenResponseDTOResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'code' => 'string',
|
||||
'message' => 'string',
|
||||
'parentMerchantNo' => 'string',
|
||||
'merchantNo' => 'string',
|
||||
'orderId' => 'string',
|
||||
'uniqueOrderNo' => 'string',
|
||||
'channelInfoList' => 'string',
|
||||
'shareToken' => 'string',
|
||||
'shareTokenExpiredTime' => 'string',
|
||||
'guideText1' => 'string',
|
||||
'guideText2' => 'string'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'code' => null,
|
||||
'message' => null,
|
||||
'parentMerchantNo' => null,
|
||||
'merchantNo' => null,
|
||||
'orderId' => null,
|
||||
'uniqueOrderNo' => null,
|
||||
'channelInfoList' => null,
|
||||
'shareToken' => null,
|
||||
'shareTokenExpiredTime' => 'date-time',
|
||||
'guideText1' => null,
|
||||
'guideText2' => null
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerTypes()
|
||||
{
|
||||
return self::$swaggerTypes;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerFormats()
|
||||
{
|
||||
return self::$swaggerFormats;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $attributeMap = [
|
||||
'code' => 'code',
|
||||
'message' => 'message',
|
||||
'parentMerchantNo' => 'parentMerchantNo',
|
||||
'merchantNo' => 'merchantNo',
|
||||
'orderId' => 'orderId',
|
||||
'uniqueOrderNo' => 'uniqueOrderNo',
|
||||
'channelInfoList' => 'channelInfoList',
|
||||
'shareToken' => 'shareToken',
|
||||
'shareTokenExpiredTime' => 'shareTokenExpiredTime',
|
||||
'guideText1' => 'guideText1',
|
||||
'guideText2' => 'guideText2'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'code' => 'setCode',
|
||||
'message' => 'setMessage',
|
||||
'parentMerchantNo' => 'setParentMerchantNo',
|
||||
'merchantNo' => 'setMerchantNo',
|
||||
'orderId' => 'setOrderId',
|
||||
'uniqueOrderNo' => 'setUniqueOrderNo',
|
||||
'channelInfoList' => 'setChannelInfoList',
|
||||
'shareToken' => 'setShareToken',
|
||||
'shareTokenExpiredTime' => 'setShareTokenExpiredTime',
|
||||
'guideText1' => 'setGuideText1',
|
||||
'guideText2' => 'setGuideText2'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'code' => 'getCode',
|
||||
'message' => 'getMessage',
|
||||
'parentMerchantNo' => 'getParentMerchantNo',
|
||||
'merchantNo' => 'getMerchantNo',
|
||||
'orderId' => 'getOrderId',
|
||||
'uniqueOrderNo' => 'getUniqueOrderNo',
|
||||
'channelInfoList' => 'getChannelInfoList',
|
||||
'shareToken' => 'getShareToken',
|
||||
'shareTokenExpiredTime' => 'getShareTokenExpiredTime',
|
||||
'guideText1' => 'getGuideText1',
|
||||
'guideText2' => 'getGuideText2'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function attributeMap()
|
||||
{
|
||||
return self::$attributeMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function setters()
|
||||
{
|
||||
return self::$setters;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function getters()
|
||||
{
|
||||
return self::$getters;
|
||||
}
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getModelName()
|
||||
{
|
||||
return self::$swaggerModelName;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Associative array for storing property values
|
||||
*
|
||||
* @var mixed[]
|
||||
*/
|
||||
protected $container = [];
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param mixed[] $data Associated array of property values
|
||||
* initializing the model
|
||||
*/
|
||||
public function __construct(array $data = null)
|
||||
{
|
||||
$this->container['code'] = isset($data['code']) ? $data['code'] : null;
|
||||
$this->container['message'] = isset($data['message']) ? $data['message'] : null;
|
||||
$this->container['parentMerchantNo'] = isset($data['parentMerchantNo']) ? $data['parentMerchantNo'] : null;
|
||||
$this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null;
|
||||
$this->container['orderId'] = isset($data['orderId']) ? $data['orderId'] : null;
|
||||
$this->container['uniqueOrderNo'] = isset($data['uniqueOrderNo']) ? $data['uniqueOrderNo'] : null;
|
||||
$this->container['channelInfoList'] = isset($data['channelInfoList']) ? $data['channelInfoList'] : null;
|
||||
$this->container['shareToken'] = isset($data['shareToken']) ? $data['shareToken'] : null;
|
||||
$this->container['shareTokenExpiredTime'] = isset($data['shareTokenExpiredTime']) ? $data['shareTokenExpiredTime'] : null;
|
||||
$this->container['guideText1'] = isset($data['guideText1']) ? $data['guideText1'] : null;
|
||||
$this->container['guideText2'] = isset($data['guideText2']) ? $data['guideText2'] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Show all the invalid properties with reasons.
|
||||
*
|
||||
* @return array invalid properties with reasons
|
||||
*/
|
||||
public function listInvalidProperties()
|
||||
{
|
||||
$invalidProperties = [];
|
||||
|
||||
return $invalidProperties;
|
||||
}
|
||||
|
||||
/**
|
||||
* Validate all the properties in the model
|
||||
* return true if all passed
|
||||
*
|
||||
* @return bool True if all properties are valid
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets code
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCode()
|
||||
{
|
||||
return $this->container['code'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets code
|
||||
*
|
||||
* @param string $code 返回码
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setCode($code)
|
||||
{
|
||||
$this->container['code'] = $code;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets message
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMessage()
|
||||
{
|
||||
return $this->container['message'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets message
|
||||
*
|
||||
* @param string $message 返回信息
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setMessage($message)
|
||||
{
|
||||
$this->container['message'] = $message;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->container['parentMerchantNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
*
|
||||
* @param string $parentMerchantNo 业务发起方商编
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setParentMerchantNo($parentMerchantNo)
|
||||
{
|
||||
$this->container['parentMerchantNo'] = $parentMerchantNo;
|
||||
|
||||
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 orderId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getOrderId()
|
||||
{
|
||||
return $this->container['orderId'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets orderId
|
||||
*
|
||||
* @param string $orderId 商户订单号
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setOrderId($orderId)
|
||||
{
|
||||
$this->container['orderId'] = $orderId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets uniqueOrderNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getUniqueOrderNo()
|
||||
{
|
||||
return $this->container['uniqueOrderNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets uniqueOrderNo
|
||||
*
|
||||
* @param string $uniqueOrderNo 易宝唯一流水号
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setUniqueOrderNo($uniqueOrderNo)
|
||||
{
|
||||
$this->container['uniqueOrderNo'] = $uniqueOrderNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets channelInfoList
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getChannelInfoList()
|
||||
{
|
||||
return $this->container['channelInfoList'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets channelInfoList
|
||||
*
|
||||
* @param string $channelInfoList 渠道营销信息
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setChannelInfoList($channelInfoList)
|
||||
{
|
||||
$this->container['channelInfoList'] = $channelInfoList;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets shareToken
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getShareToken()
|
||||
{
|
||||
return $this->container['shareToken'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets shareToken
|
||||
*
|
||||
* @param string $shareToken 吱口令
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setShareToken($shareToken)
|
||||
{
|
||||
$this->container['shareToken'] = $shareToken;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets shareTokenExpiredTime
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getShareTokenExpiredTime()
|
||||
{
|
||||
return $this->container['shareTokenExpiredTime'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets shareTokenExpiredTime
|
||||
*
|
||||
* @param string $shareTokenExpiredTime 吱口令过期时间
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setShareTokenExpiredTime($shareTokenExpiredTime)
|
||||
{
|
||||
$this->container['shareTokenExpiredTime'] = $shareTokenExpiredTime;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets guideText1
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getGuideText1()
|
||||
{
|
||||
return $this->container['guideText1'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets guideText1
|
||||
*
|
||||
* @param string $guideText1 吱口令分析引导文案前半段
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setGuideText1($guideText1)
|
||||
{
|
||||
$this->container['guideText1'] = $guideText1;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets guideText2
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getGuideText2()
|
||||
{
|
||||
return $this->container['guideText2'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets guideText2
|
||||
*
|
||||
* @param string $guideText2 吱口令分析引导文案后半段
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setGuideText2($guideText2)
|
||||
{
|
||||
$this->container['guideText2'] = $guideText2;
|
||||
|
||||
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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
642
lib/Service/Aggpay/Model/ShareTokenGenerateRequest.php
Normal file
642
lib/Service/Aggpay/Model/ShareTokenGenerateRequest.php
Normal file
@@ -0,0 +1,642 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
|
||||
class ShareTokenGenerateRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $bizSystemNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $orderId;
|
||||
/**
|
||||
* @var float
|
||||
*/
|
||||
private $orderAmount;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $expiredTime;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $notifyUrl;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $memo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $goodsName;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $fundProcessType;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $limitCredit;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $token;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $csUrl;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $businessInfo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $productInfo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $ypAccountBookNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $divideDetail;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $divideNotifyUrl;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $feeSubsidyInfo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $externalUserId;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $channelPromotionInfo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $identityInfo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $ypPromotionInfo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $channelOperationInfo;
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
private $shareTokenExpiredSeconds;
|
||||
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->parentMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
*
|
||||
* @param string $parentMerchantNo
|
||||
* @return ShareTokenGenerateRequest
|
||||
*/
|
||||
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 ShareTokenGenerateRequest
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->merchantNo = $merchantNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets bizSystemNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getBizSystemNo()
|
||||
{
|
||||
return $this->bizSystemNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bizSystemNo
|
||||
*
|
||||
* @param string $bizSystemNo
|
||||
* @return ShareTokenGenerateRequest
|
||||
*/
|
||||
public function setBizSystemNo($bizSystemNo)
|
||||
{
|
||||
$this->bizSystemNo = $bizSystemNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets orderId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getOrderId()
|
||||
{
|
||||
return $this->orderId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets orderId
|
||||
*
|
||||
* @param string $orderId
|
||||
* @return ShareTokenGenerateRequest
|
||||
*/
|
||||
public function setOrderId($orderId)
|
||||
{
|
||||
$this->orderId = $orderId;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets orderAmount
|
||||
*
|
||||
* @return float
|
||||
*/
|
||||
public function getOrderAmount()
|
||||
{
|
||||
return $this->orderAmount;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets orderAmount
|
||||
*
|
||||
* @param float $orderAmount
|
||||
* @return ShareTokenGenerateRequest
|
||||
*/
|
||||
public function setOrderAmount($orderAmount)
|
||||
{
|
||||
$this->orderAmount = $orderAmount;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets expiredTime
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getExpiredTime()
|
||||
{
|
||||
return $this->expiredTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets expiredTime
|
||||
*
|
||||
* @param string $expiredTime
|
||||
* @return ShareTokenGenerateRequest
|
||||
*/
|
||||
public function setExpiredTime($expiredTime)
|
||||
{
|
||||
$this->expiredTime = $expiredTime;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets notifyUrl
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getNotifyUrl()
|
||||
{
|
||||
return $this->notifyUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets notifyUrl
|
||||
*
|
||||
* @param string $notifyUrl
|
||||
* @return ShareTokenGenerateRequest
|
||||
*/
|
||||
public function setNotifyUrl($notifyUrl)
|
||||
{
|
||||
$this->notifyUrl = $notifyUrl;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets memo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMemo()
|
||||
{
|
||||
return $this->memo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets memo
|
||||
*
|
||||
* @param string $memo
|
||||
* @return ShareTokenGenerateRequest
|
||||
*/
|
||||
public function setMemo($memo)
|
||||
{
|
||||
$this->memo = $memo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets goodsName
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getGoodsName()
|
||||
{
|
||||
return $this->goodsName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets goodsName
|
||||
*
|
||||
* @param string $goodsName
|
||||
* @return ShareTokenGenerateRequest
|
||||
*/
|
||||
public function setGoodsName($goodsName)
|
||||
{
|
||||
$this->goodsName = $goodsName;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets fundProcessType
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getFundProcessType()
|
||||
{
|
||||
return $this->fundProcessType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets fundProcessType
|
||||
*
|
||||
* @param string $fundProcessType
|
||||
* @return ShareTokenGenerateRequest
|
||||
*/
|
||||
public function setFundProcessType($fundProcessType)
|
||||
{
|
||||
$this->fundProcessType = $fundProcessType;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets limitCredit
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getLimitCredit()
|
||||
{
|
||||
return $this->limitCredit;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets limitCredit
|
||||
*
|
||||
* @param string $limitCredit
|
||||
* @return ShareTokenGenerateRequest
|
||||
*/
|
||||
public function setLimitCredit($limitCredit)
|
||||
{
|
||||
$this->limitCredit = $limitCredit;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets token
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getToken()
|
||||
{
|
||||
return $this->token;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets token
|
||||
*
|
||||
* @param string $token
|
||||
* @return ShareTokenGenerateRequest
|
||||
*/
|
||||
public function setToken($token)
|
||||
{
|
||||
$this->token = $token;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets csUrl
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCsUrl()
|
||||
{
|
||||
return $this->csUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets csUrl
|
||||
*
|
||||
* @param string $csUrl
|
||||
* @return ShareTokenGenerateRequest
|
||||
*/
|
||||
public function setCsUrl($csUrl)
|
||||
{
|
||||
$this->csUrl = $csUrl;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets businessInfo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getBusinessInfo()
|
||||
{
|
||||
return $this->businessInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets businessInfo
|
||||
*
|
||||
* @param string $businessInfo
|
||||
* @return ShareTokenGenerateRequest
|
||||
*/
|
||||
public function setBusinessInfo($businessInfo)
|
||||
{
|
||||
$this->businessInfo = $businessInfo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets productInfo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getProductInfo()
|
||||
{
|
||||
return $this->productInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets productInfo
|
||||
*
|
||||
* @param string $productInfo
|
||||
* @return ShareTokenGenerateRequest
|
||||
*/
|
||||
public function setProductInfo($productInfo)
|
||||
{
|
||||
$this->productInfo = $productInfo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets ypAccountBookNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getYpAccountBookNo()
|
||||
{
|
||||
return $this->ypAccountBookNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets ypAccountBookNo
|
||||
*
|
||||
* @param string $ypAccountBookNo
|
||||
* @return ShareTokenGenerateRequest
|
||||
*/
|
||||
public function setYpAccountBookNo($ypAccountBookNo)
|
||||
{
|
||||
$this->ypAccountBookNo = $ypAccountBookNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets divideDetail
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getDivideDetail()
|
||||
{
|
||||
return $this->divideDetail;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets divideDetail
|
||||
*
|
||||
* @param string $divideDetail
|
||||
* @return ShareTokenGenerateRequest
|
||||
*/
|
||||
public function setDivideDetail($divideDetail)
|
||||
{
|
||||
$this->divideDetail = $divideDetail;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets divideNotifyUrl
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getDivideNotifyUrl()
|
||||
{
|
||||
return $this->divideNotifyUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets divideNotifyUrl
|
||||
*
|
||||
* @param string $divideNotifyUrl
|
||||
* @return ShareTokenGenerateRequest
|
||||
*/
|
||||
public function setDivideNotifyUrl($divideNotifyUrl)
|
||||
{
|
||||
$this->divideNotifyUrl = $divideNotifyUrl;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets feeSubsidyInfo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getFeeSubsidyInfo()
|
||||
{
|
||||
return $this->feeSubsidyInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets feeSubsidyInfo
|
||||
*
|
||||
* @param string $feeSubsidyInfo
|
||||
* @return ShareTokenGenerateRequest
|
||||
*/
|
||||
public function setFeeSubsidyInfo($feeSubsidyInfo)
|
||||
{
|
||||
$this->feeSubsidyInfo = $feeSubsidyInfo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets externalUserId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getExternalUserId()
|
||||
{
|
||||
return $this->externalUserId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets externalUserId
|
||||
*
|
||||
* @param string $externalUserId
|
||||
* @return ShareTokenGenerateRequest
|
||||
*/
|
||||
public function setExternalUserId($externalUserId)
|
||||
{
|
||||
$this->externalUserId = $externalUserId;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets channelPromotionInfo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getChannelPromotionInfo()
|
||||
{
|
||||
return $this->channelPromotionInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets channelPromotionInfo
|
||||
*
|
||||
* @param string $channelPromotionInfo
|
||||
* @return ShareTokenGenerateRequest
|
||||
*/
|
||||
public function setChannelPromotionInfo($channelPromotionInfo)
|
||||
{
|
||||
$this->channelPromotionInfo = $channelPromotionInfo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets identityInfo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getIdentityInfo()
|
||||
{
|
||||
return $this->identityInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets identityInfo
|
||||
*
|
||||
* @param string $identityInfo
|
||||
* @return ShareTokenGenerateRequest
|
||||
*/
|
||||
public function setIdentityInfo($identityInfo)
|
||||
{
|
||||
$this->identityInfo = $identityInfo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets ypPromotionInfo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getYpPromotionInfo()
|
||||
{
|
||||
return $this->ypPromotionInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets ypPromotionInfo
|
||||
*
|
||||
* @param string $ypPromotionInfo
|
||||
* @return ShareTokenGenerateRequest
|
||||
*/
|
||||
public function setYpPromotionInfo($ypPromotionInfo)
|
||||
{
|
||||
$this->ypPromotionInfo = $ypPromotionInfo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets channelOperationInfo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getChannelOperationInfo()
|
||||
{
|
||||
return $this->channelOperationInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets channelOperationInfo
|
||||
*
|
||||
* @param string $channelOperationInfo
|
||||
* @return ShareTokenGenerateRequest
|
||||
*/
|
||||
public function setChannelOperationInfo($channelOperationInfo)
|
||||
{
|
||||
$this->channelOperationInfo = $channelOperationInfo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets shareTokenExpiredSeconds
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getShareTokenExpiredSeconds()
|
||||
{
|
||||
return $this->shareTokenExpiredSeconds;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets shareTokenExpiredSeconds
|
||||
*
|
||||
* @param int $shareTokenExpiredSeconds
|
||||
* @return ShareTokenGenerateRequest
|
||||
*/
|
||||
public function setShareTokenExpiredSeconds($shareTokenExpiredSeconds)
|
||||
{
|
||||
$this->shareTokenExpiredSeconds = $shareTokenExpiredSeconds;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'shareTokenGenerate';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
152
lib/Service/Aggpay/Model/ShareTokenGenerateRequestMarshaller.php
Normal file
152
lib/Service/Aggpay/Model/ShareTokenGenerateRequestMarshaller.php
Normal file
@@ -0,0 +1,152 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\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 ShareTokenGenerateRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var ShareTokenGenerateRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new ShareTokenGenerateRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ShareTokenGenerateRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Aggpay';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/aggpay/share-token/generate';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param ShareTokenGenerateRequest $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->getBizSystemNo() != null){
|
||||
$internalRequest->addParameter('bizSystemNo', ObjectSerializer::sanitizeForSerialization($request->getBizSystemNo(), 'string'));
|
||||
}
|
||||
if($request->getOrderId() != null){
|
||||
$internalRequest->addParameter('orderId', ObjectSerializer::sanitizeForSerialization($request->getOrderId(), 'string'));
|
||||
}
|
||||
if($request->getOrderAmount() != null){
|
||||
$internalRequest->addParameter('orderAmount', ObjectSerializer::sanitizeForSerialization($request->getOrderAmount(), 'float'));
|
||||
}
|
||||
if($request->getExpiredTime() != null){
|
||||
$internalRequest->addParameter('expiredTime', ObjectSerializer::sanitizeForSerialization($request->getExpiredTime(), 'string', 'date-time'));
|
||||
}
|
||||
if($request->getNotifyUrl() != null){
|
||||
$internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string', 'url'));
|
||||
}
|
||||
if($request->getMemo() != null){
|
||||
$internalRequest->addParameter('memo', ObjectSerializer::sanitizeForSerialization($request->getMemo(), 'string'));
|
||||
}
|
||||
if($request->getGoodsName() != null){
|
||||
$internalRequest->addParameter('goodsName', ObjectSerializer::sanitizeForSerialization($request->getGoodsName(), 'string'));
|
||||
}
|
||||
if($request->getFundProcessType() != null){
|
||||
$internalRequest->addParameter('fundProcessType', ObjectSerializer::sanitizeForSerialization($request->getFundProcessType(), 'string'));
|
||||
}
|
||||
if($request->getLimitCredit() != null){
|
||||
$internalRequest->addParameter('limitCredit', ObjectSerializer::sanitizeForSerialization($request->getLimitCredit(), 'string'));
|
||||
}
|
||||
if($request->getToken() != null){
|
||||
$internalRequest->addParameter('token', ObjectSerializer::sanitizeForSerialization($request->getToken(), 'string'));
|
||||
}
|
||||
if($request->getCsUrl() != null){
|
||||
$internalRequest->addParameter('csUrl', ObjectSerializer::sanitizeForSerialization($request->getCsUrl(), 'string', 'url'));
|
||||
}
|
||||
if($request->getBusinessInfo() != null){
|
||||
$internalRequest->addParameter('businessInfo', ObjectSerializer::sanitizeForSerialization($request->getBusinessInfo(), 'string'));
|
||||
}
|
||||
if($request->getProductInfo() != null){
|
||||
$internalRequest->addParameter('productInfo', ObjectSerializer::sanitizeForSerialization($request->getProductInfo(), 'string'));
|
||||
}
|
||||
if($request->getYpAccountBookNo() != null){
|
||||
$internalRequest->addParameter('ypAccountBookNo', ObjectSerializer::sanitizeForSerialization($request->getYpAccountBookNo(), 'string'));
|
||||
}
|
||||
if($request->getDivideDetail() != null){
|
||||
$internalRequest->addParameter('divideDetail', ObjectSerializer::sanitizeForSerialization($request->getDivideDetail(), 'string'));
|
||||
}
|
||||
if($request->getDivideNotifyUrl() != null){
|
||||
$internalRequest->addParameter('divideNotifyUrl', ObjectSerializer::sanitizeForSerialization($request->getDivideNotifyUrl(), 'string'));
|
||||
}
|
||||
if($request->getFeeSubsidyInfo() != null){
|
||||
$internalRequest->addParameter('feeSubsidyInfo', ObjectSerializer::sanitizeForSerialization($request->getFeeSubsidyInfo(), 'string'));
|
||||
}
|
||||
if($request->getExternalUserId() != null){
|
||||
$internalRequest->addParameter('externalUserId', ObjectSerializer::sanitizeForSerialization($request->getExternalUserId(), 'string'));
|
||||
}
|
||||
if($request->getChannelPromotionInfo() != null){
|
||||
$internalRequest->addParameter('channelPromotionInfo', ObjectSerializer::sanitizeForSerialization($request->getChannelPromotionInfo(), 'string'));
|
||||
}
|
||||
if($request->getIdentityInfo() != null){
|
||||
$internalRequest->addParameter('identityInfo', ObjectSerializer::sanitizeForSerialization($request->getIdentityInfo(), 'string'));
|
||||
}
|
||||
if($request->getYpPromotionInfo() != null){
|
||||
$internalRequest->addParameter('ypPromotionInfo', ObjectSerializer::sanitizeForSerialization($request->getYpPromotionInfo(), 'string'));
|
||||
}
|
||||
if($request->getChannelOperationInfo() != null){
|
||||
$internalRequest->addParameter('channelOperationInfo', ObjectSerializer::sanitizeForSerialization($request->getChannelOperationInfo(), 'string'));
|
||||
}
|
||||
if($request->getShareTokenExpiredSeconds() != null){
|
||||
$internalRequest->addParameter('shareTokenExpiredSeconds', ObjectSerializer::sanitizeForSerialization($request->getShareTokenExpiredSeconds(), 'int', 'int32'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
ShareTokenGenerateRequestMarshaller::__init();
|
||||
34
lib/Service/Aggpay/Model/ShareTokenGenerateResponse.php
Normal file
34
lib/Service/Aggpay/Model/ShareTokenGenerateResponse.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
|
||||
class ShareTokenGenerateResponse extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var ShareTokenGenerateAliShareTokenResponseDTOResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Aggpay\Model\ShareTokenGenerateAliShareTokenResponseDTOResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ShareTokenGenerateAliShareTokenResponseDTOResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ShareTokenGenerateAliShareTokenResponseDTOResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class ShareTokenGenerateResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var ShareTokenGenerateResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new ShareTokenGenerateResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ShareTokenGenerateResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ShareTokenGenerateResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new ShareTokenGenerateResponse();
|
||||
}
|
||||
}
|
||||
|
||||
ShareTokenGenerateResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,362 @@
|
||||
<?php
|
||||
/**
|
||||
* ShareTokenMarketQueryAliMarketQueryResponseDTOResult
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 聚合支付
|
||||
*
|
||||
* <p>提供聚合支付相关服务(支付下单、公众号配置等功能</p>
|
||||
*
|
||||
* OpenAPI spec version: 1.0
|
||||
*
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 3.0.13
|
||||
*/
|
||||
|
||||
/**
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* ShareTokenMarketQueryAliMarketQueryResponseDTOResult Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class ShareTokenMarketQueryAliMarketQueryResponseDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'ShareTokenMarketQueryAliMarketQueryResponseDTOResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'code' => 'string',
|
||||
'message' => 'string',
|
||||
'channelInfoList' => 'string'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'code' => null,
|
||||
'message' => null,
|
||||
'channelInfoList' => null
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerTypes()
|
||||
{
|
||||
return self::$swaggerTypes;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerFormats()
|
||||
{
|
||||
return self::$swaggerFormats;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $attributeMap = [
|
||||
'code' => 'code',
|
||||
'message' => 'message',
|
||||
'channelInfoList' => 'channelInfoList'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'code' => 'setCode',
|
||||
'message' => 'setMessage',
|
||||
'channelInfoList' => 'setChannelInfoList'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'code' => 'getCode',
|
||||
'message' => 'getMessage',
|
||||
'channelInfoList' => 'getChannelInfoList'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function attributeMap()
|
||||
{
|
||||
return self::$attributeMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function setters()
|
||||
{
|
||||
return self::$setters;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function getters()
|
||||
{
|
||||
return self::$getters;
|
||||
}
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getModelName()
|
||||
{
|
||||
return self::$swaggerModelName;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Associative array for storing property values
|
||||
*
|
||||
* @var mixed[]
|
||||
*/
|
||||
protected $container = [];
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param mixed[] $data Associated array of property values
|
||||
* initializing the model
|
||||
*/
|
||||
public function __construct(array $data = null)
|
||||
{
|
||||
$this->container['code'] = isset($data['code']) ? $data['code'] : null;
|
||||
$this->container['message'] = isset($data['message']) ? $data['message'] : null;
|
||||
$this->container['channelInfoList'] = isset($data['channelInfoList']) ? $data['channelInfoList'] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Show all the invalid properties with reasons.
|
||||
*
|
||||
* @return array invalid properties with reasons
|
||||
*/
|
||||
public function listInvalidProperties()
|
||||
{
|
||||
$invalidProperties = [];
|
||||
|
||||
return $invalidProperties;
|
||||
}
|
||||
|
||||
/**
|
||||
* Validate all the properties in the model
|
||||
* return true if all passed
|
||||
*
|
||||
* @return bool True if all properties are valid
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets code
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCode()
|
||||
{
|
||||
return $this->container['code'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets code
|
||||
*
|
||||
* @param string $code 返回码
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setCode($code)
|
||||
{
|
||||
$this->container['code'] = $code;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets message
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMessage()
|
||||
{
|
||||
return $this->container['message'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets message
|
||||
*
|
||||
* @param string $message 返回信息
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setMessage($message)
|
||||
{
|
||||
$this->container['message'] = $message;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets channelInfoList
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getChannelInfoList()
|
||||
{
|
||||
return $this->container['channelInfoList'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets channelInfoList
|
||||
*
|
||||
* @param string $channelInfoList 营销内容列表
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setChannelInfoList($channelInfoList)
|
||||
{
|
||||
$this->container['channelInfoList'] = $channelInfoList;
|
||||
|
||||
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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
142
lib/Service/Aggpay/Model/ShareTokenMarketQueryRequest.php
Normal file
142
lib/Service/Aggpay/Model/ShareTokenMarketQueryRequest.php
Normal file
@@ -0,0 +1,142 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
|
||||
class ShareTokenMarketQueryRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $orderId;
|
||||
/**
|
||||
* @var float
|
||||
*/
|
||||
private $orderAmount;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $externalUserId;
|
||||
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->parentMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
*
|
||||
* @param string $parentMerchantNo
|
||||
* @return ShareTokenMarketQueryRequest
|
||||
*/
|
||||
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 ShareTokenMarketQueryRequest
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->merchantNo = $merchantNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets orderId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getOrderId()
|
||||
{
|
||||
return $this->orderId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets orderId
|
||||
*
|
||||
* @param string $orderId
|
||||
* @return ShareTokenMarketQueryRequest
|
||||
*/
|
||||
public function setOrderId($orderId)
|
||||
{
|
||||
$this->orderId = $orderId;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets orderAmount
|
||||
*
|
||||
* @return float
|
||||
*/
|
||||
public function getOrderAmount()
|
||||
{
|
||||
return $this->orderAmount;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets orderAmount
|
||||
*
|
||||
* @param float $orderAmount
|
||||
* @return ShareTokenMarketQueryRequest
|
||||
*/
|
||||
public function setOrderAmount($orderAmount)
|
||||
{
|
||||
$this->orderAmount = $orderAmount;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets externalUserId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getExternalUserId()
|
||||
{
|
||||
return $this->externalUserId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets externalUserId
|
||||
*
|
||||
* @param string $externalUserId
|
||||
* @return ShareTokenMarketQueryRequest
|
||||
*/
|
||||
public function setExternalUserId($externalUserId)
|
||||
{
|
||||
$this->externalUserId = $externalUserId;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'shareTokenMarketQuery';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,92 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\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 ShareTokenMarketQueryRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var ShareTokenMarketQueryRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new ShareTokenMarketQueryRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ShareTokenMarketQueryRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Aggpay';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'GET';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/aggpay/share-token/market-query';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param ShareTokenMarketQueryRequest $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->getOrderId() != null){
|
||||
$internalRequest->addParameter('orderId', ObjectSerializer::sanitizeForSerialization($request->getOrderId(), 'string'));
|
||||
}
|
||||
if($request->getOrderAmount() != null){
|
||||
$internalRequest->addParameter('orderAmount', ObjectSerializer::sanitizeForSerialization($request->getOrderAmount(), 'float'));
|
||||
}
|
||||
if($request->getExternalUserId() != null){
|
||||
$internalRequest->addParameter('externalUserId', ObjectSerializer::sanitizeForSerialization($request->getExternalUserId(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
ShareTokenMarketQueryRequestMarshaller::__init();
|
||||
34
lib/Service/Aggpay/Model/ShareTokenMarketQueryResponse.php
Normal file
34
lib/Service/Aggpay/Model/ShareTokenMarketQueryResponse.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
|
||||
class ShareTokenMarketQueryResponse extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var ShareTokenMarketQueryAliMarketQueryResponseDTOResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Aggpay\Model\ShareTokenMarketQueryAliMarketQueryResponseDTOResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ShareTokenMarketQueryAliMarketQueryResponseDTOResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ShareTokenMarketQueryAliMarketQueryResponseDTOResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class ShareTokenMarketQueryResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var ShareTokenMarketQueryResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new ShareTokenMarketQueryResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ShareTokenMarketQueryResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ShareTokenMarketQueryResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new ShareTokenMarketQueryResponse();
|
||||
}
|
||||
}
|
||||
|
||||
ShareTokenMarketQueryResponseUnMarshaller::__init();
|
||||
587
lib/Service/Aggpay/Model/TutelagePrePayRequest.php
Normal file
587
lib/Service/Aggpay/Model/TutelagePrePayRequest.php
Normal file
@@ -0,0 +1,587 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\BaseRequest;
|
||||
|
||||
class TutelagePrePayRequest extends BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $orderId;
|
||||
/**
|
||||
* @var float
|
||||
*/
|
||||
private $orderAmount;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $expiredTime;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $memo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $goodsName;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $fundProcessType;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $notifyUrl;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $payWay;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $channel;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $scene;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $userIp;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $limitCredit;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $token;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $csUrl;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $redirectUrl;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $businessInfo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $productInfo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $ypAccountBookNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $divideDetail;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $divideNotifyUrl;
|
||||
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->parentMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
*
|
||||
* @param string $parentMerchantNo
|
||||
* @return TutelagePrePayRequest
|
||||
*/
|
||||
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 TutelagePrePayRequest
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->merchantNo = $merchantNo;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets orderId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getOrderId()
|
||||
{
|
||||
return $this->orderId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets orderId
|
||||
*
|
||||
* @param string $orderId
|
||||
* @return TutelagePrePayRequest
|
||||
*/
|
||||
public function setOrderId($orderId)
|
||||
{
|
||||
$this->orderId = $orderId;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets orderAmount
|
||||
*
|
||||
* @return float
|
||||
*/
|
||||
public function getOrderAmount()
|
||||
{
|
||||
return $this->orderAmount;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets orderAmount
|
||||
*
|
||||
* @param float $orderAmount
|
||||
* @return TutelagePrePayRequest
|
||||
*/
|
||||
public function setOrderAmount($orderAmount)
|
||||
{
|
||||
$this->orderAmount = $orderAmount;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets expiredTime
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getExpiredTime()
|
||||
{
|
||||
return $this->expiredTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets expiredTime
|
||||
*
|
||||
* @param string $expiredTime
|
||||
* @return TutelagePrePayRequest
|
||||
*/
|
||||
public function setExpiredTime($expiredTime)
|
||||
{
|
||||
$this->expiredTime = $expiredTime;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets memo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMemo()
|
||||
{
|
||||
return $this->memo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets memo
|
||||
*
|
||||
* @param string $memo
|
||||
* @return TutelagePrePayRequest
|
||||
*/
|
||||
public function setMemo($memo)
|
||||
{
|
||||
$this->memo = $memo;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets goodsName
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getGoodsName()
|
||||
{
|
||||
return $this->goodsName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets goodsName
|
||||
*
|
||||
* @param string $goodsName
|
||||
* @return TutelagePrePayRequest
|
||||
*/
|
||||
public function setGoodsName($goodsName)
|
||||
{
|
||||
$this->goodsName = $goodsName;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets fundProcessType
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getFundProcessType()
|
||||
{
|
||||
return $this->fundProcessType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets fundProcessType
|
||||
*
|
||||
* @param string $fundProcessType
|
||||
* @return TutelagePrePayRequest
|
||||
*/
|
||||
public function setFundProcessType($fundProcessType)
|
||||
{
|
||||
$this->fundProcessType = $fundProcessType;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets notifyUrl
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getNotifyUrl()
|
||||
{
|
||||
return $this->notifyUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets notifyUrl
|
||||
*
|
||||
* @param string $notifyUrl
|
||||
* @return TutelagePrePayRequest
|
||||
*/
|
||||
public function setNotifyUrl($notifyUrl)
|
||||
{
|
||||
$this->notifyUrl = $notifyUrl;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets payWay
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getPayWay()
|
||||
{
|
||||
return $this->payWay;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets payWay
|
||||
*
|
||||
* @param string $payWay
|
||||
* @return TutelagePrePayRequest
|
||||
*/
|
||||
public function setPayWay($payWay)
|
||||
{
|
||||
$this->payWay = $payWay;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets channel
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getChannel()
|
||||
{
|
||||
return $this->channel;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets channel
|
||||
*
|
||||
* @param string $channel
|
||||
* @return TutelagePrePayRequest
|
||||
*/
|
||||
public function setChannel($channel)
|
||||
{
|
||||
$this->channel = $channel;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets scene
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getScene()
|
||||
{
|
||||
return $this->scene;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets scene
|
||||
*
|
||||
* @param string $scene
|
||||
* @return TutelagePrePayRequest
|
||||
*/
|
||||
public function setScene($scene)
|
||||
{
|
||||
$this->scene = $scene;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets userIp
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getUserIp()
|
||||
{
|
||||
return $this->userIp;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets userIp
|
||||
*
|
||||
* @param string $userIp
|
||||
* @return TutelagePrePayRequest
|
||||
*/
|
||||
public function setUserIp($userIp)
|
||||
{
|
||||
$this->userIp = $userIp;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets limitCredit
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getLimitCredit()
|
||||
{
|
||||
return $this->limitCredit;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets limitCredit
|
||||
*
|
||||
* @param string $limitCredit
|
||||
* @return TutelagePrePayRequest
|
||||
*/
|
||||
public function setLimitCredit($limitCredit)
|
||||
{
|
||||
$this->limitCredit = $limitCredit;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets token
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getToken()
|
||||
{
|
||||
return $this->token;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets token
|
||||
*
|
||||
* @param string $token
|
||||
* @return TutelagePrePayRequest
|
||||
*/
|
||||
public function setToken($token)
|
||||
{
|
||||
$this->token = $token;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets csUrl
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCsUrl()
|
||||
{
|
||||
return $this->csUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets csUrl
|
||||
*
|
||||
* @param string $csUrl
|
||||
* @return TutelagePrePayRequest
|
||||
*/
|
||||
public function setCsUrl($csUrl)
|
||||
{
|
||||
$this->csUrl = $csUrl;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets redirectUrl
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRedirectUrl()
|
||||
{
|
||||
return $this->redirectUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets redirectUrl
|
||||
*
|
||||
* @param string $redirectUrl
|
||||
* @return TutelagePrePayRequest
|
||||
*/
|
||||
public function setRedirectUrl($redirectUrl)
|
||||
{
|
||||
$this->redirectUrl = $redirectUrl;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets businessInfo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getBusinessInfo()
|
||||
{
|
||||
return $this->businessInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets businessInfo
|
||||
*
|
||||
* @param string $businessInfo
|
||||
* @return TutelagePrePayRequest
|
||||
*/
|
||||
public function setBusinessInfo($businessInfo)
|
||||
{
|
||||
$this->businessInfo = $businessInfo;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets productInfo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getProductInfo()
|
||||
{
|
||||
return $this->productInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets productInfo
|
||||
*
|
||||
* @param string $productInfo
|
||||
* @return TutelagePrePayRequest
|
||||
*/
|
||||
public function setProductInfo($productInfo)
|
||||
{
|
||||
$this->productInfo = $productInfo;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets ypAccountBookNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getYpAccountBookNo()
|
||||
{
|
||||
return $this->ypAccountBookNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets ypAccountBookNo
|
||||
*
|
||||
* @param string $ypAccountBookNo
|
||||
* @return TutelagePrePayRequest
|
||||
*/
|
||||
public function setYpAccountBookNo($ypAccountBookNo)
|
||||
{
|
||||
$this->ypAccountBookNo = $ypAccountBookNo;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets divideDetail
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getDivideDetail()
|
||||
{
|
||||
return $this->divideDetail;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets divideDetail
|
||||
*
|
||||
* @param string $divideDetail
|
||||
* @return TutelagePrePayRequest
|
||||
*/
|
||||
public function setDivideDetail($divideDetail)
|
||||
{
|
||||
$this->divideDetail = $divideDetail;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets divideNotifyUrl
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getDivideNotifyUrl()
|
||||
{
|
||||
return $this->divideNotifyUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets divideNotifyUrl
|
||||
*
|
||||
* @param string $divideNotifyUrl
|
||||
* @return TutelagePrePayRequest
|
||||
*/
|
||||
public function setDivideNotifyUrl($divideNotifyUrl)
|
||||
{
|
||||
$this->divideNotifyUrl = $divideNotifyUrl;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'tutelagePrePay';
|
||||
}
|
||||
|
||||
}
|
||||
143
lib/Service/Aggpay/Model/TutelagePrePayRequestMarshaller.php
Normal file
143
lib/Service/Aggpay/Model/TutelagePrePayRequestMarshaller.php
Normal file
@@ -0,0 +1,143 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\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 TutelagePrePayRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var TutelagePrePayRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new TutelagePrePayRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return TutelagePrePayRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Aggpay';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/aggpay/tutelage/pre-pay';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param TutelagePrePayRequest $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->getOrderId() != null){
|
||||
$internalRequest->addParameter('orderId', ObjectSerializer::sanitizeForSerialization($request->getOrderId(), 'string'));
|
||||
}
|
||||
if($request->getOrderAmount() != null){
|
||||
$internalRequest->addParameter('orderAmount', ObjectSerializer::sanitizeForSerialization($request->getOrderAmount(), 'float'));
|
||||
}
|
||||
if($request->getExpiredTime() != null){
|
||||
$internalRequest->addParameter('expiredTime', ObjectSerializer::sanitizeForSerialization($request->getExpiredTime(), 'string', 'date-time'));
|
||||
}
|
||||
if($request->getMemo() != null){
|
||||
$internalRequest->addParameter('memo', ObjectSerializer::sanitizeForSerialization($request->getMemo(), 'string'));
|
||||
}
|
||||
if($request->getGoodsName() != null){
|
||||
$internalRequest->addParameter('goodsName', ObjectSerializer::sanitizeForSerialization($request->getGoodsName(), 'string'));
|
||||
}
|
||||
if($request->getFundProcessType() != null){
|
||||
$internalRequest->addParameter('fundProcessType', ObjectSerializer::sanitizeForSerialization($request->getFundProcessType(), 'string'));
|
||||
}
|
||||
if($request->getNotifyUrl() != null){
|
||||
$internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string', 'url'));
|
||||
}
|
||||
if($request->getPayWay() != null){
|
||||
$internalRequest->addParameter('payWay', ObjectSerializer::sanitizeForSerialization($request->getPayWay(), 'string'));
|
||||
}
|
||||
if($request->getChannel() != null){
|
||||
$internalRequest->addParameter('channel', ObjectSerializer::sanitizeForSerialization($request->getChannel(), 'string'));
|
||||
}
|
||||
if($request->getScene() != null){
|
||||
$internalRequest->addParameter('scene', ObjectSerializer::sanitizeForSerialization($request->getScene(), 'string'));
|
||||
}
|
||||
if($request->getUserIp() != null){
|
||||
$internalRequest->addParameter('userIp', ObjectSerializer::sanitizeForSerialization($request->getUserIp(), 'string'));
|
||||
}
|
||||
if($request->getLimitCredit() != null){
|
||||
$internalRequest->addParameter('limitCredit', ObjectSerializer::sanitizeForSerialization($request->getLimitCredit(), 'string'));
|
||||
}
|
||||
if($request->getToken() != null){
|
||||
$internalRequest->addParameter('token', ObjectSerializer::sanitizeForSerialization($request->getToken(), 'string'));
|
||||
}
|
||||
if($request->getCsUrl() != null){
|
||||
$internalRequest->addParameter('csUrl', ObjectSerializer::sanitizeForSerialization($request->getCsUrl(), 'string', 'url'));
|
||||
}
|
||||
if($request->getRedirectUrl() != null){
|
||||
$internalRequest->addParameter('redirectUrl', ObjectSerializer::sanitizeForSerialization($request->getRedirectUrl(), 'string', 'url'));
|
||||
}
|
||||
if($request->getBusinessInfo() != null){
|
||||
$internalRequest->addParameter('businessInfo', ObjectSerializer::sanitizeForSerialization($request->getBusinessInfo(), 'string'));
|
||||
}
|
||||
if($request->getProductInfo() != null){
|
||||
$internalRequest->addParameter('productInfo', ObjectSerializer::sanitizeForSerialization($request->getProductInfo(), 'string'));
|
||||
}
|
||||
if($request->getYpAccountBookNo() != null){
|
||||
$internalRequest->addParameter('ypAccountBookNo', ObjectSerializer::sanitizeForSerialization($request->getYpAccountBookNo(), 'string'));
|
||||
}
|
||||
if($request->getDivideDetail() != null){
|
||||
$internalRequest->addParameter('divideDetail', ObjectSerializer::sanitizeForSerialization($request->getDivideDetail(), 'string'));
|
||||
}
|
||||
if($request->getDivideNotifyUrl() != null){
|
||||
$internalRequest->addParameter('divideNotifyUrl', ObjectSerializer::sanitizeForSerialization($request->getDivideNotifyUrl(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
TutelagePrePayRequestMarshaller::__init();
|
||||
35
lib/Service/Aggpay/Model/TutelagePrePayResponse.php
Normal file
35
lib/Service/Aggpay/Model/TutelagePrePayResponse.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\BaseResponse;
|
||||
|
||||
class TutelagePrePayResponse extends BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var TutelagePrePayWrapPrePayOrderResponseDTOResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Aggpay\Model\TutelagePrePayWrapPrePayOrderResponseDTOResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param TutelagePrePayWrapPrePayOrderResponseDTOResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return TutelagePrePayWrapPrePayOrderResponseDTOResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class TutelagePrePayResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var TutelagePrePayResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new TutelagePrePayResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return TutelagePrePayResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return TutelagePrePayResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new TutelagePrePayResponse();
|
||||
}
|
||||
}
|
||||
|
||||
TutelagePrePayResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,512 @@
|
||||
<?php
|
||||
/**
|
||||
* TutelagePrePayWrapPrePayOrderResponseDTOResult
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 聚合支付
|
||||
*
|
||||
* <p>提供聚合支付相关服务(支付下单、公众号配置等功能</p>
|
||||
*
|
||||
* OpenAPI spec version: 1.0
|
||||
*
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 3.0.13
|
||||
*/
|
||||
|
||||
/**
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* TutelagePrePayWrapPrePayOrderResponseDTOResult Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class TutelagePrePayWrapPrePayOrderResponseDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'TutelagePrePayWrapPrePayOrderResponseDTOResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'code' => 'string',
|
||||
'message' => 'string',
|
||||
'orderId' => 'string',
|
||||
'uniqueOrderNo' => 'string',
|
||||
'prePayTn' => 'string',
|
||||
'appId' => 'string',
|
||||
'miniProgramPath' => 'string',
|
||||
'miniProgramOrgId' => 'string'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'code' => null,
|
||||
'message' => null,
|
||||
'orderId' => null,
|
||||
'uniqueOrderNo' => null,
|
||||
'prePayTn' => null,
|
||||
'appId' => null,
|
||||
'miniProgramPath' => null,
|
||||
'miniProgramOrgId' => null
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerTypes()
|
||||
{
|
||||
return self::$swaggerTypes;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerFormats()
|
||||
{
|
||||
return self::$swaggerFormats;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $attributeMap = [
|
||||
'code' => 'code',
|
||||
'message' => 'message',
|
||||
'orderId' => 'orderId',
|
||||
'uniqueOrderNo' => 'uniqueOrderNo',
|
||||
'prePayTn' => 'prePayTn',
|
||||
'appId' => 'appId',
|
||||
'miniProgramPath' => 'miniProgramPath',
|
||||
'miniProgramOrgId' => 'miniProgramOrgId'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'code' => 'setCode',
|
||||
'message' => 'setMessage',
|
||||
'orderId' => 'setOrderId',
|
||||
'uniqueOrderNo' => 'setUniqueOrderNo',
|
||||
'prePayTn' => 'setPrePayTn',
|
||||
'appId' => 'setAppId',
|
||||
'miniProgramPath' => 'setMiniProgramPath',
|
||||
'miniProgramOrgId' => 'setMiniProgramOrgId'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'code' => 'getCode',
|
||||
'message' => 'getMessage',
|
||||
'orderId' => 'getOrderId',
|
||||
'uniqueOrderNo' => 'getUniqueOrderNo',
|
||||
'prePayTn' => 'getPrePayTn',
|
||||
'appId' => 'getAppId',
|
||||
'miniProgramPath' => 'getMiniProgramPath',
|
||||
'miniProgramOrgId' => 'getMiniProgramOrgId'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function attributeMap()
|
||||
{
|
||||
return self::$attributeMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function setters()
|
||||
{
|
||||
return self::$setters;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function getters()
|
||||
{
|
||||
return self::$getters;
|
||||
}
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getModelName()
|
||||
{
|
||||
return self::$swaggerModelName;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Associative array for storing property values
|
||||
*
|
||||
* @var mixed[]
|
||||
*/
|
||||
protected $container = [];
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param mixed[] $data Associated array of property values
|
||||
* initializing the model
|
||||
*/
|
||||
public function __construct(array $data = null)
|
||||
{
|
||||
$this->container['code'] = isset($data['code']) ? $data['code'] : null;
|
||||
$this->container['message'] = isset($data['message']) ? $data['message'] : null;
|
||||
$this->container['orderId'] = isset($data['orderId']) ? $data['orderId'] : null;
|
||||
$this->container['uniqueOrderNo'] = isset($data['uniqueOrderNo']) ? $data['uniqueOrderNo'] : null;
|
||||
$this->container['prePayTn'] = isset($data['prePayTn']) ? $data['prePayTn'] : null;
|
||||
$this->container['appId'] = isset($data['appId']) ? $data['appId'] : null;
|
||||
$this->container['miniProgramPath'] = isset($data['miniProgramPath']) ? $data['miniProgramPath'] : null;
|
||||
$this->container['miniProgramOrgId'] = isset($data['miniProgramOrgId']) ? $data['miniProgramOrgId'] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Show all the invalid properties with reasons.
|
||||
*
|
||||
* @return array invalid properties with reasons
|
||||
*/
|
||||
public function listInvalidProperties()
|
||||
{
|
||||
$invalidProperties = [];
|
||||
|
||||
return $invalidProperties;
|
||||
}
|
||||
|
||||
/**
|
||||
* Validate all the properties in the model
|
||||
* return true if all passed
|
||||
*
|
||||
* @return bool True if all properties are valid
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets code
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCode()
|
||||
{
|
||||
return $this->container['code'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets code
|
||||
*
|
||||
* @param string $code 返回码
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setCode($code)
|
||||
{
|
||||
$this->container['code'] = $code;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets message
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMessage()
|
||||
{
|
||||
return $this->container['message'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets message
|
||||
*
|
||||
* @param string $message 返回信息
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setMessage($message)
|
||||
{
|
||||
$this->container['message'] = $message;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets orderId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getOrderId()
|
||||
{
|
||||
return $this->container['orderId'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets orderId
|
||||
*
|
||||
* @param string $orderId 商户收款请求号
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setOrderId($orderId)
|
||||
{
|
||||
$this->container['orderId'] = $orderId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets uniqueOrderNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getUniqueOrderNo()
|
||||
{
|
||||
return $this->container['uniqueOrderNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets uniqueOrderNo
|
||||
*
|
||||
* @param string $uniqueOrderNo 易宝收款订单号
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setUniqueOrderNo($uniqueOrderNo)
|
||||
{
|
||||
$this->container['uniqueOrderNo'] = $uniqueOrderNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets prePayTn
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getPrePayTn()
|
||||
{
|
||||
return $this->container['prePayTn'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets prePayTn
|
||||
*
|
||||
* @param string $prePayTn 预支付标识信息
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setPrePayTn($prePayTn)
|
||||
{
|
||||
$this->container['prePayTn'] = $prePayTn;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets appId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getAppId()
|
||||
{
|
||||
return $this->container['appId'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets appId
|
||||
*
|
||||
* @param string $appId 小程序appId
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setAppId($appId)
|
||||
{
|
||||
$this->container['appId'] = $appId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets miniProgramPath
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMiniProgramPath()
|
||||
{
|
||||
return $this->container['miniProgramPath'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets miniProgramPath
|
||||
*
|
||||
* @param string $miniProgramPath 跳转小程序的路径
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setMiniProgramPath($miniProgramPath)
|
||||
{
|
||||
$this->container['miniProgramPath'] = $miniProgramPath;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets miniProgramOrgId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMiniProgramOrgId()
|
||||
{
|
||||
return $this->container['miniProgramOrgId'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets miniProgramOrgId
|
||||
*
|
||||
* @param string $miniProgramOrgId 小程序原始id
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setMiniProgramOrgId($miniProgramOrgId)
|
||||
{
|
||||
$this->container['miniProgramOrgId'] = $miniProgramOrgId;
|
||||
|
||||
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/Aggpay/Model/WechatConfigAddV2Request.php
Normal file
117
lib/Service/Aggpay/Model/WechatConfigAddV2Request.php
Normal file
@@ -0,0 +1,117 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
|
||||
class WechatConfigAddV2Request extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $tradeAuthDirList;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $appIdList;
|
||||
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->parentMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
*
|
||||
* @param string $parentMerchantNo
|
||||
* @return WechatConfigAddV2Request
|
||||
*/
|
||||
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 WechatConfigAddV2Request
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->merchantNo = $merchantNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets tradeAuthDirList
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getTradeAuthDirList()
|
||||
{
|
||||
return $this->tradeAuthDirList;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets tradeAuthDirList
|
||||
*
|
||||
* @param string $tradeAuthDirList
|
||||
* @return WechatConfigAddV2Request
|
||||
*/
|
||||
public function setTradeAuthDirList($tradeAuthDirList)
|
||||
{
|
||||
$this->tradeAuthDirList = $tradeAuthDirList;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets appIdList
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getAppIdList()
|
||||
{
|
||||
return $this->appIdList;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets appIdList
|
||||
*
|
||||
* @param string $appIdList
|
||||
* @return WechatConfigAddV2Request
|
||||
*/
|
||||
public function setAppIdList($appIdList)
|
||||
{
|
||||
$this->appIdList = $appIdList;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'wechatConfigAddV2';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,89 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\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 WechatConfigAddV2RequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var WechatConfigAddV2RequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new WechatConfigAddV2RequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return WechatConfigAddV2RequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Aggpay';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v2.0/aggpay/wechat-config/add';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param WechatConfigAddV2Request $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->getTradeAuthDirList() != null){
|
||||
$internalRequest->addParameter('tradeAuthDirList', ObjectSerializer::sanitizeForSerialization($request->getTradeAuthDirList(), 'string'));
|
||||
}
|
||||
if($request->getAppIdList() != null){
|
||||
$internalRequest->addParameter('appIdList', ObjectSerializer::sanitizeForSerialization($request->getAppIdList(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
WechatConfigAddV2RequestMarshaller::__init();
|
||||
34
lib/Service/Aggpay/Model/WechatConfigAddV2Response.php
Normal file
34
lib/Service/Aggpay/Model/WechatConfigAddV2Response.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
|
||||
class WechatConfigAddV2Response extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var WechatConfigAddV2WechatConfigFlatResponseDTOResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Aggpay\Model\WechatConfigAddV2WechatConfigFlatResponseDTOResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param WechatConfigAddV2WechatConfigFlatResponseDTOResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return WechatConfigAddV2WechatConfigFlatResponseDTOResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class WechatConfigAddV2ResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var WechatConfigAddV2ResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new WechatConfigAddV2ResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return WechatConfigAddV2ResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return WechatConfigAddV2Response
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new WechatConfigAddV2Response();
|
||||
}
|
||||
}
|
||||
|
||||
WechatConfigAddV2ResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,392 @@
|
||||
<?php
|
||||
/**
|
||||
* WechatConfigAddV2WechatConfigFlatResponseDTOResult
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 聚合支付
|
||||
*
|
||||
* <p>提供聚合支付相关服务(支付下单、公众号配置等功能</p>
|
||||
*
|
||||
* OpenAPI spec version: 1.0
|
||||
*
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 3.0.13
|
||||
*/
|
||||
|
||||
/**
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* WechatConfigAddV2WechatConfigFlatResponseDTOResult Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class WechatConfigAddV2WechatConfigFlatResponseDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'WechatConfigAddV2WechatConfigFlatResponseDTOResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'code' => 'string',
|
||||
'message' => 'string',
|
||||
'status' => 'string',
|
||||
'configResult' => 'string'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'code' => null,
|
||||
'message' => null,
|
||||
'status' => null,
|
||||
'configResult' => null
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerTypes()
|
||||
{
|
||||
return self::$swaggerTypes;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerFormats()
|
||||
{
|
||||
return self::$swaggerFormats;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $attributeMap = [
|
||||
'code' => 'code',
|
||||
'message' => 'message',
|
||||
'status' => 'status',
|
||||
'configResult' => 'configResult'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'code' => 'setCode',
|
||||
'message' => 'setMessage',
|
||||
'status' => 'setStatus',
|
||||
'configResult' => 'setConfigResult'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'code' => 'getCode',
|
||||
'message' => 'getMessage',
|
||||
'status' => 'getStatus',
|
||||
'configResult' => 'getConfigResult'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function attributeMap()
|
||||
{
|
||||
return self::$attributeMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function setters()
|
||||
{
|
||||
return self::$setters;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function getters()
|
||||
{
|
||||
return self::$getters;
|
||||
}
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getModelName()
|
||||
{
|
||||
return self::$swaggerModelName;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Associative array for storing property values
|
||||
*
|
||||
* @var mixed[]
|
||||
*/
|
||||
protected $container = [];
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param mixed[] $data Associated array of property values
|
||||
* initializing the model
|
||||
*/
|
||||
public function __construct(array $data = null)
|
||||
{
|
||||
$this->container['code'] = isset($data['code']) ? $data['code'] : null;
|
||||
$this->container['message'] = isset($data['message']) ? $data['message'] : null;
|
||||
$this->container['status'] = isset($data['status']) ? $data['status'] : null;
|
||||
$this->container['configResult'] = isset($data['configResult']) ? $data['configResult'] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Show all the invalid properties with reasons.
|
||||
*
|
||||
* @return array invalid properties with reasons
|
||||
*/
|
||||
public function listInvalidProperties()
|
||||
{
|
||||
$invalidProperties = [];
|
||||
|
||||
return $invalidProperties;
|
||||
}
|
||||
|
||||
/**
|
||||
* Validate all the properties in the model
|
||||
* return true if all passed
|
||||
*
|
||||
* @return bool True if all properties are valid
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets code
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCode()
|
||||
{
|
||||
return $this->container['code'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets code
|
||||
*
|
||||
* @param string $code 返回码
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setCode($code)
|
||||
{
|
||||
$this->container['code'] = $code;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets message
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMessage()
|
||||
{
|
||||
return $this->container['message'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets message
|
||||
*
|
||||
* @param string $message 返回信息描述
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setMessage($message)
|
||||
{
|
||||
$this->container['message'] = $message;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets status
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getStatus()
|
||||
{
|
||||
return $this->container['status'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets status
|
||||
*
|
||||
* @param string $status 受理状态
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setStatus($status)
|
||||
{
|
||||
$this->container['status'] = $status;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets configResult
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getConfigResult()
|
||||
{
|
||||
return $this->container['configResult'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets configResult
|
||||
*
|
||||
* @param string $configResult 配置结果
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setConfigResult($configResult)
|
||||
{
|
||||
$this->container['configResult'] = $configResult;
|
||||
|
||||
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/Aggpay/Model/WechatConfigQueryV2Request.php
Normal file
92
lib/Service/Aggpay/Model/WechatConfigQueryV2Request.php
Normal file
@@ -0,0 +1,92 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
|
||||
class WechatConfigQueryV2Request extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $appIdType;
|
||||
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->parentMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
*
|
||||
* @param string $parentMerchantNo
|
||||
* @return WechatConfigQueryV2Request
|
||||
*/
|
||||
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 WechatConfigQueryV2Request
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->merchantNo = $merchantNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets appIdType
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getAppIdType()
|
||||
{
|
||||
return $this->appIdType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets appIdType
|
||||
*
|
||||
* @param string $appIdType
|
||||
* @return WechatConfigQueryV2Request
|
||||
*/
|
||||
public function setAppIdType($appIdType)
|
||||
{
|
||||
$this->appIdType = $appIdType;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'wechatConfigQueryV2';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\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 WechatConfigQueryV2RequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var WechatConfigQueryV2RequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new WechatConfigQueryV2RequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return WechatConfigQueryV2RequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Aggpay';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'GET';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v2.0/aggpay/wechat-config/query';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param WechatConfigQueryV2Request $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->getAppIdType() != null){
|
||||
$internalRequest->addParameter('appIdType', ObjectSerializer::sanitizeForSerialization($request->getAppIdType(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
WechatConfigQueryV2RequestMarshaller::__init();
|
||||
34
lib/Service/Aggpay/Model/WechatConfigQueryV2Response.php
Normal file
34
lib/Service/Aggpay/Model/WechatConfigQueryV2Response.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
|
||||
class WechatConfigQueryV2Response extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var WechatConfigQueryV2WechatConfigFlatResponseDTOResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Aggpay\Model\WechatConfigQueryV2WechatConfigFlatResponseDTOResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param WechatConfigQueryV2WechatConfigFlatResponseDTOResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return WechatConfigQueryV2WechatConfigFlatResponseDTOResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class WechatConfigQueryV2ResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var WechatConfigQueryV2ResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new WechatConfigQueryV2ResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return WechatConfigQueryV2ResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return WechatConfigQueryV2Response
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new WechatConfigQueryV2Response();
|
||||
}
|
||||
}
|
||||
|
||||
WechatConfigQueryV2ResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,392 @@
|
||||
<?php
|
||||
/**
|
||||
* WechatConfigQueryV2WechatConfigFlatResponseDTOResult
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 聚合支付
|
||||
*
|
||||
* <p>提供聚合支付相关服务(支付下单、公众号配置等功能</p>
|
||||
*
|
||||
* OpenAPI spec version: 1.0
|
||||
*
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 3.0.13
|
||||
*/
|
||||
|
||||
/**
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* WechatConfigQueryV2WechatConfigFlatResponseDTOResult Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class WechatConfigQueryV2WechatConfigFlatResponseDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'WechatConfigQueryV2WechatConfigFlatResponseDTOResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'code' => 'string',
|
||||
'message' => 'string',
|
||||
'status' => 'string',
|
||||
'configResult' => 'string'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'code' => null,
|
||||
'message' => null,
|
||||
'status' => null,
|
||||
'configResult' => null
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerTypes()
|
||||
{
|
||||
return self::$swaggerTypes;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerFormats()
|
||||
{
|
||||
return self::$swaggerFormats;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $attributeMap = [
|
||||
'code' => 'code',
|
||||
'message' => 'message',
|
||||
'status' => 'status',
|
||||
'configResult' => 'configResult'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'code' => 'setCode',
|
||||
'message' => 'setMessage',
|
||||
'status' => 'setStatus',
|
||||
'configResult' => 'setConfigResult'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'code' => 'getCode',
|
||||
'message' => 'getMessage',
|
||||
'status' => 'getStatus',
|
||||
'configResult' => 'getConfigResult'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function attributeMap()
|
||||
{
|
||||
return self::$attributeMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function setters()
|
||||
{
|
||||
return self::$setters;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function getters()
|
||||
{
|
||||
return self::$getters;
|
||||
}
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getModelName()
|
||||
{
|
||||
return self::$swaggerModelName;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Associative array for storing property values
|
||||
*
|
||||
* @var mixed[]
|
||||
*/
|
||||
protected $container = [];
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param mixed[] $data Associated array of property values
|
||||
* initializing the model
|
||||
*/
|
||||
public function __construct(array $data = null)
|
||||
{
|
||||
$this->container['code'] = isset($data['code']) ? $data['code'] : null;
|
||||
$this->container['message'] = isset($data['message']) ? $data['message'] : null;
|
||||
$this->container['status'] = isset($data['status']) ? $data['status'] : null;
|
||||
$this->container['configResult'] = isset($data['configResult']) ? $data['configResult'] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Show all the invalid properties with reasons.
|
||||
*
|
||||
* @return array invalid properties with reasons
|
||||
*/
|
||||
public function listInvalidProperties()
|
||||
{
|
||||
$invalidProperties = [];
|
||||
|
||||
return $invalidProperties;
|
||||
}
|
||||
|
||||
/**
|
||||
* Validate all the properties in the model
|
||||
* return true if all passed
|
||||
*
|
||||
* @return bool True if all properties are valid
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets code
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCode()
|
||||
{
|
||||
return $this->container['code'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets code
|
||||
*
|
||||
* @param string $code 返回码
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setCode($code)
|
||||
{
|
||||
$this->container['code'] = $code;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets message
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMessage()
|
||||
{
|
||||
return $this->container['message'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets message
|
||||
*
|
||||
* @param string $message 返回信息描述
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setMessage($message)
|
||||
{
|
||||
$this->container['message'] = $message;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets status
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getStatus()
|
||||
{
|
||||
return $this->container['status'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets status
|
||||
*
|
||||
* @param string $status 受理状态
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setStatus($status)
|
||||
{
|
||||
$this->container['status'] = $status;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets configResult
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getConfigResult()
|
||||
{
|
||||
return $this->container['configResult'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets configResult
|
||||
*
|
||||
* @param string $configResult 配置结果
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setConfigResult($configResult)
|
||||
{
|
||||
$this->container['configResult'] = $configResult;
|
||||
|
||||
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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user