first commit
This commit is contained in:
@@ -0,0 +1,320 @@
|
||||
<?php
|
||||
/**
|
||||
* MerchantQualUploadMerFileUploadRespDtoResult
|
||||
* PHP version 5
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 子商户入网大算航旅
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
* OpenAPI spec version: 1.0.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\Sys\Model;
|
||||
|
||||
use ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* MerchantQualUploadMerFileUploadRespDtoResult Class Doc Comment
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class MerchantQualUploadMerFileUploadRespDtoResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'MerchantQualUploadMerFileUploadRespDtoResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'returnMsg' => 'string',
|
||||
'returnCode' => 'string',
|
||||
'merQualUrl' => 'string',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'returnMsg' => null,
|
||||
'returnCode' => null,
|
||||
'merQualUrl' => 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 = [
|
||||
'returnMsg' => 'returnMsg',
|
||||
'returnCode' => 'returnCode',
|
||||
'merQualUrl' => 'merQualUrl',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'returnMsg' => 'setReturnMsg',
|
||||
'returnCode' => 'setReturnCode',
|
||||
'merQualUrl' => 'setMerQualUrl',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'returnMsg' => 'getReturnMsg',
|
||||
'returnCode' => 'getReturnCode',
|
||||
'merQualUrl' => 'getMerQualUrl',
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['returnMsg'] = isset($data['returnMsg']) ? $data['returnMsg'] : null;
|
||||
$this->container['returnCode'] = isset($data['returnCode']) ? $data['returnCode'] : null;
|
||||
$this->container['merQualUrl'] = isset($data['merQualUrl']) ? $data['merQualUrl'] : 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 returnMsg
|
||||
* @return string
|
||||
*/
|
||||
public function getReturnMsg()
|
||||
{
|
||||
return $this->container['returnMsg'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets returnMsg
|
||||
* @param string $returnMsg 响应信息
|
||||
* @return $this
|
||||
*/
|
||||
public function setReturnMsg($returnMsg)
|
||||
{
|
||||
$this->container['returnMsg'] = $returnMsg;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets returnCode
|
||||
* @return string
|
||||
*/
|
||||
public function getReturnCode()
|
||||
{
|
||||
return $this->container['returnCode'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets returnCode
|
||||
* @param string $returnCode 响应编码
|
||||
* @return $this
|
||||
*/
|
||||
public function setReturnCode($returnCode)
|
||||
{
|
||||
$this->container['returnCode'] = $returnCode;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets merQualUrl
|
||||
* @return string
|
||||
*/
|
||||
public function getMerQualUrl()
|
||||
{
|
||||
return $this->container['merQualUrl'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merQualUrl
|
||||
* @param string $merQualUrl 商户资质存储url
|
||||
* @return $this
|
||||
*/
|
||||
public function setMerQualUrl($merQualUrl)
|
||||
{
|
||||
$this->container['merQualUrl'] = $merQualUrl;
|
||||
|
||||
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));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
41
lib/Service/Sys/Model/MerchantQualUploadRequest.php
Normal file
41
lib/Service/Sys/Model/MerchantQualUploadRequest.php
Normal file
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Sys\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\BaseRequest;
|
||||
|
||||
class MerchantQualUploadRequest extends BaseRequest
|
||||
{
|
||||
|
||||
/**
|
||||
* @var Resource
|
||||
*/
|
||||
private $merQual;
|
||||
|
||||
/**
|
||||
* Gets merQual
|
||||
* @return Resource
|
||||
*/
|
||||
public function getMerQual()
|
||||
{
|
||||
return $this->merQual;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merQual
|
||||
* @param Resource $merQual
|
||||
* @return MerchantQualUploadRequest
|
||||
*/
|
||||
public function setMerQual($merQual)
|
||||
{
|
||||
$this->merQual = $merQual;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'merchantQualUpload';
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,79 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Sys\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\UUIDUtils;
|
||||
|
||||
class MerchantQualUploadRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var MerchantQualUploadRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new MerchantQualUploadRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return MerchantQualUploadRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Sys';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/yos/v1.0/sys/merchant/qual/upload';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'multipart/form-data';
|
||||
|
||||
/**
|
||||
* @param MerchantQualUploadRequest $request
|
||||
* @return Request
|
||||
*/
|
||||
public function marshal($request)
|
||||
{
|
||||
$internalRequest = new DefaultRequest($this->serviceName);
|
||||
$internalRequest->setResourcePath($this->resourcePath);
|
||||
$internalRequest->setHttpMethod($this->httpMethod);
|
||||
$internalRequest->setYosFlag(true);
|
||||
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->getMerQual() != null) {
|
||||
$internalRequest->addMultiPartFile('merQual', $request->getMerQual());
|
||||
}
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
MerchantQualUploadRequestMarshaller::__init();
|
||||
36
lib/Service/Sys/Model/MerchantQualUploadResponse.php
Normal file
36
lib/Service/Sys/Model/MerchantQualUploadResponse.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Sys\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\BaseResponse;
|
||||
|
||||
class MerchantQualUploadResponse extends BaseResponse
|
||||
{
|
||||
|
||||
/**
|
||||
* @var MerchantQualUploadMerFileUploadRespDtoResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Sys\Model\MerchantQualUploadMerFileUploadRespDtoResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param MerchantQualUploadMerFileUploadRespDtoResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return MerchantQualUploadMerFileUploadRespDtoResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Sys\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class MerchantQualUploadResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var MerchantQualUploadResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new MerchantQualUploadResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return MerchantQualUploadResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return MerchantQualUploadResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new MerchantQualUploadResponse();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
MerchantQualUploadResponseUnMarshaller::__init();
|
||||
249
lib/Service/Sys/Model/TradeDividebackRequest.php
Normal file
249
lib/Service/Sys/Model/TradeDividebackRequest.php
Normal file
@@ -0,0 +1,249 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Sys\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\BaseRequest;
|
||||
|
||||
class TradeDividebackRequest extends BaseRequest
|
||||
{
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $orderId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $uniqueOrderNo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $divideRequestId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $divideBackRequestId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $divideBackDetail;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $notifyUrl;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $hmac;
|
||||
|
||||
/**
|
||||
* Gets orderId
|
||||
* @return string
|
||||
*/
|
||||
public function getOrderId()
|
||||
{
|
||||
return $this->orderId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets orderId
|
||||
* @param string $orderId
|
||||
* @return TradeDividebackRequest
|
||||
*/
|
||||
public function setOrderId($orderId)
|
||||
{
|
||||
$this->orderId = $orderId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets uniqueOrderNo
|
||||
* @return string
|
||||
*/
|
||||
public function getUniqueOrderNo()
|
||||
{
|
||||
return $this->uniqueOrderNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets uniqueOrderNo
|
||||
* @param string $uniqueOrderNo
|
||||
* @return TradeDividebackRequest
|
||||
*/
|
||||
public function setUniqueOrderNo($uniqueOrderNo)
|
||||
{
|
||||
$this->uniqueOrderNo = $uniqueOrderNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets divideRequestId
|
||||
* @return string
|
||||
*/
|
||||
public function getDivideRequestId()
|
||||
{
|
||||
return $this->divideRequestId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets divideRequestId
|
||||
* @param string $divideRequestId
|
||||
* @return TradeDividebackRequest
|
||||
*/
|
||||
public function setDivideRequestId($divideRequestId)
|
||||
{
|
||||
$this->divideRequestId = $divideRequestId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets divideBackRequestId
|
||||
* @return string
|
||||
*/
|
||||
public function getDivideBackRequestId()
|
||||
{
|
||||
return $this->divideBackRequestId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets divideBackRequestId
|
||||
* @param string $divideBackRequestId
|
||||
* @return TradeDividebackRequest
|
||||
*/
|
||||
public function setDivideBackRequestId($divideBackRequestId)
|
||||
{
|
||||
$this->divideBackRequestId = $divideBackRequestId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets divideBackDetail
|
||||
* @return string
|
||||
*/
|
||||
public function getDivideBackDetail()
|
||||
{
|
||||
return $this->divideBackDetail;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets divideBackDetail
|
||||
* @param string $divideBackDetail
|
||||
* @return TradeDividebackRequest
|
||||
*/
|
||||
public function setDivideBackDetail($divideBackDetail)
|
||||
{
|
||||
$this->divideBackDetail = $divideBackDetail;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets notifyUrl
|
||||
* @return string
|
||||
*/
|
||||
public function getNotifyUrl()
|
||||
{
|
||||
return $this->notifyUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets notifyUrl
|
||||
* @param string $notifyUrl
|
||||
* @return TradeDividebackRequest
|
||||
*/
|
||||
public function setNotifyUrl($notifyUrl)
|
||||
{
|
||||
$this->notifyUrl = $notifyUrl;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->parentMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
* @param string $parentMerchantNo
|
||||
* @return TradeDividebackRequest
|
||||
*/
|
||||
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 TradeDividebackRequest
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->merchantNo = $merchantNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets hmac
|
||||
* @return string
|
||||
*/
|
||||
public function getHmac()
|
||||
{
|
||||
return $this->hmac;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets hmac
|
||||
* @param string $hmac
|
||||
* @return TradeDividebackRequest
|
||||
*/
|
||||
public function setHmac($hmac)
|
||||
{
|
||||
$this->hmac = $hmac;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'tradeDivideback';
|
||||
}
|
||||
|
||||
}
|
||||
113
lib/Service/Sys/Model/TradeDividebackRequestMarshaller.php
Normal file
113
lib/Service/Sys/Model/TradeDividebackRequestMarshaller.php
Normal file
@@ -0,0 +1,113 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Sys\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 TradeDividebackRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var TradeDividebackRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new TradeDividebackRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return TradeDividebackRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Sys';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/sys/trade/divideback';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
/**
|
||||
* @param TradeDividebackRequest $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->getOrderId() != null) {
|
||||
$internalRequest->addParameter('orderId',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getOrderId(), 'string'));
|
||||
}
|
||||
if ($request->getUniqueOrderNo() != null) {
|
||||
$internalRequest->addParameter('uniqueOrderNo',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getUniqueOrderNo(), 'string'));
|
||||
}
|
||||
if ($request->getDivideRequestId() != null) {
|
||||
$internalRequest->addParameter('divideRequestId',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getDivideRequestId(), 'string'));
|
||||
}
|
||||
if ($request->getDivideBackRequestId() != null) {
|
||||
$internalRequest->addParameter('divideBackRequestId',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getDivideBackRequestId(), 'string'));
|
||||
}
|
||||
if ($request->getDivideBackDetail() != null) {
|
||||
$internalRequest->addParameter('divideBackDetail',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getDivideBackDetail(), 'string'));
|
||||
}
|
||||
if ($request->getNotifyUrl() != null) {
|
||||
$internalRequest->addParameter('notifyUrl',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string'));
|
||||
}
|
||||
if ($request->getParentMerchantNo() != null) {
|
||||
$internalRequest->addParameter('parentMerchantNo',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string'));
|
||||
}
|
||||
if ($request->getMerchantNo() != null) {
|
||||
$internalRequest->addParameter('merchantNo',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string'));
|
||||
}
|
||||
if ($request->getHmac() != null) {
|
||||
$internalRequest->addParameter('hmac',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getHmac(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
TradeDividebackRequestMarshaller::__init();
|
||||
36
lib/Service/Sys/Model/TradeDividebackResponse.php
Normal file
36
lib/Service/Sys/Model/TradeDividebackResponse.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Sys\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\BaseResponse;
|
||||
|
||||
class TradeDividebackResponse extends BaseResponse
|
||||
{
|
||||
|
||||
/**
|
||||
* @var TradeDividebackYopDivideBackResDTOResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Sys\Model\TradeDividebackYopDivideBackResDTOResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param TradeDividebackYopDivideBackResDTOResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return TradeDividebackYopDivideBackResDTOResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Sys\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class TradeDividebackResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var TradeDividebackResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new TradeDividebackResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return TradeDividebackResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return TradeDividebackResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new TradeDividebackResponse();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
TradeDividebackResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,563 @@
|
||||
<?php
|
||||
/**
|
||||
* TradeDividebackYopDivideBackResDTOResult
|
||||
* PHP version 5
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 子商户入网大算航旅
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
* OpenAPI spec version: 1.0.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\Sys\Model;
|
||||
|
||||
use ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* TradeDividebackYopDivideBackResDTOResult Class Doc Comment
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class TradeDividebackYopDivideBackResDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'TradeDividebackYopDivideBackResDTOResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'code' => 'string',
|
||||
'message' => 'string',
|
||||
'bizSystemNo' => 'string',
|
||||
'parentMerchantNo' => 'string',
|
||||
'merchantNo' => 'string',
|
||||
'orderId' => 'string',
|
||||
'uniqueOrderNo' => 'string',
|
||||
'divideRequestId' => 'string',
|
||||
'divideBackRequestId' => 'string',
|
||||
'uniqueDivideBackNo' => 'string',
|
||||
'divideBackDetail' => 'string',
|
||||
'status' => 'string',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'code' => null,
|
||||
'message' => null,
|
||||
'bizSystemNo' => null,
|
||||
'parentMerchantNo' => null,
|
||||
'merchantNo' => null,
|
||||
'orderId' => null,
|
||||
'uniqueOrderNo' => null,
|
||||
'divideRequestId' => null,
|
||||
'divideBackRequestId' => null,
|
||||
'uniqueDivideBackNo' => null,
|
||||
'divideBackDetail' => null,
|
||||
'status' => 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',
|
||||
'bizSystemNo' => 'bizSystemNo',
|
||||
'parentMerchantNo' => 'parentMerchantNo',
|
||||
'merchantNo' => 'merchantNo',
|
||||
'orderId' => 'orderId',
|
||||
'uniqueOrderNo' => 'uniqueOrderNo',
|
||||
'divideRequestId' => 'divideRequestId',
|
||||
'divideBackRequestId' => 'divideBackRequestId',
|
||||
'uniqueDivideBackNo' => 'uniqueDivideBackNo',
|
||||
'divideBackDetail' => 'divideBackDetail',
|
||||
'status' => 'status',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'code' => 'setCode',
|
||||
'message' => 'setMessage',
|
||||
'bizSystemNo' => 'setBizSystemNo',
|
||||
'parentMerchantNo' => 'setParentMerchantNo',
|
||||
'merchantNo' => 'setMerchantNo',
|
||||
'orderId' => 'setOrderId',
|
||||
'uniqueOrderNo' => 'setUniqueOrderNo',
|
||||
'divideRequestId' => 'setDivideRequestId',
|
||||
'divideBackRequestId' => 'setDivideBackRequestId',
|
||||
'uniqueDivideBackNo' => 'setUniqueDivideBackNo',
|
||||
'divideBackDetail' => 'setDivideBackDetail',
|
||||
'status' => 'setStatus',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'code' => 'getCode',
|
||||
'message' => 'getMessage',
|
||||
'bizSystemNo' => 'getBizSystemNo',
|
||||
'parentMerchantNo' => 'getParentMerchantNo',
|
||||
'merchantNo' => 'getMerchantNo',
|
||||
'orderId' => 'getOrderId',
|
||||
'uniqueOrderNo' => 'getUniqueOrderNo',
|
||||
'divideRequestId' => 'getDivideRequestId',
|
||||
'divideBackRequestId' => 'getDivideBackRequestId',
|
||||
'uniqueDivideBackNo' => 'getUniqueDivideBackNo',
|
||||
'divideBackDetail' => 'getDivideBackDetail',
|
||||
'status' => 'getStatus',
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['bizSystemNo'] = isset($data['bizSystemNo']) ? $data['bizSystemNo'] : 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['divideRequestId'] = isset($data['divideRequestId']) ? $data['divideRequestId'] : null;
|
||||
$this->container['divideBackRequestId'] = isset($data['divideBackRequestId']) ? $data['divideBackRequestId'] : null;
|
||||
$this->container['uniqueDivideBackNo'] = isset($data['uniqueDivideBackNo']) ? $data['uniqueDivideBackNo'] : null;
|
||||
$this->container['divideBackDetail'] = isset($data['divideBackDetail']) ? $data['divideBackDetail'] : null;
|
||||
$this->container['status'] = isset($data['status']) ? $data['status'] : 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 bizSystemNo
|
||||
* @return string
|
||||
*/
|
||||
public function getBizSystemNo()
|
||||
{
|
||||
return $this->container['bizSystemNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bizSystemNo
|
||||
* @param string $bizSystemNo 业务方标识
|
||||
* @return $this
|
||||
*/
|
||||
public function setBizSystemNo($bizSystemNo)
|
||||
{
|
||||
$this->container['bizSystemNo'] = $bizSystemNo;
|
||||
|
||||
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 divideRequestId
|
||||
* @return string
|
||||
*/
|
||||
public function getDivideRequestId()
|
||||
{
|
||||
return $this->container['divideRequestId'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets divideRequestId
|
||||
* @param string $divideRequestId 商户分账请求号
|
||||
* @return $this
|
||||
*/
|
||||
public function setDivideRequestId($divideRequestId)
|
||||
{
|
||||
$this->container['divideRequestId'] = $divideRequestId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets divideBackRequestId
|
||||
* @return string
|
||||
*/
|
||||
public function getDivideBackRequestId()
|
||||
{
|
||||
return $this->container['divideBackRequestId'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets divideBackRequestId
|
||||
* @param string $divideBackRequestId 商户分账退回请求号
|
||||
* @return $this
|
||||
*/
|
||||
public function setDivideBackRequestId($divideBackRequestId)
|
||||
{
|
||||
$this->container['divideBackRequestId'] = $divideBackRequestId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets uniqueDivideBackNo
|
||||
* @return string
|
||||
*/
|
||||
public function getUniqueDivideBackNo()
|
||||
{
|
||||
return $this->container['uniqueDivideBackNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets uniqueDivideBackNo
|
||||
* @param string $uniqueDivideBackNo 易宝分账退回订单号
|
||||
* @return $this
|
||||
*/
|
||||
public function setUniqueDivideBackNo($uniqueDivideBackNo)
|
||||
{
|
||||
$this->container['uniqueDivideBackNo'] = $uniqueDivideBackNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets divideBackDetail
|
||||
* @return string
|
||||
*/
|
||||
public function getDivideBackDetail()
|
||||
{
|
||||
return $this->container['divideBackDetail'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets divideBackDetail
|
||||
* @param string $divideBackDetail 分账退回详情
|
||||
* @return $this
|
||||
*/
|
||||
public function setDivideBackDetail($divideBackDetail)
|
||||
{
|
||||
$this->container['divideBackDetail'] = $divideBackDetail;
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
/**
|
||||
* 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));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
639
lib/Service/Sys/Model/TradeOrderRequest.php
Normal file
639
lib/Service/Sys/Model/TradeOrderRequest.php
Normal file
@@ -0,0 +1,639 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Sys\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\BaseRequest;
|
||||
|
||||
class TradeOrderRequest extends BaseRequest
|
||||
{
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $orderId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $orderAmount;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
private $timeoutExpress;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $timeoutExpressType;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $requestDate;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $redirectUrl;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $notifyUrl;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $assureType;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $assurePeriod;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $goodsParamExt;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $paymentParamExt;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $industryParamExt;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $riskParamExt;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $memo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $fundProcessType;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $hmac;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $divideDetail;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $csUrl;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $divideNotifyUrl;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $timeoutNotifyUrl;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $siSubsidyMerchantAmout;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $queryParamsExt;
|
||||
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->parentMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
* @param string $parentMerchantNo
|
||||
* @return TradeOrderRequest
|
||||
*/
|
||||
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 TradeOrderRequest
|
||||
*/
|
||||
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 TradeOrderRequest
|
||||
*/
|
||||
public function setOrderId($orderId)
|
||||
{
|
||||
$this->orderId = $orderId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets orderAmount
|
||||
* @return string
|
||||
*/
|
||||
public function getOrderAmount()
|
||||
{
|
||||
return $this->orderAmount;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets orderAmount
|
||||
* @param string $orderAmount
|
||||
* @return TradeOrderRequest
|
||||
*/
|
||||
public function setOrderAmount($orderAmount)
|
||||
{
|
||||
$this->orderAmount = $orderAmount;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets timeoutExpress
|
||||
* @return int
|
||||
*/
|
||||
public function getTimeoutExpress()
|
||||
{
|
||||
return $this->timeoutExpress;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets timeoutExpress
|
||||
* @param int $timeoutExpress
|
||||
* @return TradeOrderRequest
|
||||
*/
|
||||
public function setTimeoutExpress($timeoutExpress)
|
||||
{
|
||||
$this->timeoutExpress = $timeoutExpress;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets timeoutExpressType
|
||||
* @return string
|
||||
*/
|
||||
public function getTimeoutExpressType()
|
||||
{
|
||||
return $this->timeoutExpressType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets timeoutExpressType
|
||||
* @param string $timeoutExpressType
|
||||
* @return TradeOrderRequest
|
||||
*/
|
||||
public function setTimeoutExpressType($timeoutExpressType)
|
||||
{
|
||||
$this->timeoutExpressType = $timeoutExpressType;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets requestDate
|
||||
* @return string
|
||||
*/
|
||||
public function getRequestDate()
|
||||
{
|
||||
return $this->requestDate;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets requestDate
|
||||
* @param string $requestDate
|
||||
* @return TradeOrderRequest
|
||||
*/
|
||||
public function setRequestDate($requestDate)
|
||||
{
|
||||
$this->requestDate = $requestDate;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets redirectUrl
|
||||
* @return string
|
||||
*/
|
||||
public function getRedirectUrl()
|
||||
{
|
||||
return $this->redirectUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets redirectUrl
|
||||
* @param string $redirectUrl
|
||||
* @return TradeOrderRequest
|
||||
*/
|
||||
public function setRedirectUrl($redirectUrl)
|
||||
{
|
||||
$this->redirectUrl = $redirectUrl;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets notifyUrl
|
||||
* @return string
|
||||
*/
|
||||
public function getNotifyUrl()
|
||||
{
|
||||
return $this->notifyUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets notifyUrl
|
||||
* @param string $notifyUrl
|
||||
* @return TradeOrderRequest
|
||||
*/
|
||||
public function setNotifyUrl($notifyUrl)
|
||||
{
|
||||
$this->notifyUrl = $notifyUrl;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets assureType
|
||||
* @return string
|
||||
*/
|
||||
public function getAssureType()
|
||||
{
|
||||
return $this->assureType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets assureType
|
||||
* @param string $assureType
|
||||
* @return TradeOrderRequest
|
||||
*/
|
||||
public function setAssureType($assureType)
|
||||
{
|
||||
$this->assureType = $assureType;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets assurePeriod
|
||||
* @return string
|
||||
*/
|
||||
public function getAssurePeriod()
|
||||
{
|
||||
return $this->assurePeriod;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets assurePeriod
|
||||
* @param string $assurePeriod
|
||||
* @return TradeOrderRequest
|
||||
*/
|
||||
public function setAssurePeriod($assurePeriod)
|
||||
{
|
||||
$this->assurePeriod = $assurePeriod;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets goodsParamExt
|
||||
* @return string
|
||||
*/
|
||||
public function getGoodsParamExt()
|
||||
{
|
||||
return $this->goodsParamExt;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets goodsParamExt
|
||||
* @param string $goodsParamExt
|
||||
* @return TradeOrderRequest
|
||||
*/
|
||||
public function setGoodsParamExt($goodsParamExt)
|
||||
{
|
||||
$this->goodsParamExt = $goodsParamExt;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets paymentParamExt
|
||||
* @return string
|
||||
*/
|
||||
public function getPaymentParamExt()
|
||||
{
|
||||
return $this->paymentParamExt;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets paymentParamExt
|
||||
* @param string $paymentParamExt
|
||||
* @return TradeOrderRequest
|
||||
*/
|
||||
public function setPaymentParamExt($paymentParamExt)
|
||||
{
|
||||
$this->paymentParamExt = $paymentParamExt;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets industryParamExt
|
||||
* @return string
|
||||
*/
|
||||
public function getIndustryParamExt()
|
||||
{
|
||||
return $this->industryParamExt;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets industryParamExt
|
||||
* @param string $industryParamExt
|
||||
* @return TradeOrderRequest
|
||||
*/
|
||||
public function setIndustryParamExt($industryParamExt)
|
||||
{
|
||||
$this->industryParamExt = $industryParamExt;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets riskParamExt
|
||||
* @return string
|
||||
*/
|
||||
public function getRiskParamExt()
|
||||
{
|
||||
return $this->riskParamExt;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets riskParamExt
|
||||
* @param string $riskParamExt
|
||||
* @return TradeOrderRequest
|
||||
*/
|
||||
public function setRiskParamExt($riskParamExt)
|
||||
{
|
||||
$this->riskParamExt = $riskParamExt;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets memo
|
||||
* @return string
|
||||
*/
|
||||
public function getMemo()
|
||||
{
|
||||
return $this->memo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets memo
|
||||
* @param string $memo
|
||||
* @return TradeOrderRequest
|
||||
*/
|
||||
public function setMemo($memo)
|
||||
{
|
||||
$this->memo = $memo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets fundProcessType
|
||||
* @return string
|
||||
*/
|
||||
public function getFundProcessType()
|
||||
{
|
||||
return $this->fundProcessType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets fundProcessType
|
||||
* @param string $fundProcessType
|
||||
* @return TradeOrderRequest
|
||||
*/
|
||||
public function setFundProcessType($fundProcessType)
|
||||
{
|
||||
$this->fundProcessType = $fundProcessType;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets hmac
|
||||
* @return string
|
||||
*/
|
||||
public function getHmac()
|
||||
{
|
||||
return $this->hmac;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets hmac
|
||||
* @param string $hmac
|
||||
* @return TradeOrderRequest
|
||||
*/
|
||||
public function setHmac($hmac)
|
||||
{
|
||||
$this->hmac = $hmac;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets divideDetail
|
||||
* @return string
|
||||
*/
|
||||
public function getDivideDetail()
|
||||
{
|
||||
return $this->divideDetail;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets divideDetail
|
||||
* @param string $divideDetail
|
||||
* @return TradeOrderRequest
|
||||
*/
|
||||
public function setDivideDetail($divideDetail)
|
||||
{
|
||||
$this->divideDetail = $divideDetail;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets csUrl
|
||||
* @return string
|
||||
*/
|
||||
public function getCsUrl()
|
||||
{
|
||||
return $this->csUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets csUrl
|
||||
* @param string $csUrl
|
||||
* @return TradeOrderRequest
|
||||
*/
|
||||
public function setCsUrl($csUrl)
|
||||
{
|
||||
$this->csUrl = $csUrl;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets divideNotifyUrl
|
||||
* @return string
|
||||
*/
|
||||
public function getDivideNotifyUrl()
|
||||
{
|
||||
return $this->divideNotifyUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets divideNotifyUrl
|
||||
* @param string $divideNotifyUrl
|
||||
* @return TradeOrderRequest
|
||||
*/
|
||||
public function setDivideNotifyUrl($divideNotifyUrl)
|
||||
{
|
||||
$this->divideNotifyUrl = $divideNotifyUrl;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets timeoutNotifyUrl
|
||||
* @return string
|
||||
*/
|
||||
public function getTimeoutNotifyUrl()
|
||||
{
|
||||
return $this->timeoutNotifyUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets timeoutNotifyUrl
|
||||
* @param string $timeoutNotifyUrl
|
||||
* @return TradeOrderRequest
|
||||
*/
|
||||
public function setTimeoutNotifyUrl($timeoutNotifyUrl)
|
||||
{
|
||||
$this->timeoutNotifyUrl = $timeoutNotifyUrl;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets siSubsidyMerchantAmout
|
||||
* @return string
|
||||
*/
|
||||
public function getSiSubsidyMerchantAmout()
|
||||
{
|
||||
return $this->siSubsidyMerchantAmout;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets siSubsidyMerchantAmout
|
||||
* @param string $siSubsidyMerchantAmout
|
||||
* @return TradeOrderRequest
|
||||
*/
|
||||
public function setSiSubsidyMerchantAmout($siSubsidyMerchantAmout)
|
||||
{
|
||||
$this->siSubsidyMerchantAmout = $siSubsidyMerchantAmout;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets queryParamsExt
|
||||
* @return string
|
||||
*/
|
||||
public function getQueryParamsExt()
|
||||
{
|
||||
return $this->queryParamsExt;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets queryParamsExt
|
||||
* @param string $queryParamsExt
|
||||
* @return TradeOrderRequest
|
||||
*/
|
||||
public function setQueryParamsExt($queryParamsExt)
|
||||
{
|
||||
$this->queryParamsExt = $queryParamsExt;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'tradeOrder';
|
||||
}
|
||||
|
||||
}
|
||||
173
lib/Service/Sys/Model/TradeOrderRequestMarshaller.php
Normal file
173
lib/Service/Sys/Model/TradeOrderRequestMarshaller.php
Normal file
@@ -0,0 +1,173 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Sys\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 TradeOrderRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var TradeOrderRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new TradeOrderRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return TradeOrderRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Sys';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/sys/trade/order';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
/**
|
||||
* @param TradeOrderRequest $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(), 'string'));
|
||||
}
|
||||
if ($request->getTimeoutExpress() != null) {
|
||||
$internalRequest->addParameter('timeoutExpress',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getTimeoutExpress(), 'int', 'int32'));
|
||||
}
|
||||
if ($request->getTimeoutExpressType() != null) {
|
||||
$internalRequest->addParameter('timeoutExpressType',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getTimeoutExpressType(), 'string'));
|
||||
}
|
||||
if ($request->getRequestDate() != null) {
|
||||
$internalRequest->addParameter('requestDate',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getRequestDate(), 'string'));
|
||||
}
|
||||
if ($request->getRedirectUrl() != null) {
|
||||
$internalRequest->addParameter('redirectUrl',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getRedirectUrl(), 'string'));
|
||||
}
|
||||
if ($request->getNotifyUrl() != null) {
|
||||
$internalRequest->addParameter('notifyUrl',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string'));
|
||||
}
|
||||
if ($request->getAssureType() != null) {
|
||||
$internalRequest->addParameter('assureType',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getAssureType(), 'string'));
|
||||
}
|
||||
if ($request->getAssurePeriod() != null) {
|
||||
$internalRequest->addParameter('assurePeriod',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getAssurePeriod(), 'string'));
|
||||
}
|
||||
if ($request->getGoodsParamExt() != null) {
|
||||
$internalRequest->addParameter('goodsParamExt',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getGoodsParamExt(), 'string'));
|
||||
}
|
||||
if ($request->getPaymentParamExt() != null) {
|
||||
$internalRequest->addParameter('paymentParamExt',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getPaymentParamExt(), 'string'));
|
||||
}
|
||||
if ($request->getIndustryParamExt() != null) {
|
||||
$internalRequest->addParameter('industryParamExt',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getIndustryParamExt(), 'string'));
|
||||
}
|
||||
if ($request->getRiskParamExt() != null) {
|
||||
$internalRequest->addParameter('riskParamExt',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getRiskParamExt(), 'string'));
|
||||
}
|
||||
if ($request->getMemo() != null) {
|
||||
$internalRequest->addParameter('memo',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getMemo(), 'string'));
|
||||
}
|
||||
if ($request->getFundProcessType() != null) {
|
||||
$internalRequest->addParameter('fundProcessType',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getFundProcessType(), 'string'));
|
||||
}
|
||||
if ($request->getHmac() != null) {
|
||||
$internalRequest->addParameter('hmac',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getHmac(), 'string'));
|
||||
}
|
||||
if ($request->getDivideDetail() != null) {
|
||||
$internalRequest->addParameter('divideDetail',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getDivideDetail(), 'string'));
|
||||
}
|
||||
if ($request->getCsUrl() != null) {
|
||||
$internalRequest->addParameter('csUrl',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getCsUrl(), 'string'));
|
||||
}
|
||||
if ($request->getDivideNotifyUrl() != null) {
|
||||
$internalRequest->addParameter('divideNotifyUrl',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getDivideNotifyUrl(), 'string'));
|
||||
}
|
||||
if ($request->getTimeoutNotifyUrl() != null) {
|
||||
$internalRequest->addParameter('timeoutNotifyUrl',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getTimeoutNotifyUrl(), 'string'));
|
||||
}
|
||||
if ($request->getSiSubsidyMerchantAmout() != null) {
|
||||
$internalRequest->addParameter('siSubsidyMerchantAmout',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getSiSubsidyMerchantAmout(), 'string'));
|
||||
}
|
||||
if ($request->getQueryParamsExt() != null) {
|
||||
$internalRequest->addParameter('queryParamsExt',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getQueryParamsExt(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
TradeOrderRequestMarshaller::__init();
|
||||
36
lib/Service/Sys/Model/TradeOrderResponse.php
Normal file
36
lib/Service/Sys/Model/TradeOrderResponse.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Sys\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\BaseResponse;
|
||||
|
||||
class TradeOrderResponse extends BaseResponse
|
||||
{
|
||||
|
||||
/**
|
||||
* @var TradeOrderYopCreateOrderResDTOResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Sys\Model\TradeOrderYopCreateOrderResDTOResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param TradeOrderYopCreateOrderResDTOResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return TradeOrderYopCreateOrderResDTOResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
|
||||
}
|
||||
38
lib/Service/Sys/Model/TradeOrderResponseUnMarshaller.php
Normal file
38
lib/Service/Sys/Model/TradeOrderResponseUnMarshaller.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Sys\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class TradeOrderResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var TradeOrderResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new TradeOrderResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return TradeOrderResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return TradeOrderResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new TradeOrderResponse();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
TradeOrderResponseUnMarshaller::__init();
|
||||
509
lib/Service/Sys/Model/TradeOrderYopCreateOrderResDTOResult.php
Normal file
509
lib/Service/Sys/Model/TradeOrderYopCreateOrderResDTOResult.php
Normal file
@@ -0,0 +1,509 @@
|
||||
<?php
|
||||
/**
|
||||
* TradeOrderYopCreateOrderResDTOResult
|
||||
* PHP version 5
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 子商户入网大算航旅
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
* OpenAPI spec version: 1.0.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\Sys\Model;
|
||||
|
||||
use ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* TradeOrderYopCreateOrderResDTOResult Class Doc Comment
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class TradeOrderYopCreateOrderResDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'TradeOrderYopCreateOrderResDTOResult';
|
||||
|
||||
/**
|
||||
* 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',
|
||||
'goodsParamExt' => 'string',
|
||||
'memo' => 'string',
|
||||
'token' => 'string',
|
||||
'fundProcessType' => '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,
|
||||
'goodsParamExt' => null,
|
||||
'memo' => null,
|
||||
'token' => null,
|
||||
'fundProcessType' => 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',
|
||||
'goodsParamExt' => 'goodsParamExt',
|
||||
'memo' => 'memo',
|
||||
'token' => 'token',
|
||||
'fundProcessType' => 'fundProcessType',
|
||||
];
|
||||
|
||||
/**
|
||||
* 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',
|
||||
'goodsParamExt' => 'setGoodsParamExt',
|
||||
'memo' => 'setMemo',
|
||||
'token' => 'setToken',
|
||||
'fundProcessType' => 'setFundProcessType',
|
||||
];
|
||||
|
||||
/**
|
||||
* 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',
|
||||
'goodsParamExt' => 'getGoodsParamExt',
|
||||
'memo' => 'getMemo',
|
||||
'token' => 'getToken',
|
||||
'fundProcessType' => 'getFundProcessType',
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['goodsParamExt'] = isset($data['goodsParamExt']) ? $data['goodsParamExt'] : null;
|
||||
$this->container['memo'] = isset($data['memo']) ? $data['memo'] : null;
|
||||
$this->container['token'] = isset($data['token']) ? $data['token'] : null;
|
||||
$this->container['fundProcessType'] = isset($data['fundProcessType']) ? $data['fundProcessType'] : 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 goodsParamExt
|
||||
* @return string
|
||||
*/
|
||||
public function getGoodsParamExt()
|
||||
{
|
||||
return $this->container['goodsParamExt'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets goodsParamExt
|
||||
* @param string $goodsParamExt 商品拓展信息
|
||||
* @return $this
|
||||
*/
|
||||
public function setGoodsParamExt($goodsParamExt)
|
||||
{
|
||||
$this->container['goodsParamExt'] = $goodsParamExt;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets memo
|
||||
* @return string
|
||||
*/
|
||||
public function getMemo()
|
||||
{
|
||||
return $this->container['memo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets memo
|
||||
* @param string $memo 自定义对账备注
|
||||
* @return $this
|
||||
*/
|
||||
public function setMemo($memo)
|
||||
{
|
||||
$this->container['memo'] = $memo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets token
|
||||
* @return string
|
||||
*/
|
||||
public function getToken()
|
||||
{
|
||||
return $this->container['token'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets token
|
||||
* @param string $token token
|
||||
* @return $this
|
||||
*/
|
||||
public function setToken($token)
|
||||
{
|
||||
$this->container['token'] = $token;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets fundProcessType
|
||||
* @return string
|
||||
*/
|
||||
public function getFundProcessType()
|
||||
{
|
||||
return $this->container['fundProcessType'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets fundProcessType
|
||||
* @param string $fundProcessType 资金处理类型
|
||||
* @return $this
|
||||
*/
|
||||
public function setFundProcessType($fundProcessType)
|
||||
{
|
||||
$this->container['fundProcessType'] = $fundProcessType;
|
||||
|
||||
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,671 @@
|
||||
<?php
|
||||
/**
|
||||
* TradeOrderqueryBankPromotionInfoDTOResult
|
||||
* PHP version 5
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 子商户入网大算航旅
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
* OpenAPI spec version: 1.0.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\Sys\Model;
|
||||
|
||||
use ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* TradeOrderqueryBankPromotionInfoDTOResult Class Doc Comment
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class TradeOrderqueryBankPromotionInfoDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'TradeOrderqueryBankPromotionInfoDTOResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'id' => 'int',
|
||||
'payInterface' => 'string',
|
||||
'bankOrderNo' => 'string',
|
||||
'tradeType' => 'string',
|
||||
'promotionId' => 'string',
|
||||
'promotionName' => 'string',
|
||||
'promotionScope' => 'string',
|
||||
'promotionType' => 'string',
|
||||
'amount' => 'float',
|
||||
'amountRefund' => 'float',
|
||||
'activityId' => 'string',
|
||||
'channelContribute' => 'string',
|
||||
'merchantContribute' => 'string',
|
||||
'otherContribute' => 'string',
|
||||
'memo' => 'string',
|
||||
'orderTime' => 'string',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'id' => 'int64',
|
||||
'payInterface' => null,
|
||||
'bankOrderNo' => null,
|
||||
'tradeType' => null,
|
||||
'promotionId' => null,
|
||||
'promotionName' => null,
|
||||
'promotionScope' => null,
|
||||
'promotionType' => null,
|
||||
'amount' => null,
|
||||
'amountRefund' => null,
|
||||
'activityId' => null,
|
||||
'channelContribute' => null,
|
||||
'merchantContribute' => null,
|
||||
'otherContribute' => null,
|
||||
'memo' => null,
|
||||
'orderTime' => 'date-time',
|
||||
];
|
||||
|
||||
/**
|
||||
* 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 = [
|
||||
'id' => 'id',
|
||||
'payInterface' => 'payInterface',
|
||||
'bankOrderNo' => 'bankOrderNo',
|
||||
'tradeType' => 'tradeType',
|
||||
'promotionId' => 'promotionId',
|
||||
'promotionName' => 'promotionName',
|
||||
'promotionScope' => 'promotionScope',
|
||||
'promotionType' => 'promotionType',
|
||||
'amount' => 'amount',
|
||||
'amountRefund' => 'amountRefund',
|
||||
'activityId' => 'activityId',
|
||||
'channelContribute' => 'channelContribute',
|
||||
'merchantContribute' => 'merchantContribute',
|
||||
'otherContribute' => 'otherContribute',
|
||||
'memo' => 'memo',
|
||||
'orderTime' => 'orderTime',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'id' => 'setId',
|
||||
'payInterface' => 'setPayInterface',
|
||||
'bankOrderNo' => 'setBankOrderNo',
|
||||
'tradeType' => 'setTradeType',
|
||||
'promotionId' => 'setPromotionId',
|
||||
'promotionName' => 'setPromotionName',
|
||||
'promotionScope' => 'setPromotionScope',
|
||||
'promotionType' => 'setPromotionType',
|
||||
'amount' => 'setAmount',
|
||||
'amountRefund' => 'setAmountRefund',
|
||||
'activityId' => 'setActivityId',
|
||||
'channelContribute' => 'setChannelContribute',
|
||||
'merchantContribute' => 'setMerchantContribute',
|
||||
'otherContribute' => 'setOtherContribute',
|
||||
'memo' => 'setMemo',
|
||||
'orderTime' => 'setOrderTime',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'id' => 'getId',
|
||||
'payInterface' => 'getPayInterface',
|
||||
'bankOrderNo' => 'getBankOrderNo',
|
||||
'tradeType' => 'getTradeType',
|
||||
'promotionId' => 'getPromotionId',
|
||||
'promotionName' => 'getPromotionName',
|
||||
'promotionScope' => 'getPromotionScope',
|
||||
'promotionType' => 'getPromotionType',
|
||||
'amount' => 'getAmount',
|
||||
'amountRefund' => 'getAmountRefund',
|
||||
'activityId' => 'getActivityId',
|
||||
'channelContribute' => 'getChannelContribute',
|
||||
'merchantContribute' => 'getMerchantContribute',
|
||||
'otherContribute' => 'getOtherContribute',
|
||||
'memo' => 'getMemo',
|
||||
'orderTime' => 'getOrderTime',
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['id'] = isset($data['id']) ? $data['id'] : null;
|
||||
$this->container['payInterface'] = isset($data['payInterface']) ? $data['payInterface'] : null;
|
||||
$this->container['bankOrderNo'] = isset($data['bankOrderNo']) ? $data['bankOrderNo'] : null;
|
||||
$this->container['tradeType'] = isset($data['tradeType']) ? $data['tradeType'] : null;
|
||||
$this->container['promotionId'] = isset($data['promotionId']) ? $data['promotionId'] : null;
|
||||
$this->container['promotionName'] = isset($data['promotionName']) ? $data['promotionName'] : null;
|
||||
$this->container['promotionScope'] = isset($data['promotionScope']) ? $data['promotionScope'] : null;
|
||||
$this->container['promotionType'] = isset($data['promotionType']) ? $data['promotionType'] : null;
|
||||
$this->container['amount'] = isset($data['amount']) ? $data['amount'] : null;
|
||||
$this->container['amountRefund'] = isset($data['amountRefund']) ? $data['amountRefund'] : null;
|
||||
$this->container['activityId'] = isset($data['activityId']) ? $data['activityId'] : null;
|
||||
$this->container['channelContribute'] = isset($data['channelContribute']) ? $data['channelContribute'] : null;
|
||||
$this->container['merchantContribute'] = isset($data['merchantContribute']) ? $data['merchantContribute'] : null;
|
||||
$this->container['otherContribute'] = isset($data['otherContribute']) ? $data['otherContribute'] : null;
|
||||
$this->container['memo'] = isset($data['memo']) ? $data['memo'] : null;
|
||||
$this->container['orderTime'] = isset($data['orderTime']) ? $data['orderTime'] : 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 id
|
||||
* @return int
|
||||
*/
|
||||
public function getId()
|
||||
{
|
||||
return $this->container['id'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets id
|
||||
* @param int $id 优惠券主键id
|
||||
* @return $this
|
||||
*/
|
||||
public function setId($id)
|
||||
{
|
||||
$this->container['id'] = $id;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets payInterface
|
||||
* @return string
|
||||
*/
|
||||
public function getPayInterface()
|
||||
{
|
||||
return $this->container['payInterface'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets payInterface
|
||||
* @param string $payInterface 实体通道编码
|
||||
* @return $this
|
||||
*/
|
||||
public function setPayInterface($payInterface)
|
||||
{
|
||||
$this->container['payInterface'] = $payInterface;
|
||||
|
||||
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 tradeType
|
||||
* @return string
|
||||
*/
|
||||
public function getTradeType()
|
||||
{
|
||||
return $this->container['tradeType'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets tradeType
|
||||
* @param string $tradeType 交易类型
|
||||
* @return $this
|
||||
*/
|
||||
public function setTradeType($tradeType)
|
||||
{
|
||||
$this->container['tradeType'] = $tradeType;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets promotionId
|
||||
* @return string
|
||||
*/
|
||||
public function getPromotionId()
|
||||
{
|
||||
return $this->container['promotionId'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets promotionId
|
||||
* @param string $promotionId 优惠券编码
|
||||
* @return $this
|
||||
*/
|
||||
public function setPromotionId($promotionId)
|
||||
{
|
||||
$this->container['promotionId'] = $promotionId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets promotionName
|
||||
* @return string
|
||||
*/
|
||||
public function getPromotionName()
|
||||
{
|
||||
return $this->container['promotionName'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets promotionName
|
||||
* @param string $promotionName 优惠券名称
|
||||
* @return $this
|
||||
*/
|
||||
public function setPromotionName($promotionName)
|
||||
{
|
||||
$this->container['promotionName'] = $promotionName;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets promotionScope
|
||||
* @return string
|
||||
*/
|
||||
public function getPromotionScope()
|
||||
{
|
||||
return $this->container['promotionScope'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets promotionScope
|
||||
* @param string $promotionScope 优惠券范围
|
||||
* @return $this
|
||||
*/
|
||||
public function setPromotionScope($promotionScope)
|
||||
{
|
||||
$this->container['promotionScope'] = $promotionScope;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets promotionType
|
||||
* @return string
|
||||
*/
|
||||
public function getPromotionType()
|
||||
{
|
||||
return $this->container['promotionType'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets promotionType
|
||||
* @param string $promotionType 优惠券类型
|
||||
* @return $this
|
||||
*/
|
||||
public function setPromotionType($promotionType)
|
||||
{
|
||||
$this->container['promotionType'] = $promotionType;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets amount
|
||||
* @return float
|
||||
*/
|
||||
public function getAmount()
|
||||
{
|
||||
return $this->container['amount'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets amount
|
||||
* @param float $amount 券金额
|
||||
* @return $this
|
||||
*/
|
||||
public function setAmount($amount)
|
||||
{
|
||||
$this->container['amount'] = $amount;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets amountRefund
|
||||
* @return float
|
||||
*/
|
||||
public function getAmountRefund()
|
||||
{
|
||||
return $this->container['amountRefund'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets amountRefund
|
||||
* @param float $amountRefund 券退回金额
|
||||
* @return $this
|
||||
*/
|
||||
public function setAmountRefund($amountRefund)
|
||||
{
|
||||
$this->container['amountRefund'] = $amountRefund;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets activityId
|
||||
* @return string
|
||||
*/
|
||||
public function getActivityId()
|
||||
{
|
||||
return $this->container['activityId'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets activityId
|
||||
* @param string $activityId 优惠券活动id
|
||||
* @return $this
|
||||
*/
|
||||
public function setActivityId($activityId)
|
||||
{
|
||||
$this->container['activityId'] = $activityId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets channelContribute
|
||||
* @return string
|
||||
*/
|
||||
public function getChannelContribute()
|
||||
{
|
||||
return $this->container['channelContribute'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets channelContribute
|
||||
* @param string $channelContribute 渠道出资
|
||||
* @return $this
|
||||
*/
|
||||
public function setChannelContribute($channelContribute)
|
||||
{
|
||||
$this->container['channelContribute'] = $channelContribute;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets merchantContribute
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantContribute()
|
||||
{
|
||||
return $this->container['merchantContribute'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantContribute
|
||||
* @param string $merchantContribute 商户出资
|
||||
* @return $this
|
||||
*/
|
||||
public function setMerchantContribute($merchantContribute)
|
||||
{
|
||||
$this->container['merchantContribute'] = $merchantContribute;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets otherContribute
|
||||
* @return string
|
||||
*/
|
||||
public function getOtherContribute()
|
||||
{
|
||||
return $this->container['otherContribute'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets otherContribute
|
||||
* @param string $otherContribute 其他出资
|
||||
* @return $this
|
||||
*/
|
||||
public function setOtherContribute($otherContribute)
|
||||
{
|
||||
$this->container['otherContribute'] = $otherContribute;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets memo
|
||||
* @return string
|
||||
*/
|
||||
public function getMemo()
|
||||
{
|
||||
return $this->container['memo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets memo
|
||||
* @param string $memo 备注信息
|
||||
* @return $this
|
||||
*/
|
||||
public function setMemo($memo)
|
||||
{
|
||||
$this->container['memo'] = $memo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets orderTime
|
||||
* @return string
|
||||
*/
|
||||
public function getOrderTime()
|
||||
{
|
||||
return $this->container['orderTime'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets orderTime
|
||||
* @param string $orderTime 订单交易时间
|
||||
* @return $this
|
||||
*/
|
||||
public function setOrderTime($orderTime)
|
||||
{
|
||||
$this->container['orderTime'] = $orderTime;
|
||||
|
||||
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));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
348
lib/Service/Sys/Model/TradeOrderqueryCombPaymentDTOResult.php
Normal file
348
lib/Service/Sys/Model/TradeOrderqueryCombPaymentDTOResult.php
Normal file
@@ -0,0 +1,348 @@
|
||||
<?php
|
||||
/**
|
||||
* TradeOrderqueryCombPaymentDTOResult
|
||||
* PHP version 5
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 子商户入网大算航旅
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
* OpenAPI spec version: 1.0.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\Sys\Model;
|
||||
|
||||
use ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* TradeOrderqueryCombPaymentDTOResult Class Doc Comment
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @description
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class TradeOrderqueryCombPaymentDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'TradeOrderqueryCombPaymentDTOResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'secondPayOrderNo' => 'string',
|
||||
'secondBankOrderNo' => 'string',
|
||||
'secondAmount' => 'float',
|
||||
'secondPaySuccessDate' => 'string',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'secondPayOrderNo' => null,
|
||||
'secondBankOrderNo' => null,
|
||||
'secondAmount' => null,
|
||||
'secondPaySuccessDate' => 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 = [
|
||||
'secondPayOrderNo' => 'secondPayOrderNo',
|
||||
'secondBankOrderNo' => 'secondBankOrderNo',
|
||||
'secondAmount' => 'secondAmount',
|
||||
'secondPaySuccessDate' => 'secondPaySuccessDate',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'secondPayOrderNo' => 'setSecondPayOrderNo',
|
||||
'secondBankOrderNo' => 'setSecondBankOrderNo',
|
||||
'secondAmount' => 'setSecondAmount',
|
||||
'secondPaySuccessDate' => 'setSecondPaySuccessDate',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'secondPayOrderNo' => 'getSecondPayOrderNo',
|
||||
'secondBankOrderNo' => 'getSecondBankOrderNo',
|
||||
'secondAmount' => 'getSecondAmount',
|
||||
'secondPaySuccessDate' => 'getSecondPaySuccessDate',
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['secondPayOrderNo'] = isset($data['secondPayOrderNo']) ? $data['secondPayOrderNo'] : null;
|
||||
$this->container['secondBankOrderNo'] = isset($data['secondBankOrderNo']) ? $data['secondBankOrderNo'] : null;
|
||||
$this->container['secondAmount'] = isset($data['secondAmount']) ? $data['secondAmount'] : null;
|
||||
$this->container['secondPaySuccessDate'] = isset($data['secondPaySuccessDate']) ? $data['secondPaySuccessDate'] : 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 secondPayOrderNo
|
||||
* @return string
|
||||
*/
|
||||
public function getSecondPayOrderNo()
|
||||
{
|
||||
return $this->container['secondPayOrderNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets secondPayOrderNo
|
||||
* @param string $secondPayOrderNo 第二支付订单号
|
||||
* @return $this
|
||||
*/
|
||||
public function setSecondPayOrderNo($secondPayOrderNo)
|
||||
{
|
||||
$this->container['secondPayOrderNo'] = $secondPayOrderNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets secondBankOrderNo
|
||||
* @return string
|
||||
*/
|
||||
public function getSecondBankOrderNo()
|
||||
{
|
||||
return $this->container['secondBankOrderNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets secondBankOrderNo
|
||||
* @param string $secondBankOrderNo 第二银行订单号
|
||||
* @return $this
|
||||
*/
|
||||
public function setSecondBankOrderNo($secondBankOrderNo)
|
||||
{
|
||||
$this->container['secondBankOrderNo'] = $secondBankOrderNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets secondAmount
|
||||
* @return float
|
||||
*/
|
||||
public function getSecondAmount()
|
||||
{
|
||||
return $this->container['secondAmount'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets secondAmount
|
||||
* @param float $secondAmount 第二支付金额
|
||||
* @return $this
|
||||
*/
|
||||
public function setSecondAmount($secondAmount)
|
||||
{
|
||||
$this->container['secondAmount'] = $secondAmount;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets secondPaySuccessDate
|
||||
* @return string
|
||||
*/
|
||||
public function getSecondPaySuccessDate()
|
||||
{
|
||||
return $this->container['secondPaySuccessDate'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets secondPaySuccessDate
|
||||
* @param string $secondPaySuccessDate 第二支付完成时间
|
||||
* @return $this
|
||||
*/
|
||||
public function setSecondPaySuccessDate($secondPaySuccessDate)
|
||||
{
|
||||
$this->container['secondPaySuccessDate'] = $secondPaySuccessDate;
|
||||
|
||||
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));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
145
lib/Service/Sys/Model/TradeOrderqueryRequest.php
Normal file
145
lib/Service/Sys/Model/TradeOrderqueryRequest.php
Normal file
@@ -0,0 +1,145 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Sys\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\BaseRequest;
|
||||
|
||||
class TradeOrderqueryRequest extends BaseRequest
|
||||
{
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $orderId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $uniqueOrderNo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $hmac;
|
||||
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->parentMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
* @param string $parentMerchantNo
|
||||
* @return TradeOrderqueryRequest
|
||||
*/
|
||||
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 TradeOrderqueryRequest
|
||||
*/
|
||||
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 TradeOrderqueryRequest
|
||||
*/
|
||||
public function setOrderId($orderId)
|
||||
{
|
||||
$this->orderId = $orderId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets uniqueOrderNo
|
||||
* @return string
|
||||
*/
|
||||
public function getUniqueOrderNo()
|
||||
{
|
||||
return $this->uniqueOrderNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets uniqueOrderNo
|
||||
* @param string $uniqueOrderNo
|
||||
* @return TradeOrderqueryRequest
|
||||
*/
|
||||
public function setUniqueOrderNo($uniqueOrderNo)
|
||||
{
|
||||
$this->uniqueOrderNo = $uniqueOrderNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets hmac
|
||||
* @return string
|
||||
*/
|
||||
public function getHmac()
|
||||
{
|
||||
return $this->hmac;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets hmac
|
||||
* @param string $hmac
|
||||
* @return TradeOrderqueryRequest
|
||||
*/
|
||||
public function setHmac($hmac)
|
||||
{
|
||||
$this->hmac = $hmac;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'tradeOrderquery';
|
||||
}
|
||||
|
||||
}
|
||||
97
lib/Service/Sys/Model/TradeOrderqueryRequestMarshaller.php
Normal file
97
lib/Service/Sys/Model/TradeOrderqueryRequestMarshaller.php
Normal file
@@ -0,0 +1,97 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Sys\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 TradeOrderqueryRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var TradeOrderqueryRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new TradeOrderqueryRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return TradeOrderqueryRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Sys';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/sys/trade/orderquery';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
/**
|
||||
* @param TradeOrderqueryRequest $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->getUniqueOrderNo() != null) {
|
||||
$internalRequest->addParameter('uniqueOrderNo',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getUniqueOrderNo(), 'string'));
|
||||
}
|
||||
if ($request->getHmac() != null) {
|
||||
$internalRequest->addParameter('hmac',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getHmac(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
TradeOrderqueryRequestMarshaller::__init();
|
||||
36
lib/Service/Sys/Model/TradeOrderqueryResponse.php
Normal file
36
lib/Service/Sys/Model/TradeOrderqueryResponse.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Sys\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\BaseResponse;
|
||||
|
||||
class TradeOrderqueryResponse extends BaseResponse
|
||||
{
|
||||
|
||||
/**
|
||||
* @var TradeOrderqueryYopQueryOrderResDTOResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Sys\Model\TradeOrderqueryYopQueryOrderResDTOResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param TradeOrderqueryYopQueryOrderResDTOResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return TradeOrderqueryYopQueryOrderResDTOResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Sys\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class TradeOrderqueryResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var TradeOrderqueryResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new TradeOrderqueryResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return TradeOrderqueryResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return TradeOrderqueryResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new TradeOrderqueryResponse();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
TradeOrderqueryResponseUnMarshaller::__init();
|
||||
1724
lib/Service/Sys/Model/TradeOrderqueryYopQueryOrderResDTOResult.php
Normal file
1724
lib/Service/Sys/Model/TradeOrderqueryYopQueryOrderResDTOResult.php
Normal file
File diff suppressed because it is too large
Load Diff
353
lib/Service/Sys/Model/TradeRefundRequest.php
Normal file
353
lib/Service/Sys/Model/TradeRefundRequest.php
Normal file
@@ -0,0 +1,353 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Sys\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\BaseRequest;
|
||||
|
||||
class TradeRefundRequest extends BaseRequest
|
||||
{
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $orderId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $refundRequestId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $uniqueOrderNo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $refundAmount;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $accountDivided;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $description;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $memo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $notifyUrl;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $hmac;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantSideMarketingRefundDetails;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $refundAccountType;
|
||||
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->parentMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
* @param string $parentMerchantNo
|
||||
* @return TradeRefundRequest
|
||||
*/
|
||||
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 TradeRefundRequest
|
||||
*/
|
||||
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 TradeRefundRequest
|
||||
*/
|
||||
public function setOrderId($orderId)
|
||||
{
|
||||
$this->orderId = $orderId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets refundRequestId
|
||||
* @return string
|
||||
*/
|
||||
public function getRefundRequestId()
|
||||
{
|
||||
return $this->refundRequestId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets refundRequestId
|
||||
* @param string $refundRequestId
|
||||
* @return TradeRefundRequest
|
||||
*/
|
||||
public function setRefundRequestId($refundRequestId)
|
||||
{
|
||||
$this->refundRequestId = $refundRequestId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets uniqueOrderNo
|
||||
* @return string
|
||||
*/
|
||||
public function getUniqueOrderNo()
|
||||
{
|
||||
return $this->uniqueOrderNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets uniqueOrderNo
|
||||
* @param string $uniqueOrderNo
|
||||
* @return TradeRefundRequest
|
||||
*/
|
||||
public function setUniqueOrderNo($uniqueOrderNo)
|
||||
{
|
||||
$this->uniqueOrderNo = $uniqueOrderNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets refundAmount
|
||||
* @return string
|
||||
*/
|
||||
public function getRefundAmount()
|
||||
{
|
||||
return $this->refundAmount;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets refundAmount
|
||||
* @param string $refundAmount
|
||||
* @return TradeRefundRequest
|
||||
*/
|
||||
public function setRefundAmount($refundAmount)
|
||||
{
|
||||
$this->refundAmount = $refundAmount;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets accountDivided
|
||||
* @return string
|
||||
*/
|
||||
public function getAccountDivided()
|
||||
{
|
||||
return $this->accountDivided;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets accountDivided
|
||||
* @param string $accountDivided
|
||||
* @return TradeRefundRequest
|
||||
*/
|
||||
public function setAccountDivided($accountDivided)
|
||||
{
|
||||
$this->accountDivided = $accountDivided;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets description
|
||||
* @return string
|
||||
*/
|
||||
public function getDescription()
|
||||
{
|
||||
return $this->description;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets description
|
||||
* @param string $description
|
||||
* @return TradeRefundRequest
|
||||
*/
|
||||
public function setDescription($description)
|
||||
{
|
||||
$this->description = $description;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets memo
|
||||
* @return string
|
||||
*/
|
||||
public function getMemo()
|
||||
{
|
||||
return $this->memo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets memo
|
||||
* @param string $memo
|
||||
* @return TradeRefundRequest
|
||||
*/
|
||||
public function setMemo($memo)
|
||||
{
|
||||
$this->memo = $memo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets notifyUrl
|
||||
* @return string
|
||||
*/
|
||||
public function getNotifyUrl()
|
||||
{
|
||||
return $this->notifyUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets notifyUrl
|
||||
* @param string $notifyUrl
|
||||
* @return TradeRefundRequest
|
||||
*/
|
||||
public function setNotifyUrl($notifyUrl)
|
||||
{
|
||||
$this->notifyUrl = $notifyUrl;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets hmac
|
||||
* @return string
|
||||
*/
|
||||
public function getHmac()
|
||||
{
|
||||
return $this->hmac;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets hmac
|
||||
* @param string $hmac
|
||||
* @return TradeRefundRequest
|
||||
*/
|
||||
public function setHmac($hmac)
|
||||
{
|
||||
$this->hmac = $hmac;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets merchantSideMarketingRefundDetails
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantSideMarketingRefundDetails()
|
||||
{
|
||||
return $this->merchantSideMarketingRefundDetails;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantSideMarketingRefundDetails
|
||||
* @param string $merchantSideMarketingRefundDetails
|
||||
* @return TradeRefundRequest
|
||||
*/
|
||||
public function setMerchantSideMarketingRefundDetails($merchantSideMarketingRefundDetails)
|
||||
{
|
||||
$this->merchantSideMarketingRefundDetails = $merchantSideMarketingRefundDetails;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets refundAccountType
|
||||
* @return string
|
||||
*/
|
||||
public function getRefundAccountType()
|
||||
{
|
||||
return $this->refundAccountType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets refundAccountType
|
||||
* @param string $refundAccountType
|
||||
* @return TradeRefundRequest
|
||||
*/
|
||||
public function setRefundAccountType($refundAccountType)
|
||||
{
|
||||
$this->refundAccountType = $refundAccountType;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'tradeRefund';
|
||||
}
|
||||
|
||||
}
|
||||
130
lib/Service/Sys/Model/TradeRefundRequestMarshaller.php
Normal file
130
lib/Service/Sys/Model/TradeRefundRequestMarshaller.php
Normal file
@@ -0,0 +1,130 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Sys\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 TradeRefundRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var TradeRefundRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new TradeRefundRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return TradeRefundRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Sys';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/sys/trade/refund';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
/**
|
||||
* @param TradeRefundRequest $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->getRefundRequestId() != null) {
|
||||
$internalRequest->addParameter('refundRequestId',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getRefundRequestId(), 'string'));
|
||||
}
|
||||
if ($request->getUniqueOrderNo() != null) {
|
||||
$internalRequest->addParameter('uniqueOrderNo',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getUniqueOrderNo(), 'string'));
|
||||
}
|
||||
if ($request->getRefundAmount() != null) {
|
||||
$internalRequest->addParameter('refundAmount',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getRefundAmount(), 'string'));
|
||||
}
|
||||
if ($request->getAccountDivided() != null) {
|
||||
$internalRequest->addParameter('accountDivided',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getAccountDivided(), 'string'));
|
||||
}
|
||||
if ($request->getDescription() != null) {
|
||||
$internalRequest->addParameter('description',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getDescription(), 'string'));
|
||||
}
|
||||
if ($request->getMemo() != null) {
|
||||
$internalRequest->addParameter('memo',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getMemo(), 'string'));
|
||||
}
|
||||
if ($request->getNotifyUrl() != null) {
|
||||
$internalRequest->addParameter('notifyUrl',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string'));
|
||||
}
|
||||
if ($request->getHmac() != null) {
|
||||
$internalRequest->addParameter('hmac',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getHmac(), 'string'));
|
||||
}
|
||||
if ($request->getMerchantSideMarketingRefundDetails() != null) {
|
||||
$internalRequest->addParameter('merchantSideMarketingRefundDetails',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getMerchantSideMarketingRefundDetails(),
|
||||
'string'));
|
||||
}
|
||||
if ($request->getRefundAccountType() != null) {
|
||||
$internalRequest->addParameter('refundAccountType',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getRefundAccountType(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
TradeRefundRequestMarshaller::__init();
|
||||
36
lib/Service/Sys/Model/TradeRefundResponse.php
Normal file
36
lib/Service/Sys/Model/TradeRefundResponse.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Sys\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\BaseResponse;
|
||||
|
||||
class TradeRefundResponse extends BaseResponse
|
||||
{
|
||||
|
||||
/**
|
||||
* @var TradeRefundResponseRefundDTOResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Sys\Model\TradeRefundResponseRefundDTOResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param TradeRefundResponseRefundDTOResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return TradeRefundResponseRefundDTOResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
|
||||
}
|
||||
617
lib/Service/Sys/Model/TradeRefundResponseRefundDTOResult.php
Normal file
617
lib/Service/Sys/Model/TradeRefundResponseRefundDTOResult.php
Normal file
@@ -0,0 +1,617 @@
|
||||
<?php
|
||||
/**
|
||||
* TradeRefundResponseRefundDTOResult
|
||||
* PHP version 5
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 子商户入网大算航旅
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
* OpenAPI spec version: 1.0.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\Sys\Model;
|
||||
|
||||
use ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* TradeRefundResponseRefundDTOResult Class Doc Comment
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class TradeRefundResponseRefundDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'TradeRefundResponseRefundDTOResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'code' => 'string',
|
||||
'message' => 'string',
|
||||
'bizSystemNo' => 'string',
|
||||
'parentMerchantNo' => 'string',
|
||||
'merchantNo' => 'string',
|
||||
'orderId' => 'string',
|
||||
'refundRequestId' => 'string',
|
||||
'uniqueRefundNo' => 'string',
|
||||
'status' => 'string',
|
||||
'refundAmount' => 'string',
|
||||
'residualAmount' => 'string',
|
||||
'description' => 'string',
|
||||
'refundRequestDate' => 'string',
|
||||
'accountDivided' => 'string',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'code' => null,
|
||||
'message' => null,
|
||||
'bizSystemNo' => null,
|
||||
'parentMerchantNo' => null,
|
||||
'merchantNo' => null,
|
||||
'orderId' => null,
|
||||
'refundRequestId' => null,
|
||||
'uniqueRefundNo' => null,
|
||||
'status' => null,
|
||||
'refundAmount' => null,
|
||||
'residualAmount' => null,
|
||||
'description' => null,
|
||||
'refundRequestDate' => null,
|
||||
'accountDivided' => 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',
|
||||
'bizSystemNo' => 'bizSystemNo',
|
||||
'parentMerchantNo' => 'parentMerchantNo',
|
||||
'merchantNo' => 'merchantNo',
|
||||
'orderId' => 'orderId',
|
||||
'refundRequestId' => 'refundRequestId',
|
||||
'uniqueRefundNo' => 'uniqueRefundNo',
|
||||
'status' => 'status',
|
||||
'refundAmount' => 'refundAmount',
|
||||
'residualAmount' => 'residualAmount',
|
||||
'description' => 'description',
|
||||
'refundRequestDate' => 'refundRequestDate',
|
||||
'accountDivided' => 'accountDivided',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'code' => 'setCode',
|
||||
'message' => 'setMessage',
|
||||
'bizSystemNo' => 'setBizSystemNo',
|
||||
'parentMerchantNo' => 'setParentMerchantNo',
|
||||
'merchantNo' => 'setMerchantNo',
|
||||
'orderId' => 'setOrderId',
|
||||
'refundRequestId' => 'setRefundRequestId',
|
||||
'uniqueRefundNo' => 'setUniqueRefundNo',
|
||||
'status' => 'setStatus',
|
||||
'refundAmount' => 'setRefundAmount',
|
||||
'residualAmount' => 'setResidualAmount',
|
||||
'description' => 'setDescription',
|
||||
'refundRequestDate' => 'setRefundRequestDate',
|
||||
'accountDivided' => 'setAccountDivided',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'code' => 'getCode',
|
||||
'message' => 'getMessage',
|
||||
'bizSystemNo' => 'getBizSystemNo',
|
||||
'parentMerchantNo' => 'getParentMerchantNo',
|
||||
'merchantNo' => 'getMerchantNo',
|
||||
'orderId' => 'getOrderId',
|
||||
'refundRequestId' => 'getRefundRequestId',
|
||||
'uniqueRefundNo' => 'getUniqueRefundNo',
|
||||
'status' => 'getStatus',
|
||||
'refundAmount' => 'getRefundAmount',
|
||||
'residualAmount' => 'getResidualAmount',
|
||||
'description' => 'getDescription',
|
||||
'refundRequestDate' => 'getRefundRequestDate',
|
||||
'accountDivided' => 'getAccountDivided',
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['bizSystemNo'] = isset($data['bizSystemNo']) ? $data['bizSystemNo'] : 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['refundRequestId'] = isset($data['refundRequestId']) ? $data['refundRequestId'] : null;
|
||||
$this->container['uniqueRefundNo'] = isset($data['uniqueRefundNo']) ? $data['uniqueRefundNo'] : null;
|
||||
$this->container['status'] = isset($data['status']) ? $data['status'] : null;
|
||||
$this->container['refundAmount'] = isset($data['refundAmount']) ? $data['refundAmount'] : null;
|
||||
$this->container['residualAmount'] = isset($data['residualAmount']) ? $data['residualAmount'] : null;
|
||||
$this->container['description'] = isset($data['description']) ? $data['description'] : null;
|
||||
$this->container['refundRequestDate'] = isset($data['refundRequestDate']) ? $data['refundRequestDate'] : null;
|
||||
$this->container['accountDivided'] = isset($data['accountDivided']) ? $data['accountDivided'] : 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 bizSystemNo
|
||||
* @return string
|
||||
*/
|
||||
public function getBizSystemNo()
|
||||
{
|
||||
return $this->container['bizSystemNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bizSystemNo
|
||||
* @param string $bizSystemNo 业务方标识
|
||||
* @return $this
|
||||
*/
|
||||
public function setBizSystemNo($bizSystemNo)
|
||||
{
|
||||
$this->container['bizSystemNo'] = $bizSystemNo;
|
||||
|
||||
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 refundRequestId
|
||||
* @return string
|
||||
*/
|
||||
public function getRefundRequestId()
|
||||
{
|
||||
return $this->container['refundRequestId'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets refundRequestId
|
||||
* @param string $refundRequestId 商户退款请求号
|
||||
* @return $this
|
||||
*/
|
||||
public function setRefundRequestId($refundRequestId)
|
||||
{
|
||||
$this->container['refundRequestId'] = $refundRequestId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets uniqueRefundNo
|
||||
* @return string
|
||||
*/
|
||||
public function getUniqueRefundNo()
|
||||
{
|
||||
return $this->container['uniqueRefundNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets uniqueRefundNo
|
||||
* @param string $uniqueRefundNo 易宝统一订单号
|
||||
* @return $this
|
||||
*/
|
||||
public function setUniqueRefundNo($uniqueRefundNo)
|
||||
{
|
||||
$this->container['uniqueRefundNo'] = $uniqueRefundNo;
|
||||
|
||||
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 refundAmount
|
||||
* @return string
|
||||
*/
|
||||
public function getRefundAmount()
|
||||
{
|
||||
return $this->container['refundAmount'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets refundAmount
|
||||
* @param string $refundAmount 退款金额
|
||||
* @return $this
|
||||
*/
|
||||
public function setRefundAmount($refundAmount)
|
||||
{
|
||||
$this->container['refundAmount'] = $refundAmount;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets residualAmount
|
||||
* @return string
|
||||
*/
|
||||
public function getResidualAmount()
|
||||
{
|
||||
return $this->container['residualAmount'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets residualAmount
|
||||
* @param string $residualAmount 剩余金额
|
||||
* @return $this
|
||||
*/
|
||||
public function setResidualAmount($residualAmount)
|
||||
{
|
||||
$this->container['residualAmount'] = $residualAmount;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets description
|
||||
* @return string
|
||||
*/
|
||||
public function getDescription()
|
||||
{
|
||||
return $this->container['description'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets description
|
||||
* @param string $description 退款订单描述
|
||||
* @return $this
|
||||
*/
|
||||
public function setDescription($description)
|
||||
{
|
||||
$this->container['description'] = $description;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets refundRequestDate
|
||||
* @return string
|
||||
*/
|
||||
public function getRefundRequestDate()
|
||||
{
|
||||
return $this->container['refundRequestDate'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets refundRequestDate
|
||||
* @param string $refundRequestDate 退款请求日期
|
||||
* @return $this
|
||||
*/
|
||||
public function setRefundRequestDate($refundRequestDate)
|
||||
{
|
||||
$this->container['refundRequestDate'] = $refundRequestDate;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets accountDivided
|
||||
* @return string
|
||||
*/
|
||||
public function getAccountDivided()
|
||||
{
|
||||
return $this->container['accountDivided'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets accountDivided
|
||||
* @param string $accountDivided 分账规则
|
||||
* @return $this
|
||||
*/
|
||||
public function setAccountDivided($accountDivided)
|
||||
{
|
||||
$this->container['accountDivided'] = $accountDivided;
|
||||
|
||||
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));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
38
lib/Service/Sys/Model/TradeRefundResponseUnMarshaller.php
Normal file
38
lib/Service/Sys/Model/TradeRefundResponseUnMarshaller.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Sys\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class TradeRefundResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var TradeRefundResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new TradeRefundResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return TradeRefundResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return TradeRefundResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new TradeRefundResponse();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
TradeRefundResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,347 @@
|
||||
<?php
|
||||
/**
|
||||
* TradeRefundqueryBankPromotionInfoDTOResult
|
||||
* PHP version 5
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 子商户入网大算航旅
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
* OpenAPI spec version: 1.0.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\Sys\Model;
|
||||
|
||||
use ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* TradeRefundqueryBankPromotionInfoDTOResult Class Doc Comment
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class TradeRefundqueryBankPromotionInfoDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'TradeRefundqueryBankPromotionInfoDTOResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'promotionId' => 'string',
|
||||
'promotionName' => 'string',
|
||||
'amountRefund' => 'float',
|
||||
'activityId' => 'string',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'promotionId' => null,
|
||||
'promotionName' => null,
|
||||
'amountRefund' => null,
|
||||
'activityId' => 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 = [
|
||||
'promotionId' => 'promotionId',
|
||||
'promotionName' => 'promotionName',
|
||||
'amountRefund' => 'amountRefund',
|
||||
'activityId' => 'activityId',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'promotionId' => 'setPromotionId',
|
||||
'promotionName' => 'setPromotionName',
|
||||
'amountRefund' => 'setAmountRefund',
|
||||
'activityId' => 'setActivityId',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'promotionId' => 'getPromotionId',
|
||||
'promotionName' => 'getPromotionName',
|
||||
'amountRefund' => 'getAmountRefund',
|
||||
'activityId' => 'getActivityId',
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['promotionId'] = isset($data['promotionId']) ? $data['promotionId'] : null;
|
||||
$this->container['promotionName'] = isset($data['promotionName']) ? $data['promotionName'] : null;
|
||||
$this->container['amountRefund'] = isset($data['amountRefund']) ? $data['amountRefund'] : null;
|
||||
$this->container['activityId'] = isset($data['activityId']) ? $data['activityId'] : 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 promotionId
|
||||
* @return string
|
||||
*/
|
||||
public function getPromotionId()
|
||||
{
|
||||
return $this->container['promotionId'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets promotionId
|
||||
* @param string $promotionId 优惠券活动编码
|
||||
* @return $this
|
||||
*/
|
||||
public function setPromotionId($promotionId)
|
||||
{
|
||||
$this->container['promotionId'] = $promotionId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets promotionName
|
||||
* @return string
|
||||
*/
|
||||
public function getPromotionName()
|
||||
{
|
||||
return $this->container['promotionName'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets promotionName
|
||||
* @param string $promotionName 优惠券名称
|
||||
* @return $this
|
||||
*/
|
||||
public function setPromotionName($promotionName)
|
||||
{
|
||||
$this->container['promotionName'] = $promotionName;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets amountRefund
|
||||
* @return float
|
||||
*/
|
||||
public function getAmountRefund()
|
||||
{
|
||||
return $this->container['amountRefund'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets amountRefund
|
||||
* @param float $amountRefund 优惠券退回金额
|
||||
* @return $this
|
||||
*/
|
||||
public function setAmountRefund($amountRefund)
|
||||
{
|
||||
$this->container['amountRefund'] = $amountRefund;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets activityId
|
||||
* @return string
|
||||
*/
|
||||
public function getActivityId()
|
||||
{
|
||||
return $this->container['activityId'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets activityId
|
||||
* @param string $activityId 优惠券活动id
|
||||
* @return $this
|
||||
*/
|
||||
public function setActivityId($activityId)
|
||||
{
|
||||
$this->container['activityId'] = $activityId;
|
||||
|
||||
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,779 @@
|
||||
<?php
|
||||
/**
|
||||
* TradeRefundqueryQueryRefundResponseDTOResult
|
||||
* PHP version 5
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 子商户入网大算航旅
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
* OpenAPI spec version: 1.0.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\Sys\Model;
|
||||
|
||||
use ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* TradeRefundqueryQueryRefundResponseDTOResult Class Doc Comment
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class TradeRefundqueryQueryRefundResponseDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'TradeRefundqueryQueryRefundResponseDTOResult';
|
||||
|
||||
/**
|
||||
* 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',
|
||||
'refundRequestId' => 'string',
|
||||
'uniqueOrderNo' => 'string',
|
||||
'uniqueRefundNo' => 'string',
|
||||
'refundAmount' => 'float',
|
||||
'returnMerchantFee' => 'float',
|
||||
'returnCustomerFee' => 'float',
|
||||
'status' => 'string',
|
||||
'description' => 'string',
|
||||
'refundRequestDate' => 'string',
|
||||
'refundSuccessDate' => 'string',
|
||||
'realDeductAmount' => 'float',
|
||||
'realRefundAmount' => 'float',
|
||||
'accountDivided' => 'string',
|
||||
'cashRefundFee' => 'float',
|
||||
'bankPromotionInfoDTOList' => '\Yeepay\Yop\Sdk\Service\Sys\Model\TradeRefundqueryBankPromotionInfoDTOResult[]',
|
||||
];
|
||||
|
||||
/**
|
||||
* 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,
|
||||
'refundRequestId' => null,
|
||||
'uniqueOrderNo' => null,
|
||||
'uniqueRefundNo' => null,
|
||||
'refundAmount' => null,
|
||||
'returnMerchantFee' => null,
|
||||
'returnCustomerFee' => null,
|
||||
'status' => null,
|
||||
'description' => null,
|
||||
'refundRequestDate' => null,
|
||||
'refundSuccessDate' => null,
|
||||
'realDeductAmount' => null,
|
||||
'realRefundAmount' => null,
|
||||
'accountDivided' => null,
|
||||
'cashRefundFee' => null,
|
||||
'bankPromotionInfoDTOList' => 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',
|
||||
'refundRequestId' => 'refundRequestId',
|
||||
'uniqueOrderNo' => 'uniqueOrderNo',
|
||||
'uniqueRefundNo' => 'uniqueRefundNo',
|
||||
'refundAmount' => 'refundAmount',
|
||||
'returnMerchantFee' => 'returnMerchantFee',
|
||||
'returnCustomerFee' => 'returnCustomerFee',
|
||||
'status' => 'status',
|
||||
'description' => 'description',
|
||||
'refundRequestDate' => 'refundRequestDate',
|
||||
'refundSuccessDate' => 'refundSuccessDate',
|
||||
'realDeductAmount' => 'realDeductAmount',
|
||||
'realRefundAmount' => 'realRefundAmount',
|
||||
'accountDivided' => 'accountDivided',
|
||||
'cashRefundFee' => 'cashRefundFee',
|
||||
'bankPromotionInfoDTOList' => 'bankPromotionInfoDTOList',
|
||||
];
|
||||
|
||||
/**
|
||||
* 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',
|
||||
'refundRequestId' => 'setRefundRequestId',
|
||||
'uniqueOrderNo' => 'setUniqueOrderNo',
|
||||
'uniqueRefundNo' => 'setUniqueRefundNo',
|
||||
'refundAmount' => 'setRefundAmount',
|
||||
'returnMerchantFee' => 'setReturnMerchantFee',
|
||||
'returnCustomerFee' => 'setReturnCustomerFee',
|
||||
'status' => 'setStatus',
|
||||
'description' => 'setDescription',
|
||||
'refundRequestDate' => 'setRefundRequestDate',
|
||||
'refundSuccessDate' => 'setRefundSuccessDate',
|
||||
'realDeductAmount' => 'setRealDeductAmount',
|
||||
'realRefundAmount' => 'setRealRefundAmount',
|
||||
'accountDivided' => 'setAccountDivided',
|
||||
'cashRefundFee' => 'setCashRefundFee',
|
||||
'bankPromotionInfoDTOList' => 'setBankPromotionInfoDTOList',
|
||||
];
|
||||
|
||||
/**
|
||||
* 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',
|
||||
'refundRequestId' => 'getRefundRequestId',
|
||||
'uniqueOrderNo' => 'getUniqueOrderNo',
|
||||
'uniqueRefundNo' => 'getUniqueRefundNo',
|
||||
'refundAmount' => 'getRefundAmount',
|
||||
'returnMerchantFee' => 'getReturnMerchantFee',
|
||||
'returnCustomerFee' => 'getReturnCustomerFee',
|
||||
'status' => 'getStatus',
|
||||
'description' => 'getDescription',
|
||||
'refundRequestDate' => 'getRefundRequestDate',
|
||||
'refundSuccessDate' => 'getRefundSuccessDate',
|
||||
'realDeductAmount' => 'getRealDeductAmount',
|
||||
'realRefundAmount' => 'getRealRefundAmount',
|
||||
'accountDivided' => 'getAccountDivided',
|
||||
'cashRefundFee' => 'getCashRefundFee',
|
||||
'bankPromotionInfoDTOList' => 'getBankPromotionInfoDTOList',
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['refundRequestId'] = isset($data['refundRequestId']) ? $data['refundRequestId'] : null;
|
||||
$this->container['uniqueOrderNo'] = isset($data['uniqueOrderNo']) ? $data['uniqueOrderNo'] : null;
|
||||
$this->container['uniqueRefundNo'] = isset($data['uniqueRefundNo']) ? $data['uniqueRefundNo'] : null;
|
||||
$this->container['refundAmount'] = isset($data['refundAmount']) ? $data['refundAmount'] : null;
|
||||
$this->container['returnMerchantFee'] = isset($data['returnMerchantFee']) ? $data['returnMerchantFee'] : null;
|
||||
$this->container['returnCustomerFee'] = isset($data['returnCustomerFee']) ? $data['returnCustomerFee'] : null;
|
||||
$this->container['status'] = isset($data['status']) ? $data['status'] : null;
|
||||
$this->container['description'] = isset($data['description']) ? $data['description'] : null;
|
||||
$this->container['refundRequestDate'] = isset($data['refundRequestDate']) ? $data['refundRequestDate'] : null;
|
||||
$this->container['refundSuccessDate'] = isset($data['refundSuccessDate']) ? $data['refundSuccessDate'] : null;
|
||||
$this->container['realDeductAmount'] = isset($data['realDeductAmount']) ? $data['realDeductAmount'] : null;
|
||||
$this->container['realRefundAmount'] = isset($data['realRefundAmount']) ? $data['realRefundAmount'] : null;
|
||||
$this->container['accountDivided'] = isset($data['accountDivided']) ? $data['accountDivided'] : null;
|
||||
$this->container['cashRefundFee'] = isset($data['cashRefundFee']) ? $data['cashRefundFee'] : null;
|
||||
$this->container['bankPromotionInfoDTOList'] = isset($data['bankPromotionInfoDTOList']) ? $data['bankPromotionInfoDTOList'] : 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 refundRequestId
|
||||
* @return string
|
||||
*/
|
||||
public function getRefundRequestId()
|
||||
{
|
||||
return $this->container['refundRequestId'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets refundRequestId
|
||||
* @param string $refundRequestId 商户退款请求号
|
||||
* @return $this
|
||||
*/
|
||||
public function setRefundRequestId($refundRequestId)
|
||||
{
|
||||
$this->container['refundRequestId'] = $refundRequestId;
|
||||
|
||||
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 uniqueRefundNo
|
||||
* @return string
|
||||
*/
|
||||
public function getUniqueRefundNo()
|
||||
{
|
||||
return $this->container['uniqueRefundNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets uniqueRefundNo
|
||||
* @param string $uniqueRefundNo 易宝退款订单号
|
||||
* @return $this
|
||||
*/
|
||||
public function setUniqueRefundNo($uniqueRefundNo)
|
||||
{
|
||||
$this->container['uniqueRefundNo'] = $uniqueRefundNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets refundAmount
|
||||
* @return float
|
||||
*/
|
||||
public function getRefundAmount()
|
||||
{
|
||||
return $this->container['refundAmount'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets refundAmount
|
||||
* @param float $refundAmount 退款请求金额
|
||||
* @return $this
|
||||
*/
|
||||
public function setRefundAmount($refundAmount)
|
||||
{
|
||||
$this->container['refundAmount'] = $refundAmount;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets returnMerchantFee
|
||||
* @return float
|
||||
*/
|
||||
public function getReturnMerchantFee()
|
||||
{
|
||||
return $this->container['returnMerchantFee'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets returnMerchantFee
|
||||
* @param float $returnMerchantFee 返还商户手续费
|
||||
* @return $this
|
||||
*/
|
||||
public function setReturnMerchantFee($returnMerchantFee)
|
||||
{
|
||||
$this->container['returnMerchantFee'] = $returnMerchantFee;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets returnCustomerFee
|
||||
* @return float
|
||||
*/
|
||||
public function getReturnCustomerFee()
|
||||
{
|
||||
return $this->container['returnCustomerFee'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets returnCustomerFee
|
||||
* @param float $returnCustomerFee 返回用户手续费
|
||||
* @return $this
|
||||
*/
|
||||
public function setReturnCustomerFee($returnCustomerFee)
|
||||
{
|
||||
$this->container['returnCustomerFee'] = $returnCustomerFee;
|
||||
|
||||
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 description
|
||||
* @return string
|
||||
*/
|
||||
public function getDescription()
|
||||
{
|
||||
return $this->container['description'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets description
|
||||
* @param string $description 退款描述信息
|
||||
* @return $this
|
||||
*/
|
||||
public function setDescription($description)
|
||||
{
|
||||
$this->container['description'] = $description;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets refundRequestDate
|
||||
* @return string
|
||||
*/
|
||||
public function getRefundRequestDate()
|
||||
{
|
||||
return $this->container['refundRequestDate'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets refundRequestDate
|
||||
* @param string $refundRequestDate 退款请求时间
|
||||
* @return $this
|
||||
*/
|
||||
public function setRefundRequestDate($refundRequestDate)
|
||||
{
|
||||
$this->container['refundRequestDate'] = $refundRequestDate;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets refundSuccessDate
|
||||
* @return string
|
||||
*/
|
||||
public function getRefundSuccessDate()
|
||||
{
|
||||
return $this->container['refundSuccessDate'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets refundSuccessDate
|
||||
* @param string $refundSuccessDate 退款成功时间
|
||||
* @return $this
|
||||
*/
|
||||
public function setRefundSuccessDate($refundSuccessDate)
|
||||
{
|
||||
$this->container['refundSuccessDate'] = $refundSuccessDate;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets realDeductAmount
|
||||
* @return float
|
||||
*/
|
||||
public function getRealDeductAmount()
|
||||
{
|
||||
return $this->container['realDeductAmount'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets realDeductAmount
|
||||
* @param float $realDeductAmount 实扣金额
|
||||
* @return $this
|
||||
*/
|
||||
public function setRealDeductAmount($realDeductAmount)
|
||||
{
|
||||
$this->container['realDeductAmount'] = $realDeductAmount;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets realRefundAmount
|
||||
* @return float
|
||||
*/
|
||||
public function getRealRefundAmount()
|
||||
{
|
||||
return $this->container['realRefundAmount'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets realRefundAmount
|
||||
* @param float $realRefundAmount 实退金额
|
||||
* @return $this
|
||||
*/
|
||||
public function setRealRefundAmount($realRefundAmount)
|
||||
{
|
||||
$this->container['realRefundAmount'] = $realRefundAmount;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets accountDivided
|
||||
* @return string
|
||||
*/
|
||||
public function getAccountDivided()
|
||||
{
|
||||
return $this->container['accountDivided'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets accountDivided
|
||||
* @param string $accountDivided 分账规则
|
||||
* @return $this
|
||||
*/
|
||||
public function setAccountDivided($accountDivided)
|
||||
{
|
||||
$this->container['accountDivided'] = $accountDivided;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets cashRefundFee
|
||||
* @return float
|
||||
*/
|
||||
public function getCashRefundFee()
|
||||
{
|
||||
return $this->container['cashRefundFee'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets cashRefundFee
|
||||
* @param float $cashRefundFee 现金退款金额
|
||||
* @return $this
|
||||
*/
|
||||
public function setCashRefundFee($cashRefundFee)
|
||||
{
|
||||
$this->container['cashRefundFee'] = $cashRefundFee;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets bankPromotionInfoDTOList
|
||||
* @return \Yeepay\Yop\Sdk\Service\Sys\Model\TradeRefundqueryBankPromotionInfoDTOResult[]
|
||||
*/
|
||||
public function getBankPromotionInfoDTOList()
|
||||
{
|
||||
return $this->container['bankPromotionInfoDTOList'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bankPromotionInfoDTOList
|
||||
* @param \Yeepay\Yop\Sdk\Service\Sys\Model\TradeRefundqueryBankPromotionInfoDTOResult[] $bankPromotionInfoDTOList 银行优惠卡券列表
|
||||
* @return $this
|
||||
*/
|
||||
public function setBankPromotionInfoDTOList($bankPromotionInfoDTOList)
|
||||
{
|
||||
$this->container['bankPromotionInfoDTOList'] = $bankPromotionInfoDTOList;
|
||||
|
||||
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));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
171
lib/Service/Sys/Model/TradeRefundqueryRequest.php
Normal file
171
lib/Service/Sys/Model/TradeRefundqueryRequest.php
Normal file
@@ -0,0 +1,171 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Sys\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\BaseRequest;
|
||||
|
||||
class TradeRefundqueryRequest extends BaseRequest
|
||||
{
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $orderId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $refundRequestId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $uniqueRefundNo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $hmac;
|
||||
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->parentMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
* @param string $parentMerchantNo
|
||||
* @return TradeRefundqueryRequest
|
||||
*/
|
||||
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 TradeRefundqueryRequest
|
||||
*/
|
||||
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 TradeRefundqueryRequest
|
||||
*/
|
||||
public function setOrderId($orderId)
|
||||
{
|
||||
$this->orderId = $orderId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets refundRequestId
|
||||
* @return string
|
||||
*/
|
||||
public function getRefundRequestId()
|
||||
{
|
||||
return $this->refundRequestId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets refundRequestId
|
||||
* @param string $refundRequestId
|
||||
* @return TradeRefundqueryRequest
|
||||
*/
|
||||
public function setRefundRequestId($refundRequestId)
|
||||
{
|
||||
$this->refundRequestId = $refundRequestId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets uniqueRefundNo
|
||||
* @return string
|
||||
*/
|
||||
public function getUniqueRefundNo()
|
||||
{
|
||||
return $this->uniqueRefundNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets uniqueRefundNo
|
||||
* @param string $uniqueRefundNo
|
||||
* @return TradeRefundqueryRequest
|
||||
*/
|
||||
public function setUniqueRefundNo($uniqueRefundNo)
|
||||
{
|
||||
$this->uniqueRefundNo = $uniqueRefundNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets hmac
|
||||
* @return string
|
||||
*/
|
||||
public function getHmac()
|
||||
{
|
||||
return $this->hmac;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets hmac
|
||||
* @param string $hmac
|
||||
* @return TradeRefundqueryRequest
|
||||
*/
|
||||
public function setHmac($hmac)
|
||||
{
|
||||
$this->hmac = $hmac;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'tradeRefundquery';
|
||||
}
|
||||
|
||||
}
|
||||
101
lib/Service/Sys/Model/TradeRefundqueryRequestMarshaller.php
Normal file
101
lib/Service/Sys/Model/TradeRefundqueryRequestMarshaller.php
Normal file
@@ -0,0 +1,101 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Sys\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 TradeRefundqueryRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var TradeRefundqueryRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new TradeRefundqueryRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return TradeRefundqueryRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Sys';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/sys/trade/refundquery';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
/**
|
||||
* @param TradeRefundqueryRequest $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->getRefundRequestId() != null) {
|
||||
$internalRequest->addParameter('refundRequestId',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getRefundRequestId(), 'string'));
|
||||
}
|
||||
if ($request->getUniqueRefundNo() != null) {
|
||||
$internalRequest->addParameter('uniqueRefundNo',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getUniqueRefundNo(), 'string'));
|
||||
}
|
||||
if ($request->getHmac() != null) {
|
||||
$internalRequest->addParameter('hmac',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getHmac(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
TradeRefundqueryRequestMarshaller::__init();
|
||||
36
lib/Service/Sys/Model/TradeRefundqueryResponse.php
Normal file
36
lib/Service/Sys/Model/TradeRefundqueryResponse.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Sys\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\BaseResponse;
|
||||
|
||||
class TradeRefundqueryResponse extends BaseResponse
|
||||
{
|
||||
|
||||
/**
|
||||
* @var TradeRefundqueryQueryRefundResponseDTOResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Sys\Model\TradeRefundqueryQueryRefundResponseDTOResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param TradeRefundqueryQueryRefundResponseDTOResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return TradeRefundqueryQueryRefundResponseDTOResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Sys\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class TradeRefundqueryResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var TradeRefundqueryResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new TradeRefundqueryResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return TradeRefundqueryResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return TradeRefundqueryResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new TradeRefundqueryResponse();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
TradeRefundqueryResponseUnMarshaller::__init();
|
||||
Reference in New Issue
Block a user