first commit

This commit is contained in:
2024-04-01 09:54:43 +08:00
commit 899d816bc3
795 changed files with 130040 additions and 0 deletions

View File

@@ -0,0 +1,119 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Settle\Model;
use Yeepay\Yop\Sdk\Model\BaseRequest;
class BalanceQueryRequest extends BaseRequest
{
/**
* @var string
*/
private $parentMerchantNo;
/**
* @var string
*/
private $merchantNo;
/**
* @var string
*/
private $operatePeriod;
/**
* @var string
*/
private $endTime;
/**
* Gets parentMerchantNo
* @return string
*/
public function getParentMerchantNo()
{
return $this->parentMerchantNo;
}
/**
* Sets parentMerchantNo
* @param string $parentMerchantNo
* @return BalanceQueryRequest
*/
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 BalanceQueryRequest
*/
public function setMerchantNo($merchantNo)
{
$this->merchantNo = $merchantNo;
return $this;
}
/**
* Gets operatePeriod
* @return string
*/
public function getOperatePeriod()
{
return $this->operatePeriod;
}
/**
* Sets operatePeriod
* @param string $operatePeriod
* @return BalanceQueryRequest
*/
public function setOperatePeriod($operatePeriod)
{
$this->operatePeriod = $operatePeriod;
return $this;
}
/**
* Gets endTime
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* Sets endTime
* @param string $endTime
* @return BalanceQueryRequest
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
return $this;
}
public static function getOperationId()
{
return 'balanceQuery';
}
}

View File

@@ -0,0 +1,76 @@
<?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\UUIDUtils;
class BalanceQueryRequestMarshaller implements RequestMarshaller
{
/**
* @var BalanceQueryRequestMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new BalanceQueryRequestMarshaller();
}
/**
* @return BalanceQueryRequestMarshaller
*/
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/balance/query';
/**
* @var string
*/
private $contentType = 'application/x-www-form-urlencoded';
/**
* @param BalanceQueryRequest $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());
}
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
return $internalRequest;
}
}
BalanceQueryRequestMarshaller::__init();

View File

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

View File

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

View File

@@ -0,0 +1,401 @@
<?php
/**
* BalanceQuerySelfSettleQueryResponseDtoResult
* PHP version 5
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* 商户结算2.0
* <p><a href=\"http://wiki.yeepay.com/pages/viewpage.action?pageId=112010456\">http://wiki.yeepay.com/pages/viewpage.action?pageId=112010456</a></p>
* OpenAPI spec version: 1.0.0
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.13
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
namespace Yeepay\Yop\Sdk\Service\Settle\Model;
use ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* BalanceQuerySelfSettleQueryResponseDtoResult Class Doc Comment
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
class BalanceQuerySelfSettleQueryResponseDtoResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
* @var string
*/
protected static $swaggerModelName = 'BalanceQuerySelfSettleQueryResponseDtoResult';
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerTypes = [
'code' => 'string',
'message' => 'string',
'parentMerchantNo' => 'string',
'merchantNo' => 'string',
'settlableAmount' => 'float',
'unsettledAmount' => 'float',
];
/**
* Array of property to format mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerFormats = [
'code' => null,
'message' => null,
'parentMerchantNo' => null,
'merchantNo' => null,
'settlableAmount' => null,
'unsettledAmount' => null,
];
/**
* Array of property to type mappings. Used for (de)serialization
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @var string[]
*/
protected static $attributeMap = [
'code' => 'code',
'message' => 'message',
'parentMerchantNo' => 'parentMerchantNo',
'merchantNo' => 'merchantNo',
'settlableAmount' => 'settlableAmount',
'unsettledAmount' => 'unsettledAmount',
];
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
protected static $setters = [
'code' => 'setCode',
'message' => 'setMessage',
'parentMerchantNo' => 'setParentMerchantNo',
'merchantNo' => 'setMerchantNo',
'settlableAmount' => 'setSettlableAmount',
'unsettledAmount' => 'setUnsettledAmount',
];
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
protected static $getters = [
'code' => 'getCode',
'message' => 'getMessage',
'parentMerchantNo' => 'getParentMerchantNo',
'merchantNo' => 'getMerchantNo',
'settlableAmount' => 'getSettlableAmount',
'unsettledAmount' => 'getUnsettledAmount',
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values
* @var mixed[]
*/
protected $container = [];
/**
* Constructor
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['code'] = isset($data['code']) ? $data['code'] : null;
$this->container['message'] = isset($data['message']) ? $data['message'] : null;
$this->container['parentMerchantNo'] = isset($data['parentMerchantNo']) ? $data['parentMerchantNo'] : null;
$this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null;
$this->container['settlableAmount'] = isset($data['settlableAmount']) ? $data['settlableAmount'] : null;
$this->container['unsettledAmount'] = isset($data['unsettledAmount']) ? $data['unsettledAmount'] : null;
}
/**
* Show all the invalid properties with reasons.
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed
* @return bool True if all properties are valid
*/
public function valid()
{
return count($this->listInvalidProperties()) === 0;
}
/**
* Gets code
* @return string
*/
public function getCode()
{
return $this->container['code'];
}
/**
* Sets code
* @param string $code 返回码
* @return $this
*/
public function setCode($code)
{
$this->container['code'] = $code;
return $this;
}
/**
* Gets message
* @return string
*/
public function getMessage()
{
return $this->container['message'];
}
/**
* Sets message
* @param string $message 返回信息
* @return $this
*/
public function setMessage($message)
{
$this->container['message'] = $message;
return $this;
}
/**
* Gets parentMerchantNo
* @return string
*/
public function getParentMerchantNo()
{
return $this->container['parentMerchantNo'];
}
/**
* Sets parentMerchantNo
* @param string $parentMerchantNo 父商编
* @return $this
*/
public function setParentMerchantNo($parentMerchantNo)
{
$this->container['parentMerchantNo'] = $parentMerchantNo;
return $this;
}
/**
* Gets merchantNo
* @return string
*/
public function getMerchantNo()
{
return $this->container['merchantNo'];
}
/**
* Sets merchantNo
* @param string $merchantNo 子商户编号
* @return $this
*/
public function setMerchantNo($merchantNo)
{
$this->container['merchantNo'] = $merchantNo;
return $this;
}
/**
* Gets settlableAmount
* @return float
*/
public function getSettlableAmount()
{
return $this->container['settlableAmount'];
}
/**
* Sets settlableAmount
* @param float $settlableAmount 可结算金额
* @return $this
*/
public function setSettlableAmount($settlableAmount)
{
$this->container['settlableAmount'] = $settlableAmount;
return $this;
}
/**
* Gets unsettledAmount
* @return float
*/
public function getUnsettledAmount()
{
return $this->container['unsettledAmount'];
}
/**
* Sets unsettledAmount
* @param float $unsettledAmount 未结算金额
* @return $this
*/
public function setUnsettledAmount($unsettledAmount)
{
$this->container['unsettledAmount'] = $unsettledAmount;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -0,0 +1,119 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Settle\Model;
use Yeepay\Yop\Sdk\Model\BaseRequest;
class FileGetRequest extends BaseRequest
{
/**
* @var string
*/
private $merchantNo;
/**
* @var string
*/
private $parentMerchantNo;
/**
* @var string
*/
private $settleRequestNo;
/**
* @var string
*/
private $settleDate;
/**
* Gets merchantNo
* @return string
*/
public function getMerchantNo()
{
return $this->merchantNo;
}
/**
* Sets merchantNo
* @param string $merchantNo
* @return FileGetRequest
*/
public function setMerchantNo($merchantNo)
{
$this->merchantNo = $merchantNo;
return $this;
}
/**
* Gets parentMerchantNo
* @return string
*/
public function getParentMerchantNo()
{
return $this->parentMerchantNo;
}
/**
* Sets parentMerchantNo
* @param string $parentMerchantNo
* @return FileGetRequest
*/
public function setParentMerchantNo($parentMerchantNo)
{
$this->parentMerchantNo = $parentMerchantNo;
return $this;
}
/**
* Gets settleRequestNo
* @return string
*/
public function getSettleRequestNo()
{
return $this->settleRequestNo;
}
/**
* Sets settleRequestNo
* @param string $settleRequestNo
* @return FileGetRequest
*/
public function setSettleRequestNo($settleRequestNo)
{
$this->settleRequestNo = $settleRequestNo;
return $this;
}
/**
* Gets settleDate
* @return string
*/
public function getSettleDate()
{
return $this->settleDate;
}
/**
* Sets settleDate
* @param string $settleDate
* @return FileGetRequest
*/
public function setSettleDate($settleDate)
{
$this->settleDate = $settleDate;
return $this;
}
public static function getOperationId()
{
return 'fileGet';
}
}

View File

@@ -0,0 +1,77 @@
<?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\UUIDUtils;
class FileGetRequestMarshaller implements RequestMarshaller
{
/**
* @var FileGetRequestMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new FileGetRequestMarshaller();
}
/**
* @return FileGetRequestMarshaller
*/
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/file/get';
/**
* @var string
*/
private $contentType = 'application/x-www-form-urlencoded';
/**
* @param FileGetRequest $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());
}
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
return $internalRequest;
}
}
FileGetRequestMarshaller::__init();

View File

@@ -0,0 +1,145 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Settle\Model;
use Yeepay\Yop\Sdk\Model\BaseRequest;
class RecordsQueryRequest extends BaseRequest
{
/**
* @var string
*/
private $parentMerchantNo;
/**
* @var string
*/
private $merchantNo;
/**
* @var string
*/
private $settleRequestNo;
/**
* @var string
*/
private $settleRequestBeginTime;
/**
* @var string
*/
private $settleRequestEndTime;
/**
* Gets parentMerchantNo
* @return string
*/
public function getParentMerchantNo()
{
return $this->parentMerchantNo;
}
/**
* Sets parentMerchantNo
* @param string $parentMerchantNo
* @return RecordsQueryRequest
*/
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 RecordsQueryRequest
*/
public function setMerchantNo($merchantNo)
{
$this->merchantNo = $merchantNo;
return $this;
}
/**
* Gets settleRequestNo
* @return string
*/
public function getSettleRequestNo()
{
return $this->settleRequestNo;
}
/**
* Sets settleRequestNo
* @param string $settleRequestNo
* @return RecordsQueryRequest
*/
public function setSettleRequestNo($settleRequestNo)
{
$this->settleRequestNo = $settleRequestNo;
return $this;
}
/**
* Gets settleRequestBeginTime
* @return string
*/
public function getSettleRequestBeginTime()
{
return $this->settleRequestBeginTime;
}
/**
* Sets settleRequestBeginTime
* @param string $settleRequestBeginTime
* @return RecordsQueryRequest
*/
public function setSettleRequestBeginTime($settleRequestBeginTime)
{
$this->settleRequestBeginTime = $settleRequestBeginTime;
return $this;
}
/**
* Gets settleRequestEndTime
* @return string
*/
public function getSettleRequestEndTime()
{
return $this->settleRequestEndTime;
}
/**
* Sets settleRequestEndTime
* @param string $settleRequestEndTime
* @return RecordsQueryRequest
*/
public function setSettleRequestEndTime($settleRequestEndTime)
{
$this->settleRequestEndTime = $settleRequestEndTime;
return $this;
}
public static function getOperationId()
{
return 'recordsQuery';
}
}

View File

@@ -0,0 +1,92 @@
<?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 RecordsQueryRequestMarshaller implements RequestMarshaller
{
/**
* @var RecordsQueryRequestMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new RecordsQueryRequestMarshaller();
}
/**
* @return RecordsQueryRequestMarshaller
*/
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/query';
/**
* @var string
*/
private $contentType = 'application/x-www-form-urlencoded';
/**
* @param RecordsQueryRequest $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());
}
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
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->getSettleRequestBeginTime() != null) {
$internalRequest->addParameter('settleRequestBeginTime',
ObjectSerializer::sanitizeForSerialization($request->getSettleRequestBeginTime(), 'string'));
}
if ($request->getSettleRequestEndTime() != null) {
$internalRequest->addParameter('settleRequestEndTime',
ObjectSerializer::sanitizeForSerialization($request->getSettleRequestEndTime(), 'string'));
}
return $internalRequest;
}
}
RecordsQueryRequestMarshaller::__init();

View File

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

View File

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

View File

@@ -0,0 +1,536 @@
<?php
/**
* RecordsQuerySettleRecordDetailsDtoResult
* PHP version 5
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* 商户结算2.0
* <p><a href=\"http://wiki.yeepay.com/pages/viewpage.action?pageId=112010456\">http://wiki.yeepay.com/pages/viewpage.action?pageId=112010456</a></p>
* OpenAPI spec version: 1.0.0
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.13
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
namespace Yeepay\Yop\Sdk\Service\Settle\Model;
use ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* RecordsQuerySettleRecordDetailsDtoResult Class Doc Comment
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
class RecordsQuerySettleRecordDetailsDtoResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
* @var string
*/
protected static $swaggerModelName = 'RecordsQuerySettleRecordDetailsDtoResult';
/**
* 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));
}
}

View File

@@ -0,0 +1,482 @@
<?php
/**
* RecordsQuerySettleRecordQueryDtoResult
* PHP version 5
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* 商户结算2.0
* <p><a href=\"http://wiki.yeepay.com/pages/viewpage.action?pageId=112010456\">http://wiki.yeepay.com/pages/viewpage.action?pageId=112010456</a></p>
* OpenAPI spec version: 1.0.0
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.13
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
namespace Yeepay\Yop\Sdk\Service\Settle\Model;
use ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* RecordsQuerySettleRecordQueryDtoResult Class Doc Comment
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
class RecordsQuerySettleRecordQueryDtoResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
* @var string
*/
protected static $swaggerModelName = 'RecordsQuerySettleRecordQueryDtoResult';
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerTypes = [
'summaryNo' => 'string',
'settleAmount' => 'float',
'status' => 'string',
'statusDesc' => 'string',
'createTime' => 'string',
'settleType' => 'string',
'realAmount' => 'float',
'realFee' => 'float',
'settleRecordDetailsDtos' => '\Yeepay\Yop\Sdk\Service\Settle\Model\RecordsQuerySettleRecordDetailsDtoResult[]',
];
/**
* 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 string
*/
public function getCreateTime()
{
return $this->container['createTime'];
}
/**
* Sets createTime
* @param string $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\RecordsQuerySettleRecordDetailsDtoResult[]
*/
public function getSettleRecordDetailsDtos()
{
return $this->container['settleRecordDetailsDtos'];
}
/**
* Sets settleRecordDetailsDtos
* @param \Yeepay\Yop\Sdk\Service\Settle\Model\RecordsQuerySettleRecordDetailsDtoResult[] $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));
}
}

View File

@@ -0,0 +1,347 @@
<?php
/**
* RecordsQuerySettleRecordQueryResponseDtoResult
* PHP version 5
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* 商户结算2.0
* <p><a href=\"http://wiki.yeepay.com/pages/viewpage.action?pageId=112010456\">http://wiki.yeepay.com/pages/viewpage.action?pageId=112010456</a></p>
* OpenAPI spec version: 1.0.0
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.13
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
namespace Yeepay\Yop\Sdk\Service\Settle\Model;
use ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* RecordsQuerySettleRecordQueryResponseDtoResult Class Doc Comment
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
class RecordsQuerySettleRecordQueryResponseDtoResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
* @var string
*/
protected static $swaggerModelName = 'RecordsQuerySettleRecordQueryResponseDtoResult';
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerTypes = [
'code' => 'string',
'message' => 'string',
'merchantNo' => 'string',
'settleRecordQueryDtos' => '\Yeepay\Yop\Sdk\Service\Settle\Model\RecordsQuerySettleRecordQueryDtoResult[]',
];
/**
* Array of property to format mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerFormats = [
'code' => null,
'message' => null,
'merchantNo' => 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',
'merchantNo' => 'merchantNo',
'settleRecordQueryDtos' => 'settleRecordQueryDtos',
];
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
protected static $setters = [
'code' => 'setCode',
'message' => 'setMessage',
'merchantNo' => 'setMerchantNo',
'settleRecordQueryDtos' => 'setSettleRecordQueryDtos',
];
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
protected static $getters = [
'code' => 'getCode',
'message' => 'getMessage',
'merchantNo' => 'getMerchantNo',
'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['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : 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 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 settleRecordQueryDtos
* @return \Yeepay\Yop\Sdk\Service\Settle\Model\RecordsQuerySettleRecordQueryDtoResult[]
*/
public function getSettleRecordQueryDtos()
{
return $this->container['settleRecordQueryDtos'];
}
/**
* Sets settleRecordQueryDtos
* @param \Yeepay\Yop\Sdk\Service\Settle\Model\RecordsQuerySettleRecordQueryDtoResult[] $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));
}
}

View File

@@ -0,0 +1,171 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Settle\Model;
use Yeepay\Yop\Sdk\Model\BaseRequest;
class SelfSettleApplyRequest extends BaseRequest
{
/**
* @var string
*/
private $parentMerchantNo;
/**
* @var string
*/
private $merchantNo;
/**
* @var string
*/
private $settleRequestNo;
/**
* @var string
*/
private $operatePeriod;
/**
* @var string
*/
private $endTime;
/**
* @var string
*/
private $notifyUrl;
/**
* Gets parentMerchantNo
* @return string
*/
public function getParentMerchantNo()
{
return $this->parentMerchantNo;
}
/**
* Sets parentMerchantNo
* @param string $parentMerchantNo
* @return SelfSettleApplyRequest
*/
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 SelfSettleApplyRequest
*/
public function setMerchantNo($merchantNo)
{
$this->merchantNo = $merchantNo;
return $this;
}
/**
* Gets settleRequestNo
* @return string
*/
public function getSettleRequestNo()
{
return $this->settleRequestNo;
}
/**
* Sets settleRequestNo
* @param string $settleRequestNo
* @return SelfSettleApplyRequest
*/
public function setSettleRequestNo($settleRequestNo)
{
$this->settleRequestNo = $settleRequestNo;
return $this;
}
/**
* Gets operatePeriod
* @return string
*/
public function getOperatePeriod()
{
return $this->operatePeriod;
}
/**
* Sets operatePeriod
* @param string $operatePeriod
* @return SelfSettleApplyRequest
*/
public function setOperatePeriod($operatePeriod)
{
$this->operatePeriod = $operatePeriod;
return $this;
}
/**
* Gets endTime
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* Sets endTime
* @param string $endTime
* @return SelfSettleApplyRequest
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
return $this;
}
/**
* Gets notifyUrl
* @return string
*/
public function getNotifyUrl()
{
return $this->notifyUrl;
}
/**
* Sets notifyUrl
* @param string $notifyUrl
* @return SelfSettleApplyRequest
*/
public function setNotifyUrl($notifyUrl)
{
$this->notifyUrl = $notifyUrl;
return $this;
}
public static function getOperationId()
{
return 'selfSettleApply';
}
}

View File

@@ -0,0 +1,101 @@
<?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 SelfSettleApplyRequestMarshaller implements RequestMarshaller
{
/**
* @var SelfSettleApplyRequestMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new SelfSettleApplyRequestMarshaller();
}
/**
* @return SelfSettleApplyRequestMarshaller
*/
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/self-settle/apply';
/**
* @var string
*/
private $contentType = 'application/x-www-form-urlencoded';
/**
* @param SelfSettleApplyRequest $request
* @return Request
*/
public function marshal($request)
{
$internalRequest = new DefaultRequest($this->serviceName);
$internalRequest->setResourcePath($this->resourcePath);
$internalRequest->setHttpMethod($this->httpMethod);
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
$internalRequest->addHeader($name, $value);
}
}
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
}
if ($request->getParentMerchantNo() != null) {
$internalRequest->addParameter('parentMerchantNo',
ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string'));
}
if ($request->getMerchantNo() != null) {
$internalRequest->addParameter('merchantNo',
ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string'));
}
if ($request->getSettleRequestNo() != null) {
$internalRequest->addParameter('settleRequestNo',
ObjectSerializer::sanitizeForSerialization($request->getSettleRequestNo(), 'string'));
}
if ($request->getOperatePeriod() != null) {
$internalRequest->addParameter('operatePeriod',
ObjectSerializer::sanitizeForSerialization($request->getOperatePeriod(), 'string'));
}
if ($request->getEndTime() != null) {
$internalRequest->addParameter('endTime',
ObjectSerializer::sanitizeForSerialization($request->getEndTime(), 'string', 'date-time'));
}
if ($request->getNotifyUrl() != null) {
$internalRequest->addParameter('notifyUrl',
ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string', 'url'));
}
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
return $internalRequest;
}
}
SelfSettleApplyRequestMarshaller::__init();

View File

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

View File

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

View File

@@ -0,0 +1,401 @@
<?php
/**
* SelfSettleApplySelfSettleResponseDtoResult
* PHP version 5
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* 商户结算2.0
* <p><a href=\"http://wiki.yeepay.com/pages/viewpage.action?pageId=112010456\">http://wiki.yeepay.com/pages/viewpage.action?pageId=112010456</a></p>
* OpenAPI spec version: 1.0.0
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.13
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
namespace Yeepay\Yop\Sdk\Service\Settle\Model;
use ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* SelfSettleApplySelfSettleResponseDtoResult Class Doc Comment
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
class SelfSettleApplySelfSettleResponseDtoResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
* @var string
*/
protected static $swaggerModelName = 'SelfSettleApplySelfSettleResponseDtoResult';
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerTypes = [
'code' => 'string',
'message' => 'string',
'parentMerchantNo' => 'string',
'merchantNo' => 'string',
'settleRequestNo' => 'string',
'yeepayFlowNo' => 'string',
];
/**
* Array of property to format mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerFormats = [
'code' => null,
'message' => null,
'parentMerchantNo' => null,
'merchantNo' => null,
'settleRequestNo' => null,
'yeepayFlowNo' => null,
];
/**
* Array of property to type mappings. Used for (de)serialization
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @var string[]
*/
protected static $attributeMap = [
'code' => 'code',
'message' => 'message',
'parentMerchantNo' => 'parentMerchantNo',
'merchantNo' => 'merchantNo',
'settleRequestNo' => 'settleRequestNo',
'yeepayFlowNo' => 'yeepayFlowNo',
];
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
protected static $setters = [
'code' => 'setCode',
'message' => 'setMessage',
'parentMerchantNo' => 'setParentMerchantNo',
'merchantNo' => 'setMerchantNo',
'settleRequestNo' => 'setSettleRequestNo',
'yeepayFlowNo' => 'setYeepayFlowNo',
];
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
protected static $getters = [
'code' => 'getCode',
'message' => 'getMessage',
'parentMerchantNo' => 'getParentMerchantNo',
'merchantNo' => 'getMerchantNo',
'settleRequestNo' => 'getSettleRequestNo',
'yeepayFlowNo' => 'getYeepayFlowNo',
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values
* @var mixed[]
*/
protected $container = [];
/**
* Constructor
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['code'] = isset($data['code']) ? $data['code'] : null;
$this->container['message'] = isset($data['message']) ? $data['message'] : null;
$this->container['parentMerchantNo'] = isset($data['parentMerchantNo']) ? $data['parentMerchantNo'] : null;
$this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null;
$this->container['settleRequestNo'] = isset($data['settleRequestNo']) ? $data['settleRequestNo'] : null;
$this->container['yeepayFlowNo'] = isset($data['yeepayFlowNo']) ? $data['yeepayFlowNo'] : null;
}
/**
* Show all the invalid properties with reasons.
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed
* @return bool True if all properties are valid
*/
public function valid()
{
return count($this->listInvalidProperties()) === 0;
}
/**
* Gets code
* @return string
*/
public function getCode()
{
return $this->container['code'];
}
/**
* Sets code
* @param string $code 返回码
* @return $this
*/
public function setCode($code)
{
$this->container['code'] = $code;
return $this;
}
/**
* Gets message
* @return string
*/
public function getMessage()
{
return $this->container['message'];
}
/**
* Sets message
* @param string $message 返回信息
* @return $this
*/
public function setMessage($message)
{
$this->container['message'] = $message;
return $this;
}
/**
* Gets parentMerchantNo
* @return string
*/
public function getParentMerchantNo()
{
return $this->container['parentMerchantNo'];
}
/**
* Sets parentMerchantNo
* @param string $parentMerchantNo 发起方商户编号
* @return $this
*/
public function setParentMerchantNo($parentMerchantNo)
{
$this->container['parentMerchantNo'] = $parentMerchantNo;
return $this;
}
/**
* Gets merchantNo
* @return string
*/
public function getMerchantNo()
{
return $this->container['merchantNo'];
}
/**
* Sets merchantNo
* @param string $merchantNo 收款商户编号
* @return $this
*/
public function setMerchantNo($merchantNo)
{
$this->container['merchantNo'] = $merchantNo;
return $this;
}
/**
* Gets settleRequestNo
* @return string
*/
public function getSettleRequestNo()
{
return $this->container['settleRequestNo'];
}
/**
* Sets settleRequestNo
* @param string $settleRequestNo 商户结算请求号
* @return $this
*/
public function setSettleRequestNo($settleRequestNo)
{
$this->container['settleRequestNo'] = $settleRequestNo;
return $this;
}
/**
* Gets yeepayFlowNo
* @return string
*/
public function getYeepayFlowNo()
{
return $this->container['yeepayFlowNo'];
}
/**
* Sets yeepayFlowNo
* @param string $yeepayFlowNo 易宝结算订单号
* @return $this
*/
public function setYeepayFlowNo($yeepayFlowNo)
{
$this->container['yeepayFlowNo'] = $yeepayFlowNo;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -0,0 +1,374 @@
<?php
/**
* SettleCardAddMerchantSettleCardResponseDTOResult
* PHP version 5
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* 商户结算2.0
* <p><a href=\"http://wiki.yeepay.com/pages/viewpage.action?pageId=112010456\">http://wiki.yeepay.com/pages/viewpage.action?pageId=112010456</a></p>
* OpenAPI spec version: 1.0.0
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.13
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
namespace Yeepay\Yop\Sdk\Service\Settle\Model;
use ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* SettleCardAddMerchantSettleCardResponseDTOResult Class Doc Comment
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
class SettleCardAddMerchantSettleCardResponseDTOResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
* @var string
*/
protected static $swaggerModelName = 'SettleCardAddMerchantSettleCardResponseDTOResult';
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerTypes = [
'code' => 'string',
'message' => '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,
'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',
'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',
'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',
'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['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 = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed
* @return bool True if all properties are valid
*/
public function valid()
{
return count($this->listInvalidProperties()) === 0;
}
/**
* Gets code
* @return string
*/
public function getCode()
{
return $this->container['code'];
}
/**
* Sets code
* @param string $code 返回码
* @return $this
*/
public function setCode($code)
{
$this->container['code'] = $code;
return $this;
}
/**
* Gets message
* @return string
*/
public function getMessage()
{
return $this->container['message'];
}
/**
* Sets message
* @param string $message 返回信息描述
* @return $this
*/
public function setMessage($message)
{
$this->container['message'] = $message;
return $this;
}
/**
* Gets status
* @return string
*/
public function getStatus()
{
return $this->container['status'];
}
/**
* Sets status
* @param string $status 状态
* @return $this
*/
public function setStatus($status)
{
$this->container['status'] = $status;
return $this;
}
/**
* Gets parentMerchantNo
* @return string
*/
public function getParentMerchantNo()
{
return $this->container['parentMerchantNo'];
}
/**
* Sets parentMerchantNo
* @param string $parentMerchantNo 发起方商户编号
* @return $this
*/
public function setParentMerchantNo($parentMerchantNo)
{
$this->container['parentMerchantNo'] = $parentMerchantNo;
return $this;
}
/**
* Gets merchantNo
* @return string
*/
public function getMerchantNo()
{
return $this->container['merchantNo'];
}
/**
* Sets merchantNo
* @param string $merchantNo 商户编号
* @return $this
*/
public function setMerchantNo($merchantNo)
{
$this->container['merchantNo'] = $merchantNo;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -0,0 +1,171 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Settle\Model;
use Yeepay\Yop\Sdk\Model\BaseRequest;
class SettleCardAddRequest extends BaseRequest
{
/**
* @var string
*/
private $parentMerchantNo;
/**
* @var string
*/
private $merchantNo;
/**
* @var string
*/
private $bankCardNo;
/**
* @var string
*/
private $bankCardType;
/**
* @var string
*/
private $bankCode;
/**
* @var bool
*/
private $defaultSettleCard;
/**
* Gets parentMerchantNo
* @return string
*/
public function getParentMerchantNo()
{
return $this->parentMerchantNo;
}
/**
* Sets parentMerchantNo
* @param string $parentMerchantNo
* @return SettleCardAddRequest
*/
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 SettleCardAddRequest
*/
public function setMerchantNo($merchantNo)
{
$this->merchantNo = $merchantNo;
return $this;
}
/**
* Gets bankCardNo
* @return string
*/
public function getBankCardNo()
{
return $this->bankCardNo;
}
/**
* Sets bankCardNo
* @param string $bankCardNo
* @return SettleCardAddRequest
*/
public function setBankCardNo($bankCardNo)
{
$this->bankCardNo = $bankCardNo;
return $this;
}
/**
* Gets bankCardType
* @return string
*/
public function getBankCardType()
{
return $this->bankCardType;
}
/**
* Sets bankCardType
* @param string $bankCardType
* @return SettleCardAddRequest
*/
public function setBankCardType($bankCardType)
{
$this->bankCardType = $bankCardType;
return $this;
}
/**
* Gets bankCode
* @return string
*/
public function getBankCode()
{
return $this->bankCode;
}
/**
* Sets bankCode
* @param string $bankCode
* @return SettleCardAddRequest
*/
public function setBankCode($bankCode)
{
$this->bankCode = $bankCode;
return $this;
}
/**
* Gets defaultSettleCard
* @return bool
*/
public function getDefaultSettleCard()
{
return $this->defaultSettleCard;
}
/**
* Sets defaultSettleCard
* @param bool $defaultSettleCard
* @return SettleCardAddRequest
*/
public function setDefaultSettleCard($defaultSettleCard)
{
$this->defaultSettleCard = $defaultSettleCard;
return $this;
}
public static function getOperationId()
{
return 'settleCardAdd';
}
}

View File

@@ -0,0 +1,101 @@
<?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 SettleCardAddRequestMarshaller implements RequestMarshaller
{
/**
* @var SettleCardAddRequestMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new SettleCardAddRequestMarshaller();
}
/**
* @return SettleCardAddRequestMarshaller
*/
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-card/add';
/**
* @var string
*/
private $contentType = 'application/x-www-form-urlencoded';
/**
* @param SettleCardAddRequest $request
* @return Request
*/
public function marshal($request)
{
$internalRequest = new DefaultRequest($this->serviceName);
$internalRequest->setResourcePath($this->resourcePath);
$internalRequest->setHttpMethod($this->httpMethod);
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
$internalRequest->addHeader($name, $value);
}
}
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
}
if ($request->getParentMerchantNo() != null) {
$internalRequest->addParameter('parentMerchantNo',
ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string'));
}
if ($request->getMerchantNo() != null) {
$internalRequest->addParameter('merchantNo',
ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string'));
}
if ($request->getBankCardNo() != null) {
$internalRequest->addParameter('bankCardNo',
ObjectSerializer::sanitizeForSerialization($request->getBankCardNo(), 'string'));
}
if ($request->getBankCardType() != null) {
$internalRequest->addParameter('bankCardType',
ObjectSerializer::sanitizeForSerialization($request->getBankCardType(), 'string'));
}
if ($request->getBankCode() != null) {
$internalRequest->addParameter('bankCode',
ObjectSerializer::sanitizeForSerialization($request->getBankCode(), 'string'));
}
if ($request->getDefaultSettleCard() != null) {
$internalRequest->addParameter('defaultSettleCard',
ObjectSerializer::sanitizeForSerialization($request->getDefaultSettleCard(), 'bool'));
}
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
return $internalRequest;
}
}
SettleCardAddRequestMarshaller::__init();

View File

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

View File

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

View File

@@ -0,0 +1,374 @@
<?php
/**
* SettleCardModifyMerchantSettleCardResponseDTOResult
* PHP version 5
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* 商户结算2.0
* <p><a href=\"http://wiki.yeepay.com/pages/viewpage.action?pageId=112010456\">http://wiki.yeepay.com/pages/viewpage.action?pageId=112010456</a></p>
* OpenAPI spec version: 1.0.0
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.13
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
namespace Yeepay\Yop\Sdk\Service\Settle\Model;
use ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* SettleCardModifyMerchantSettleCardResponseDTOResult Class Doc Comment
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
class SettleCardModifyMerchantSettleCardResponseDTOResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
* @var string
*/
protected static $swaggerModelName = 'SettleCardModifyMerchantSettleCardResponseDTOResult';
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerTypes = [
'code' => 'string',
'message' => '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,
'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',
'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',
'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',
'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['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 = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed
* @return bool True if all properties are valid
*/
public function valid()
{
return count($this->listInvalidProperties()) === 0;
}
/**
* Gets code
* @return string
*/
public function getCode()
{
return $this->container['code'];
}
/**
* Sets code
* @param string $code 返回码
* @return $this
*/
public function setCode($code)
{
$this->container['code'] = $code;
return $this;
}
/**
* Gets message
* @return string
*/
public function getMessage()
{
return $this->container['message'];
}
/**
* Sets message
* @param string $message 返回信息描述
* @return $this
*/
public function setMessage($message)
{
$this->container['message'] = $message;
return $this;
}
/**
* Gets status
* @return string
*/
public function getStatus()
{
return $this->container['status'];
}
/**
* Sets status
* @param string $status 返回结果
* @return $this
*/
public function setStatus($status)
{
$this->container['status'] = $status;
return $this;
}
/**
* Gets parentMerchantNo
* @return string
*/
public function getParentMerchantNo()
{
return $this->container['parentMerchantNo'];
}
/**
* Sets parentMerchantNo
* @param string $parentMerchantNo 发起方商户编号
* @return $this
*/
public function setParentMerchantNo($parentMerchantNo)
{
$this->container['parentMerchantNo'] = $parentMerchantNo;
return $this;
}
/**
* Gets merchantNo
* @return string
*/
public function getMerchantNo()
{
return $this->container['merchantNo'];
}
/**
* Sets merchantNo
* @param string $merchantNo 商户编号
* @return $this
*/
public function setMerchantNo($merchantNo)
{
$this->container['merchantNo'] = $merchantNo;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -0,0 +1,197 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Settle\Model;
use Yeepay\Yop\Sdk\Model\BaseRequest;
class SettleCardModifyRequest extends BaseRequest
{
/**
* @var string
*/
private $parentMerchantNo;
/**
* @var string
*/
private $merchantNo;
/**
* @var string
*/
private $bankCardNo;
/**
* @var string
*/
private $bankCardType;
/**
* @var string
*/
private $bankCode;
/**
* @var string
*/
private $brancgCode;
/**
* @var bool
*/
private $defaultSettleCard;
/**
* Gets parentMerchantNo
* @return string
*/
public function getParentMerchantNo()
{
return $this->parentMerchantNo;
}
/**
* Sets parentMerchantNo
* @param string $parentMerchantNo
* @return SettleCardModifyRequest
*/
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 SettleCardModifyRequest
*/
public function setMerchantNo($merchantNo)
{
$this->merchantNo = $merchantNo;
return $this;
}
/**
* Gets bankCardNo
* @return string
*/
public function getBankCardNo()
{
return $this->bankCardNo;
}
/**
* Sets bankCardNo
* @param string $bankCardNo
* @return SettleCardModifyRequest
*/
public function setBankCardNo($bankCardNo)
{
$this->bankCardNo = $bankCardNo;
return $this;
}
/**
* Gets bankCardType
* @return string
*/
public function getBankCardType()
{
return $this->bankCardType;
}
/**
* Sets bankCardType
* @param string $bankCardType
* @return SettleCardModifyRequest
*/
public function setBankCardType($bankCardType)
{
$this->bankCardType = $bankCardType;
return $this;
}
/**
* Gets bankCode
* @return string
*/
public function getBankCode()
{
return $this->bankCode;
}
/**
* Sets bankCode
* @param string $bankCode
* @return SettleCardModifyRequest
*/
public function setBankCode($bankCode)
{
$this->bankCode = $bankCode;
return $this;
}
/**
* Gets brancgCode
* @return string
*/
public function getBrancgCode()
{
return $this->brancgCode;
}
/**
* Sets brancgCode
* @param string $brancgCode
* @return SettleCardModifyRequest
*/
public function setBrancgCode($brancgCode)
{
$this->brancgCode = $brancgCode;
return $this;
}
/**
* Gets defaultSettleCard
* @return bool
*/
public function getDefaultSettleCard()
{
return $this->defaultSettleCard;
}
/**
* Sets defaultSettleCard
* @param bool $defaultSettleCard
* @return SettleCardModifyRequest
*/
public function setDefaultSettleCard($defaultSettleCard)
{
$this->defaultSettleCard = $defaultSettleCard;
return $this;
}
public static function getOperationId()
{
return 'settleCardModify';
}
}

View File

@@ -0,0 +1,105 @@
<?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 SettleCardModifyRequestMarshaller implements RequestMarshaller
{
/**
* @var SettleCardModifyRequestMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new SettleCardModifyRequestMarshaller();
}
/**
* @return SettleCardModifyRequestMarshaller
*/
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-card/modify';
/**
* @var string
*/
private $contentType = 'application/x-www-form-urlencoded';
/**
* @param SettleCardModifyRequest $request
* @return Request
*/
public function marshal($request)
{
$internalRequest = new DefaultRequest($this->serviceName);
$internalRequest->setResourcePath($this->resourcePath);
$internalRequest->setHttpMethod($this->httpMethod);
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
$internalRequest->addHeader($name, $value);
}
}
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
}
if ($request->getParentMerchantNo() != null) {
$internalRequest->addParameter('parentMerchantNo',
ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string'));
}
if ($request->getMerchantNo() != null) {
$internalRequest->addParameter('merchantNo',
ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string'));
}
if ($request->getBankCardNo() != null) {
$internalRequest->addParameter('bankCardNo',
ObjectSerializer::sanitizeForSerialization($request->getBankCardNo(), 'string'));
}
if ($request->getBankCardType() != null) {
$internalRequest->addParameter('bankCardType',
ObjectSerializer::sanitizeForSerialization($request->getBankCardType(), 'string'));
}
if ($request->getBankCode() != null) {
$internalRequest->addParameter('bankCode',
ObjectSerializer::sanitizeForSerialization($request->getBankCode(), 'string'));
}
if ($request->getBrancgCode() != null) {
$internalRequest->addParameter('brancgCode',
ObjectSerializer::sanitizeForSerialization($request->getBrancgCode(), 'string'));
}
if ($request->getDefaultSettleCard() != null) {
$internalRequest->addParameter('defaultSettleCard',
ObjectSerializer::sanitizeForSerialization($request->getDefaultSettleCard(), 'bool'));
}
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
return $internalRequest;
}
}
SettleCardModifyRequestMarshaller::__init();

View File

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

View File

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