增加聚合支付托管下单
This commit is contained in:
42
lib/Service/Settle/Model/ReceiptApplyRequest.php
Normal file
42
lib/Service/Settle/Model/ReceiptApplyRequest.php
Normal file
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Settle\Model;
|
||||
|
||||
|
||||
class ReceiptApplyRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var
|
||||
*/
|
||||
private $body;
|
||||
|
||||
/**
|
||||
* Gets body
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public function getBody()
|
||||
{
|
||||
return $this->body;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets body
|
||||
*
|
||||
* @param $body
|
||||
* @return ReceiptApplyRequest
|
||||
*/
|
||||
public function setBody($body)
|
||||
{
|
||||
$this->body = $body;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'receiptApply';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
80
lib/Service/Settle/Model/ReceiptApplyRequestMarshaller.php
Normal file
80
lib/Service/Settle/Model/ReceiptApplyRequestMarshaller.php
Normal file
@@ -0,0 +1,80 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Settle\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 ReceiptApplyRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var ReceiptApplyRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new ReceiptApplyRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ReceiptApplyRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Settle';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/settle/receipt/apply';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/json';
|
||||
|
||||
|
||||
/**
|
||||
* @param ReceiptApplyRequest $request
|
||||
* @return Request
|
||||
*/
|
||||
public function marshal($request)
|
||||
{
|
||||
$internalRequest = new DefaultRequest($this->serviceName);
|
||||
$internalRequest->setResourcePath($this->resourcePath);
|
||||
$internalRequest->setHttpMethod($this->httpMethod);
|
||||
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
|
||||
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
|
||||
$internalRequest->addHeader($name, $value);
|
||||
}
|
||||
}
|
||||
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
|
||||
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
|
||||
}
|
||||
$content = (string)$request->getBody();
|
||||
$internalRequest->setContent($content);
|
||||
$internalRequest->addHeader(Headers::CONTENT_LENGTH, strlen($content));
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
ReceiptApplyRequestMarshaller::__init();
|
||||
34
lib/Service/Settle/Model/ReceiptApplyResponse.php
Normal file
34
lib/Service/Settle/Model/ReceiptApplyResponse.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Settle\Model;
|
||||
|
||||
|
||||
class ReceiptApplyResponse extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var YopSettleReceiptResponseDTO
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Settle\Model\YopSettleReceiptResponseDTO';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param YopSettleReceiptResponseDTO $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return YopSettleReceiptResponseDTO
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Settle\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class ReceiptApplyResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var ReceiptApplyResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new ReceiptApplyResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ReceiptApplyResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ReceiptApplyResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new ReceiptApplyResponse();
|
||||
}
|
||||
}
|
||||
|
||||
ReceiptApplyResponseUnMarshaller::__init();
|
||||
92
lib/Service/Settle/Model/ReceiptGetRequest.php
Normal file
92
lib/Service/Settle/Model/ReceiptGetRequest.php
Normal file
@@ -0,0 +1,92 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Settle\Model;
|
||||
|
||||
|
||||
class ReceiptGetRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $fileId;
|
||||
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->parentMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
*
|
||||
* @param string $parentMerchantNo
|
||||
* @return ReceiptGetRequest
|
||||
*/
|
||||
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 ReceiptGetRequest
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->merchantNo = $merchantNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets fileId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getFileId()
|
||||
{
|
||||
return $this->fileId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets fileId
|
||||
*
|
||||
* @param string $fileId
|
||||
* @return ReceiptGetRequest
|
||||
*/
|
||||
public function setFileId($fileId)
|
||||
{
|
||||
$this->fileId = $fileId;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'receiptGet';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
87
lib/Service/Settle/Model/ReceiptGetRequestMarshaller.php
Normal file
87
lib/Service/Settle/Model/ReceiptGetRequestMarshaller.php
Normal file
@@ -0,0 +1,87 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Settle\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 ReceiptGetRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var ReceiptGetRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new ReceiptGetRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ReceiptGetRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Settle';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'GET';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/yos/v1.0/settle/receipt/get';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param ReceiptGetRequest $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->getParentMerchantNo() != null){
|
||||
$internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string'));
|
||||
}
|
||||
if($request->getMerchantNo() != null){
|
||||
$internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string'));
|
||||
}
|
||||
if($request->getFileId() != null){
|
||||
$internalRequest->addParameter('fileId', ObjectSerializer::sanitizeForSerialization($request->getFileId(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
ReceiptGetRequestMarshaller::__init();
|
||||
192
lib/Service/Settle/Model/RecordsOrderQueryRequest.php
Normal file
192
lib/Service/Settle/Model/RecordsOrderQueryRequest.php
Normal file
@@ -0,0 +1,192 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Settle\Model;
|
||||
|
||||
|
||||
class RecordsOrderQueryRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $orderId;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $requestId;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $businessType;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $uniqueOrderNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $settleMerchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
|
||||
/**
|
||||
* Gets orderId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getOrderId()
|
||||
{
|
||||
return $this->orderId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets orderId
|
||||
*
|
||||
* @param string $orderId
|
||||
* @return RecordsOrderQueryRequest
|
||||
*/
|
||||
public function setOrderId($orderId)
|
||||
{
|
||||
$this->orderId = $orderId;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets requestId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRequestId()
|
||||
{
|
||||
return $this->requestId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets requestId
|
||||
*
|
||||
* @param string $requestId
|
||||
* @return RecordsOrderQueryRequest
|
||||
*/
|
||||
public function setRequestId($requestId)
|
||||
{
|
||||
$this->requestId = $requestId;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->parentMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
*
|
||||
* @param string $parentMerchantNo
|
||||
* @return RecordsOrderQueryRequest
|
||||
*/
|
||||
public function setParentMerchantNo($parentMerchantNo)
|
||||
{
|
||||
$this->parentMerchantNo = $parentMerchantNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets businessType
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getBusinessType()
|
||||
{
|
||||
return $this->businessType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets businessType
|
||||
*
|
||||
* @param string $businessType
|
||||
* @return RecordsOrderQueryRequest
|
||||
*/
|
||||
public function setBusinessType($businessType)
|
||||
{
|
||||
$this->businessType = $businessType;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets uniqueOrderNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getUniqueOrderNo()
|
||||
{
|
||||
return $this->uniqueOrderNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets uniqueOrderNo
|
||||
*
|
||||
* @param string $uniqueOrderNo
|
||||
* @return RecordsOrderQueryRequest
|
||||
*/
|
||||
public function setUniqueOrderNo($uniqueOrderNo)
|
||||
{
|
||||
$this->uniqueOrderNo = $uniqueOrderNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets settleMerchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getSettleMerchantNo()
|
||||
{
|
||||
return $this->settleMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets settleMerchantNo
|
||||
*
|
||||
* @param string $settleMerchantNo
|
||||
* @return RecordsOrderQueryRequest
|
||||
*/
|
||||
public function setSettleMerchantNo($settleMerchantNo)
|
||||
{
|
||||
$this->settleMerchantNo = $settleMerchantNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets merchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantNo()
|
||||
{
|
||||
return $this->merchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantNo
|
||||
*
|
||||
* @param string $merchantNo
|
||||
* @return RecordsOrderQueryRequest
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->merchantNo = $merchantNo;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'recordsOrderQuery';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Settle\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 RecordsOrderQueryRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var RecordsOrderQueryRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new RecordsOrderQueryRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return RecordsOrderQueryRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Settle';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'GET';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/settle/records-order/query';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param RecordsOrderQueryRequest $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->getRequestId() != null){
|
||||
$internalRequest->addParameter('requestId', ObjectSerializer::sanitizeForSerialization($request->getRequestId(), 'string'));
|
||||
}
|
||||
if($request->getParentMerchantNo() != null){
|
||||
$internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string'));
|
||||
}
|
||||
if($request->getBusinessType() != null){
|
||||
$internalRequest->addParameter('businessType', ObjectSerializer::sanitizeForSerialization($request->getBusinessType(), 'string'));
|
||||
}
|
||||
if($request->getUniqueOrderNo() != null){
|
||||
$internalRequest->addParameter('uniqueOrderNo', ObjectSerializer::sanitizeForSerialization($request->getUniqueOrderNo(), 'string'));
|
||||
}
|
||||
if($request->getSettleMerchantNo() != null){
|
||||
$internalRequest->addParameter('settleMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getSettleMerchantNo(), 'string'));
|
||||
}
|
||||
if($request->getMerchantNo() != null){
|
||||
$internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
RecordsOrderQueryRequestMarshaller::__init();
|
||||
34
lib/Service/Settle/Model/RecordsOrderQueryResponse.php
Normal file
34
lib/Service/Settle/Model/RecordsOrderQueryResponse.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Settle\Model;
|
||||
|
||||
|
||||
class RecordsOrderQueryResponse extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var SettleRecordOrderQueryResponseDto
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Settle\Model\SettleRecordOrderQueryResponseDto';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param SettleRecordOrderQueryResponseDto $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return SettleRecordOrderQueryResponseDto
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Settle\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class RecordsOrderQueryResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var RecordsOrderQueryResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new RecordsOrderQueryResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return RecordsOrderQueryResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return RecordsOrderQueryResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new RecordsOrderQueryResponse();
|
||||
}
|
||||
}
|
||||
|
||||
RecordsOrderQueryResponseUnMarshaller::__init();
|
||||
42
lib/Service/Settle/Model/SettleReceiptApplyV10Request.php
Normal file
42
lib/Service/Settle/Model/SettleReceiptApplyV10Request.php
Normal file
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Settle\Model;
|
||||
|
||||
|
||||
class SettleReceiptApplyV10Request extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var
|
||||
*/
|
||||
private $body;
|
||||
|
||||
/**
|
||||
* Gets body
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public function getBody()
|
||||
{
|
||||
return $this->body;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets body
|
||||
*
|
||||
* @param $body
|
||||
* @return SettleReceiptApplyV10Request
|
||||
*/
|
||||
public function setBody($body)
|
||||
{
|
||||
$this->body = $body;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'settle_receipt_apply_v1_0';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Settle\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 SettleReceiptApplyV10RequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var SettleReceiptApplyV10RequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new SettleReceiptApplyV10RequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return SettleReceiptApplyV10RequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Settle';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/settle/receipt/apply';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/json';
|
||||
|
||||
|
||||
/**
|
||||
* @param SettleReceiptApplyV10Request $request
|
||||
* @return Request
|
||||
*/
|
||||
public function marshal($request)
|
||||
{
|
||||
$internalRequest = new DefaultRequest($this->serviceName);
|
||||
$internalRequest->setResourcePath($this->resourcePath);
|
||||
$internalRequest->setHttpMethod($this->httpMethod);
|
||||
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
|
||||
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
|
||||
$internalRequest->addHeader($name, $value);
|
||||
}
|
||||
}
|
||||
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
|
||||
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
|
||||
}
|
||||
$content = (string)$request->getBody();
|
||||
$internalRequest->setContent($content);
|
||||
$internalRequest->addHeader(Headers::CONTENT_LENGTH, strlen($content));
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
SettleReceiptApplyV10RequestMarshaller::__init();
|
||||
34
lib/Service/Settle/Model/SettleReceiptApplyV10Response.php
Normal file
34
lib/Service/Settle/Model/SettleReceiptApplyV10Response.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Settle\Model;
|
||||
|
||||
|
||||
class SettleReceiptApplyV10Response extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var YopSettleReceiptResponseDTO
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Settle\Model\YopSettleReceiptResponseDTO';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param YopSettleReceiptResponseDTO $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return YopSettleReceiptResponseDTO
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Settle\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class SettleReceiptApplyV10ResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var SettleReceiptApplyV10ResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new SettleReceiptApplyV10ResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return SettleReceiptApplyV10ResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return SettleReceiptApplyV10Response
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new SettleReceiptApplyV10Response();
|
||||
}
|
||||
}
|
||||
|
||||
SettleReceiptApplyV10ResponseUnMarshaller::__init();
|
||||
92
lib/Service/Settle/Model/SettleReceiptGetV10Request.php
Normal file
92
lib/Service/Settle/Model/SettleReceiptGetV10Request.php
Normal file
@@ -0,0 +1,92 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Settle\Model;
|
||||
|
||||
|
||||
class SettleReceiptGetV10Request extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $fileId;
|
||||
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->parentMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
*
|
||||
* @param string $parentMerchantNo
|
||||
* @return SettleReceiptGetV10Request
|
||||
*/
|
||||
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 SettleReceiptGetV10Request
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->merchantNo = $merchantNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets fileId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getFileId()
|
||||
{
|
||||
return $this->fileId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets fileId
|
||||
*
|
||||
* @param string $fileId
|
||||
* @return SettleReceiptGetV10Request
|
||||
*/
|
||||
public function setFileId($fileId)
|
||||
{
|
||||
$this->fileId = $fileId;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'settle_receipt_get_v1_0';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,87 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Settle\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 SettleReceiptGetV10RequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var SettleReceiptGetV10RequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new SettleReceiptGetV10RequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return SettleReceiptGetV10RequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Settle';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'GET';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/yos/v1.0/settle/receipt/get';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param SettleReceiptGetV10Request $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->getParentMerchantNo() != null){
|
||||
$internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string'));
|
||||
}
|
||||
if($request->getMerchantNo() != null){
|
||||
$internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string'));
|
||||
}
|
||||
if($request->getFileId() != null){
|
||||
$internalRequest->addParameter('fileId', ObjectSerializer::sanitizeForSerialization($request->getFileId(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
SettleReceiptGetV10RequestMarshaller::__init();
|
||||
192
lib/Service/Settle/Model/SettleRecodOrderQueryV10Request.php
Normal file
192
lib/Service/Settle/Model/SettleRecodOrderQueryV10Request.php
Normal file
@@ -0,0 +1,192 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Settle\Model;
|
||||
|
||||
|
||||
class SettleRecodOrderQueryV10Request extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $orderId;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $requestId;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $businessType;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $uniqueOrderNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $settleMerchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
|
||||
/**
|
||||
* Gets orderId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getOrderId()
|
||||
{
|
||||
return $this->orderId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets orderId
|
||||
*
|
||||
* @param string $orderId
|
||||
* @return SettleRecodOrderQueryV10Request
|
||||
*/
|
||||
public function setOrderId($orderId)
|
||||
{
|
||||
$this->orderId = $orderId;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets requestId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRequestId()
|
||||
{
|
||||
return $this->requestId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets requestId
|
||||
*
|
||||
* @param string $requestId
|
||||
* @return SettleRecodOrderQueryV10Request
|
||||
*/
|
||||
public function setRequestId($requestId)
|
||||
{
|
||||
$this->requestId = $requestId;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->parentMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
*
|
||||
* @param string $parentMerchantNo
|
||||
* @return SettleRecodOrderQueryV10Request
|
||||
*/
|
||||
public function setParentMerchantNo($parentMerchantNo)
|
||||
{
|
||||
$this->parentMerchantNo = $parentMerchantNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets businessType
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getBusinessType()
|
||||
{
|
||||
return $this->businessType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets businessType
|
||||
*
|
||||
* @param string $businessType
|
||||
* @return SettleRecodOrderQueryV10Request
|
||||
*/
|
||||
public function setBusinessType($businessType)
|
||||
{
|
||||
$this->businessType = $businessType;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets uniqueOrderNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getUniqueOrderNo()
|
||||
{
|
||||
return $this->uniqueOrderNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets uniqueOrderNo
|
||||
*
|
||||
* @param string $uniqueOrderNo
|
||||
* @return SettleRecodOrderQueryV10Request
|
||||
*/
|
||||
public function setUniqueOrderNo($uniqueOrderNo)
|
||||
{
|
||||
$this->uniqueOrderNo = $uniqueOrderNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets settleMerchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getSettleMerchantNo()
|
||||
{
|
||||
return $this->settleMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets settleMerchantNo
|
||||
*
|
||||
* @param string $settleMerchantNo
|
||||
* @return SettleRecodOrderQueryV10Request
|
||||
*/
|
||||
public function setSettleMerchantNo($settleMerchantNo)
|
||||
{
|
||||
$this->settleMerchantNo = $settleMerchantNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets merchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantNo()
|
||||
{
|
||||
return $this->merchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantNo
|
||||
*
|
||||
* @param string $merchantNo
|
||||
* @return SettleRecodOrderQueryV10Request
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->merchantNo = $merchantNo;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'settle_recod_order_query_v1_0';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Settle\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 SettleRecodOrderQueryV10RequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var SettleRecodOrderQueryV10RequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new SettleRecodOrderQueryV10RequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return SettleRecodOrderQueryV10RequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Settle';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'GET';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/settle/records-order/query';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param SettleRecodOrderQueryV10Request $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->getRequestId() != null){
|
||||
$internalRequest->addParameter('requestId', ObjectSerializer::sanitizeForSerialization($request->getRequestId(), 'string'));
|
||||
}
|
||||
if($request->getParentMerchantNo() != null){
|
||||
$internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string'));
|
||||
}
|
||||
if($request->getBusinessType() != null){
|
||||
$internalRequest->addParameter('businessType', ObjectSerializer::sanitizeForSerialization($request->getBusinessType(), 'string'));
|
||||
}
|
||||
if($request->getUniqueOrderNo() != null){
|
||||
$internalRequest->addParameter('uniqueOrderNo', ObjectSerializer::sanitizeForSerialization($request->getUniqueOrderNo(), 'string'));
|
||||
}
|
||||
if($request->getSettleMerchantNo() != null){
|
||||
$internalRequest->addParameter('settleMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getSettleMerchantNo(), 'string'));
|
||||
}
|
||||
if($request->getMerchantNo() != null){
|
||||
$internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
SettleRecodOrderQueryV10RequestMarshaller::__init();
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Settle\Model;
|
||||
|
||||
|
||||
class SettleRecodOrderQueryV10Response extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var SettleRecordOrderQueryResponseDto
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Settle\Model\SettleRecordOrderQueryResponseDto';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param SettleRecordOrderQueryResponseDto $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return SettleRecordOrderQueryResponseDto
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Settle\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class SettleRecodOrderQueryV10ResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var SettleRecodOrderQueryV10ResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new SettleRecodOrderQueryV10ResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return SettleRecodOrderQueryV10ResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return SettleRecodOrderQueryV10Response
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new SettleRecodOrderQueryV10Response();
|
||||
}
|
||||
}
|
||||
|
||||
SettleRecodOrderQueryV10ResponseUnMarshaller::__init();
|
||||
603
lib/Service/Settle/Model/SettleRecordDetailsDto.php
Normal file
603
lib/Service/Settle/Model/SettleRecordDetailsDto.php
Normal file
@@ -0,0 +1,603 @@
|
||||
<?php
|
||||
/**
|
||||
* SettleRecordDetailsDto
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 商户结算2.0
|
||||
*
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
*
|
||||
* OpenAPI spec version: 1.0
|
||||
*
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 3.0.13
|
||||
*/
|
||||
|
||||
/**
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Settle\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* SettleRecordDetailsDto Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @description 未命名
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class SettleRecordDetailsDto implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'SettleRecordDetailsDto';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'accountNo' => 'string',
|
||||
'realAmount' => 'float',
|
||||
'status' => 'string',
|
||||
'statusDesc' => 'string',
|
||||
'errorCode' => 'string',
|
||||
'errorMessage' => 'string',
|
||||
'correct' => 'bool',
|
||||
'channelRequestNo' => 'string',
|
||||
'accountType' => 'string',
|
||||
'accountTypeDesc' => 'string',
|
||||
'accountNameMast' => 'string'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'accountNo' => null,
|
||||
'realAmount' => null,
|
||||
'status' => null,
|
||||
'statusDesc' => null,
|
||||
'errorCode' => null,
|
||||
'errorMessage' => null,
|
||||
'correct' => null,
|
||||
'channelRequestNo' => null,
|
||||
'accountType' => null,
|
||||
'accountTypeDesc' => null,
|
||||
'accountNameMast' => 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 = [
|
||||
'accountNo' => 'accountNo',
|
||||
'realAmount' => 'realAmount',
|
||||
'status' => 'status',
|
||||
'statusDesc' => 'statusDesc',
|
||||
'errorCode' => 'errorCode',
|
||||
'errorMessage' => 'errorMessage',
|
||||
'correct' => 'correct',
|
||||
'channelRequestNo' => 'channelRequestNo',
|
||||
'accountType' => 'accountType',
|
||||
'accountTypeDesc' => 'accountTypeDesc',
|
||||
'accountNameMast' => 'accountNameMast'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'accountNo' => 'setAccountNo',
|
||||
'realAmount' => 'setRealAmount',
|
||||
'status' => 'setStatus',
|
||||
'statusDesc' => 'setStatusDesc',
|
||||
'errorCode' => 'setErrorCode',
|
||||
'errorMessage' => 'setErrorMessage',
|
||||
'correct' => 'setCorrect',
|
||||
'channelRequestNo' => 'setChannelRequestNo',
|
||||
'accountType' => 'setAccountType',
|
||||
'accountTypeDesc' => 'setAccountTypeDesc',
|
||||
'accountNameMast' => 'setAccountNameMast'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'accountNo' => 'getAccountNo',
|
||||
'realAmount' => 'getRealAmount',
|
||||
'status' => 'getStatus',
|
||||
'statusDesc' => 'getStatusDesc',
|
||||
'errorCode' => 'getErrorCode',
|
||||
'errorMessage' => 'getErrorMessage',
|
||||
'correct' => 'getCorrect',
|
||||
'channelRequestNo' => 'getChannelRequestNo',
|
||||
'accountType' => 'getAccountType',
|
||||
'accountTypeDesc' => 'getAccountTypeDesc',
|
||||
'accountNameMast' => 'getAccountNameMast'
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['accountNo'] = isset($data['accountNo']) ? $data['accountNo'] : null;
|
||||
$this->container['realAmount'] = isset($data['realAmount']) ? $data['realAmount'] : null;
|
||||
$this->container['status'] = isset($data['status']) ? $data['status'] : null;
|
||||
$this->container['statusDesc'] = isset($data['statusDesc']) ? $data['statusDesc'] : null;
|
||||
$this->container['errorCode'] = isset($data['errorCode']) ? $data['errorCode'] : null;
|
||||
$this->container['errorMessage'] = isset($data['errorMessage']) ? $data['errorMessage'] : null;
|
||||
$this->container['correct'] = isset($data['correct']) ? $data['correct'] : null;
|
||||
$this->container['channelRequestNo'] = isset($data['channelRequestNo']) ? $data['channelRequestNo'] : null;
|
||||
$this->container['accountType'] = isset($data['accountType']) ? $data['accountType'] : null;
|
||||
$this->container['accountTypeDesc'] = isset($data['accountTypeDesc']) ? $data['accountTypeDesc'] : null;
|
||||
$this->container['accountNameMast'] = isset($data['accountNameMast']) ? $data['accountNameMast'] : 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 accountNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getAccountNo()
|
||||
{
|
||||
return $this->container['accountNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets accountNo
|
||||
*
|
||||
* @param string $accountNo 账号
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setAccountNo($accountNo)
|
||||
{
|
||||
$this->container['accountNo'] = $accountNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets realAmount
|
||||
*
|
||||
* @return float
|
||||
*/
|
||||
public function getRealAmount()
|
||||
{
|
||||
return $this->container['realAmount'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets realAmount
|
||||
*
|
||||
* @param float $realAmount 到账金额
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setRealAmount($realAmount)
|
||||
{
|
||||
$this->container['realAmount'] = $realAmount;
|
||||
|
||||
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 statusDesc
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getStatusDesc()
|
||||
{
|
||||
return $this->container['statusDesc'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets statusDesc
|
||||
*
|
||||
* @param string $statusDesc 到账状态描述
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setStatusDesc($statusDesc)
|
||||
{
|
||||
$this->container['statusDesc'] = $statusDesc;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets errorCode
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getErrorCode()
|
||||
{
|
||||
return $this->container['errorCode'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets errorCode
|
||||
*
|
||||
* @param string $errorCode 错误码
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setErrorCode($errorCode)
|
||||
{
|
||||
$this->container['errorCode'] = $errorCode;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets errorMessage
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getErrorMessage()
|
||||
{
|
||||
return $this->container['errorMessage'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets errorMessage
|
||||
*
|
||||
* @param string $errorMessage 错误信息
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setErrorMessage($errorMessage)
|
||||
{
|
||||
$this->container['errorMessage'] = $errorMessage;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets correct
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function getCorrect()
|
||||
{
|
||||
return $this->container['correct'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets correct
|
||||
*
|
||||
* @param bool $correct 是否冲退
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setCorrect($correct)
|
||||
{
|
||||
$this->container['correct'] = $correct;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets channelRequestNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getChannelRequestNo()
|
||||
{
|
||||
return $this->container['channelRequestNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets channelRequestNo
|
||||
*
|
||||
* @param string $channelRequestNo 出款流水号
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setChannelRequestNo($channelRequestNo)
|
||||
{
|
||||
$this->container['channelRequestNo'] = $channelRequestNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets accountType
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getAccountType()
|
||||
{
|
||||
return $this->container['accountType'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets accountType
|
||||
*
|
||||
* @param string $accountType 账户类型
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setAccountType($accountType)
|
||||
{
|
||||
$this->container['accountType'] = $accountType;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets accountTypeDesc
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getAccountTypeDesc()
|
||||
{
|
||||
return $this->container['accountTypeDesc'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets accountTypeDesc
|
||||
*
|
||||
* @param string $accountTypeDesc 账户类型描述
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setAccountTypeDesc($accountTypeDesc)
|
||||
{
|
||||
$this->container['accountTypeDesc'] = $accountTypeDesc;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets accountNameMast
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getAccountNameMast()
|
||||
{
|
||||
return $this->container['accountNameMast'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets accountNameMast
|
||||
*
|
||||
* @param string $accountNameMast 账户名
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setAccountNameMast($accountNameMast)
|
||||
{
|
||||
$this->container['accountNameMast'] = $accountNameMast;
|
||||
|
||||
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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
393
lib/Service/Settle/Model/SettleRecordOrderQueryResponseDto.php
Normal file
393
lib/Service/Settle/Model/SettleRecordOrderQueryResponseDto.php
Normal file
@@ -0,0 +1,393 @@
|
||||
<?php
|
||||
/**
|
||||
* SettleRecordOrderQueryResponseDto
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 商户结算2.0
|
||||
*
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
*
|
||||
* OpenAPI spec version: 1.0
|
||||
*
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 3.0.13
|
||||
*/
|
||||
|
||||
/**
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Settle\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* SettleRecordOrderQueryResponseDto Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @description 查询结算到账情况返回参数
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class SettleRecordOrderQueryResponseDto implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'SettleRecordOrderQueryResponseDto';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'code' => 'string',
|
||||
'message' => 'string',
|
||||
'settleMerchantNo' => 'string',
|
||||
'settleRecordQueryDtos' => '\Yeepay\Yop\Sdk\Service\Settle\Model\SettleRecordQueryDto[]'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'code' => null,
|
||||
'message' => null,
|
||||
'settleMerchantNo' => null,
|
||||
'settleRecordQueryDtos' => 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',
|
||||
'settleMerchantNo' => 'settleMerchantNo',
|
||||
'settleRecordQueryDtos' => 'settleRecordQueryDtos'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'code' => 'setCode',
|
||||
'message' => 'setMessage',
|
||||
'settleMerchantNo' => 'setSettleMerchantNo',
|
||||
'settleRecordQueryDtos' => 'setSettleRecordQueryDtos'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'code' => 'getCode',
|
||||
'message' => 'getMessage',
|
||||
'settleMerchantNo' => 'getSettleMerchantNo',
|
||||
'settleRecordQueryDtos' => 'getSettleRecordQueryDtos'
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['settleMerchantNo'] = isset($data['settleMerchantNo']) ? $data['settleMerchantNo'] : null;
|
||||
$this->container['settleRecordQueryDtos'] = isset($data['settleRecordQueryDtos']) ? $data['settleRecordQueryDtos'] : 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 settleMerchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getSettleMerchantNo()
|
||||
{
|
||||
return $this->container['settleMerchantNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets settleMerchantNo
|
||||
*
|
||||
* @param string $settleMerchantNo <p>结算商户商编</p>
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setSettleMerchantNo($settleMerchantNo)
|
||||
{
|
||||
$this->container['settleMerchantNo'] = $settleMerchantNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets settleRecordQueryDtos
|
||||
*
|
||||
* @return \Yeepay\Yop\Sdk\Service\Settle\Model\SettleRecordQueryDto[]
|
||||
*/
|
||||
public function getSettleRecordQueryDtos()
|
||||
{
|
||||
return $this->container['settleRecordQueryDtos'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets settleRecordQueryDtos
|
||||
*
|
||||
* @param \Yeepay\Yop\Sdk\Service\Settle\Model\SettleRecordQueryDto[] $settleRecordQueryDtos settleRecordQueryDtos
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setSettleRecordQueryDtos($settleRecordQueryDtos)
|
||||
{
|
||||
$this->container['settleRecordQueryDtos'] = $settleRecordQueryDtos;
|
||||
|
||||
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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
543
lib/Service/Settle/Model/SettleRecordQueryDto.php
Normal file
543
lib/Service/Settle/Model/SettleRecordQueryDto.php
Normal file
@@ -0,0 +1,543 @@
|
||||
<?php
|
||||
/**
|
||||
* SettleRecordQueryDto
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 商户结算2.0
|
||||
*
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
*
|
||||
* OpenAPI spec version: 1.0
|
||||
*
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 3.0.13
|
||||
*/
|
||||
|
||||
/**
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Settle\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* SettleRecordQueryDto Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @description 未命名
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class SettleRecordQueryDto implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'SettleRecordQueryDto';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'summaryNo' => 'string',
|
||||
'settleAmount' => 'float',
|
||||
'status' => 'string',
|
||||
'statusDesc' => 'string',
|
||||
'createTime' => '\DateTime',
|
||||
'settleType' => 'string',
|
||||
'realAmount' => 'float',
|
||||
'realFee' => 'float',
|
||||
'settleRecordDetailsDtos' => '\Yeepay\Yop\Sdk\Service\Settle\Model\SettleRecordDetailsDto[]'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'summaryNo' => null,
|
||||
'settleAmount' => null,
|
||||
'status' => null,
|
||||
'statusDesc' => null,
|
||||
'createTime' => 'date-time',
|
||||
'settleType' => null,
|
||||
'realAmount' => null,
|
||||
'realFee' => null,
|
||||
'settleRecordDetailsDtos' => 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 = [
|
||||
'summaryNo' => 'summaryNo',
|
||||
'settleAmount' => 'settleAmount',
|
||||
'status' => 'status',
|
||||
'statusDesc' => 'statusDesc',
|
||||
'createTime' => 'createTime',
|
||||
'settleType' => 'settleType',
|
||||
'realAmount' => 'realAmount',
|
||||
'realFee' => 'realFee',
|
||||
'settleRecordDetailsDtos' => 'settleRecordDetailsDtos'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'summaryNo' => 'setSummaryNo',
|
||||
'settleAmount' => 'setSettleAmount',
|
||||
'status' => 'setStatus',
|
||||
'statusDesc' => 'setStatusDesc',
|
||||
'createTime' => 'setCreateTime',
|
||||
'settleType' => 'setSettleType',
|
||||
'realAmount' => 'setRealAmount',
|
||||
'realFee' => 'setRealFee',
|
||||
'settleRecordDetailsDtos' => 'setSettleRecordDetailsDtos'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'summaryNo' => 'getSummaryNo',
|
||||
'settleAmount' => 'getSettleAmount',
|
||||
'status' => 'getStatus',
|
||||
'statusDesc' => 'getStatusDesc',
|
||||
'createTime' => 'getCreateTime',
|
||||
'settleType' => 'getSettleType',
|
||||
'realAmount' => 'getRealAmount',
|
||||
'realFee' => 'getRealFee',
|
||||
'settleRecordDetailsDtos' => 'getSettleRecordDetailsDtos'
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['summaryNo'] = isset($data['summaryNo']) ? $data['summaryNo'] : null;
|
||||
$this->container['settleAmount'] = isset($data['settleAmount']) ? $data['settleAmount'] : null;
|
||||
$this->container['status'] = isset($data['status']) ? $data['status'] : null;
|
||||
$this->container['statusDesc'] = isset($data['statusDesc']) ? $data['statusDesc'] : null;
|
||||
$this->container['createTime'] = isset($data['createTime']) ? $data['createTime'] : null;
|
||||
$this->container['settleType'] = isset($data['settleType']) ? $data['settleType'] : null;
|
||||
$this->container['realAmount'] = isset($data['realAmount']) ? $data['realAmount'] : null;
|
||||
$this->container['realFee'] = isset($data['realFee']) ? $data['realFee'] : null;
|
||||
$this->container['settleRecordDetailsDtos'] = isset($data['settleRecordDetailsDtos']) ? $data['settleRecordDetailsDtos'] : 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 summaryNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getSummaryNo()
|
||||
{
|
||||
return $this->container['summaryNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets summaryNo
|
||||
*
|
||||
* @param string $summaryNo 结算订单号
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setSummaryNo($summaryNo)
|
||||
{
|
||||
$this->container['summaryNo'] = $summaryNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets settleAmount
|
||||
*
|
||||
* @return float
|
||||
*/
|
||||
public function getSettleAmount()
|
||||
{
|
||||
return $this->container['settleAmount'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets settleAmount
|
||||
*
|
||||
* @param float $settleAmount 应结金额
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setSettleAmount($settleAmount)
|
||||
{
|
||||
$this->container['settleAmount'] = $settleAmount;
|
||||
|
||||
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 statusDesc
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getStatusDesc()
|
||||
{
|
||||
return $this->container['statusDesc'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets statusDesc
|
||||
*
|
||||
* @param string $statusDesc 结算订单状态描述
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setStatusDesc($statusDesc)
|
||||
{
|
||||
$this->container['statusDesc'] = $statusDesc;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets createTime
|
||||
*
|
||||
* @return \DateTime
|
||||
*/
|
||||
public function getCreateTime()
|
||||
{
|
||||
return $this->container['createTime'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets createTime
|
||||
*
|
||||
* @param \DateTime $createTime 结算订单创建时间
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setCreateTime($createTime)
|
||||
{
|
||||
$this->container['createTime'] = $createTime;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets settleType
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getSettleType()
|
||||
{
|
||||
return $this->container['settleType'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets settleType
|
||||
*
|
||||
* @param string $settleType 结算产品
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setSettleType($settleType)
|
||||
{
|
||||
$this->container['settleType'] = $settleType;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets realAmount
|
||||
*
|
||||
* @return float
|
||||
*/
|
||||
public function getRealAmount()
|
||||
{
|
||||
return $this->container['realAmount'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets realAmount
|
||||
*
|
||||
* @param float $realAmount 结算到账金额
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setRealAmount($realAmount)
|
||||
{
|
||||
$this->container['realAmount'] = $realAmount;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets realFee
|
||||
*
|
||||
* @return float
|
||||
*/
|
||||
public function getRealFee()
|
||||
{
|
||||
return $this->container['realFee'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets realFee
|
||||
*
|
||||
* @param float $realFee 结算手续费
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setRealFee($realFee)
|
||||
{
|
||||
$this->container['realFee'] = $realFee;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets settleRecordDetailsDtos
|
||||
*
|
||||
* @return \Yeepay\Yop\Sdk\Service\Settle\Model\SettleRecordDetailsDto[]
|
||||
*/
|
||||
public function getSettleRecordDetailsDtos()
|
||||
{
|
||||
return $this->container['settleRecordDetailsDtos'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets settleRecordDetailsDtos
|
||||
*
|
||||
* @param \Yeepay\Yop\Sdk\Service\Settle\Model\SettleRecordDetailsDto[] $settleRecordDetailsDtos settleRecordDetailsDtos
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setSettleRecordDetailsDtos($settleRecordDetailsDtos)
|
||||
{
|
||||
$this->container['settleRecordDetailsDtos'] = $settleRecordDetailsDtos;
|
||||
|
||||
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,393 @@
|
||||
<?php
|
||||
/**
|
||||
* SettleWayModifyRatioModifySettleWayRatioRequestDtoParam
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 商户结算2.0
|
||||
*
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
*
|
||||
* OpenAPI spec version: 1.0
|
||||
*
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 3.0.13
|
||||
*/
|
||||
|
||||
/**
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Settle\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* SettleWayModifyRatioModifySettleWayRatioRequestDtoParam Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @description 方法签名第0个参数,请自行修改arg0等参数的名字
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class SettleWayModifyRatioModifySettleWayRatioRequestDtoParam implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'SettleWayModifyRatioModifySettleWayRatioRequestDtoParam';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'appMerchantNo' => 'string',
|
||||
'parentMerchantNo' => 'string',
|
||||
'merchantNo' => 'string',
|
||||
'settleWayRatioDetailDtoList' => '\Yeepay\Yop\Sdk\Service\Settle\Model\SettleWayModifyRatioSettleWayRatioDetailDtoParam[]'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'appMerchantNo' => null,
|
||||
'parentMerchantNo' => null,
|
||||
'merchantNo' => null,
|
||||
'settleWayRatioDetailDtoList' => 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 = [
|
||||
'appMerchantNo' => 'appMerchantNo',
|
||||
'parentMerchantNo' => 'parentMerchantNo',
|
||||
'merchantNo' => 'merchantNo',
|
||||
'settleWayRatioDetailDtoList' => 'settleWayRatioDetailDtoList'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'appMerchantNo' => 'setAppMerchantNo',
|
||||
'parentMerchantNo' => 'setParentMerchantNo',
|
||||
'merchantNo' => 'setMerchantNo',
|
||||
'settleWayRatioDetailDtoList' => 'setSettleWayRatioDetailDtoList'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'appMerchantNo' => 'getAppMerchantNo',
|
||||
'parentMerchantNo' => 'getParentMerchantNo',
|
||||
'merchantNo' => 'getMerchantNo',
|
||||
'settleWayRatioDetailDtoList' => 'getSettleWayRatioDetailDtoList'
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['appMerchantNo'] = isset($data['appMerchantNo']) ? $data['appMerchantNo'] : null;
|
||||
$this->container['parentMerchantNo'] = isset($data['parentMerchantNo']) ? $data['parentMerchantNo'] : null;
|
||||
$this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null;
|
||||
$this->container['settleWayRatioDetailDtoList'] = isset($data['settleWayRatioDetailDtoList']) ? $data['settleWayRatioDetailDtoList'] : 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 appMerchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getAppMerchantNo()
|
||||
{
|
||||
return $this->container['appMerchantNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets appMerchantNo
|
||||
*
|
||||
* @param string $appMerchantNo appMerchantNo
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setAppMerchantNo($appMerchantNo)
|
||||
{
|
||||
$this->container['appMerchantNo'] = $appMerchantNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->container['parentMerchantNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
*
|
||||
* @param string $parentMerchantNo 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 merchantNo
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->container['merchantNo'] = $merchantNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets settleWayRatioDetailDtoList
|
||||
*
|
||||
* @return \Yeepay\Yop\Sdk\Service\Settle\Model\SettleWayModifyRatioSettleWayRatioDetailDtoParam[]
|
||||
*/
|
||||
public function getSettleWayRatioDetailDtoList()
|
||||
{
|
||||
return $this->container['settleWayRatioDetailDtoList'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets settleWayRatioDetailDtoList
|
||||
*
|
||||
* @param \Yeepay\Yop\Sdk\Service\Settle\Model\SettleWayModifyRatioSettleWayRatioDetailDtoParam[] $settleWayRatioDetailDtoList settleWayRatioDetailDtoList
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setSettleWayRatioDetailDtoList($settleWayRatioDetailDtoList)
|
||||
{
|
||||
$this->container['settleWayRatioDetailDtoList'] = $settleWayRatioDetailDtoList;
|
||||
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Returns true if offset exists. False otherwise.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function offsetExists($offset)
|
||||
{
|
||||
return isset($this->container[$offset]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function offsetGet($offset)
|
||||
{
|
||||
return isset($this->container[$offset]) ? $this->container[$offset] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets value based on offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
* @param mixed $value Value to be set
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function offsetSet($offset, $value)
|
||||
{
|
||||
if (is_null($offset)) {
|
||||
$this->container[] = $value;
|
||||
} else {
|
||||
$this->container[$offset] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Unsets offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function offsetUnset($offset)
|
||||
{
|
||||
unset($this->container[$offset]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the string presentation of the object
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
|
||||
return json_encode(
|
||||
ObjectSerializer::sanitizeForSerialization($this),
|
||||
JSON_PRETTY_PRINT
|
||||
);
|
||||
}
|
||||
|
||||
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,422 @@
|
||||
<?php
|
||||
/**
|
||||
* SettleWayModifyRatioModifySettleWayRatioResponseDtoResult
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 商户结算2.0
|
||||
*
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
*
|
||||
* OpenAPI spec version: 1.0
|
||||
*
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 3.0.13
|
||||
*/
|
||||
|
||||
/**
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Settle\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* SettleWayModifyRatioModifySettleWayRatioResponseDtoResult Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class SettleWayModifyRatioModifySettleWayRatioResponseDtoResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'SettleWayModifyRatioModifySettleWayRatioResponseDtoResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'status' => 'string',
|
||||
'code' => 'string',
|
||||
'message' => 'string',
|
||||
'merchantNo' => 'string',
|
||||
'parentMerchantNo' => 'string'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'status' => null,
|
||||
'code' => null,
|
||||
'message' => null,
|
||||
'merchantNo' => null,
|
||||
'parentMerchantNo' => null
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerTypes()
|
||||
{
|
||||
return self::$swaggerTypes;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerFormats()
|
||||
{
|
||||
return self::$swaggerFormats;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $attributeMap = [
|
||||
'status' => 'status',
|
||||
'code' => 'code',
|
||||
'message' => 'message',
|
||||
'merchantNo' => 'merchantNo',
|
||||
'parentMerchantNo' => 'parentMerchantNo'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'status' => 'setStatus',
|
||||
'code' => 'setCode',
|
||||
'message' => 'setMessage',
|
||||
'merchantNo' => 'setMerchantNo',
|
||||
'parentMerchantNo' => 'setParentMerchantNo'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'status' => 'getStatus',
|
||||
'code' => 'getCode',
|
||||
'message' => 'getMessage',
|
||||
'merchantNo' => 'getMerchantNo',
|
||||
'parentMerchantNo' => 'getParentMerchantNo'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function attributeMap()
|
||||
{
|
||||
return self::$attributeMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function setters()
|
||||
{
|
||||
return self::$setters;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function getters()
|
||||
{
|
||||
return self::$getters;
|
||||
}
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getModelName()
|
||||
{
|
||||
return self::$swaggerModelName;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Associative array for storing property values
|
||||
*
|
||||
* @var mixed[]
|
||||
*/
|
||||
protected $container = [];
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param mixed[] $data Associated array of property values
|
||||
* initializing the model
|
||||
*/
|
||||
public function __construct(array $data = null)
|
||||
{
|
||||
$this->container['status'] = isset($data['status']) ? $data['status'] : null;
|
||||
$this->container['code'] = isset($data['code']) ? $data['code'] : null;
|
||||
$this->container['message'] = isset($data['message']) ? $data['message'] : null;
|
||||
$this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null;
|
||||
$this->container['parentMerchantNo'] = isset($data['parentMerchantNo']) ? $data['parentMerchantNo'] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Show all the invalid properties with reasons.
|
||||
*
|
||||
* @return array invalid properties with reasons
|
||||
*/
|
||||
public function listInvalidProperties()
|
||||
{
|
||||
$invalidProperties = [];
|
||||
|
||||
return $invalidProperties;
|
||||
}
|
||||
|
||||
/**
|
||||
* Validate all the properties in the model
|
||||
* return true if all passed
|
||||
*
|
||||
* @return bool True if all properties are valid
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets status
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getStatus()
|
||||
{
|
||||
return $this->container['status'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets status
|
||||
*
|
||||
* @param string $status 处理结果
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setStatus($status)
|
||||
{
|
||||
$this->container['status'] = $status;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets 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 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 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;
|
||||
}
|
||||
/**
|
||||
* Returns true if offset exists. False otherwise.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function offsetExists($offset)
|
||||
{
|
||||
return isset($this->container[$offset]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function offsetGet($offset)
|
||||
{
|
||||
return isset($this->container[$offset]) ? $this->container[$offset] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets value based on offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
* @param mixed $value Value to be set
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function offsetSet($offset, $value)
|
||||
{
|
||||
if (is_null($offset)) {
|
||||
$this->container[] = $value;
|
||||
} else {
|
||||
$this->container[$offset] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Unsets offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function offsetUnset($offset)
|
||||
{
|
||||
unset($this->container[$offset]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the string presentation of the object
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
|
||||
return json_encode(
|
||||
ObjectSerializer::sanitizeForSerialization($this),
|
||||
JSON_PRETTY_PRINT
|
||||
);
|
||||
}
|
||||
|
||||
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
42
lib/Service/Settle/Model/SettleWayModifyRatioRequest.php
Normal file
42
lib/Service/Settle/Model/SettleWayModifyRatioRequest.php
Normal file
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Settle\Model;
|
||||
|
||||
|
||||
class SettleWayModifyRatioRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var
|
||||
*/
|
||||
private $body;
|
||||
|
||||
/**
|
||||
* Gets body
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public function getBody()
|
||||
{
|
||||
return $this->body;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets body
|
||||
*
|
||||
* @param $body
|
||||
* @return SettleWayModifyRatioRequest
|
||||
*/
|
||||
public function setBody($body)
|
||||
{
|
||||
$this->body = $body;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'settleWayModifyRatio';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Settle\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 SettleWayModifyRatioRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var SettleWayModifyRatioRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new SettleWayModifyRatioRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return SettleWayModifyRatioRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Settle';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/settle/settle-way/modify-ratio';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/json';
|
||||
|
||||
|
||||
/**
|
||||
* @param SettleWayModifyRatioRequest $request
|
||||
* @return Request
|
||||
*/
|
||||
public function marshal($request)
|
||||
{
|
||||
$internalRequest = new DefaultRequest($this->serviceName);
|
||||
$internalRequest->setResourcePath($this->resourcePath);
|
||||
$internalRequest->setHttpMethod($this->httpMethod);
|
||||
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
|
||||
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
|
||||
$internalRequest->addHeader($name, $value);
|
||||
}
|
||||
}
|
||||
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
|
||||
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
|
||||
}
|
||||
$content = (string)$request->getBody();
|
||||
$internalRequest->setContent($content);
|
||||
$internalRequest->addHeader(Headers::CONTENT_LENGTH, strlen($content));
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
SettleWayModifyRatioRequestMarshaller::__init();
|
||||
34
lib/Service/Settle/Model/SettleWayModifyRatioResponse.php
Normal file
34
lib/Service/Settle/Model/SettleWayModifyRatioResponse.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Settle\Model;
|
||||
|
||||
|
||||
class SettleWayModifyRatioResponse extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var SettleWayModifyRatioModifySettleWayRatioResponseDtoResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Settle\Model\SettleWayModifyRatioModifySettleWayRatioResponseDtoResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param SettleWayModifyRatioModifySettleWayRatioResponseDtoResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return SettleWayModifyRatioModifySettleWayRatioResponseDtoResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Settle\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class SettleWayModifyRatioResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var SettleWayModifyRatioResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new SettleWayModifyRatioResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return SettleWayModifyRatioResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return SettleWayModifyRatioResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new SettleWayModifyRatioResponse();
|
||||
}
|
||||
}
|
||||
|
||||
SettleWayModifyRatioResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,362 @@
|
||||
<?php
|
||||
/**
|
||||
* SettleWayModifyRatioSettleWayRatioDetailDtoParam
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 商户结算2.0
|
||||
*
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
*
|
||||
* OpenAPI spec version: 1.0
|
||||
*
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 3.0.13
|
||||
*/
|
||||
|
||||
/**
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Settle\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* SettleWayModifyRatioSettleWayRatioDetailDtoParam Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class SettleWayModifyRatioSettleWayRatioDetailDtoParam implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'SettleWayModifyRatioSettleWayRatioDetailDtoParam';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'settleWay' => 'string',
|
||||
'settleRatio' => 'float',
|
||||
'bankCardNo' => 'string'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'settleWay' => null,
|
||||
'settleRatio' => null,
|
||||
'bankCardNo' => 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 = [
|
||||
'settleWay' => 'settleWay',
|
||||
'settleRatio' => 'settleRatio',
|
||||
'bankCardNo' => 'bankCardNo'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'settleWay' => 'setSettleWay',
|
||||
'settleRatio' => 'setSettleRatio',
|
||||
'bankCardNo' => 'setBankCardNo'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'settleWay' => 'getSettleWay',
|
||||
'settleRatio' => 'getSettleRatio',
|
||||
'bankCardNo' => 'getBankCardNo'
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['settleWay'] = isset($data['settleWay']) ? $data['settleWay'] : null;
|
||||
$this->container['settleRatio'] = isset($data['settleRatio']) ? $data['settleRatio'] : null;
|
||||
$this->container['bankCardNo'] = isset($data['bankCardNo']) ? $data['bankCardNo'] : 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 settleWay
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getSettleWay()
|
||||
{
|
||||
return $this->container['settleWay'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets settleWay
|
||||
*
|
||||
* @param string $settleWay settleWay
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setSettleWay($settleWay)
|
||||
{
|
||||
$this->container['settleWay'] = $settleWay;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets settleRatio
|
||||
*
|
||||
* @return float
|
||||
*/
|
||||
public function getSettleRatio()
|
||||
{
|
||||
return $this->container['settleRatio'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets settleRatio
|
||||
*
|
||||
* @param float $settleRatio settleRatio
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setSettleRatio($settleRatio)
|
||||
{
|
||||
$this->container['settleRatio'] = $settleRatio;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets bankCardNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getBankCardNo()
|
||||
{
|
||||
return $this->container['bankCardNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bankCardNo
|
||||
*
|
||||
* @param string $bankCardNo bankCardNo
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setBankCardNo($bankCardNo)
|
||||
{
|
||||
$this->container['bankCardNo'] = $bankCardNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Returns true if offset exists. False otherwise.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function offsetExists($offset)
|
||||
{
|
||||
return isset($this->container[$offset]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function offsetGet($offset)
|
||||
{
|
||||
return isset($this->container[$offset]) ? $this->container[$offset] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets value based on offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
* @param mixed $value Value to be set
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function offsetSet($offset, $value)
|
||||
{
|
||||
if (is_null($offset)) {
|
||||
$this->container[] = $value;
|
||||
} else {
|
||||
$this->container[$offset] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Unsets offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function offsetUnset($offset)
|
||||
{
|
||||
unset($this->container[$offset]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the string presentation of the object
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
|
||||
return json_encode(
|
||||
ObjectSerializer::sanitizeForSerialization($this),
|
||||
JSON_PRETTY_PRINT
|
||||
);
|
||||
}
|
||||
|
||||
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,392 @@
|
||||
<?php
|
||||
/**
|
||||
* SettleWayQueryMerchantSettleWayQueryYOPDtoResult
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 商户结算2.0
|
||||
*
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
*
|
||||
* OpenAPI spec version: 1.0
|
||||
*
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 3.0.13
|
||||
*/
|
||||
|
||||
/**
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Settle\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* SettleWayQueryMerchantSettleWayQueryYOPDtoResult Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class SettleWayQueryMerchantSettleWayQueryYOPDtoResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'SettleWayQueryMerchantSettleWayQueryYOPDtoResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'settleWay' => 'string',
|
||||
'settleRatio' => 'double',
|
||||
'bankCardNo' => 'string',
|
||||
'accountName' => 'string'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'settleWay' => null,
|
||||
'settleRatio' => 'double',
|
||||
'bankCardNo' => null,
|
||||
'accountName' => 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 = [
|
||||
'settleWay' => 'settleWay',
|
||||
'settleRatio' => 'settleRatio',
|
||||
'bankCardNo' => 'bankCardNo',
|
||||
'accountName' => 'accountName'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'settleWay' => 'setSettleWay',
|
||||
'settleRatio' => 'setSettleRatio',
|
||||
'bankCardNo' => 'setBankCardNo',
|
||||
'accountName' => 'setAccountName'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'settleWay' => 'getSettleWay',
|
||||
'settleRatio' => 'getSettleRatio',
|
||||
'bankCardNo' => 'getBankCardNo',
|
||||
'accountName' => 'getAccountName'
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['settleWay'] = isset($data['settleWay']) ? $data['settleWay'] : null;
|
||||
$this->container['settleRatio'] = isset($data['settleRatio']) ? $data['settleRatio'] : null;
|
||||
$this->container['bankCardNo'] = isset($data['bankCardNo']) ? $data['bankCardNo'] : null;
|
||||
$this->container['accountName'] = isset($data['accountName']) ? $data['accountName'] : 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 settleWay
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getSettleWay()
|
||||
{
|
||||
return $this->container['settleWay'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets settleWay
|
||||
*
|
||||
* @param string $settleWay 结算方向
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setSettleWay($settleWay)
|
||||
{
|
||||
$this->container['settleWay'] = $settleWay;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets settleRatio
|
||||
*
|
||||
* @return double
|
||||
*/
|
||||
public function getSettleRatio()
|
||||
{
|
||||
return $this->container['settleRatio'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets settleRatio
|
||||
*
|
||||
* @param double $settleRatio 结算比例
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setSettleRatio($settleRatio)
|
||||
{
|
||||
$this->container['settleRatio'] = $settleRatio;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets bankCardNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getBankCardNo()
|
||||
{
|
||||
return $this->container['bankCardNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bankCardNo
|
||||
*
|
||||
* @param string $bankCardNo 结算卡号
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setBankCardNo($bankCardNo)
|
||||
{
|
||||
$this->container['bankCardNo'] = $bankCardNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets accountName
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getAccountName()
|
||||
{
|
||||
return $this->container['accountName'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets accountName
|
||||
*
|
||||
* @param string $accountName 银行卡账户名
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setAccountName($accountName)
|
||||
{
|
||||
$this->container['accountName'] = $accountName;
|
||||
|
||||
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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
67
lib/Service/Settle/Model/SettleWayQueryRequest.php
Normal file
67
lib/Service/Settle/Model/SettleWayQueryRequest.php
Normal file
@@ -0,0 +1,67 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Settle\Model;
|
||||
|
||||
|
||||
class SettleWayQueryRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->parentMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
*
|
||||
* @param string $parentMerchantNo
|
||||
* @return SettleWayQueryRequest
|
||||
*/
|
||||
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 SettleWayQueryRequest
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->merchantNo = $merchantNo;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'settleWayQuery';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
83
lib/Service/Settle/Model/SettleWayQueryRequestMarshaller.php
Normal file
83
lib/Service/Settle/Model/SettleWayQueryRequestMarshaller.php
Normal file
@@ -0,0 +1,83 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Settle\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 SettleWayQueryRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var SettleWayQueryRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new SettleWayQueryRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return SettleWayQueryRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Settle';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'GET';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/settle/settle-way/query';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param SettleWayQueryRequest $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'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
SettleWayQueryRequestMarshaller::__init();
|
||||
34
lib/Service/Settle/Model/SettleWayQueryResponse.php
Normal file
34
lib/Service/Settle/Model/SettleWayQueryResponse.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Settle\Model;
|
||||
|
||||
|
||||
class SettleWayQueryResponse extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var SettleWayQuerySettleWayQueryYOPResponseDtoResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Settle\Model\SettleWayQuerySettleWayQueryYOPResponseDtoResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param SettleWayQuerySettleWayQueryYOPResponseDtoResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return SettleWayQuerySettleWayQueryYOPResponseDtoResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Settle\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class SettleWayQueryResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var SettleWayQueryResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new SettleWayQueryResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return SettleWayQueryResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return SettleWayQueryResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new SettleWayQueryResponse();
|
||||
}
|
||||
}
|
||||
|
||||
SettleWayQueryResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,452 @@
|
||||
<?php
|
||||
/**
|
||||
* SettleWayQuerySettleWayQueryYOPResponseDtoResult
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 商户结算2.0
|
||||
*
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
*
|
||||
* OpenAPI spec version: 1.0
|
||||
*
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 3.0.13
|
||||
*/
|
||||
|
||||
/**
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Settle\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* SettleWayQuerySettleWayQueryYOPResponseDtoResult Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class SettleWayQuerySettleWayQueryYOPResponseDtoResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'SettleWayQuerySettleWayQueryYOPResponseDtoResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'status' => 'string',
|
||||
'code' => 'string',
|
||||
'message' => 'string',
|
||||
'merchantNo' => 'string',
|
||||
'parentMerchantNo' => 'string',
|
||||
'merchantSettleWayQueryDtos' => '\Yeepay\Yop\Sdk\Service\Settle\Model\SettleWayQueryMerchantSettleWayQueryYOPDtoResult[]'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'status' => null,
|
||||
'code' => null,
|
||||
'message' => null,
|
||||
'merchantNo' => null,
|
||||
'parentMerchantNo' => null,
|
||||
'merchantSettleWayQueryDtos' => null
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerTypes()
|
||||
{
|
||||
return self::$swaggerTypes;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerFormats()
|
||||
{
|
||||
return self::$swaggerFormats;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $attributeMap = [
|
||||
'status' => 'status',
|
||||
'code' => 'code',
|
||||
'message' => 'message',
|
||||
'merchantNo' => 'merchantNo',
|
||||
'parentMerchantNo' => 'parentMerchantNo',
|
||||
'merchantSettleWayQueryDtos' => 'merchantSettleWayQueryDtos'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'status' => 'setStatus',
|
||||
'code' => 'setCode',
|
||||
'message' => 'setMessage',
|
||||
'merchantNo' => 'setMerchantNo',
|
||||
'parentMerchantNo' => 'setParentMerchantNo',
|
||||
'merchantSettleWayQueryDtos' => 'setMerchantSettleWayQueryDtos'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'status' => 'getStatus',
|
||||
'code' => 'getCode',
|
||||
'message' => 'getMessage',
|
||||
'merchantNo' => 'getMerchantNo',
|
||||
'parentMerchantNo' => 'getParentMerchantNo',
|
||||
'merchantSettleWayQueryDtos' => 'getMerchantSettleWayQueryDtos'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function attributeMap()
|
||||
{
|
||||
return self::$attributeMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function setters()
|
||||
{
|
||||
return self::$setters;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function getters()
|
||||
{
|
||||
return self::$getters;
|
||||
}
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getModelName()
|
||||
{
|
||||
return self::$swaggerModelName;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Associative array for storing property values
|
||||
*
|
||||
* @var mixed[]
|
||||
*/
|
||||
protected $container = [];
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param mixed[] $data Associated array of property values
|
||||
* initializing the model
|
||||
*/
|
||||
public function __construct(array $data = null)
|
||||
{
|
||||
$this->container['status'] = isset($data['status']) ? $data['status'] : null;
|
||||
$this->container['code'] = isset($data['code']) ? $data['code'] : null;
|
||||
$this->container['message'] = isset($data['message']) ? $data['message'] : null;
|
||||
$this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null;
|
||||
$this->container['parentMerchantNo'] = isset($data['parentMerchantNo']) ? $data['parentMerchantNo'] : null;
|
||||
$this->container['merchantSettleWayQueryDtos'] = isset($data['merchantSettleWayQueryDtos']) ? $data['merchantSettleWayQueryDtos'] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Show all the invalid properties with reasons.
|
||||
*
|
||||
* @return array invalid properties with reasons
|
||||
*/
|
||||
public function listInvalidProperties()
|
||||
{
|
||||
$invalidProperties = [];
|
||||
|
||||
return $invalidProperties;
|
||||
}
|
||||
|
||||
/**
|
||||
* Validate all the properties in the model
|
||||
* return true if all passed
|
||||
*
|
||||
* @return bool True if all properties are valid
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets status
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getStatus()
|
||||
{
|
||||
return $this->container['status'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets status
|
||||
*
|
||||
* @param string $status 处理状态
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setStatus($status)
|
||||
{
|
||||
$this->container['status'] = $status;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets 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 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 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 merchantSettleWayQueryDtos
|
||||
*
|
||||
* @return \Yeepay\Yop\Sdk\Service\Settle\Model\SettleWayQueryMerchantSettleWayQueryYOPDtoResult[]
|
||||
*/
|
||||
public function getMerchantSettleWayQueryDtos()
|
||||
{
|
||||
return $this->container['merchantSettleWayQueryDtos'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantSettleWayQueryDtos
|
||||
*
|
||||
* @param \Yeepay\Yop\Sdk\Service\Settle\Model\SettleWayQueryMerchantSettleWayQueryYOPDtoResult[] $merchantSettleWayQueryDtos 结算方向列表
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setMerchantSettleWayQueryDtos($merchantSettleWayQueryDtos)
|
||||
{
|
||||
$this->container['merchantSettleWayQueryDtos'] = $merchantSettleWayQueryDtos;
|
||||
|
||||
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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
462
lib/Service/Settle/Model/YopSettleReceiptRequestDTO.php
Normal file
462
lib/Service/Settle/Model/YopSettleReceiptRequestDTO.php
Normal file
@@ -0,0 +1,462 @@
|
||||
<?php
|
||||
/**
|
||||
* YopSettleReceiptRequestDTO
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 商户结算2.0
|
||||
*
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
*
|
||||
* OpenAPI spec version: 1.0
|
||||
*
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 3.0.13
|
||||
*/
|
||||
|
||||
/**
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Settle\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* YopSettleReceiptRequestDTO Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @description 结算回单申请
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class YopSettleReceiptRequestDTO implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'YopSettleReceiptRequestDTO';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'settleEndTime' => 'string',
|
||||
'settleRequestNo' => 'string',
|
||||
'notifyUrl' => 'string',
|
||||
'parentMerchantNo' => 'string',
|
||||
'merchantNo' => 'string',
|
||||
'settleStartTime' => 'string'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'settleEndTime' => null,
|
||||
'settleRequestNo' => null,
|
||||
'notifyUrl' => 'notify-url',
|
||||
'parentMerchantNo' => null,
|
||||
'merchantNo' => null,
|
||||
'settleStartTime' => 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 = [
|
||||
'settleEndTime' => 'settleEndTime',
|
||||
'settleRequestNo' => 'settleRequestNo',
|
||||
'notifyUrl' => 'notifyUrl',
|
||||
'parentMerchantNo' => 'parentMerchantNo',
|
||||
'merchantNo' => 'merchantNo',
|
||||
'settleStartTime' => 'settleStartTime'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'settleEndTime' => 'setSettleEndTime',
|
||||
'settleRequestNo' => 'setSettleRequestNo',
|
||||
'notifyUrl' => 'setNotifyUrl',
|
||||
'parentMerchantNo' => 'setParentMerchantNo',
|
||||
'merchantNo' => 'setMerchantNo',
|
||||
'settleStartTime' => 'setSettleStartTime'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'settleEndTime' => 'getSettleEndTime',
|
||||
'settleRequestNo' => 'getSettleRequestNo',
|
||||
'notifyUrl' => 'getNotifyUrl',
|
||||
'parentMerchantNo' => 'getParentMerchantNo',
|
||||
'merchantNo' => 'getMerchantNo',
|
||||
'settleStartTime' => 'getSettleStartTime'
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['settleEndTime'] = isset($data['settleEndTime']) ? $data['settleEndTime'] : null;
|
||||
$this->container['settleRequestNo'] = isset($data['settleRequestNo']) ? $data['settleRequestNo'] : null;
|
||||
$this->container['notifyUrl'] = isset($data['notifyUrl']) ? $data['notifyUrl'] : null;
|
||||
$this->container['parentMerchantNo'] = isset($data['parentMerchantNo']) ? $data['parentMerchantNo'] : null;
|
||||
$this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null;
|
||||
$this->container['settleStartTime'] = isset($data['settleStartTime']) ? $data['settleStartTime'] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Show all the invalid properties with reasons.
|
||||
*
|
||||
* @return array invalid properties with reasons
|
||||
*/
|
||||
public function listInvalidProperties()
|
||||
{
|
||||
$invalidProperties = [];
|
||||
|
||||
if ($this->container['notifyUrl'] === null) {
|
||||
$invalidProperties[] = "'notifyUrl' can't be null";
|
||||
}
|
||||
if ($this->container['parentMerchantNo'] === null) {
|
||||
$invalidProperties[] = "'parentMerchantNo' can't be null";
|
||||
}
|
||||
if ($this->container['merchantNo'] === null) {
|
||||
$invalidProperties[] = "'merchantNo' can't be null";
|
||||
}
|
||||
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 settleEndTime
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getSettleEndTime()
|
||||
{
|
||||
return $this->container['settleEndTime'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets settleEndTime
|
||||
*
|
||||
* @param string $settleEndTime <p>结算时间范围截止时间,此参数和结算请求号只能传一项</p>
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setSettleEndTime($settleEndTime)
|
||||
{
|
||||
$this->container['settleEndTime'] = $settleEndTime;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets settleRequestNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getSettleRequestNo()
|
||||
{
|
||||
return $this->container['settleRequestNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets settleRequestNo
|
||||
*
|
||||
* @param string $settleRequestNo <p>结算请求号,此参数和结算时间范围参数只能传一项</p>
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setSettleRequestNo($settleRequestNo)
|
||||
{
|
||||
$this->container['settleRequestNo'] = $settleRequestNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets notifyUrl
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getNotifyUrl()
|
||||
{
|
||||
return $this->container['notifyUrl'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets notifyUrl
|
||||
*
|
||||
* @param string $notifyUrl notifyUrl
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setNotifyUrl($notifyUrl)
|
||||
{
|
||||
$this->container['notifyUrl'] = $notifyUrl;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->container['parentMerchantNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
*
|
||||
* @param string $parentMerchantNo <p>发起方商户编号<br />*标准商户收付款方案中此参数与收款商户编号一致;<br />*平台商户收付款方案中此参数为平台商商户编号;<br />*服务商解决方案中,①标准商户收款时,该参数为标准商户商编 ②平台商收款或平台商入驻商户收款时,该参数为平台商商编。</p>
|
||||
*
|
||||
* @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 <p>收款商户编号</p>
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->container['merchantNo'] = $merchantNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets settleStartTime
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getSettleStartTime()
|
||||
{
|
||||
return $this->container['settleStartTime'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets settleStartTime
|
||||
*
|
||||
* @param string $settleStartTime <p>结算时间范围开始时间,此参数和结算请求号只能传一项</p>
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setSettleStartTime($settleStartTime)
|
||||
{
|
||||
$this->container['settleStartTime'] = $settleStartTime;
|
||||
|
||||
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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
456
lib/Service/Settle/Model/YopSettleReceiptResponseDTO.php
Normal file
456
lib/Service/Settle/Model/YopSettleReceiptResponseDTO.php
Normal file
@@ -0,0 +1,456 @@
|
||||
<?php
|
||||
/**
|
||||
* YopSettleReceiptResponseDTO
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 商户结算2.0
|
||||
*
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
*
|
||||
* OpenAPI spec version: 1.0
|
||||
*
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 3.0.13
|
||||
*/
|
||||
|
||||
/**
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Settle\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* YopSettleReceiptResponseDTO Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @description 结算回单申请响应
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class YopSettleReceiptResponseDTO implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'YopSettleReceiptResponseDTO';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'code' => 'string',
|
||||
'message' => 'string',
|
||||
'fileId' => 'string',
|
||||
'status' => 'string',
|
||||
'parentMerchantNo' => 'string',
|
||||
'merchantNo' => 'string'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'code' => null,
|
||||
'message' => null,
|
||||
'fileId' => null,
|
||||
'status' => null,
|
||||
'parentMerchantNo' => null,
|
||||
'merchantNo' => null
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerTypes()
|
||||
{
|
||||
return self::$swaggerTypes;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerFormats()
|
||||
{
|
||||
return self::$swaggerFormats;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $attributeMap = [
|
||||
'code' => 'code',
|
||||
'message' => 'message',
|
||||
'fileId' => 'fileId',
|
||||
'status' => 'status',
|
||||
'parentMerchantNo' => 'parentMerchantNo',
|
||||
'merchantNo' => 'merchantNo'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'code' => 'setCode',
|
||||
'message' => 'setMessage',
|
||||
'fileId' => 'setFileId',
|
||||
'status' => 'setStatus',
|
||||
'parentMerchantNo' => 'setParentMerchantNo',
|
||||
'merchantNo' => 'setMerchantNo'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'code' => 'getCode',
|
||||
'message' => 'getMessage',
|
||||
'fileId' => 'getFileId',
|
||||
'status' => 'getStatus',
|
||||
'parentMerchantNo' => 'getParentMerchantNo',
|
||||
'merchantNo' => 'getMerchantNo'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function attributeMap()
|
||||
{
|
||||
return self::$attributeMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function setters()
|
||||
{
|
||||
return self::$setters;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function getters()
|
||||
{
|
||||
return self::$getters;
|
||||
}
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getModelName()
|
||||
{
|
||||
return self::$swaggerModelName;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Associative array for storing property values
|
||||
*
|
||||
* @var mixed[]
|
||||
*/
|
||||
protected $container = [];
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param mixed[] $data Associated array of property values
|
||||
* initializing the model
|
||||
*/
|
||||
public function __construct(array $data = null)
|
||||
{
|
||||
$this->container['code'] = isset($data['code']) ? $data['code'] : null;
|
||||
$this->container['message'] = isset($data['message']) ? $data['message'] : null;
|
||||
$this->container['fileId'] = isset($data['fileId']) ? $data['fileId'] : null;
|
||||
$this->container['status'] = isset($data['status']) ? $data['status'] : null;
|
||||
$this->container['parentMerchantNo'] = isset($data['parentMerchantNo']) ? $data['parentMerchantNo'] : null;
|
||||
$this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Show all the invalid properties with reasons.
|
||||
*
|
||||
* @return array invalid properties with reasons
|
||||
*/
|
||||
public function listInvalidProperties()
|
||||
{
|
||||
$invalidProperties = [];
|
||||
|
||||
if ($this->container['code'] === null) {
|
||||
$invalidProperties[] = "'code' can't be null";
|
||||
}
|
||||
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 <p>响应码</p>
|
||||
*
|
||||
* @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 <p>响应信息</p>
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setMessage($message)
|
||||
{
|
||||
$this->container['message'] = $message;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets fileId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getFileId()
|
||||
{
|
||||
return $this->container['fileId'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets fileId
|
||||
*
|
||||
* @param string $fileId <p>文件id,接收到通知后用此参数去结算回单下载使用</p>
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setFileId($fileId)
|
||||
{
|
||||
$this->container['fileId'] = $fileId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets status
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getStatus()
|
||||
{
|
||||
return $this->container['status'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets status
|
||||
*
|
||||
* @param string $status <p>文件生成的状态</p> <p>PROCESSING:处理中</p>
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setStatus($status)
|
||||
{
|
||||
$this->container['status'] = $status;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->container['parentMerchantNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
*
|
||||
* @param string $parentMerchantNo <p>发起方商户编号</p>
|
||||
*
|
||||
* @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 <p>收款商编号</p>
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->container['merchantNo'] = $merchantNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Returns true if offset exists. False otherwise.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function offsetExists($offset)
|
||||
{
|
||||
return isset($this->container[$offset]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function offsetGet($offset)
|
||||
{
|
||||
return isset($this->container[$offset]) ? $this->container[$offset] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets value based on offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
* @param mixed $value Value to be set
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function offsetSet($offset, $value)
|
||||
{
|
||||
if (is_null($offset)) {
|
||||
$this->container[] = $value;
|
||||
} else {
|
||||
$this->container[$offset] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Unsets offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function offsetUnset($offset)
|
||||
{
|
||||
unset($this->container[$offset]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the string presentation of the object
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
|
||||
return json_encode(
|
||||
ObjectSerializer::sanitizeForSerialization($this),
|
||||
JSON_PRETTY_PRINT
|
||||
);
|
||||
}
|
||||
|
||||
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user